/* ============================================================
   MyDeen homepage + privacy page.
   Layout follows the community-designed site (ridacyber/mydeen),
   recolored to the app's light-mode palette
   (mobile/src/lib/theme/colors.ts and the app's common inks).
   Lesson pages (/l/*, /demo) keep using styles.css + lesson.css.
   ============================================================ */

:root {
  color-scheme: light;

  /* Surfaces (app LIGHT_BG / LIGHT_SURFACE_LOW / LIGHT_SURFACE_HIGH) */
  --bg:        #F9F8F2;
  --surface:   #F3EFE4;
  --surface-2: #EFEBDF;
  --surface-3: #E6DCC4;

  /* Ink */
  --ink:       #2C1810;
  --muted:     #6B5B47;
  --faint:     #A89B86;
  --border:    #E2D7C2;
  --border-2:  #D2C4AB;

  /* Gold */
  --gold:       #B89150;   /* accents, lines, icons */
  --gold-soft:  #D4AC6A;
  --gold-light: #E5C089;
  --gold-text:  #8B6A2E;   /* small gold text, AA on --bg */
  --gold-glow:  rgba(212, 172, 106, 0.22);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --pad-x: 1.25rem;
  --nav-h: 4rem;
}

@media (min-width: 640px) {
  :root { --pad-x: 2rem; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--gold-light); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 0.25rem; }

section[id] { scroll-margin-top: 5rem; }

/* ---------- Reusable pieces ---------- */

.text-gold {
  background: linear-gradient(135deg, #D4AC6A 0%, #B89150 50%, #8B6A2E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gold { background: linear-gradient(135deg, #E5C089 0%, #D4AC6A 100%); }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 700;
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.muted { color: var(--muted); }

.section {
  position: relative;
  overflow: hidden;
  padding: 6rem var(--pad-x);
}
@media (min-width: 768px) {
  .section { padding-top: 8rem; padding-bottom: 8rem; }
}

.wrap-6 { max-width: 72rem; margin: 0 auto; }
.wrap-5 { max-width: 64rem; margin: 0 auto; }

.h2 {
  margin-top: 1rem;
  font-size: 2.25rem;
  line-height: 1.12;
  color: var(--ink);
}
@media (min-width: 640px) { .h2 { font-size: 3rem; } }
@media (min-width: 768px) { .h2.xl { font-size: 3.75rem; } }
.h2.flush { margin-top: 0; }
/* The italic serif "W" starts ~0.12em inside its box, which makes a heading
   look indented next to the small caps label above it. Pull it back. */
.optical-w { margin-left: -0.12em; }

.lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}
@media (min-width: 640px) { .lead { font-size: 1.125rem; } }

/* Soft gold light blobs. Radial gradients instead of blur filters: same look, far cheaper on phones. */
.glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--gold-glow), transparent);
}

.dot-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(var(--gold) 1px, transparent 1px);
  background-size: 1.75rem 1.75rem;
}

.icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* Scroll reveal: hidden only when JS is running, so the page is never blank without it. */
.js .reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Hero entrance */
.rise {
  animation: rise 0.6s ease-out both;
  animation-delay: calc(var(--i, 0) * 0.1s);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(1.125rem); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Store badges (official artwork, brand colors) ---------- */

.store-row {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.store-badge { display: inline-flex; transition: transform 0.2s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { width: auto; height: 3.25rem; }
/* Narrow phones: keep both badges on one row instead of stacking. */
@media (max-width: 400px) {
  .store-row { gap: 0.625rem; }
  .store-badge img { height: 2.75rem; }
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.nav.solid {
  border-color: var(--border);
  background: rgba(249, 248, 242, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.nav.open { background: var(--bg); }

.nav-bar {
  max-width: 72rem;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 0.5rem; }
.brand img { width: auto; height: 1.75rem; }
.brand span { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }

.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-text); }

.nav-cta {
  display: inline-block;
  /* Phones: sits just left of the menu button so the demo is visible right away */
  margin-left: auto;
  margin-right: 0.5rem;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  transition: transform 0.2s;
}
.nav-cta:hover { transform: scale(1.03); }

.nav-toggle { border-radius: 999px; padding: 0.5rem; }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-toggle .i-close { display: none; }
.nav.open .nav-toggle .i-open { display: none; }
.nav.open .nav-toggle .i-close { display: block; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { margin: 0; padding: 0.5rem 1.25rem; font-size: 0.75rem; }
  .nav-toggle { display: none; }
}

.nav-menu {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.25s ease-out, opacity 0.25s ease-out;
}
.nav.open .nav-menu { height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); opacity: 1; }
@media (min-width: 768px) { .nav-menu { display: none; } }

.nav-menu ul { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.5rem var(--pad-x) 0; }
.nav-menu li {
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: calc(0.1s + var(--i, 0) * 0.05s);
}
.nav.open .nav-menu li { opacity: 1; transform: none; }
.nav-menu .m-link {
  display: block;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  font-size: 1.875rem;
  color: var(--ink);
}
.nav-menu .m-cta {
  display: block;
  margin-top: 1.5rem;
  border-radius: 999px;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ============================================================
   HERO
   ============================================================ */

.hero { padding: 8rem var(--pad-x) 5rem; }
@media (min-width: 768px) { .hero { padding-top: 10rem; padding-bottom: 7rem; } }

.hero .glow { left: 50%; top: -6rem; width: 56rem; height: 34rem; transform: translateX(-50%); }

.hero-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  align-items: center;
  gap: 4rem;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }

.hero-copy { text-align: center; }
@media (min-width: 1024px) { .hero-copy { text-align: left; } }

.hero h1 { margin-top: 1.25rem; font-size: 3rem; line-height: 1.05; color: var(--ink); }
@media (min-width: 640px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 1280px) { .hero h1 { font-size: 4.5rem; } }

.hero-sub { max-width: 36rem; margin: 1.5rem auto 0; }
@media (min-width: 1024px) {
  .hero-sub { margin-left: 0; }
  .hero .store-row { justify-content: flex-start; }
}

.chips {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.chips li { display: flex; align-items: center; gap: 0.5rem; }
.chips .icon { width: 1.125rem; height: 1.125rem; }
.chips svg { color: var(--gold); }
@media (min-width: 1024px) { .chips { justify-content: flex-start; } }

/* ---------- Phone mockup ---------- */

.phone-wrap { position: relative; width: 16.25rem; margin: 0 auto; }
@media (min-width: 640px) { .phone-wrap { width: 18.125rem; } }

.phone-glow {
  position: absolute;
  inset: -2.5rem;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212, 172, 106, 0.55), transparent);
  animation: glow 4s ease-in-out infinite;
}

.phone-float { animation: float 6s ease-in-out infinite; }

.phone-body {
  position: relative;
  border-radius: 2.6rem;
  border: 1px solid rgba(184, 145, 80, 0.5);
  background: var(--surface-3);
  padding: 0.5625rem;
  box-shadow: 0 2rem 5rem -1.5rem rgba(44, 24, 16, 0.45), 0 0.75rem 2rem -1rem rgba(44, 24, 16, 0.25);
}

.phone-btn { position: absolute; width: 3px; background: rgba(184, 145, 80, 0.6); }
.phone-btn.a { left: -3px; top: 6rem; height: 2.5rem; border-radius: 2px 0 0 2px; }
.phone-btn.b { left: -3px; top: 10rem; height: 3.5rem; border-radius: 2px 0 0 2px; }
.phone-btn.c { right: -3px; top: 8rem; height: 4rem; border-radius: 0 2px 2px 0; }

.phone-screen {
  position: relative;
  aspect-ratio: 1125 / 2314;
  overflow: hidden;
  border-radius: 2.1rem;
  background: #0F0E0C;
}

.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.phone-screen img.on { opacity: 1; transform: none; }

.phone-island {
  position: absolute;
  left: 50%;
  top: 0.625rem;
  z-index: 2;
  width: 4.75rem;
  height: 1.375rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.phone-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 50%);
}

.phone-dots { margin-top: 2rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.phone-dots button { display: flex; align-items: center; gap: 0.5rem; border-radius: 999px; padding: 0.25rem 0.375rem; }

.bar {
  display: block;
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 999px;
  background: var(--border-2);
  transition: all 0.3s;
}
button:hover .bar { background: var(--gold-soft); }
[aria-current="true"] .bar { width: 1.5rem; background: var(--gold); }

.phone-dots .lbl {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.phone-dots button:not([aria-current="true"]) .lbl { display: none; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.875rem); }
}
@keyframes glow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.8; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

#how-it-works .glow { left: 50%; top: 50%; width: 34rem; height: 34rem; transform: translate(-50%, -50%); }

@media (min-width: 1024px) {
  .hiw-head { text-align: center; }
}

.hiw-steps { position: relative; margin-top: 4rem; }

.hiw-track, .hiw-fill {
  position: absolute;
  top: 4rem;
  bottom: 4rem;
  left: 2rem;
  width: 2px;
  transform: translateX(-50%);
  pointer-events: none;
}
.hiw-track {
  background-image: linear-gradient(to bottom, var(--border-2) 55%, transparent 0);
  background-size: 2px 0.75rem;
}
.hiw-fill {
  background: linear-gradient(to bottom, #E5C089, #B89150);
  transform: translateX(-50%) scaleY(var(--p, 0));
  transform-origin: top;
}
@media (min-width: 1024px) {
  .hiw-track, .hiw-fill { left: 50%; }
}

.hiw-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: center;
  padding: 2rem 0;
}
@media (min-width: 1024px) {
  .hiw-row { grid-template-columns: 1fr 5rem 1fr; padding: 3rem 0; }
}

.hiw-node {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}
@media (min-width: 1024px) { .hiw-node { grid-column: 2; } }

.arch {
  display: flex;
  width: 3.5rem;
  height: 4.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-2);
  border-radius: 999px 999px 1rem 1rem;
  background: var(--bg);
  color: var(--faint);
}
.arch svg { width: 1.875rem; height: 1.875rem; }
.arch { transition: border-color 0.6s, color 0.6s, box-shadow 0.6s, background-color 0.6s; }
.arch.lit {
  border-color: var(--gold);
  background: linear-gradient(180deg, #E5C089 0%, #D4AC6A 100%);
  color: var(--ink);
  box-shadow: 0 0 2rem rgba(212, 172, 106, 0.55);
}

.hiw-text { grid-column: 2; grid-row: 1; padding-left: 1.25rem; }
.hiw-text h3 { margin-top: 0.5rem; font-size: 1.875rem; line-height: 1.15; }
@media (min-width: 640px) { .hiw-text h3 { font-size: 2.25rem; } }
.hiw-text p.body { margin-top: 0.75rem; max-width: 28rem; line-height: 1.65; color: var(--muted); }

@media (min-width: 1024px) {
  .hiw-text.left { grid-column: 1; padding: 0 3rem 0 0; text-align: right; }
  .hiw-text.left p.body { margin-left: auto; }
  .hiw-text.right { grid-column: 3; padding-left: 3rem; }
}



/* ============================================================
   TOPICS
   ============================================================ */

#topics .glow { right: -10rem; top: 5rem; width: 29rem; height: 29rem; }

.topics-head { display: flex; flex-direction: column; gap: 1.5rem; }
.topics-head > div { max-width: 36rem; }
@media (min-width: 768px) {
  .topics-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.topics-grid { margin-top: 4rem; display: grid; align-items: start; gap: 1.5rem; }
@media (min-width: 640px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .topics-grid > li:nth-child(even) { margin-top: 3.5rem; }
}
@media (min-width: 1024px) { .topics-grid { grid-template-columns: repeat(4, 1fr); } }

.tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10rem 10rem 1.5rem 1.5rem;
  background: var(--surface);
  transition: border-color 0.5s;
}
.tile:hover { border-color: var(--gold-soft); }

.tile-art { position: absolute; inset: 0; transition: transform 0.7s; }
.tile-art svg { width: 100%; height: 100%; }
.tile:hover .tile-art { transform: scale(1.05); }

.tile-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, var(--bg) 30%, rgba(249, 248, 242, 0.75) 55%, transparent 80%);
}

