/* =============================================================================
   Elseway: marketing site
   Palette is Theme.ts verbatim. Signature accent is the "twilight drift"
   gradient (teal → blue → violet → magenta) painted at 135°, used sparingly.
   The page is calm monochrome; colour is spent on the hero aurora, the one
   dark "feed island" section, and small accents. Nothing else.
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* Neutrals (Theme.colors) */
  --ink: #000000;
  --page: #f5f5f5;
  --surface: #ffffff;
  --ink-70: rgba(0, 0, 0, 0.70);
  --ink-55: rgba(0, 0, 0, 0.55);
  --ink-40: rgba(0, 0, 0, 0.40);
  --ink-25: rgba(0, 0, 0, 0.25);
  --hairline: rgba(0, 0, 0, 0.10);
  --border: rgba(0, 0, 0, 0.18);

  /* Twilight drift: the ONLY place these hues live in CSS (mirrors Theme.ts) */
  --g1: #34b7c4;
  --g2: #4f8fde;
  --g3: #8a6bdd;
  --g4: #c562c0;
  --twilight: linear-gradient(135deg, var(--g1), var(--g2), var(--g3), var(--g4));
  --twilight-soft: linear-gradient(135deg, var(--g1), var(--g3), var(--g4));

  /* Azure action (Theme.colors.action): links + interactive accents. Off the
     gradient by design; the gradient stays reserved for the brand. */
  --action: #0a84ff;

  /* Dark island (Theme.dark) */
  --dark-bg: #000000;
  --dark-text: #ffffff;
  --dark-55: rgba(255, 255, 255, 0.60);
  --dark-40: rgba(255, 255, 255, 0.45);
  --dark-hairline: rgba(255, 255, 255, 0.12);
  --dark-track: rgba(255, 255, 255, 0.22);

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rhythm */
  --shell: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 11vw, 8.5rem);
  --radius: 22px;
  --radius-lg: 30px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2.5px solid var(--g3);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Type primitives ----------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin: 0 0 1.25rem;
}
.dark .eyebrow, .footer .eyebrow { color: var(--dark-40); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }

.display-xl {
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
}
.display-lg {
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.display-md {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(1.12rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 34ch;
}
.dark .lead { color: var(--dark-55); }

.grad-text {
  background: var(--twilight);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--ink-55); }

/* ---- Layout -------------------------------------------------------------- */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  border: none;
  font-family: var(--body);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease), opacity 0.18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }

/* Official store badges */
.store-badge {
  display: inline-flex;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-badge img { height: 52px; width: auto; display: block; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22); }

.btn-ghost {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.95rem;
}
.btn-ghost:hover { background: rgba(0, 0, 0, 0.04); transform: translateY(-1px); }

.store-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.trust {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--ink-40);
  margin-top: 1.4rem;
}
.dark .trust { color: var(--dark-40); }

/* ---- Nav ----------------------------------------------------------------- */
/* The wordmark links here; the value only needs to exceed the sticky nav's
   height so the target clamps back to the true top (scrollY 0), matching the
   initial landing position. */
#top { scroll-margin-top: 120px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: clamp(10px, 2vw, 16px);
  pointer-events: none;
}
.nav .shell { pointer-events: none; }
/* Floating glass pill: always carries its own surface (a pill with no fill
   reads as broken); the scroll handler only deepens its shadow. */
.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 10px 0 24px;
  background: rgba(245, 245, 245, 0.52);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s var(--ease);
}
.nav.is-stuck .nav-inner { box-shadow: 0 12px 34px rgba(0, 0, 0, 0.13); }
.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.72rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding-bottom: 0.08em;
  font-optical-sizing: auto;
  background: var(--twilight);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}
.wordmark--sm { font-size: 1.2rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.92rem; color: var(--ink-55); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; max-width: 36rem; }
.hero h1 { margin-bottom: 1.6rem; }
.hero .lead { max-width: 40ch; margin-bottom: 2.2rem; }

