/* Generated from docs/brand/tokens.json semantics */

:root {
  --color-brand-teal: #205052;
  --color-brand-teal-muted: #2a6365;
  --color-brand-teal-dark: #163a3c;
  --color-canvas: #ffffff;
  --color-canvas-subtle: #fafafa;
  --color-text-primary: #1a1d21;
  --color-text-secondary: #42474e;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-product-surface: #0f1114;
  --color-product-on-surface: #e0e2e8;
  --color-product-on-surface-body: rgba(224, 226, 232, 0.9);
  --color-product-primary: #98ccf9;
  --color-product-frame: #1c2024;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --content-max: 70rem;
  --prose-max: 47rem;
  --gutter: 1.5rem;
  --section-y: 5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --motion-fast: 200ms;
  --motion-normal: 280ms;
  --motion-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --focus-ring: 2px solid var(--color-brand-teal);
  --focus-offset: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-canvas);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-brand-teal);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-brand-teal-muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-brand-teal);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.dark-panel :focus-visible {
  outline-color: var(--color-product-primary);
}

.container {
  width: min(100% - var(--gutter) * 2, var(--content-max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

@media (max-width: 640px) {
  :root {
    --section-y: 3rem;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 4rem;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - var(--gutter) * 2, var(--content-max));
  margin-inline: auto;
}

.site-header__logo img {
  height: 2.25rem;
  width: auto;
  display: block;
  background: transparent;
}

.site-header__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand-teal);
  text-decoration: none;
  white-space: nowrap;
}

.site-header__cta:hover {
  text-decoration: underline;
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav a {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.site-header nav a:hover {
  color: var(--color-brand-teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--motion-fast) var(--motion-ease);
}

.btn--primary {
  background: var(--color-brand-teal);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-brand-teal-muted);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--color-brand-teal);
  border: 1px solid var(--color-border);
}

.btn--nav {
  background: var(--color-brand-teal);
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  min-height: 2.5rem;
}

.btn--nav:hover {
  background: var(--color-brand-teal-muted);
  color: #fff;
}

.section--subtle {
  background: var(--color-canvas-subtle);
}

.section-bridge {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-border) 20%,
    var(--color-border) 80%,
    transparent
  );
  margin-bottom: -1px;
}