.tile-text { position: absolute; inset: auto 0 0 0; padding: 1.5rem; }
.tile-text .tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.tile-text h3 { margin-top: 0.5rem; font-size: 1.875rem; line-height: 1.15; }
.tile-text p { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }

/* Phones: a 2x2 grid instead of four tall cards stacked. The cards are too
   narrow for text over the art, so the arch art sits on top and the text
   below it. */
@media (max-width: 639px) {
  .topics-grid { margin-top: 2.5rem; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; align-items: stretch; }
  .topics-grid > li { display: flex; }
  .tile { display: flex; flex-direction: column; width: 100%; aspect-ratio: auto; border-radius: 6rem 6rem 1rem 1rem; }
  .tile-art { position: relative; inset: auto; aspect-ratio: 1 / 1; overflow: hidden; }
  .tile-fade { inset: 0 0 auto 0; aspect-ratio: 1 / 1; background: linear-gradient(to top, var(--surface) 0%, transparent 45%); }
  .tile-text { position: static; padding: 0.25rem 0.875rem 1rem; }
  .tile-text .tag { font-size: 0.5625rem; letter-spacing: 0.14em; }
  .tile-text h3 { margin-top: 0.25rem; font-size: 1.25rem; }
  .tile-text p { margin-top: 0.375rem; font-size: 0.75rem; line-height: 1.5; }
}