/* Stage that holds the phone + aurora */
.stage { position: relative; display: grid; place-items: center; }

.aurora {
  position: absolute;
  inset: -18% -12% -12% -12%;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.85;
  background:
    radial-gradient(42% 46% at 28% 30%, var(--g1), transparent 68%),
    radial-gradient(46% 50% at 74% 24%, var(--g2), transparent 70%),
    radial-gradient(52% 54% at 68% 74%, var(--g4), transparent 70%),
    radial-gradient(48% 50% at 26% 76%, var(--g3), transparent 70%);
  animation: auroraDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(-2%, -1%, 0) rotate(-4deg) scale(1); }
  50%  { transform: translate3d(3%, 2%, 0) rotate(3deg) scale(1.06); }
  100% { transform: translate3d(-1%, 3%, 0) rotate(6deg) scale(1.02); }
}

/* ---- Device mockup ------------------------------------------------------- */
/* .device is the phone-frame box. iphone.png (opaque titanium, transparent
   screen cutout) sits on top; .device-screen fills the cutout BEHIND it, so
   the frame masks the screen corners. Cutout geometry measured pixel-exact from
   the PNG alpha (480×946): left 6.667% · top 2.431% · width 86.667% · height
   95.137%. ⚠ Width/height MUST cover the full transparent cutout or the aurora
   leaks through the uncovered edge behind the frame.
   Drop a <video> inside .device-screen to replace the poster. */
.device {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 480 / 946;
  z-index: 1;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.28));
}
.device-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.device-screen {
  position: absolute;
  left: 6.667%;
  top: 2.431%;
  width: 86.667%;
  height: 95.137%;
  z-index: 1;
  border-radius: 11.5% / 5.6%;
  overflow: hidden;
  background: var(--dark-bg);
}
.device-screen video, .device-screen img { width: 100%; height: 100%; object-fit: cover; }

/* Poster shown until a real demo video is dropped in: a mock of the feed. */
.screen-poster { position: absolute; inset: 0; background: var(--dark-bg); }
.screen-poster .photo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 30% 12%, rgba(138, 107, 221, 0.55), transparent 60%),
    radial-gradient(130% 90% at 82% 40%, rgba(197, 98, 192, 0.45), transparent 62%),
    radial-gradient(140% 100% at 50% 108%, rgba(52, 183, 196, 0.5), transparent 55%),
    linear-gradient(180deg, #1a2230, #0a0d14 70%);
}
.screen-poster .vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 22%, transparent 60%, rgba(0,0,0,0.72) 100%);
}
.screen-poster .timer {
  position: absolute; top: 5.5%; left: 6%; right: 6%; height: 3px;
  border-radius: 999px; background: var(--dark-track); overflow: hidden;
}
.screen-poster .timer::after {
  content: ""; position: absolute; inset: 0 42% 0 0; background: var(--dark-text); border-radius: 999px;
}
.screen-poster .caption { position: absolute; left: 8%; right: 8%; bottom: 9%; color: #fff; }
.screen-poster .caption .yr { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.7); }
.screen-poster .caption .ln { font-family: var(--display); font-size: 1.55rem; line-height: 1.1; margin-top: 0.35rem; }
.screen-poster .badge {
  position: absolute; top: 4.5%; left: 50%; transform: translateX(-50%); margin-top: 1.4rem;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5); text-transform: uppercase;
}

/* ---- Thesis / editorial statement ---------------------------------------- */
.statement { text-align: center; }
.statement .display-lg { max-width: 20ch; margin-inline: auto; }
.statement .cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 52rem; margin: 3rem auto 0; text-align: left;
}
.statement .cols p { margin: 0; color: var(--ink-55); }

