/* Depcura glassmorphism system. Palette: navy #14213D (60), cream #F4EDE0 (30), coral #FF6B5B (10).
   Every authored colour derives from these three. App screenshots and the official logo exempt. */
:root {
  --navy: #14213D;
  --cream: #F4EDE0;
  --coral: #FF6B5B;
  --navy-2: #14213D;
  --navy-2: color-mix(in srgb, #14213D 82%, #F4EDE0);
  --navy-3: #14213D;
  --cream-dim: #F4EDE0;
  --cream-dim: color-mix(in srgb, #F4EDE0 78%, #14213D);
  --cream-mute: #F4EDE0;
  --cream-mute: color-mix(in srgb, #F4EDE0 60%, #14213D);
  --coral-deep: #FF6B5B;
  --coral-deep: color-mix(in srgb, #FF6B5B 78%, #14213D);
  --coral-light: #FF6B5B;
  --coral-light: color-mix(in srgb, #FF6B5B 86%, #F4EDE0);
  --on-navy: #F4EDE0;
  --on-cream: #14213D;
  --on-coral: #14213D;
  /* One glass material, three elevations. Translucent fills over real layers. */
  --glass-edge: rgba(244, 237, 224, 0.22);
  --glass-edge-soft: rgba(244, 237, 224, 0.14);
  --glass-hi: rgba(244, 237, 224, 0.12);
  --glass-1: rgba(20, 33, 61, 0.72);   /* chrome: nav, footer */
  --glass-2: rgba(20, 33, 61, 0.58);   /* panels, cards */
  --glass-3: rgba(20, 33, 61, 0.42);   /* bright stage wash */
  --glass-cream: rgba(244, 237, 224, 0.94); /* light sections: dependable contrast */
  --shadow-1: 0 18px 50px rgba(20, 33, 61, 0.45);
  --shadow-2: 0 30px 80px rgba(20, 33, 61, 0.55);
  --r: 18px;
  --r-lg: 22px;
  --max: 1180px;
  --measure: 44rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --focus: #FF6B5B;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--on-navy); background: var(--navy);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden;
}
/* Navy foundation with restrained static illumination; glass reveals these layers. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(46rem 30rem at 12% -6%, rgba(244, 237, 224, 0.075), transparent 65%),
    radial-gradient(52rem 34rem at 88% 108%, rgba(255, 107, 91, 0.09), transparent 62%),
    radial-gradient(70rem 50rem at 50% 40%, var(--navy-2) 0%, var(--navy) 60%, var(--navy-3) 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, transparent 62%, rgba(20, 33, 61, 0.35) 100%);
}
img { max-width: 100%; height: auto; }
a:link { color: var(--cream); }
a:visited { color: var(--cream-dim); }
a:hover { color: var(--coral); }
a:active { color: var(--coral); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--coral); color: var(--on-coral); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 80; background: var(--coral); color: var(--on-coral); padding: 0.7rem 1.1rem; border-radius: 0 0 12px 0; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 0; }
.preview-note { margin-top: 1rem; background: rgba(255,107,91,0.12); border: 1px solid rgba(255,107,91,0.5); border-radius: 12px; padding: 0.7rem 1rem; font-size: 0.95rem; }

/* ---------- Glass chrome ---------- */
.glass {
  background: var(--glass-1);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
@supports not ((backdrop-filter: blur(1px))) { .glass { background: var(--navy); } }
.masthead { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--glass-edge); }
.masthead-inner { display: flex; align-items: center; gap: 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--cream); text-decoration: none; margin-right: auto; }
img.brand-mark { width: 34px; height: 34px; border-radius: 9px; align-self: center; display: block; }
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.78rem; color: var(--cream-mute); align-self: center; }
.site-nav ul { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--cream); text-decoration: none; font-size: 0.95rem; padding: 0.6rem 0.85rem; border-radius: 999px; display: inline-block; min-height: 44px; line-height: 1.5; transition: background-color 180ms var(--ease-out), transform 160ms var(--ease-out); }
.site-nav a:hover { background: rgba(244,237,224,0.12); color: var(--cream); }
.site-nav a[aria-current="page"] { background: rgba(244,237,224,0.16); box-shadow: inset 0 -2px 0 var(--coral); }
.mast-actions { display: flex; gap: 0.6rem; align-items: center; }
.nav-toggle { background: transparent; color: var(--cream); font: inherit; font-size: 0.9rem; border: 1px solid var(--glass-edge); border-radius: 999px; padding: 0.55rem 1rem; min-height: 44px; cursor: pointer; }
.nav-toggle { display: none; }

/* ---------- Buttons: navy text on coral primary ---------- */
.btn { display: inline-block; min-height: 52px; padding: 0.85rem 1.7rem; border-radius: 999px; font-weight: 800; font-size: 1.02rem; text-decoration: none; text-align: center; border: 1px solid transparent; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 180ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-coral, .btn-coral:link, .btn-coral:visited { background: var(--coral); color: var(--on-coral); border-color: var(--coral-deep); box-shadow: 0 10px 28px rgba(255,107,91,0.28); }
.btn-coral:hover { background: var(--coral-light); color: var(--on-coral); box-shadow: 0 14px 32px rgba(255,107,91,0.34); }
.btn-ghost, .btn-ghost:link, .btn-ghost:visited { background: transparent; color: var(--cream); border-color: var(--glass-edge); }
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); background: rgba(244,237,224,0.08); }
.btn-link { color: var(--cream); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.glass-btn { border: 1px solid var(--glass-edge); background: rgba(244,237,224,0.06); }

/* ---------- Type ---------- */
.kicker { color: var(--coral); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; margin: 0 0 0.6rem; }
.display { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 1rem; color: var(--cream); text-wrap: balance; }
.big { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 1rem; color: var(--cream); text-wrap: balance; }
.lede { font-size: 1.15rem; color: var(--cream); max-width: var(--measure); }
.muted { color: var(--cream-dim); }
.prose { max-width: var(--measure); color: var(--cream); }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--cream); }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.3rem; text-align: left; }
.prose li { margin: 0.35rem 0; }

