
:root {
  color-scheme: light;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #d6d0c4;
  --paper: #ffffff;
  --wash: #f4f1ea;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --teal-soft: rgba(20, 184, 166, 0.12);
  --shadow: 0 18px 48px rgba(19, 32, 51, 0.12);
  --header-h: 64px;
  --control-h: 40px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f5f4;
  --muted: #a8a29e;
  --line: #44403c;
  --paper: #292524;
  --wash: #1c1917;
  --teal: #2dd4bf;
  --teal-bright: #5eead4;
  --teal-soft: rgba(45, 212, 191, 0.14);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--wash);
  color: var(--ink);
  padding-bottom: 72px;
}

a { color: inherit; }

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  background: color-mix(in srgb, var(--wash) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 900;
  flex-shrink: 0;
}

.brand-mark-img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(19, 32, 51, 0.08);
  object-fit: cover;
}

.nav-links {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-control {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  height: var(--control-h);
  padding: 0 14px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.theme-toggle {
  width: var(--control-h);
  min-width: var(--control-h);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  box-shadow: none;
}

.theme-icon { display: none; }
html[data-theme="light"] .theme-icon-moon { display: block; }
html[data-theme="dark"] .theme-icon-sun { display: block; }

.header-cta {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #ffffff;
  box-shadow: none;
}

html[data-theme="dark"] .header-cta { color: #0f172a; }

.panel-viewport {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 0;
  scroll-margin-top: var(--header-h);
}

.panel-inner {
  width: 100%;
}

.hero-viewport {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  align-items: center;
  gap: 36px;
}

.hero-copy { max-width: 560px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-soft {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.45;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 650;
}

h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.2;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-weight: 850;
}

.section-heading p,
.final-cta p,
.demo-caption-row p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(19, 32, 51, 0.06);
}

.button-primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

html[data-theme="dark"] .button-primary { color: #0f172a; }

.button-secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

button.button { font: inherit; cursor: pointer; }

.hero-media img {
  display: block;
  width: 100%;
  min-height: 280px;
  max-height: min(560px, 62svh);
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 20px;
}

.section-heading p { margin: 12px 0 0; }

.example-chips {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.example-chips li { padding: 0; border: 0; background: transparent; }

.example-chips li span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.92rem;
}

.demo-gallery { margin-top: 4px; }

.demo-chips,
.demo-subchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.demo-chip,
.demo-subchip {
  appearance: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 750;
  font-size: 0.9rem;
  cursor: pointer;
}

.demo-chip.is-active,
.demo-subchip.is-active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.demo-subchip {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.demo-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.demo-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.demo-primary,
.phone-frame {
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--wash);
  box-shadow: var(--shadow);
}

.demo-primary.is-mobile,
.phone-frame {
  width: min(100%, 390px);
  aspect-ratio: 390 / 844;
}

.demo-primary.is-desktop {
  width: min(100%, 920px);
  aspect-ratio: 16 / 10;
  max-height: min(62svh, 560px);
}

.demo-primary .demo-img,
.phone-frame .demo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.demo-caption-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
  gap: 20px;
  align-items: start;
}

.demo-caption-row h3 { margin-bottom: 6px; }
.demo-caption-row p { margin: 0; }

.demo-secondary {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.demo-secondary-label {
  margin: 0 0 8px !important;
  font-size: 0.72rem !important;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal) !important;
}

.demo-img-secondary {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  object-position: top center;
}

.kinny-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.85fr);
  gap: 28px;
  align-items: center;
}

.kinny-layout .section-heading { margin-bottom: 0; }

.kinny-shot,
.privacy-shot {
  justify-self: end;
  width: min(100%, 360px);
}

.share-list,
.privacy-bullets {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  max-width: 520px;
}

.share-list li,
.privacy-bullets li {
  position: relative;
  padding: 4px 0 4px 22px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
}

.share-list li::before,
.privacy-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.final-cta { border-top: 1px solid var(--line); }

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
}

.final-cta-inner > div { max-width: 640px; }

.waitlist-form {
  display: grid;
  gap: 12px;
  min-width: min(100%, 340px);
  max-width: 360px;
}

.waitlist-form input {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.waitlist-form .button { width: 100%; }

.waitlist-status {
  margin: 0;
  min-height: 1.4em;
  color: var(--teal);
  font-weight: 750;
  font-size: 0.95rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-brand {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

.footer-brand:hover { color: var(--ink); }

.footer-legal { display: flex; gap: 18px; }

.footer-legal a {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

.footer-legal a:hover { color: var(--ink); }

.sticky-waitlist {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--wash) 88%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.sticky-waitlist[hidden] { display: none !important; }

.sticky-waitlist .button {
  width: min(420px, 100%);
  box-shadow: var(--shadow);
}

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  color: var(--ink);
}

.legal-page .legal-meta {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-page a { color: var(--teal); font-weight: 750; }
.legal-page a:hover { color: var(--ink); }
.legal-page p { line-height: 1.7; }
.legal-page ul { padding-left: 1.2rem; display: grid; gap: 8px; }
.legal-page h1 { margin-top: 0; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.legal-page h2 { margin-top: 1.75rem; font-size: 1.25rem; }
.legal-page ul,
.legal-page ol { line-height: 1.6; }

@media (max-width: 920px) {
  .hero-viewport {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .demo-caption-row { grid-template-columns: 1fr; }

  .kinny-layout { grid-template-columns: 1fr; }

  .kinny-shot,
  .privacy-shot {
    justify-self: start;
    width: min(100%, 390px);
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .panel-viewport { padding: 20px 0; }

  .hero-media img {
    min-height: 220px;
    max-height: 42svh;
  }

  h1 { font-size: 1.75rem; }

  .demo-stage {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 6px;
  }

  .demo-nav {
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
  }

  .demo-primary.is-mobile,
  .phone-frame {
    width: min(100%, 340px);
  }

  .final-cta-inner,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .waitlist-form {
    width: 100%;
    max-width: none;
  }
}
