/* litmancer.com (redesign 16 Nov 2026, from the approved hand-off): a candlelit dark-academia world on
   top, a clean reading-tracker showcase in the middle, then the promise, social links and footer.
   One visual world on purpose, like the app - always dark, every colour set explicitly.
   Fonts are our own copies (assets/fonts, SIL Open Font License) and the only script is our own
   site.js, so nothing about a visitor is sent anywhere else (the Privacy Policy promises no tracking). */

@font-face {
  font-family: "Cinzel";
  src: url("assets/fonts/cinzel-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0b0a12;
  --plum: #150d1b;
  --panel: #14111c;
  --line: #2e2638;
  --ink: #efe8dc;
  --soft: #bdb3c9;
  --dim: #948aa4;
  --gold: #d6b067;
  --gold-hi: #f1dca0;
  --gold-line: rgba(214, 176, 103, 0.62);
  --gold-faint: rgba(214, 176, 103, 0.28);
  --lav: #cbb0ff;
  --violet: #6a40d6;
  --display: "Cinzel", "Trajan Pro", "Palatino Linotype", Palatino, Georgia, serif;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --gold-fill: linear-gradient(180deg, #f7e6b2 8%, #d9b064 55%, #a5762e 96%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
html:has(dialog[open]) { overflow: hidden; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 500 20px/1.6 var(--serif);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-decoration-color: rgba(241, 220, 160, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1rem; }
.wrap-wide { max-width: 80rem; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Gold lettering. The plain colour first, for anything that can't clip a gradient to text. */
.gold-text { color: var(--gold); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gold-text { background: var(--gold-fill); -webkit-background-clip: text; background-clip: text; color: transparent; }
  /* One gradient per line, so a two-line heading doesn't fade darker on its second line. */
  .gold-text { background-size: 100% 1lh; background-repeat: repeat-y; }
}

/* Small spaced capitals: eyebrows and labels. */
.label, .eyebrow { font: 600 0.78rem/1.5 var(--display); letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin: 0; }

/* The gold flourish under headings. */
.flourish { width: min(20rem, 80%); height: 1.6rem; margin: 1rem auto; background: url("assets/ornament/flourish.svg") center / contain no-repeat; }

/* ---------- Header (every page) ---------- */
.site-header { position: relative; z-index: 3; }
/* On the home page the header floats over the hero picture. */
.site-header.over { position: absolute; top: 0; left: 0; right: 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.8rem; max-width: 80rem; }
.brand { display: flex; align-items: center; gap: 0.9rem; color: var(--ink); text-decoration: none; }
.brand img { width: auto; height: 3.4rem; filter: drop-shadow(0 0 10px rgba(203, 176, 255, 0.28)); }
.brand-sep { width: 1px; height: 2.1rem; background: linear-gradient(180deg, transparent, var(--gold), transparent); }
.brand-name { font: 600 2rem/1 var(--serif); letter-spacing: 0.01em; color: var(--ink); }
.support-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.42rem 1.15rem; border: 1px solid var(--gold-line); border-radius: 999px;
  background: rgba(12, 9, 18, 0.72);
  box-shadow: inset 0 0 0 3px rgba(12, 9, 18, 0.9), inset 0 0 0 4px var(--gold-faint), 0 0 14px -6px rgba(214, 176, 103, 0.6);
  color: var(--ink); text-decoration: none; font: 600 1.08rem/1.2 var(--serif); letter-spacing: 0.03em;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.support-btn::before, .support-btn::after { content: "✦"; color: var(--gold); font-size: 0.7rem; }
.support-btn:hover { border-color: var(--gold-hi); box-shadow: inset 0 0 0 3px rgba(12, 9, 18, 0.9), inset 0 0 0 4px var(--gold-line), 0 0 18px -4px rgba(214, 176, 103, 0.7); }
.support-btn[aria-current="page"] { border-color: var(--gold-hi); }
/* The gold hairline under the header, with a little star in the middle. */
.header-rule {
  height: 14px;
  background:
    url("assets/ornament/star.svg") center / 14px 14px no-repeat,
    linear-gradient(90deg, transparent 2%, var(--gold-line) 22%, var(--gold-line) 78%, transparent 98%) center / 100% 1px no-repeat;
}

/* ---------- Section 1: the hero ---------- */
.hero-scene {
  position: relative;
  isolation: isolate;
  overflow: clip;
  /* The painting is always the full window width (17 Nov: "cover" cut off its sides in smaller
     windows) and sits on the bottom edge, so the velvet stays under the envelope. Above it is the
     page's dark ground; the first layer fades the painting's top edge into it (1672 x 941 picture). */
  background:
    linear-gradient(180deg, var(--bg), transparent 22%) center bottom / 100% calc(100vw * 941 / 1672) no-repeat,
    var(--bg) url("assets/hero/library.webp") center bottom / 100% auto no-repeat;
}
/* The dark wash behind the words fades out above the velvet at the bottom of the picture, so the
   acceptance letter lies on lit fabric instead of floating on a darkened one. */
.hero-scene::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    /* Right edge 0.3 -> 0.52: the moonlit window was the brightest thing on the page (17 Nov). */
    linear-gradient(90deg, rgba(8, 7, 13, 0.86) 0%, rgba(8, 7, 13, 0.62) 42%, rgba(8, 7, 13, 0.18) 68%, rgba(8, 7, 13, 0.52) 100%),
    linear-gradient(180deg, rgba(8, 7, 13, 0.45) 0%, transparent 22%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 84%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 84%);
}
.hero-scene::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent 95%, var(--bg) 100%); }
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: 3rem; align-items: center;
  max-width: 80rem; padding-top: 8rem; padding-bottom: 12.4rem;
}
.hero-copy { max-width: 44rem; }
.hero .eyebrow { display: flex; align-items: center; gap: 0.9rem; color: #dcc07e; }
.hero .eyebrow::before, .hero .eyebrow::after { content: ""; flex: 0 0 2.2rem; height: 1px; background: var(--gold-line); }
.hero h1 { font: 600 clamp(2.6rem, 4.9vw, 4.4rem)/1.04 var(--serif); margin: 1rem 0 0; letter-spacing: 0.005em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); text-wrap: balance; }
@media (min-width: 700px) { .hero h1 .line { white-space: nowrap; } }
.hero h1 .em { display: block; width: fit-content; font-style: italic; font-weight: 500; color: var(--lav); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .em { background: linear-gradient(90deg, #b28aff, #e6d2ff 70%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; padding-bottom: 0.08em; }
}
/* The gold flourish, centred under "Uncover Raventhorn." (17 Nov): the line above is only as wide
   as its words, so the ornament's middle is the words' middle at every screen width. */
.hero h1 .em::after {
  content: ""; display: block; width: 100%; height: 1.6rem; margin: 1.2rem auto;
  background: url("assets/ornament/flourish.svg") center / contain no-repeat;
}
.hero-body p { margin: 0 0 0.7rem; font-size: 1.2rem; line-height: 1.5; color: #ebe3d6; text-wrap: pretty; }

/* The launch-email card. */
.waitlist {
  position: relative;
  margin-top: 1.6rem; padding: 1.4rem 1.6rem 1.5rem;
  border: 1px solid var(--gold-line); border-radius: 6px;
  background: rgba(11, 9, 17, 0.8);
  box-shadow: inset 0 0 0 4px rgba(11, 9, 17, 0.9), inset 0 0 0 5px var(--gold-faint), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  scroll-margin-top: 1.5rem;
}
.waitlist::after, .framed::after {
  content: ""; position: absolute; inset: -3px; pointer-events: none;
  background:
    url("assets/ornament/corner-tl.svg") left top / 26px 26px no-repeat,
    url("assets/ornament/corner-tr.svg") right top / 26px 26px no-repeat,
    url("assets/ornament/corner-bl.svg") left bottom / 26px 26px no-repeat,
    url("assets/ornament/corner-br.svg") right bottom / 26px 26px no-repeat;
}
.waitlist .hp { display: none; }
.wl-title { display: block; font: 600 clamp(1.7rem, 3vw, 2.1rem)/1.15 var(--serif); }
.wl-hook { margin: 0.25rem 0 0; font-style: italic; font-size: 1.15rem; color: var(--soft); }
.wl-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.wl-row input {
  flex: 1 1 14rem; min-width: 0;
  padding: 0.72rem 1rem 0.72rem 2.8rem;
  border: 1px solid rgba(214, 176, 103, 0.42); border-radius: 999px;
  background: rgba(20, 16, 28, 0.9) url("assets/ornament/mail.svg") 1rem center / 1.2rem no-repeat;
  color: var(--ink); font: 500 1.1rem/1.3 var(--serif);
}
.wl-row input::placeholder { color: var(--dim); opacity: 1; }
.wl-row input:focus-visible { outline: 2px solid var(--lav); outline-offset: 2px; }
.wl-row button {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.62rem 1.5rem; border: 1px solid rgba(241, 220, 160, 0.75); border-radius: 999px;
  background: linear-gradient(180deg, #5f39c9, #36197e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 18px -6px rgba(140, 100, 255, 0.9);
  color: var(--ink); font: 600 1.22rem/1.2 var(--serif); letter-spacing: 0.02em; cursor: pointer;
}
.wl-row button::after { content: "✦"; color: var(--gold-hi); font-size: 0.75rem; }
.wl-row button:hover { filter: brightness(1.12); }
.soon { display: flex; align-items: center; gap: 0.6rem; margin: 1.2rem 0 0; font: 600 0.72rem/1.4 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); }
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lav); box-shadow: 0 0 8px var(--lav); }

/* The Academy in a bronze-framed phone, lit from behind. */
.device { position: relative; justify-self: center; width: min(18.5rem, 74vw); margin: 0; }
.device::before { content: ""; position: absolute; inset: 6% -22%; background: radial-gradient(ellipse at 50% 45%, rgba(236, 160, 96, 0.22), rgba(150, 100, 255, 0.12) 45%, transparent 70%); filter: blur(10px); }
.device .screen {
  position: relative; padding: 0.5rem; border-radius: 2.5rem;
  border: 3px solid #a8724c; background: #050407;
  box-shadow: 0 0 0 1px #3a2216, inset 0 0 0 1px #2a1a12, 0 0 34px -6px rgba(236, 150, 90, 0.45), 0 30px 60px -20px #000;
}
.device .screen img { border-radius: 2rem; width: 100%; aspect-ratio: 640 / 1384; object-fit: cover; }

/* The acceptance letter, lying on the velvet. */
.envelope {
  position: absolute; z-index: 1; left: 50%; bottom: 2.2rem;
  width: min(27rem, 36vw);
  transform: translateX(-50%) perspective(1200px) rotateX(56deg) rotateZ(-6deg);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.7)) drop-shadow(0 16px 18px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
/* Toned to the room: a little dimmer and less saturated, then lit like the scene around it - warm
   candlelight on the far edge, deep plum shade on the near edge. The shading is cut to the letter's
   own shape (a mask of the same picture), so only the paper and seal change. */
.envelope img { display: block; width: 100%; height: auto; filter: brightness(0.78) saturate(0.85) contrast(0.95); }
.envelope::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 200, 140, 0.55) 0%, rgba(190, 150, 175, 0.6) 50%, rgba(70, 45, 85, 0.75) 100%);
  mix-blend-mode: multiply;
  -webkit-mask: url("assets/hero/envelope.webp") 0 0 / 100% 100% no-repeat;
  mask: url("assets/hero/envelope.webp") 0 0 / 100% 100% no-repeat;
}