/* ---------- Sections & glass surfaces ---------- */
section.block { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; }
.glass-panel {
  background: var(--glass-2);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r);
  box-shadow: var(--shadow-1), inset 0 1px 0 var(--glass-hi);
  backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
@supports not ((backdrop-filter: blur(1px))) { .glass-panel { background: var(--navy); } }
/* Light glass band: high-opacity cream for dependable reading contrast. */
.cream-band {
  background: linear-gradient(180deg, rgba(244,237,224,0.96), rgba(244,237,224,0.9));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--on-cream);
  border-top: 1px solid rgba(244, 237, 224, 0.35);
  border-bottom: 1px solid rgba(20, 33, 61, 0.2);
  box-shadow: 0 -18px 50px rgba(20,33,61,0.35), 0 18px 50px rgba(20,33,61,0.35);
}
@supports not ((backdrop-filter: blur(1px))) { .cream-band { background: var(--cream); } }
.cream-band .big, .cream-band .lede, .cream-band .prose { color: var(--on-cream); }
.cream-band .kicker { color: var(--navy); }
.cream-band a:link, .cream-band a:visited { color: var(--on-cream); text-decoration-color: var(--coral-deep); }
.cream-band .prose ul, .cream-band .prose ol { text-align: left; }
.fineprint { font-size: 0.9rem; color: var(--cream-dim); }
.cream-band .fineprint { color: rgba(20, 33, 61, 0.72); }
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; margin: 1.4rem 0 0.4rem; }

/* ---------- Hero: identity + Store action + dominant presentation ---------- */
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; }
.stage { perspective: 1400px; overflow: clip; border-radius: var(--r-lg); }
.stage-scene { transform-style: preserve-3d; transition: transform 300ms var(--ease-out); }
.stage-glass {
  position: relative; border-radius: var(--r-lg);
  border: 1px solid var(--glass-edge);
  background: linear-gradient(160deg, rgba(244,237,224,0.16), rgba(20,33,61,0.62) 52%);
  box-shadow: var(--shadow-2), inset 0 1px 0 var(--glass-hi);
  backdrop-filter: blur(20px) saturate(1.25); -webkit-backdrop-filter: blur(20px) saturate(1.25);
  padding: 12px;
  transform: rotateX(6deg) rotateY(-10deg);
}
@supports not ((backdrop-filter: blur(1px))) { .stage-glass { background: var(--navy-2); } }
.stage-glass figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--glass-edge-soft); background: var(--navy-3); }
.stage-glass img { display: block; width: 100%; }
.stage-glass figcaption { padding: 0.6rem 0.4rem 0.2rem; font-size: 0.88rem; color: var(--cream-dim); }
.stage-light { position: absolute; inset: -24px; z-index: -1; background: radial-gradient(58% 58% at 50% 42%, rgba(244,237,224,0.16), transparent 70%); filter: blur(36px); opacity: 0.8; pointer-events: none; }
.status-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.status-chips li { font-size: 0.85rem; border: 1px solid var(--glass-edge); border-radius: 999px; padding: 0.35rem 0.8rem; color: var(--cream-dim); background: rgba(20,33,61,0.5); }

