/* Grid Folio additions: the reference geometry stays in styles.css. */
:root {
  color-scheme: dark;
  --ink: #f8faf8;
  --ink-soft: #ced9d3;
  --paper: #07110d;
  --surface: #102019;
  --line: #2d4035;
  --hero-copy: #ced9d3;
  --muted: #a8b6af;
  --hero-shape: #159a5b;
  --hero-kicker: #feca26;
  --header-glass: rgba(7, 17, 13, .62);
  --hero-divider: rgba(255, 255, 255, .18);
  --dots: rgba(255, 255, 255, .24);
  --grid-line: rgba(225, 245, 234, .18);
  --green-soft: #173a29;
  --gold-soft: #312c17;
  --blue-soft: #212746;
}
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #111513;
  --ink-soft: #3d4541;
  --paper: #f4f3ef;
  --surface: #ffffff;
  --line: #d9ddd8;
  --hero-copy: #35483d;
  --muted: #53635a;
  --hero-shape: #bbe5c9;
  --hero-kicker: #147342;
  --header-glass: rgba(244, 243, 239, .68);
  --hero-divider: rgba(7, 17, 13, .16);
  --dots: rgba(17, 55, 34, .22);
  --grid-line: rgba(7, 17, 13, .08);
  --green-soft: #dff5e9;
  --gold-soft: #fff2bd;
  --blue-soft: #e5e6ff;
}
[hidden] { display: none !important; }
html { scroll-padding-top: 108px; }
body { color: var(--ink); background: var(--paper); }
.coming-soon-page {
  color: var(--ink);
  background: var(--paper);
  min-height: 100svh;
  height: auto;
  overflow: visible;
}
.coming-soon {
  min-height: calc(100svh - 128px);
  flex: 1 0 auto;
}
.coming-soon::before { background: var(--hero-shape); }
.coming-soon::after { background-image: radial-gradient(var(--dots) 1px, transparent 1px); }
.coming-soon .eyebrow, .download-invite__eyebrow { color: var(--hero-kicker); }
.coming-soon__copy, .download-invite > p:not(.download-invite__eyebrow) { color: var(--hero-copy); }
.download-invite { border-color: var(--hero-divider); }
.download-invite h2 { color: var(--ink); }
.site-header, .site-header--transparent {
  color: var(--ink);
  background: var(--header-glass);
  border-color: var(--hero-divider);
}
.site-header { flex-shrink: 0; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.brand__wordmark {
  width: 88px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.085em;
}
.brand__dot { color: var(--green); }
.site-header--transparent .nav-cta { color: #111513; }
.theme-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--ink);
  border: 1px solid var(--hero-divider);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}