.method { max-width: 48rem; margin: 6rem auto 0; text-align: center; }
.method .rule {
  width: 6rem;
  height: 1px;
  margin: 0 auto 2rem;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.method .quote { font-size: 1.375rem; line-height: 1.45; text-wrap: balance; }
@media (min-width: 640px) { .method .quote { font-size: 1.625rem; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */

#reviews .glow { left: -10rem; top: 25%; width: 26rem; height: 26rem; }

.center-head { max-width: 42rem; margin: 0 auto; text-align: center; }

.t-stage { position: relative; max-width: 64rem; margin: 4rem auto 0; }

/* All cards share one grid cell (per column), so the box is always as tall as
   the tallest card and the page never jumps when the carousel moves. */
.t-track { display: grid; max-width: 48rem; margin: 0 auto; grid-template-columns: repeat(2, 1fr); column-gap: 0.75rem; }
@media (min-width: 1024px) { .t-track { max-width: none; grid-template-columns: repeat(3, 1fr); column-gap: 1.25rem; } }
.t-track .t-card { grid-row: 1; grid-column: 1; visibility: hidden; opacity: 0; }
.t-track .t-card.on { visibility: visible; opacity: 1; animation: slide-in 0.45s ease-out; }

@keyframes slide-in {
  from { opacity: 0; transform: translateX(1.5rem); }
  to   { opacity: 1; transform: none; }
}

.t-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: #fff;
  padding: 1.75rem;
  box-shadow: 0 0.25rem 1.5rem -0.75rem rgba(44, 24, 16, 0.12);
  transition: border-color 0.3s;
}
.t-card:hover { border-color: var(--gold-soft); }
.t-card .qm { font-size: 3rem; line-height: 1; color: var(--gold-soft); }
.t-card .q { margin-top: 0.5rem; flex: 1; font-size: 0.9375rem; line-height: 1.65; color: var(--ink); }
.t-card .who { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.t-card .av {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(184, 145, 80, 0.4);
  background: var(--surface-2);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-text);
}
.t-card .n { font-size: 0.875rem; font-weight: 700; }
.t-card .s { font-size: 0.75rem; color: var(--muted); }

/* Phones: two compact cards side by side */
@media (max-width: 639px) {
  #reviews .t-stage { margin-top: 2.5rem; }
  .t-card { border-radius: 1.125rem; padding: 1rem; }
  .t-card .qm { font-size: 2.25rem; }
  .t-card .q { margin-top: 0.25rem; font-size: 0.8125rem; line-height: 1.55; }
  .t-card .who { margin-top: 1rem; gap: 0.5rem; }
  .t-card .av { width: 1.75rem; height: 1.75rem; font-size: 0.6875rem; }
  .t-card .n { font-size: 0.8125rem; }
}

.t-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(184, 145, 80, 0.4);
  background: #fff;
  color: var(--gold-text);
  transition: border-color 0.2s;
}
.t-nav:hover { border-color: var(--gold); }
.t-nav svg { width: 1.25rem; height: 1.25rem; }
.t-nav.prev { left: -3.5rem; }
.t-nav.next { right: -3.5rem; }
@media (min-width: 1152px) { .t-nav { display: flex; } }

.t-dots { margin-top: 2rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.t-dots button { padding: 0.375rem; }

/* ============================================================
   ABOUT
   ============================================================ */

#about .glow { left: -10rem; top: 33%; width: 29rem; height: 29rem; }

.about-grid { display: grid; align-items: center; gap: 3.5rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: 5rem; } }

.portrait { position: relative; width: 100%; max-width: 21.25rem; margin: 0 auto; }

.portrait-ghost {
  position: absolute;
  inset: 0;
  transform: translate(0.75rem, 0.75rem);
  border: 1px solid rgba(184, 145, 80, 0.35);
  border-radius: 11rem 11rem 2rem 2rem;
}

.portrait-arch {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(184, 145, 80, 0.6);
  border-radius: 11rem 11rem 2rem 2rem;
  background: var(--surface);
}
.portrait-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }

.portrait-ring {
  position: absolute;
  inset: 0.75rem;
  pointer-events: none;
  border: 1px dashed var(--border-2);
  border-radius: 10rem 10rem 1.5rem 1.5rem;
}

.portrait-badge {
  position: absolute;
  bottom: -1.25rem;
  right: 1rem;
  display: flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(184, 145, 80, 0.6);
  background: var(--bg);
  color: var(--gold);
}

.about-name { margin-top: 1rem; font-size: 3rem; line-height: 1.05; }
@media (min-width: 640px) { .about-name { font-size: 3.75rem; } }
@media (min-width: 768px) { .about-name { font-size: 4.5rem; } }

.about-role {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.about-bio { margin-top: 2rem; border-left: 1px solid rgba(184, 145, 80, 0.6); padding-left: 1.5rem; }
.about-bio p { max-width: 32rem; }

/* ============================================================
   FAQ
   ============================================================ */

.faq-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; }
  .faq-side { position: sticky; top: 7rem; align-self: start; }
}

.faq-side p.lead { margin-top: 1.25rem; max-width: 20rem; font-size: 1rem; }

.u-link {
  color: var(--gold-text);
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-underline-offset: 4px;
}
.u-link:hover { text-decoration-color: var(--gold-text); }

.faq-list { border-top: 1px solid var(--border); }
.faq-item { position: relative; border-bottom: 1px solid var(--border); }

.faq-btn {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  text-align: left;
}
@media (min-width: 640px) { .faq-btn { gap: 1.75rem; padding: 1.75rem 0; } }

.faq-num {
  width: 2rem;
  flex-shrink: 0;
  font-size: 1.875rem;
  line-height: 1;
  color: var(--border-2);
  transition: color 0.3s;
}
@media (min-width: 640px) { .faq-num { width: 2.5rem; font-size: 2.25rem; } }
.faq-btn:hover .faq-num { color: var(--gold-soft); }

.faq-q {
  flex: 1;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(44, 24, 16, 0.8);
  transition: color 0.3s;
}
@media (min-width: 640px) { .faq-q { font-size: 1.25rem; } }
.faq-btn:hover .faq-q { color: var(--ink); }

.plus { position: relative; margin-top: 0.5rem; width: 1rem; height: 1rem; flex-shrink: 0; color: var(--gold); }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; }
.plus::before { left: 0; top: 50%; width: 100%; height: 1px; }
.plus::after { left: 50%; top: 0; width: 1px; height: 100%; transition: transform 0.3s; }

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s ease-out, opacity 0.35s ease-out;
}
.faq-panel > div { overflow: hidden; }
.faq-panel p { max-width: 36rem; padding: 0 0 2rem 3.25rem; line-height: 1.65; color: var(--muted); }
@media (min-width: 640px) { .faq-panel p { padding-left: 4.25rem; } }

.faq-line {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  pointer-events: none;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease-out;
}

.faq-item.open .faq-num { color: var(--gold-text); }
.faq-item.open .faq-q { color: var(--ink); }
.faq-item.open .plus::after { transform: scaleY(0); }
.faq-item.open .faq-panel { grid-template-rows: 1fr; opacity: 1; }
.faq-item.open .faq-line { transform: scaleX(1); }

/* ============================================================
   CONTACT
   ============================================================ */

#contact { padding-bottom: 2.5rem; }
#contact .glow { left: 50%; bottom: -2.5rem; width: 51rem; height: 26rem; transform: translateX(-50%); }

.contact-grid { display: grid; align-items: start; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }

.contact-card { border-top: 1px solid var(--border); padding-top: 2rem; }

