@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/dm-sans.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #176A9E;
  --primary-ink: #0F4A70;
  --accent: #D17A00;
  --accent-ink: #8A4E00;
  --background: #FFFBEF;
  --surface: #FFFFFF;
  --surface-2: #FFF0C8;
  --surface-3: #F4E8C4;
  --text: #1D2A36;
  --muted: #4A5560;
  --border: #ECD9A7;
  --soft-border: #E6D4A2;
  --primary-border: #176A9E;
  --shadow-card: 0 10px 28px rgba(29, 42, 54, 0.08);
  --shadow-float: 0 18px 40px rgba(29, 42, 54, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --cta-h: 64px;
  --max: 1180px;
  --lounge: 300px;
  --font: "DM Sans", "Noto Sans Devanagari", system-ui, sans-serif;
  --gradient-tile: linear-gradient(180deg, #fffdf6 0%, #fff7df 100%);
  --bg-2: #fff6d8;
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  min-width: 0;
  overflow-x: clip;
  overflow-y: auto;
  max-width: 100%;
}

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

img {
  width: 100%;
}

a { color: var(--primary-ink); }
a:hover { color: var(--accent-ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  z-index: 400;
}
.skip:focus { left: 12px; top: 12px; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  min-width: 0;
}

section[id] { scroll-margin-top: 92px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: rgba(255, 251, 239, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex: 0 0 auto;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--accent-ink);
  letter-spacing: 0.02em;
}

.brand-name { font-weight: 800; letter-spacing: -0.03em; }
.brand-tag {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-wrap { margin-left: auto; min-width: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > li { list-style: none; position: relative; }
.main-nav, .main-nav ul { margin: 0; padding: 0; }

.main-nav > li > a,
.header-cta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--text);
}

.main-nav > li > a:hover,
.main-nav > li > a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--primary-ink);
}

.header-cta,
.btn-play {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 16px !important;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.header-cta:hover,
.btn-play:hover { filter: brightness(0.96); }

.mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 10px;
  display: none;
  z-index: 20;
}
.mega.open,
.has-mega:hover .mega,
.has-mega:focus-within .mega { display: grid; gap: 4px; }
.mega a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.mega a:hover { background: var(--surface-2); }
.mega small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 500;
  cursor: pointer;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
}
.hamburger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 360px);
  max-width: calc(100vw - 56px);
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 400;
  padding: 20px 20px 32px;
  transform: translateX(-105%);
  transition: transform 0.2s ease, visibility 0.2s ease;
  overflow: auto;
  overflow-x: clip;
  visibility: hidden;
  pointer-events: none;
}
.mobile-drawer.open {
  transform: none;
  visibility: visible;
  pointer-events: auto;
}
.mobile-drawer:not(.open) a,
.mobile-drawer:not(.open) button {
  visibility: hidden;
}
.drawer-close {
  position: sticky;
  top: 0;
  z-index: 2;
  min-width: 44px;
  min-height: 44px;
}
.mobile-drawer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mobile-drawer a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  padding: 10px 8px;
  border-radius: 10px;
}
.mobile-drawer a:hover,
.mobile-drawer a[aria-current="page"] { background: var(--surface-2); }
.drawer-cta { margin-top: 16px; width: 100%; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 20px;
  white-space: nowrap;
  border: 1px solid transparent;
  font-size: 15px;
}
.btn-primary, .btn-play {
  background: var(--accent);
  color: #fff;
}
.btn-ghost {
  background: var(--surface);
  color: var(--primary-ink);
  border-color: var(--border);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }

/* Hero lounge */
.hero-lounge {
  padding: 28px 0 12px;
}
.lounge-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--lounge)) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.lounge-copy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px 20px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.lounge-copy h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.lounge-copy h1 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.lounge-copy h1 a:hover, .lounge-copy h1 a:focus {
  text-decoration-color: var(--accent);
}
.lede {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 36ch;
}
.seat-still {
  position: relative;
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  min-height: 360px;
}
.seat-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  min-height: 360px;
}
.ledger-ticks {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: grid;
  gap: 6px;
  max-width: min(78%, 360px);
}
.tick {
  background: rgba(255, 251, 239, 0.94);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

/* Families */
.band { padding: 42px 0; }
.band-alt { background: linear-gradient(180deg, transparent, rgba(255, 240, 200, 0.45)); }
.family-corridor .corridor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.step-card, .data-card, .loose-card, .card, .hub-card, .cta-card, .comparison-card, .pricing-card, .testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
  box-shadow: var(--shadow-card);
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 10px;
}
.family-ledger .ledger-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: start;
}
.ledger-photo {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  position: relative;
}
.ledger-photo img { aspect-ratio: 16/10; object-fit: cover; }
.note {
  position: absolute;
  background: #fffdf6;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}
.note-a { top: 12%; left: 8%; }
.note-b { top: 48%; right: 8%; }
.note-c { bottom: 10%; left: 18%; }
.ledger-list { display: grid; gap: 10px; }
.ledger-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}
.ledger-row strong { font-size: 13px; color: var(--primary-ink); }