.theme-toggle:hover { background: var(--hero-divider); }
.theme-toggle:active { transform: scale(.94); }
.theme-icon { width: 22px; height: 22px; }
.theme-icon--moon, [data-theme="light"] .theme-icon--sun { display: none; }
[data-theme="light"] .theme-icon--moon { display: block; }
:focus-visible { outline-color: var(--green); }
[data-theme="dark"] :focus-visible { outline-color: var(--gold); }
.skip-link {
  position: fixed; z-index: 100; left: 20px; top: 12px;
  padding: 10px 18px; color: #111513; background: var(--gold);
  border-radius: 8px; transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.store-button { color: #111513; text-align: left; }
.store-button:active { transform: translateY(1px); }
/* Opaque tiles sit above both background patterns, below the page content. */
.coming-soon__art { z-index: 2; opacity: 1; }
.letter-tile {
  display: grid;
  place-items: center;
  container-type: inline-size;
  color: #183128;
  background: linear-gradient(145deg, #ffe896, #feca26 62%, #eeb413);
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 15%;
  box-shadow: inset 0 2px 1px rgba(255,255,255,.65), inset 0 -6px 1px rgba(41,32,3,.19), 0 10px 0 rgba(7,17,13,.18), 0 24px 30px rgba(0,0,0,.22);
  filter: none;
  opacity: 1;
  user-select: none;
  will-change: translate;
}
.letter-tile > [data-letter] {
  font-family: "Space Grotesk", sans-serif;
  font-size: 58px;
  font-size: 60cqi;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.065em;
  text-shadow: 0 1px 0 rgba(255,255,255,.3);
}
.letter-tile.floating-piece--two, .letter-tile.floating-piece--five {
  color: #ffffff;
  background: linear-gradient(145deg, #6974ff, #303aef 64%, #161ee4);
  border-color: rgba(185,194,255,.5);
}
.letter-tile.floating-piece--three {
  color: #e8fff1;
  background: linear-gradient(145deg, #52cf92, #159a5b 64%, #107b48);
}
.minimal-footer {
  color: var(--muted);
  border-color: var(--hero-divider);
  gap: 24px;
}
.minimal-footer p { flex-shrink: 0; }
.minimal-footer a { white-space: nowrap; }
.minimal-footer a:hover { color: var(--ink); }
/* Let the rotated tiles and their shadows bounce past the hero's bottom edge. */
.page-hero { color: var(--ink); background: var(--paper); overflow: visible; }
.page-hero::after {
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
}
.page-hero__content { position: relative; z-index: 3; }
.page-hero .floating-piece--three, .page-hero .floating-piece--four { top: 68%; }
.policy-nav { top: 108px; background: var(--surface); }
.policy-section { scroll-margin-top: 110px; }
.accordion, .faq-search, .faq-empty, .provider-grid article, .effective-date,
.contact-form, .contact-note { background: var(--surface); }
.accordion details { scroll-margin-top: 110px; }
.accordion__content a, .policy-section a { color: var(--ink); text-decoration-color: var(--green); }
/* Clip off-screen side tiles without creating a vertical clipping/scroll box. */
.page-main { min-height: calc(100svh - 145px); overflow-x: clip; }
.policy-layout--single { grid-template-columns: minmax(0, 760px); }
.policy-callout { border-radius: 0 12px 12px 0; }
.contact-email a { overflow-wrap: anywhere; }
.contact-email a, .contact-note a { color: var(--ink); text-decoration-color: var(--green); }
.contact-form textarea { font: inherit; }
.contact-form__hint, [data-support-status] { color: var(--ink-soft); font-size: 13px; }
.support-button { background: var(--green); color: #ffffff; }
.support-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.contact-form { position: relative; min-width: 0; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-wrap { min-height: 65px; margin-top: 20px; }
.verification-retry { color: var(--ink); background: none; border: 0; padding: 8px 0; text-decoration: underline; cursor: pointer; }
[data-support-status]:empty { display: none; }
[data-support-status][data-state="error"] { color: #b52d36; }
[data-theme="dark"] [data-support-status][data-state="error"] { color: #ffb4bb; }
.faq-search input:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; border-radius: 3px; }
.faq-search-wrap { z-index: 4; }
.confirmation-links { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1100px) {
  .minimal-footer { flex-wrap: wrap; gap: 6px 24px; }
}
@media (max-width: 900px) {
  .coming-soon { min-height: calc(100svh - 145px); }
  .download-invite { border-top-color: var(--hero-divider); }
}
@media (max-width: 700px) {
  .header-actions { gap: 10px; }
  .site-nav { color: var(--ink); background: var(--surface); }
  .site-header--transparent .nav-cta { background: var(--gold); }
  .brand__wordmark { font-size: 27px; }
  .coming-soon { min-height: calc(100svh - 150px); padding-block: 32px; gap: 22px; }
  .coming-soon h1 { max-width: 650px; }
  .coming-soon__copy { max-width: 550px; }
  .minimal-footer { padding-block: 14px; }
  .minimal-footer div { flex-wrap: wrap; gap: 8px 16px; white-space: normal; overflow: visible; }
  .policy-nav { position: static; }
  .policy-section { padding-bottom: 36px; margin-bottom: 36px; }
  /* All navigation links remain available even if JavaScript is disabled. */
  html:not(.has-js) .site-header { flex-wrap: wrap; gap: 20px; }
  html:not(.has-js) .header-actions { width: 100%; }
  html:not(.has-js) .site-nav { position: static; display: flex; flex-wrap: wrap; visibility: visible; opacity: 1; transform: none; width: 100%; }
}
@media (max-width: 390px) {
  .store-buttons { gap: 10px; }
  .store-button { flex: 1 1 140px; width: auto; gap: 8px; padding-inline: 8px; }
  .store-button__platform { width: 30px; height: 34px; flex-basis: 30px; }
  .store-button strong { font-size: 16px; }
  .store-button small { font-size: 9px; }
}
@media (max-height: 650px) {
  .coming-soon { min-height: 430px; }
  .coming-soon__copy { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .letter-tile, .coming-soon::after { will-change: auto; animation: none; }
}