.field + .field { margin-top: 1.5rem; }
.field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.field input, .field textarea {
  margin-top: 0.5rem;
  width: 100%;
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--border-2);
  border-radius: 0;
  background: transparent;
  padding: 0.625rem 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.field textarea { resize: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { border-color: var(--gold); }

.honeypot { position: absolute; left: -9999px; width: 0; height: 0; overflow: hidden; opacity: 0; }

.turnstile-slot:not(:empty) { margin-top: 1.5rem; }

.submit-btn {
  margin-top: 2rem;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 999px;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  transition: transform 0.2s;
}
.submit-btn:hover { transform: scale(1.02); }
.submit-btn:disabled { cursor: not-allowed; opacity: 0.6; transform: none; }
.submit-btn svg { width: 1rem; height: 1rem; }
@media (min-width: 640px) { .submit-btn { width: auto; } }

.form-error { margin-top: 1rem; font-size: 0.875rem; line-height: 1.5; color: #A33A2B; }
.form-error:empty { display: none; }

.form-done { display: flex; min-height: 17.5rem; flex-direction: column; align-items: flex-start; justify-content: center; }
.form-done .serif { margin-top: 0.75rem; font-size: 1.875rem; line-height: 1.3; }
.form-done button { margin-top: 1.5rem; font-size: 0.875rem; }

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta { position: relative; overflow: hidden; padding: 2.5rem var(--pad-x) 6rem; }
@media (min-width: 768px) { .cta { padding-bottom: 8rem; } }
.cta .glow { left: 50%; top: -5rem; width: 56rem; height: 35rem; transform: translateX(-50%); }

.cta-frame {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  border: 1px solid rgba(184, 145, 80, 0.5);
  border-radius: 14rem 14rem 3rem 3rem;
  background: #fff;
  padding: 5rem 2rem;
  text-align: center;
  box-shadow: 0 1.5rem 4rem -2rem rgba(44, 24, 16, 0.2);
}
@media (min-width: 640px) { .cta-frame { padding: 5rem 4rem; } }

.cta-ring {
  position: absolute;
  inset: 1rem;
  pointer-events: none;
  border: 1px dashed var(--border-2);
  border-radius: 13rem 13rem 2.5rem 2.5rem;
}

.cta h2 { margin-top: 1.25rem; font-size: 2.25rem; line-height: 1.15; }
@media (min-width: 640px) { .cta h2 { font-size: 3rem; } }
@media (min-width: 768px) { .cta h2 { font-size: 3.75rem; } }

.cta .lead { margin-top: 1.25rem; }
.cta .store-row { margin-top: 2.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 5rem var(--pad-x) 2.5rem;
}
.footer .glow { left: 50%; bottom: -8rem; width: 44rem; height: 19rem; transform: translateX(-50%); }

.footer-top { max-width: 64rem; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
@media (min-width: 1024px) {
  .footer-top { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.footer-motto { font-size: 2.25rem; line-height: 1.15; }
@media (min-width: 640px) { .footer-motto { font-size: 3rem; } }
.footer-note { margin-top: 1rem; max-width: 24rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; font-size: 0.875rem; color: var(--muted); }
.footer-nav a:hover { color: var(--gold-text); }

.footer-bottom {
  max-width: 64rem;
  margin: 4rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

.credit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.credit a { text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 4px; }
.credit a:hover { color: var(--gold-text); text-decoration-color: var(--gold); }

/* ============================================================
   PRIVACY PAGE
   ============================================================ */

.legal { max-width: 42rem; margin: 0 auto; padding: 6rem var(--pad-x); }
@media (min-width: 768px) { .legal { padding-top: 8rem; padding-bottom: 8rem; } }
.legal .back { font-size: 0.875rem; color: var(--muted); }
.legal .back:hover { color: var(--gold-text); }
.legal .eyebrow { margin-top: 3rem; }
.legal h1 { margin-top: 1rem; font-size: 3rem; line-height: 1.1; }
@media (min-width: 640px) { .legal h1 { font-size: 3.75rem; } }
.legal .date { margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted); }
.legal h2 { margin-top: 3.5rem; font-size: 1.875rem; }
.legal p { margin-top: 1rem; line-height: 1.65; color: var(--muted); }

/* ---------- Reduced motion ---------- */

@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;
  }
  .js .reveal { opacity: 1; transform: none; }
}