.section--product-band {
  padding-top: calc(var(--section-y) + 0.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-intro {
  max-width: var(--prose-max);
  margin-bottom: 2rem;
}

.section-intro--center {
  margin-inline: auto;
  text-align: center;
}

.section-intro__lead {
  margin: 0.5rem 0 0;
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.hero__secondary {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.hero__secondary a {
  text-decoration: none;
  font-weight: 600;
}

.hero__secondary a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .email-capture__row .btn--primary {
    flex: 1 1 100%;
    width: 100%;
  }

  .email-capture input[type="email"] {
    flex: 1 1 100%;
    width: 100%;
  }
}

.display {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1,
.h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.25;
}

h2,
.h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}

h3,
.h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.prose {
  max-width: var(--prose-max);
}

.prose p {
  margin: 0 0 1rem;
}

.definition-block {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: var(--prose-max);
  margin-top: 1.25rem;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.hero {
  padding-block: var(--section-y);
  background: var(--color-canvas);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__media .device-frame {
  max-width: 17.5rem;
  margin-inline: auto;
}

@media (min-width: 901px) {
  .hero__media .device-frame {
    margin-inline: auto 0;
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.hero__subhead {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.device-frame {
  position: relative;
  width: 100%;
}

/* iPhone-style hardware frame (SVG bezel + 390×844 screen inset) */
.device-frame--iphone {
  aspect-ratio: 414 / 896;
  background: transparent;
  padding: 0;
  overflow: visible;
}

.device-frame--iphone .device-frame__screen {
  position: absolute;
  top: 1.34%;
  left: 2.9%;
  width: 94.2%;
  height: 94.2%;
  border-radius: 8.7%;
  overflow: hidden;
  background: var(--color-product-frame);
  z-index: 0;
}

.device-frame--iphone .device-frame__bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  display: block;
  border-radius: 0;
}

.device-frame--iphone .device-frame__glow {
  border-radius: inherit;
}

.device-frame__media {
  border-radius: calc(var(--radius-lg) - 4px);
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  vertical-align: middle;
}

.device-frame__video {
  object-fit: cover;
  aspect-ratio: 390 / 844;
  background: var(--color-product-frame);
}
.device-frame:not(.device-frame--iphone) {
  background: var(--color-product-frame);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  position: relative;
  overflow: hidden;
}

.device-frame__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    rgba(152, 204, 249, 0.18) 0%,
    rgba(139, 157, 175, 0.08) 45%,
    transparent 70%
  );
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .device-frame__glow--animate {
    animation: lumen 24s ease-in-out infinite alternate;
  }
}

@keyframes lumen {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

.device-frame img:not(.device-frame__bezel) {
  border-radius: calc(var(--radius-lg) - 4px);
  width: 100%;
  position: relative;
  z-index: 1;
}

.device-frame--iphone .device-frame__media {
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

.device-frame__poster-fallback[hidden] {
  display: none !important;
}

.device-frame__poster-fallback.is-visible {
  display: block;
}

.email-capture {
  max-width: 28rem;
}

.email-capture__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.email-capture label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.email-capture input[type="email"] {
  flex: 1 1 12rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font: inherit;
}

.email-capture input[aria-invalid="true"] {
  border-color: #b42318;
}

.email-capture__micro {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.email-capture__status {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.email-capture__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .pillar-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--gutter);
  background: var(--color-canvas);
}

.pillar-card__icon {
  width: 1.75rem;
  height: 1.75rem;
  stroke: var(--color-brand-teal);
  margin-bottom: 0.75rem;
}

.pillar-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.strip-dark {
  background: var(--color-product-surface);
  color: var(--color-product-on-surface-body);
}

.strip-dark h2,
.strip-dark h3 {
  color: var(--color-product-on-surface);
}

.strip-dark a {
  color: var(--color-product-primary);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

.how-grid__cell {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.how-grid__cell h3 {
  margin-top: 0;
}

.how-grid .device-frame {
  max-width: 16rem;
  margin-inline: auto;
  margin-top: auto;
  padding-top: 1.25rem;
}

@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
  }

  .how-grid .device-frame {
    max-width: 14rem;
  }
}

.lifecycle-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lifecycle-steps--flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.lifecycle-steps--flow .lifecycle-steps__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  min-height: 100%;
}

.lifecycle-steps__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-canvas);
  background: var(--color-brand-teal);
  flex-shrink: 0;
}

.lifecycle-steps__label {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .trust-stats {
    grid-template-columns: 1fr;
  }
}

.trust-stat {
  margin: 0;
  padding: 1.25rem 1.25rem 1.125rem;
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  text-align: center;
}

.trust-stat__value {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-brand-teal-dark);
}

.trust-stat__label {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.trust-stat__detail {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

.trust-lifecycle {
  max-width: 52rem;
  margin-inline: auto;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
}

.trust-lifecycle__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  text-align: center;
}

.trust-lifecycle__intro {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  text-align: center;
}

.trust-links {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.875rem;
}

.trust-links__sep {
  margin-inline: 0.5rem;
  color: var(--color-text-muted);
}

.trust-links a {
  font-weight: 500;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.comparison-table__vent-col {
  background: rgba(32, 80, 82, 0.06);
  font-weight: 500;
}

.comparison-table thead .comparison-table__vent-col {
  background: rgba(32, 80, 82, 0.12);
  color: var(--color-brand-teal-dark);
}

.comparison-footnote {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.faq--narrow {
  max-width: var(--prose-max);
  margin-inline: auto;
}

.faq__group {
  margin-bottom: 2rem;
}

.faq__group:last-child {
  margin-bottom: 0;
}

.faq__group-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin: 0 0 0.5rem;
  text-transform: none;
  letter-spacing: 0.01em;
}

.about-vent--narrow {
  max-width: var(--prose-max);
  margin-inline: auto;
  text-align: center;
}

.about-vent--narrow p {
  text-align: left;
}

.about-vent--narrow .signposting {
  text-align: center;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
}

.faq__summary::-webkit-details-marker {
  display: none;
}

.faq__summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.35rem;
  border-right: 2px solid var(--color-brand-teal);
  border-bottom: 2px solid var(--color-brand-teal);
  transform: rotate(45deg);
  transition: transform var(--motion-fast) var(--motion-ease);
}

.faq__item[open] .faq__summary::after {
  transform: rotate(-135deg);
  margin-top: 0.55rem;
}

.faq__answer {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0 0 1rem;
  padding-right: 1.5rem;
  line-height: 1.6;
}

.site-footer__analytics {
  margin-top: 1rem;
  font-size: 0.6875rem;
  color: var(--color-text-muted);
}

.site-footer__analytics a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: var(--color-canvas-subtle);
  font-weight: 600;
}

.comparison-table th[scope="row"] {
  font-weight: 600;
}

.signposting {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
}

#faq .signposting {
  max-width: var(--prose-max);
  margin-inline: auto;
  text-align: center;
}

.site-footer {
  background: var(--color-canvas-subtle);
  padding-block: 3rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.site-footer a {
  color: var(--color-text-secondary);
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-badges a {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.875rem;
}

.platform-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.legal-page h2 {
  margin-top: 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