/* ---- Steps (real sequence → numbered) ------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 3.5rem; }
.step { padding: 0 clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--hairline); }
.step:first-child { border-left: none; padding-left: 0; }
.step .num {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em;
  color: var(--ink-40);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.step p { margin: 0; color: var(--ink-55); font-size: 0.98rem; }

/* ---- Dark feed island ---------------------------------------------------- */
.island { position: relative; background: var(--dark-bg); color: var(--dark-text); overflow: hidden; }
.island .glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 90%; height: 70%; top: -20%; left: 50%; transform: translateX(-50%);
  background:
    radial-gradient(50% 60% at 25% 30%, rgba(52,183,196,0.5), transparent 70%),
    radial-gradient(50% 60% at 75% 30%, rgba(197,98,192,0.5), transparent 70%),
    radial-gradient(60% 60% at 50% 60%, rgba(138,107,221,0.45), transparent 70%);
  filter: blur(70px); opacity: 0.7;
}
.island .shell { position: relative; z-index: 1; }
.island-head { max-width: 40rem; }
.island-head .display-lg { margin-bottom: 1.4rem; }

.memories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.mem {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 3 / 4; border: 1px solid var(--dark-hairline);
}
.mem .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Colour grade: a soft-light wash in the twilight palette, one hue per card,
   the site echo of the app's Pro "rotating colour grade" restyle. */
.mem .grade { position: absolute; inset: 0; mix-blend-mode: soft-light; }
.mem:nth-child(1) .fill { filter: contrast(1.05) saturate(1.06) brightness(1.02); }
.mem:nth-child(1) .grade { background: linear-gradient(160deg, rgba(52,183,196,0.5), rgba(79,143,222,0.25)); }
.mem:nth-child(2) .fill { filter: contrast(1.08) saturate(1.12); }
.mem:nth-child(2) .grade { background: linear-gradient(160deg, rgba(79,143,222,0.45), rgba(138,107,221,0.45)); }
.mem:nth-child(3) .fill { filter: contrast(1.04) saturate(1.08); }
.mem:nth-child(3) .grade { background: linear-gradient(160deg, rgba(197,98,192,0.48), rgba(138,107,221,0.28)); }
.mem .grad-over { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.75)); }
.mem .cap { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; }
.mem .cap .yr { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--dark-55); }
.mem .cap .ln { font-family: var(--display); font-size: 1.15rem; line-height: 1.15; margin-top: 0.25rem; }
.mem .tag {
  position: absolute; top: 0.85rem; right: 0.85rem;
  font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.5rem; border-radius: 999px; color: #fff;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(6px);
}

/* ---- Contrast (substitution vs friction) --------------------------------- */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); margin-top: 3rem; }
.panel { padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radius-lg); }
.panel.dim { background: transparent; border: 1px solid var(--border); }
.panel.dim h3 { color: var(--ink-40); }
.panel.dim p { color: var(--ink-55); }
.panel.lit { position: relative; background: var(--surface); box-shadow: 0 24px 60px rgba(0,0,0,0.10); }
.panel.lit::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); padding: 1.5px;
  background: var(--twilight);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.panel h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.panel p { margin: 0; }
.panel .kicker { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; display: block; }
.panel.dim .kicker { color: var(--ink-25); }
.panel.lit .kicker { color: transparent; background: var(--twilight); -webkit-background-clip: text; background-clip: text; }

/* ---- Features bento ------------------------------------------------------ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 3.5rem; }
.feature {
  background: var(--surface); border-radius: var(--radius); padding: 1.7rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid var(--hairline);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0,0,0,0.09); }
.feature.wide { grid-column: span 2; }
.feature .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(138,107,221,0.10); margin-bottom: 1.1rem;
}
.feature .ico svg { width: 22px; height: 22px; stroke: var(--g3); fill: none; stroke-width: 1.8; }
.feature h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }
.feature p { margin: 0; color: var(--ink-55); font-size: 0.95rem; }
.feature .pro {
  font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: transparent; background: var(--twilight); -webkit-background-clip: text; background-clip: text;
  margin-left: 0.5rem; vertical-align: middle;
}

/* ---- Principles ---------------------------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 3.25rem; }
.principle { border-top: 2px solid; border-image: var(--twilight) 1; padding-top: 1.25rem; }
.principle h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.principle p { margin: 0; color: var(--ink-55); font-size: 0.97rem; }

/* ---- Final CTA ----------------------------------------------------------- */
.finale { text-align: center; }
.finale .display-xl { margin-bottom: 1.4rem; }
.finale .lead { margin-inline: auto; margin-bottom: 2.2rem; }
.finale .store-row { justify-content: center; }