/* ---------- Section 2: the nine chapters ---------- */
.chapters {
  position: relative; padding: 4.5rem 0 5rem;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(120, 70, 160, 0.2), transparent 70%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(90, 40, 100, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(90, 40, 100, 0.18), transparent 70%),
    var(--plum);
  border-top: 1px solid var(--gold-faint);
}
.section-title { font: 600 clamp(1.9rem, 4.6vw, 3.3rem)/1.12 var(--display); letter-spacing: 0.04em; margin: 0; text-wrap: balance; }
.eyebrow + .section-title { margin-top: 0.85rem; }
.section-sub { font: italic 500 clamp(1.25rem, 2.4vw, 1.55rem)/1.4 var(--serif); color: var(--ink); margin: 0.3rem 0 0; text-wrap: balance; }
.chapter-grid { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.chapter {
  position: relative;
  display: grid; grid-template-columns: 43% minmax(0, 1fr);
  min-height: 14rem; padding: 11px;
  border: 1px solid var(--gold-line); border-radius: 4px;
  background: linear-gradient(160deg, #1f1327, #120b17 70%);
  box-shadow: inset 0 0 0 5px #150d1a, inset 0 0 0 6px rgba(214, 176, 103, 0.42), 0 16px 34px -16px rgba(0, 0, 0, 0.85);
}
/* Corner flourishes and the small ornaments in the middle of the top and bottom edges. */
.chapter::after {
  content: ""; position: absolute; inset: -4px; pointer-events: none;
  background:
    url("assets/ornament/corner-tl.svg") left top / 34px 34px no-repeat,
    url("assets/ornament/corner-tr.svg") right top / 34px 34px no-repeat,
    url("assets/ornament/corner-bl.svg") left bottom / 34px 34px no-repeat,
    url("assets/ornament/corner-br.svg") right bottom / 34px 34px no-repeat,
    url("assets/ornament/edge.svg") center top / 72px 14px no-repeat,
    url("assets/ornament/edge.svg") center bottom / 72px 14px no-repeat;
}
.chapter-art { position: relative; overflow: hidden; border: 1px solid var(--gold-faint); border-radius: 2px; background: #0d0811; }
.chapter-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter-text { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem 0.7rem 1rem 0.9rem; }
.numeral { font: 600 1.45rem/1 var(--display); }
.chapter h3 { font: 600 1.28rem/1.15 var(--display); letter-spacing: 0.05em; margin: 0.45rem 0 0; text-wrap: balance; }
.chapter-rule { width: 5.5rem; height: 12px; margin: 0.6rem 0; background: url("assets/ornament/edge.svg") center / contain no-repeat; opacity: 0.85; }
.chapter p { margin: 0; font: italic 500 1.08rem/1.35 var(--serif); color: #e4dccd; text-wrap: pretty; }

/* ---------- Section 3: the reading tracker ---------- */
.tracker {
  padding: 4.3rem 0 5rem;
  background:
    radial-gradient(ellipse 60% 35% at 50% 0%, rgba(110, 70, 150, 0.14), transparent 70%),
    linear-gradient(180deg, #0f0d16, #0b0a12);
  border-top: 1px solid var(--gold-faint);
}
.tracker .section-title { color: var(--ink); font-size: clamp(1.7rem, 3.9vw, 2.7rem); }
.tracker .section-sub { color: var(--soft); max-width: 40rem; margin-left: auto; margin-right: auto; }
.panel {
  position: relative;
  border: 1px solid rgba(214, 176, 103, 0.3); border-radius: 12px;
  background: linear-gradient(180deg, rgba(31, 23, 41, 0.72), rgba(17, 14, 23, 0.92));
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.9);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.panel h3 { font: 600 clamp(1.25rem, 2.4vw, 1.6rem)/1.2 var(--display); letter-spacing: 0.04em; margin: 0; color: var(--gold-hi); text-wrap: balance; }
.panel h4 { font: 600 0.8rem/1.4 var(--display); letter-spacing: 0.18em; color: var(--gold); margin: 0; }
.panel p { margin: 0.35rem 0 0; color: #ddd4c6; font-size: 1.15rem; line-height: 1.5; text-wrap: pretty; }
.panel .lead { font-size: 1.25rem; color: var(--ink); margin-top: 0.8rem; }
.group + .group { margin-top: 1.1rem; }
.panel .gold-text { color: var(--gold-hi); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .panel .gold-text { color: transparent; }
}
.panel h3 + .group { margin-top: 1rem; }

/* Phone-shaped screenshot frames (plain, unlike the hero's bronze one). */
.phone {
  position: relative; display: block; padding: 0.42rem; border-radius: 2rem;
  background: #050408; border: 1px solid #3b3346;
  box-shadow: 0 0 0 1px #000, 0 24px 50px -22px #000, 0 0 30px -12px rgba(150, 110, 255, 0.35);
}
.phone img { width: 100%; border-radius: 1.6rem; }
a.phone, a.thumb { color: inherit; text-decoration: none; cursor: zoom-in; transition: transform 0.25s ease, box-shadow 0.25s ease; }
a.phone:hover, a.thumb:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #000, 0 28px 54px -22px #000, 0 0 34px -10px rgba(214, 176, 103, 0.45); }

/* Feature 1: the featured dashboard, panning slowly through the whole customised Home. */
/* The phone fills the right column. On the left, the heading lines up with the phone's top and the
   closing line with its bottom (the padding matches the "Tap to see" label under the phone); the
   paragraphs spread out evenly between them. */
.featured {
  /* The same padding as .panel, the column gap, and the room a circle icon needs beside the text
     (the circle plus a gap). */
  --pad: clamp(1.4rem, 3vw, 2.4rem); --gap: clamp(1.5rem, 4vw, 3.5rem); --icon-room: 4rem; --nudge: 2.6rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr;
  gap: 1.6rem var(--gap); margin-top: 2.8rem;
}
.featured > h3 { grid-column: 1; grid-row: 1; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.featured-shot { grid-column: 2; grid-row: 1 / span 2; }
.featured .copy {
  grid-column: 1; grid-row: 2; display: flex; flex-direction: column; justify-content: space-between;
  width: 100%; max-width: min(34rem, calc(100% - var(--icon-room) - var(--nudge))); justify-self: end; margin-right: var(--nudge); padding: 1rem 0 1.9rem; text-align: center;
}
.featured .copy .lead { margin: 0; }
/* A gold circle icon beside each paragraph (decorative, so screen readers skip it): its left edge
   lines up with the heading, its top with the top of the paragraph's first line. */
.featured .lead-icon { position: absolute; left: var(--pad); transform: translateY(0.3em); }
/* A gold line with a star in the middle after each paragraph, like the header line in the app. */
.divider {
  width: min(11rem, 60%); height: 0.8rem; margin: 1.4rem auto; flex: 0 0 auto;
  background:
    url("assets/ornament/star.svg") center / 0.8rem 0.8rem no-repeat,
    linear-gradient(90deg, transparent, rgba(214, 176, 103, 0.9)) left center / 42% 1px no-repeat,
    linear-gradient(270deg, transparent, rgba(214, 176, 103, 0.9)) right center / 42% 1px no-repeat;
}
/* The closing line: larger, in gold, with extra room above it. */
.featured .big { margin: 1rem 0 0; font: italic 600 clamp(1.7rem, 3vw, 2.15rem)/1.25 var(--serif); text-wrap: balance; }
.pan { width: min(19rem, 72vw); }
.pan .window { display: block; position: relative; overflow: hidden; border-radius: 1.6rem; aspect-ratio: 1 / 2; background: #121019; }
/* home-full.webp is 1080 x 7714 (retaken 18 Nov): its height is 7.143 widths and the window shows 2,
   so the last window-full sits at -(1 - 2 / 7.143) = -72.0% of the picture's own height. 42 s keeps
   the old 8537-px picture's scrolling speed (it had 48 s for 5.9 window-heights; this has 5.1). */
.pan .window img { position: absolute; top: 0; left: 0; width: 100%; height: auto; border-radius: 0; animation: pan 42s ease-in-out infinite alternate; }
@keyframes pan { 0%, 9% { transform: translateY(0); } 91%, 100% { transform: translateY(-72%); } }
.pan:hover .window img, .pan:focus-visible .window img { animation-play-state: paused; }
.see-all { display: block; margin-top: 0.9rem; text-align: center; font: 600 0.72rem/1.4 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* Features 2-4 under it: the library and the reading journey side by side, import/export along the
   bottom. The library's phone sits in the middle of whatever height the journey box sets. */
.tracker-stack {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  grid-template-areas: "f2 f3" "f4 f4"; gap: 1.6rem; margin-top: 1.6rem;
}
.f2 { grid-area: f2; display: grid; grid-template-rows: auto 1fr; gap: 1.5rem; }
.f3 { grid-area: f3; }
.f4 { grid-area: f4; }
.f2-copy { max-width: 30rem; justify-self: center; text-align: center; }
.f2-copy h3 + .group { margin-top: 1.6rem; }
.f2-copy .group + .group { margin-top: 1.7rem; }
.f2 .phone { width: min(14rem, 75%); justify-self: center; align-self: center; }
/* Feature 3, as in the user's mock-up: the timer under the heading on the left, the four points on
   the right, the four screenshots in a row along the bottom. */
.f3-main { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.2rem, 2.6vw, 2.2rem); align-items: center; }
.f3-main { margin-top: 1.6rem; }
.f3-left .phone { width: min(16.5rem, 100%); margin: 0 auto; }
.journey-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.journey-item { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.journey-icon {
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%;
  border: 1px solid var(--gold-line); color: var(--gold-hi);
  background: radial-gradient(circle at 50% 35%, #2a1d36, #120d18 75%);
  box-shadow: inset 0 0 0 3px #120d18, inset 0 0 0 4px var(--gold-faint), 0 0 16px -6px rgba(214, 176, 103, 0.6);
}
.journey-icon svg { width: 1.35rem; height: 1.35rem; }
.journey-item h4 { margin-top: 0.15rem; }
.thumbs { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.thumb { display: block; border-radius: 16px; border: 1px solid #3b3346; background: #070609; padding: 0.35rem; box-shadow: 0 14px 30px -18px #000; }
.thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 12px; }
.thumb span { display: block; padding: 0.35rem 0.2rem 0.5rem; text-align: center; font: 600 0.7rem/1.35 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-hi); }
/* Import/export: the icon over the text, everything centred in the box. */
.f4 { display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
.f4 .icon { flex: 0 0 auto; width: 5.5rem; height: auto; margin: -0.6rem 0 -0.1rem; }
.f4 h3 + .group { margin-top: 1.5rem; }
.f4 .group p { margin-top: 0.5rem; }
.tracker-close { max-width: 47rem; margin: 3.2rem auto 0; text-align: center; }
.tracker-close .big { font: italic 600 clamp(1.6rem, 3.4vw, 2.2rem)/1.25 var(--serif); margin: 0; color: var(--ink); }
.tracker-close p { margin: 0.4rem 0 0; color: var(--soft); font-size: 1.2rem; text-wrap: balance; }

/* ---------- Section 4: our promise ---------- */
/* The hero's library painting fills the section AROUND the promise box (user request, 17 Nov
   2026); the box keeps its own dark ground. A wash keeps the painting behind the box, darker
   toward the left and right edges so the bright shelves and window don't pull focus (17 Nov). */
.promise {
  padding: 5rem 0; border-top: 1px solid var(--gold-faint);
  background:
    linear-gradient(90deg, rgba(8, 7, 13, 0.62) 0%, rgba(8, 7, 13, 0.42) 28%, rgba(8, 7, 13, 0.42) 72%, rgba(8, 7, 13, 0.62) 100%),
    var(--bg) url("assets/hero/library.webp") center 45% / cover no-repeat;
}
.framed {
  position: relative; max-width: 48rem; margin: 0 auto; padding: 3rem clamp(1.3rem, 5vw, 3.5rem);
  border: 1px solid var(--gold-line); border-radius: 4px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(110, 70, 150, 0.14), transparent 70%), #0d0b14;
  box-shadow: inset 0 0 0 5px #0d0b14, inset 0 0 0 6px var(--gold-faint);
}
.framed::after { inset: -4px; background-size: 40px 40px; }
.shield { width: 2.9rem; height: auto; margin: 0 auto 1rem; }
.promise h2 { font: 600 clamp(1.7rem, 4vw, 2.5rem)/1.2 var(--serif); margin: 0; text-wrap: balance; }
.promise p.body { color: #ddd4c6; font-size: 1.2rem; max-width: 36rem; margin: 1rem auto 0; text-wrap: pretty; }
.promise p.more { margin: 1.1rem 0 0; font-size: 1.15rem; }

/* ---------- Section 5: social ---------- */
.social { padding: 3.8rem 0 5rem; background: linear-gradient(180deg, var(--bg), #110c17); border-top: 1px solid var(--gold-faint); }
.social .section-title { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
.social .intro { color: var(--soft); font-size: 1.2rem; margin: 0.6rem auto 0; max-width: 41rem; text-wrap: balance; }
.social .sign-off { margin-top: 2.4rem; text-wrap: balance; }
.social-box { position: relative; max-width: 52rem; margin: 2rem auto 0; padding: 1.5rem; border: 1px solid var(--gold-faint); border-radius: 12px; background: rgba(20, 15, 28, 0.7); }
.follow { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.follow a { display: inline-flex; align-items: baseline; gap: 0.45rem; padding: 0.55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: #17121f; color: var(--ink); text-decoration: none; font: 600 1.1rem/1.2 var(--serif); }
.follow a:hover { border-color: var(--gold-line); }
.follow span { color: var(--dim); font: 500 0.95rem/1 var(--serif); font-style: italic; }

/* ---------- Footer (every page) ---------- */
.site-footer { border-top: 1px solid var(--gold-faint); padding: 2rem 0 2.4rem; color: var(--dim); font-size: 1rem; background: #0a090f; }
.site-footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; }
.site-footer a { color: var(--soft); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--gold-hi); text-decoration: underline; }

/* ---------- Screenshot viewer (site.js; without it the links simply open the picture) ---------- */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7, 6, 11, 0.96); color: var(--ink); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.7); }
.lightbox[open] { display: flex; flex-direction: column; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 3.6rem 4.2rem 0.8rem; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 0 0 1px #3b3346, 0 30px 60px -20px #000; }
/* Very tall pictures (the whole Home) scroll inside the viewer at a readable width instead. */
.lightbox.is-tall .lb-stage { display: block; overflow-y: auto; overscroll-behavior: contain; }
.lightbox.is-tall .lb-img { width: min(100%, 30rem); max-height: none; margin: 0 auto; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 0.6rem 1rem 1.1rem; text-align: center; }
.lb-caption { margin: 0; font: italic 500 1.15rem/1.3 var(--serif); }
.lb-count { font: 600 0.7rem/1 var(--display); letter-spacing: 0.16em; color: var(--dim); white-space: nowrap; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid var(--gold-line); background: rgba(16, 12, 22, 0.92); color: var(--gold-hi); font: 400 1.5rem/1 var(--serif); cursor: pointer; }
.lb-btn:hover { border-color: var(--gold-hi); }
.lb-close { top: 0.8rem; right: 0.9rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 0.7rem; }
.lb-next { right: 0.7rem; }
.lb-btn[hidden] { display: none; }

/* ---------- Text pages (support, privacy, terms, account deletion) ---------- */
.page-head { background: linear-gradient(180deg, #120d19, var(--bg)); }
main { flex: 1; }
.doc .wrap { max-width: 48rem; padding-top: 3rem; padding-bottom: 4rem; }
.doc { font-size: 1.15rem; }
.doc h1 { font: 600 clamp(2.3rem, 5.5vw, 3.1rem)/1.1 var(--serif); margin: 0.7rem 0 0; text-wrap: balance; }
/* The big label at the top of the FAQ, Privacy Policy, Terms of Use and delete-account pages (user requests, 17 Nov 2026). */
.doc .page-label { font-size: 1.3rem; }
.doc .meta { color: var(--soft); font-size: 1.05rem; margin: 0.3rem 0 0; }
.doc .filigree { width: min(16rem, 70%); height: 1.4rem; margin: 1rem 0; background: url("assets/ornament/flourish.svg") left center / contain no-repeat; font-size: 0; color: transparent; }
.doc .notice { margin: 1.6rem 0 0; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
.doc h2 { font: 600 1.75rem/1.25 var(--serif); margin: 2.6rem 0 0.5rem; color: var(--ink); text-wrap: balance; }
.doc h3 { font: 600 1.35rem/1.3 var(--serif); margin: 1.8rem 0 0.4rem; color: var(--gold-hi); }
.doc p, .doc li { text-wrap: pretty; }
.doc p { margin: 0.7rem 0 0; }
.doc ul, .doc ol { padding-left: 1.3rem; margin: 0.7rem 0 0; }
.doc li + li { margin-top: 0.45rem; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc .lead { font-size: 1.25rem; color: var(--ink); }
.table-scroll { overflow-x: auto; margin: 1rem 0 0; border: 1px solid var(--line); border-radius: 10px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 1.05rem; line-height: 1.45; min-width: 34rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font: 600 0.7rem/1.3 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); background: #120f19; }
.doc td:first-child { color: var(--ink); }
.doc td { color: var(--soft); }
.contact-card { margin-top: 1.6rem; padding: 1.3rem 1.2rem; border: 1px solid var(--gold-faint); border-radius: 10px; background: var(--panel); }
.contact-card p { margin: 0.35rem 0 0; }
.contact-card a { font-size: 1.3rem; }
.faq details { border-top: 1px solid var(--line); padding: 0.2rem 0; }
.faq.sections { margin-top: 1.8rem; }
/* Every drop-down page (FAQ, Privacy, Terms, Delete Account): titles in the gold Gothic capitals, the text under them
   set in and softer, so a title never reads like the body (user, 16 Nov). */
.doc .faq summary { font: 600 1.08rem/1.45 var(--display); letter-spacing: 0.05em; color: var(--gold-hi); padding-top: 1.05rem; padding-bottom: 1.05rem; }
.doc .faq summary:hover { color: #fff3cf; }
.doc .faq details > *:not(summary) { margin-left: 0.2rem; padding-left: 0.9rem; color: #cbc2d6; font-size: 1.08rem; }
.doc .faq details > .table-scroll, .doc .faq details > .contact-card { margin-left: 0.2rem; padding-left: 0; }
.doc .faq details > .table-scroll { margin-left: 1.1rem; }
.doc .faq details > .contact-card { margin-left: 1.1rem; padding-left: 1.2rem; }
.doc .faq details > ul, .doc .faq details > ol { padding-left: 2.2rem; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 0.9rem 2rem 0.9rem 0; position: relative; font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "✦"; position: absolute; right: 0.2rem; top: 1rem; color: var(--dim); font-size: 0.8rem; transition: transform 0.2s, color 0.2s; }
.faq details[open] summary::after { color: var(--gold); transform: rotate(45deg); }
.faq details > *:not(summary) { color: var(--soft); }
.faq details > p:last-child, .faq details > ul:last-child, .faq details > ol:last-child, .faq details > .table-scroll:last-child, .faq details > .contact-card:last-child { margin-bottom: 1.1rem; }
.faq details > .table-scroll { color: inherit; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1100px) {
  .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .tracker-stack { grid-template-columns: minmax(0, 1fr); grid-template-areas: "f2" "f3" "f4"; }
  .f2 { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
  .f2 .phone { width: min(13.5rem, 60vw); }
  .f3 > h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
}
@media (max-width: 960px) {
  .f3-main { grid-template-columns: minmax(0, 1fr); }
  .f3 > h3 { text-align: center; }
}
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; padding-top: 7rem; padding-bottom: 2rem; }
  .device { width: min(14.5rem, 64vw); }
  /* Phones: fill the tall section ("cover"), as before. */
  .hero-scene { background: var(--bg) url("assets/hero/library.webp") 22% 100% / cover no-repeat; }
  .hero-scene::before { background: linear-gradient(180deg, rgba(8, 7, 13, 0.55), rgba(8, 7, 13, 0.82) 30%, rgba(8, 7, 13, 0.88) 62%); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 88%); mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 88%); }
  .envelope { position: relative; left: auto; bottom: auto; display: block; margin: -4.5rem auto 0; width: min(22rem, 84vw); transform: perspective(1000px) rotateX(48deg) rotateZ(-5deg); }
  .featured { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .featured .copy { justify-self: center; margin-right: 0; max-width: min(34rem, calc(100% - 2 * var(--icon-room))); }
  .featured > h3, .featured .copy, .featured-shot { grid-column: auto; grid-row: auto; }
  .featured .copy { padding-bottom: 0; }
  .featured-shot { margin-top: 0.6rem; justify-self: center; }
  .featured .pan { justify-self: center; }
}
@media (max-width: 520px) {
  /* Too narrow for a side column: each circle sits centred above its paragraph. */
  .featured .copy { max-width: none; }
  .featured .lead-icon { position: static; transform: none; margin: 0 auto 0.8rem; }
}
@media (max-width: 700px) {
  .chapter-grid { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .chapter { grid-template-columns: 41% minmax(0, 1fr); min-height: 12.5rem; }
  .f2 { grid-template-columns: minmax(0, 1fr); }
  .f2 .phone { justify-self: center; }
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 19px; }
  .site-header .wrap { padding-top: 0.7rem; padding-bottom: 0.6rem; }
  .hero .wrap { padding-top: 5.8rem; }
  .brand { gap: 0.6rem; }
  .brand img { height: 2.6rem; }
  .brand-sep { height: 1.6rem; }
  .brand-name { font-size: 1.55rem; }
  .support-btn { padding: 0.35rem 0.85rem; font-size: 1rem; gap: 0.4rem; }
  .hero .eyebrow { font-size: 0.66rem; letter-spacing: 0.13em; }
  .hero .eyebrow::before, .hero .eyebrow::after { display: none; }
  .waitlist { padding: 1.2rem 1.1rem 1.3rem; }
  .wl-row button { flex-basis: 100%; justify-content: center; }
  .chapter h3 { font-size: 1.12rem; }
  .chapter p { font-size: 1.02rem; }
  .lb-stage { padding: 3.6rem 0.6rem 0.6rem; }
  .lb-prev, .lb-next { top: auto; bottom: 0.7rem; transform: none; }
  .lb-bar { padding-left: 4rem; padding-right: 4rem; }
}
@media (max-width: 380px) {
  .support-btn::before, .support-btn::after { display: none; }
  .chapter { grid-template-columns: 38% minmax(0, 1fr); padding: 9px; }
  .chapter-text { padding: 0.8rem 0.3rem 0.8rem 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pan .window img { animation: none; }
  a.phone, a.thumb, .support-btn, .faq summary::after { transition: none; }
  a.phone:hover, a.thumb:hover { transform: none; }
}