/* ---------- Walkthrough: tabs over one glass sheet ---------- */
.walk-shell { margin-top: 0.4rem; }
.walk-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1.2rem; }
.walk-tabs button { border: 1px solid var(--glass-edge); background: rgba(244,237,224,0.06); color: var(--cream); border-radius: 999px; padding: 0.6rem 1.1rem; min-height: 44px; font: inherit; font-size: 0.92rem; cursor: pointer; transition: background-color 180ms var(--ease-out), transform 160ms var(--ease-out); }
.walk-tabs button:active { transform: scale(0.97); }
.walk-tabs button[aria-selected="true"] { background: var(--coral); border-color: var(--coral-deep); color: var(--on-coral); font-weight: 800; }
.walk-panel { display: none; }
.walk-panel.active { display: grid; grid-template-columns: 0.9fr 1.25fr; gap: clamp(1.2rem, 3vw, 2.2rem); align-items: start; }
.walk-panel figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-edge); background: var(--navy-3); }
.walk-panel h3 { font-size: 1.15rem; margin: 0.4rem 0 0.5rem; color: var(--cream); }
.walk-panel .muted { max-width: 32rem; }
.walk-panel img { display: block; width: 100%; }
.walk-panel figcaption { padding: 0.7rem 1rem; font-size: 0.92rem; color: var(--cream-dim); border-top: 1px solid var(--glass-edge); }
.walk-nav { display: flex; gap: 0.6rem; margin-top: 1.2rem; }

/* ---------- Editorial rows, cards, tables ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
.split-rule { border-left: 1px solid var(--glass-edge); padding-left: clamp(1.2rem, 3vw, 2.4rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.card { border-radius: var(--r); padding: 1.3rem; }
.card h3, .card h2 { margin: 0 0 0.5rem; color: var(--cream); font-size: 1.15rem; }
.card .rule { width: 2.2rem; height: 3px; border-radius: 3px; background: var(--coral); margin: 0 0 0.8rem; }
.cream-band .card { background: rgba(20,33,61,0.05); border: 1px solid rgba(20,33,61,0.16); }
.cream-band .card h3, .cream-band .card h2 { color: var(--on-cream); }
.glass-panel > h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.matrix { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 44rem; }
.matrix th, .matrix td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--glass-edge-soft); vertical-align: top; overflow-wrap: anywhere; }
.matrix th:first-child, .matrix td:first-child { min-width: 7.5rem; }
.matrix thead th { color: var(--cream); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 800; border-radius: 999px; padding: 0.2rem 0.65rem; border: 1px solid; white-space: nowrap; }
.tag.parse { color: var(--cream); border-color: rgba(244, 237, 224, 0.55); }
.tag.partial { color: var(--coral); border-color: var(--coral); }
.tag.note { color: var(--cream-dim); border-color: rgba(244, 237, 224, 0.35); }
.cream-band .tag.parse { color: var(--navy); border-color: var(--navy); }
.cream-band .tag.partial { color: var(--coral-deep); border-color: var(--coral-deep); }
.cream-band .tag.note { color: rgba(20, 33, 61, 0.72); border-color: rgba(20, 33, 61, 0.45); }
ol.steps, ul.checks { padding-left: 1.2rem; max-width: var(--measure); text-align: left; }
ol.steps li, ul.checks li { margin: 0.5rem 0; }
code.inline, code { font-family: Consolas, "Cascadia Mono", "Courier New", monospace; font-size: 0.92em; background: rgba(20,33,61,0.08); border: 1px solid rgba(20,33,61,0.18); border-radius: 6px; padding: 0.1rem 0.35rem; overflow-wrap: anywhere; }
body .card code, body .glass-panel code { background: rgba(244,237,224,0.1); border-color: var(--glass-edge); }
pre.codeblock { font-family: Consolas, "Cascadia Mono", "Courier New", monospace; font-size: 0.9rem; line-height: 1.55; background: rgba(15,26,46,0.72); border: 1px solid var(--glass-edge); border-radius: 12px; padding: 1rem 1.2rem; overflow-x: auto; color: var(--cream); }
.crumbs { font-size: 0.88rem; color: var(--cream-mute); margin: 1.2rem 0 0; }
.crumbs a { color: var(--cream-dim); }
.finale { padding: 2rem 0 3rem; position: relative; overflow: clip; }
.finale-inner { text-align: left; }

/* ---------- Footer: one coherent glass block ---------- */
.colophon {
  border-top: 1px solid var(--glass-edge);
  background: var(--glass-1);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding: 2.4rem 0 1.4rem;
}
@supports not ((backdrop-filter: blur(1px))) { .colophon { background: var(--navy); } }
.colophon-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  grid-template-areas: "brand product legal contact";
  align-items: start;
}
.f-brand { grid-area: brand; }
.f-product { grid-area: product; }
.f-legal { grid-area: legal; }
.f-contact { grid-area: contact; }
.foot-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--cream); text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.foot-brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.foot-head { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-mute); margin: 0.2rem 0 0.7rem; }
.foot-nav { display: flex; flex-direction: column; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.foot-nav a { color: var(--cream-dim); text-decoration: none; padding: 0.32rem 0; display: inline-block; overflow-wrap: anywhere; }
.foot-nav a:hover { color: var(--cream); }
.foot-nav li { color: var(--cream-dim); font-size: 0.95rem; }
.colophon-utility {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap;
  border-top: 1px solid var(--glass-edge); margin-top: 1.6rem; padding-top: 1rem;
  font-size: 0.88rem; color: var(--cream-dim);
}
.colophon-utility p { margin: 0.2rem 0; }
/* Compact motion preference: native radios, no animation of its own. */
.motion-pref fieldset { border: 1px solid var(--glass-edge); border-radius: 999px; margin: 0; padding: 0.35rem 0.9rem 0.45rem; display: flex; gap: 1rem; align-items: center; }
.motion-pref legend { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-mute); padding: 0 0.5rem; }
.motion-pref label { display: inline-flex; gap: 0.35rem; align-items: center; font-size: 0.88rem; cursor: pointer; min-height: 32px; }
.motion-pref input { accent-color: var(--coral); width: 1rem; height: 1rem; margin: 0; }