/* ---- Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--hairline); padding-block: 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { font-size: 0.9rem; color: var(--ink-55); transition: color 0.15s; }
.footer-links a:hover { color: var(--ink); }
.footer .fineprint { width: 100%; color: var(--ink-40); font-size: 0.82rem; margin-top: 0.5rem; }

/* ---- Reveal animation ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 40rem; }
  .stage { margin-top: 1rem; order: 2; }
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .step { border-left: none; border-top: 1px solid var(--hairline); padding: 1.5rem 0 0; }
  .step:first-child { border-top: none; padding-top: 0; }
  .memories { grid-template-columns: 1fr; max-width: 22rem; }
  .contrast { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .principles { grid-template-columns: 1fr; }
  .statement .cols { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .feature.wide { grid-column: span 1; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .aurora { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =============================================================================
   Content pages: privacy, terms, support.
   Shares the site palette + type. A white reading card on the grey page
   (the app's surface-on-page metaphor). Body links and interactive accents
   use `action` azure; the gradient stays reserved for the brand wordmark.
   ========================================================================== */
.nav-back { font-size: 0.92rem; color: var(--ink-55); transition: color 0.15s; margin-right: 14px; }
.nav-back:hover { color: var(--ink); }

.doc { padding-block: clamp(2.5rem, 6vw, 4.25rem) clamp(3.5rem, 9vw, 6rem); padding-inline: var(--gutter); }
.doc-card {
  max-width: 760px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06);
  padding: clamp(1.6rem, 5vw, 3.4rem);
}
.doc-card h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.doc-card .effective {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-40);
  margin: 0 0 2.2rem;
}
.doc-card .lede {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-70);
  margin: 0 0 2rem;
  max-width: 46ch;
}
.doc-card h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 2.6rem 0 0.7rem;
}
.doc-card p { margin: 0 0 1rem; color: var(--ink-70); line-height: 1.7; }
.doc-card ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.doc-card li { margin: 0 0 0.55rem; color: var(--ink-70); line-height: 1.65; }
.doc-card strong { color: var(--ink); font-weight: 600; }
.doc-card a { color: var(--action); text-decoration: underline; text-underline-offset: 2px; transition: opacity 0.15s; }
.doc-card a:hover { opacity: 0.72; }

/* Support: highlighted contact card (twilight-tinted inset) */
.contact-card {
  position: relative;
  background: rgba(138, 107, 221, 0.07);
  border: 1px solid rgba(138, 107, 221, 0.20);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin-bottom: 2.75rem;
  overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--twilight);
}
.contact-card h2 { font-family: var(--display); font-weight: 500; font-size: 1.2rem; color: var(--ink); margin: 0 0 0.35rem; }
.contact-card p { margin: 0; color: var(--ink-70); }
.contact-card .mail {
  display: inline-block; margin-top: 0.5rem;
  font-size: 1.1rem; font-weight: 600; color: var(--action);
  text-decoration: none;
}
.contact-card .mail:hover { text-decoration: underline; }

/* Support: FAQ accordion */
.doc-card h2.faq-heading { margin-bottom: 1rem; }
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); padding: 1rem 0; }
.faq summary {
  cursor: pointer; list-style: none;
  color: var(--ink); font-weight: 600; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--action); font-weight: 600; font-size: 1.3rem; line-height: 1; flex-shrink: 0;
  transition: transform 0.18s var(--ease);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0.8rem 0 0; color: var(--ink-70); line-height: 1.7; }

@media (max-width: 560px) {
  .nav-back { display: none; }
}