.family-dock .dock {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
  gap: 14px;
}
.dock article { min-width: 0; }
.dock h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.dock p { margin: 0 0 10px; color: var(--muted); font-size: 16px; }
.bound { font-size: 13px; font-weight: 700; color: var(--accent-ink); }

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: start;
}
.sticky-index {
  position: sticky;
  top: 92px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-card);
}
.sticky-index p {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
}
.sticky-index ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.sticky-index a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 8px;
}
.sticky-index a.is-active,
.sticky-index a:hover { background: var(--surface-2); color: var(--primary-ink); }

.family-cutout .cutout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: center;
}
.cutout img {
  background: transparent;
  mix-blend-mode: multiply;
  border-radius: 20px;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.family-sheet .sheet {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.sheet ol, .sheet ul { margin: 8px 0 0; padding-left: 18px; }
.family-panel .panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.control {
  background: var(--gradient-tile);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  min-width: 0;
}
.control h3 { margin: 0 0 6px; font-size: 18px; }
.control p { margin: 0; color: var(--muted); font-size: 15px; }

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section-head p { margin: 0 0 18px; color: var(--muted); max-width: 68ch; }

.prose { max-width: 72ch; }
.prose p { margin: 0 0 14px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose h2, .prose h3 { letter-spacing: -0.03em; line-height: 1.25; }
.prose h2 { font-size: 30px; margin: 28px 0 10px; }
.prose h3 { font-size: 22px; margin: 22px 0 8px; }

.inline-image-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: center;
  margin: 22px 0;
}
.inline-image-row img,
.inline-image-row .visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--soft-border);
  box-shadow: var(--shadow-card);
}
figure { margin: 22px 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.faq-grid { display: grid; gap: 10px; }
.faq-grid details,
details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}
.faq-grid summary { font-weight: 800; cursor: pointer; }

.table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table th { background: var(--surface-2); font-size: 13px; }

.notice {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
}

.page-hero {
  padding: 28px 0 10px;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: center;
}
.page-hero img {
  border-radius: 20px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid var(--border);
}

.site-footer {
  background: #fff8e4;
  border-top: 1px solid var(--border);
  padding: 36px 0 110px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.site-footer h2 { font-size: 15px; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; }
.fineprint { margin-top: 22px; color: var(--muted); font-size: 13px; }

.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 240;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 251, 239, 0.96);
  border-top: 1px solid var(--border);
}
.sticky-cta .btn-play {
  width: 100%;
  justify-content: center;
}

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

/* verify aliases */
.band-elev-1 { background: var(--surface); }

html.is-drawer-open,
html.is-drawer-open body {
  overflow: hidden;
}

.support-chat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
}
.support-chat header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.support-chat .avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
}
.support-chat header strong { display: block; }
.support-chat header span { color: var(--muted); font-size: 13px; }
.support-chat .reset {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
}
.support-chat .messages {
  min-height: 180px;
  max-height: 320px;
  overflow: auto;
  padding: 14px 16px;
}
.support-chat .bubble {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 10px;
}
.support-chat .bubble.user { background: #fff4d6; }
.support-chat .bubble p { margin: 0; }
.support-chat .bubble time { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.support-chat .day { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.support-chat form { padding: 12px 16px 16px; }
.support-chat .identity { display: grid; gap: 10px; margin-bottom: 10px; }
.support-chat label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.support-chat input,
.support-chat textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.support-chat .composer { display: grid; gap: 8px; }
.support-chat .composer button {
  justify-self: start;
  min-height: 44px;
}
.support-chat .status { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: block; }
  .page-shell { grid-template-columns: 1fr; }
  .sticky-index { position: static; }
  .sticky-index ol { display: flex; flex-wrap: wrap; gap: 6px; }
  html.is-drawer-open .site-header { position: static; z-index: auto; }
  html.is-drawer-open .hamburger span { opacity: 0; }
}

@media (max-width: 899px) {
  html, body { overflow-x: clip; overflow-y: auto; max-width: 100%; }
  .lounge-grid,
  .family-ledger .ledger-wrap,
  .family-dock .dock,
  .family-cutout .cutout,
  .page-hero-grid,
  .inline-image-row,
  .family-corridor .corridor,
  .family-panel .panel-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-lounge { padding-top: 16px; }
  .seat-still, .seat-still img { min-height: 240px; max-height: 320px; }
  .lounge-copy h1 { font-size: 32px; }
  .sticky-cta { display: block; }
  .note { position: static; margin: 6px 10px 0; display: inline-block; }
  .ledger-ticks { position: static; padding: 10px; max-width: none; }
}

@media (max-width: 430px) {
  body { font-size: 17px; }
  .container { width: min(var(--max), calc(100% - 20px)); }
  .btn, .header-cta, .btn-play {
    white-space: normal;
    max-width: 100%;
    text-align: center;
    line-height: 1.25;
  }
  .btn-row { min-width: 0; width: 100%; }
}

/* PageSpeed contrast: white on --accent fails AA at button size */
.header-cta,
.btn-play,
.btn-primary {
  background: var(--accent);
  color: #1A1200 !important;
}
.support-chat .avatar {
  background: var(--accent);
  color: #1A1200;
}