/* ---------- Shipped legal documents ---------- */
.legal-doc h2 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; color: var(--cream); }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc address { font-style: normal; margin: 0 0 1rem; padding-left: 1.2rem; border-left: 2px solid var(--coral-deep); overflow-wrap: anywhere; }
.legal-doc ol.tight li, .legal-doc ul.tight li { margin: 0.3rem 0; }
.doc-id { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; list-style: none; margin: 0 0 1.2rem; padding: 0 0 1rem; border-bottom: 1px solid var(--glass-edge); font-size: 0.92rem; color: var(--cream-dim); }

/* ---------- Reveal: one gentle rise, stable text, no layout shift ---------- */
.rv { opacity: 0; transform: translateY(14px); }
.rv.in { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
html.rm .rv, html.no-js .rv { opacity: 1; transform: none; }
html.no-js .walk-panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; }
html.no-js .walk-nav { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1 !important; transform: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Reading pages ---------- */
.doc-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.draft-label { display: inline-block; background: var(--coral); color: var(--on-coral); font-weight: 800; font-size: 0.8rem; border-radius: 6px; padding: 0.2rem 0.6rem; }
table.plain { width: 100%; border-collapse: collapse; }
table.plain th, table.plain td { border: 1px solid var(--glass-edge); padding: 0.6rem 0.75rem; text-align: left; font-size: 0.93rem; }
.table-scroll { overflow-x: auto; border-radius: 12px; }
.table-cap { text-align: left; padding-bottom: 0.6rem; }
.matrix-on-dark { color: var(--cream); }
.cream-band table.plain th, .cream-band table.plain td { border-color: rgba(20,33,61,0.2); }

@media (max-width: 960px) {
  .hero-grid, .walk-panel.active, .grid-3, .grid-2, .split, .split-rule, .doc-columns { grid-template-columns: 1fr; }
  .split-rule { border-left: none; padding-left: 0; border-top: 1px solid var(--glass-edge); padding-top: 1.2rem; }
  .colophon-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "brand product" "legal contact"; }
  .stage-glass { transform: none; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .mast-actions .btn-coral { display: none; }
}
@media (max-width: 640px) {
  .colophon-grid { grid-template-columns: 1fr; grid-template-areas: "brand" "product" "legal" "contact"; gap: 1.4rem; }
  .colophon-utility { flex-direction: column; align-items: flex-start; }
}
