/* =====================================================================================================================
   Folielle design system (copied from the Lumehush system; only the brand tokens changed): tokens + components
   shared by every folielle.com page.
   Rules and reasoning: DESIGN.md. Pages add layout only; they never redefine tokens or restyle components.
   No inline styles anywhere (the CSP forbids them).
   ===================================================================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var-latin.woff2') format('woff2'); /* Inter 4: weight 100-900 + optical size 14-32 */
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-var-latin.woff2') format('woff2'); /* Fraunces (OFL), latin subset, weight 100-900 + optical size 9-144 */
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Tokens ---------- */
:root {
  /* Colour (Folielle v2, D:\PdfEditor\brand\final\folielle\BRAND.md): LIGHT ONLY, cream, gold and grey. No dark
     theme, no near-black bands, no blue. WCAG contrast on Ivory / Cream / Linen: graphite 11.2 / 10.2 / 9.0,
     warm grey 6.4 / 5.9 / 5.2, deep gold 5.8 / 5.3 / 4.6. Stone (2.8) and gold (2.3) are never used for text. */
  --bg: #fbf8f2;          /* Ivory: page */
  --surface: #f3ede2;     /* Cream: bands, cards */
  --raised: #e7dfd1;      /* Linen: inputs, kbd */
  --line: #e7dfd1;        /* Linen: borders, dividers */
  --line-strong: #d6ccbb;
  --text: #3a3733;        /* Graphite: headings, primary text */
  --text-2: #5f5a53;      /* Warm grey: body */
  --text-3: #5f5a53;      /* captions: same warm grey (anything lighter fails AA) */
  --stone: #9a948b;       /* decorative only: never text */
  --gold: #7a5d26;        /* Deep gold: gold TEXT, links, focus rings, small icons */
  --gold-fill: #c9a25e;   /* Gold: ribbon, rules. Never large fills, never text, never text gradients */
  --gold-soft: rgba(201, 162, 94, .22);
  --danger: #a3321e;      /* 6.5:1 on ivory, 5.9:1 on cream */
  --top-bg: rgba(251, 248, 242, .88);
  --btn-bg: #3a3733;      /* primary button: graphite with ivory text (11.2:1) */
  --btn-hover: #4a4641;   /* ivory text 8.8:1 */
  --hover-wash: rgba(58, 55, 51, .04);

  /* Type: Inter, display optical size for headings, text optical size for body (automatic via font-optical-sizing) */
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --fs-display: clamp(44px, 6.4vw, 80px);
  --fs-h1: clamp(36px, 4.8vw, 60px);
  --fs-h2: clamp(30px, 3.6vw, 44px);
  --fs-h3: clamp(20px, 1.9vw, 24px);
  --fs-lead: clamp(18px, 1.6vw, 21px);
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-caption: 13px;
  --fs-eyebrow: 12px;

  /* Space: 4 px base */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px; --s11: 160px;
  --section: clamp(96px, 12vw, 168px);
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1200px;        /* page content */
  --max-wide: 1320px;   /* hero product shot */
  --max-text: 680px;    /* prose, legal, centred intros */
  --max-narrow: 560px;  /* forms */

  /* Shape and depth */
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  --shadow-shot: 0 30px 70px -28px rgba(58, 55, 51, .28), 0 10px 22px -12px rgba(58, 55, 51, .16);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 160ms; --t-base: 260ms; --t-slow: 480ms;

  /* Legacy aliases for pages written before DESIGN.md. Do not use in new CSS. */
  --bg0: var(--bg); --bg1: var(--surface); --s2c: var(--raised); --text1: var(--text); --text2: var(--text-2); --text3: var(--text-3);
  --gold-hi: var(--text); --gold-lo: var(--gold);
  color-scheme: light;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text-2);
  font: 400 var(--fs-body)/1.6 var(--font); font-optical-sizing: auto; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
::selection { background: var(--gold-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
}
.skip { position: absolute; left: -9999px; top: var(--s3); z-index: 20; background: var(--text); color: var(--bg); padding: var(--s2) var(--s4); border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { left: var(--s3); }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Type ---------- */
h1, h2, h3, h4 { color: var(--text); margin: 0; font-weight: 600; text-wrap: balance; }
.t-display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.035em; }
h1, .t-h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.03em; }
h2, .t-h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.025em; }
h3, .t-h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.012em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.small { font-size: var(--fs-small); }
.caption { font-size: var(--fs-caption); color: var(--text-3); line-height: 1.5; }
.eyebrow { display: block; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--s4); }
.muted { color: var(--text-3); }
strong { color: var(--text); font-weight: 600; }

/* Links: cream with a hairline underline that turns gold on hover. */
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
a:hover { text-decoration-color: var(--gold-fill); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.link-arrow::after { content: '\2192'; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- 4. Layout ---------- */
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: calc(var(--max-wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-text { max-width: calc(var(--max-text) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
section, .section { padding-top: var(--section); }
.head { max-width: var(--max-text); margin-bottom: var(--s8); }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head .lead, .head p { margin-top: var(--s5); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- 5. Components ---------- */
/* Header / nav */
.top { position: sticky; top: 0; z-index: 10; background: var(--top-bg); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: var(--s4); }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; }
/* BRAND SLOT: the header and footer logo is /img/brand/lockup.svg (the "Bookmark" mark + outlined wordmark; it
   switches to paper by itself when the system is dark). The bare mark is /img/brand/mark.svg (404 page). */
.brand .lockup { height: 28px; width: auto; }
.foot-brand { display: inline-flex; align-items: center; gap: var(--s4); }
.foot-brand .lockup { height: 20px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s6); }
.nav a { color: var(--text-2); text-decoration: none; font-size: var(--fs-small); font-weight: 500; transition: color var(--t-fast) var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 1080px) { .nav { gap: var(--s5); } }
@media (max-width: 960px) { .nav a:not(.btn) { display: none; } }

/* Buttons: primary (cream), secondary (hairline), small size. One primary per view. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5);
  border-radius: var(--r-pill); border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--bg) !important;
  font: 600 var(--fs-small)/1 var(--font); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.secondary, .btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--text) !important; }
.btn.secondary:hover, .btn.ghost:hover { border-color: var(--text-2); background: var(--hover-wash); }
.btn.small { min-height: 36px; padding: 0 var(--s4); font-size: 14px; }
.actions, .cta { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.actions.center { justify-content: center; }

/* Cards: flat surface, hairline. No glow, no lift. */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); }
.card h3 { margin-bottom: var(--s3); }
.card p { font-size: var(--fs-small); }
.icon { width: 24px; height: 24px; color: var(--gold); margin-bottom: var(--s4); }
.icon svg { width: 24px; height: 24px; }
.list { margin: var(--s4) 0 0; padding: 0; list-style: none; font-size: var(--fs-small); }
.list li { padding: var(--s2) 0; border-top: 1px solid var(--line); }

/* Product shots: crisp, hairline frame, soft neutral shadow. No tilt, no coloured glow. */
/* Device frame: the real screenshots (the app's own UI colours, never recoloured) sit in a quiet ivory/linen window
   with a hairline, three stone dots and a soft warm shadow, so they rest calmly on the cream page. */
.shot, .frame {
  position: relative; margin: 0; padding: 30px 10px 10px; border-radius: 16px;
  background: linear-gradient(var(--bg), var(--surface)); border: 1px solid var(--line-strong); box-shadow: var(--shadow-shot);
}
.shot::before, .frame::before {
  content: ''; position: absolute; top: 12px; left: 16px; width: 44px; height: 8px;
  background: radial-gradient(circle 4px at 4px 4px, var(--stone) 3.5px, transparent 4px) 0 0 / 16px 8px repeat-x; opacity: .7;
}
.shot img, .frame img { width: 100%; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 640px) { .shot, .frame { padding: 20px 6px 6px; border-radius: 12px; } .shot::before, .frame::before { top: 7px; left: 10px; } }
figure { margin: 0; }
figcaption { margin-top: var(--s3); font-size: var(--fs-caption); color: var(--text-3); }

/* Forms */
.field { display: flex; flex-direction: column; gap: var(--s2); }
.label { font-size: var(--fs-small); font-weight: 500; color: var(--text); }
.input {
  width: 100%; min-height: 48px; padding: 0 var(--s4); border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--raised); color: var(--text); font: 400 16px var(--font);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--text-2); box-shadow: 0 0 0 3px var(--gold-soft); }
.input:disabled { opacity: .6; cursor: not-allowed; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.help { font-size: var(--fs-caption); color: var(--text-3); }
.status { min-height: 1.5em; font-size: var(--fs-small); color: var(--text-2); }
.status.ok { color: var(--text); }
.status.err { color: var(--danger); }

/* Disclosure (FAQ) */
.faq { max-width: var(--max-text); margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s5) var(--s7) var(--s5) 0; color: var(--text); font-size: 18px; font-weight: 500; letter-spacing: -.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 12px; height: 1.5px; background: var(--text-2); }
.faq summary::before { content: ''; position: absolute; right: 9.25px; top: calc(50% - 5.25px); width: 1.5px; height: 12px; background: var(--text-2); transition: transform var(--t-base) var(--ease); }
.faq details[open] summary::before { transform: scaleY(0); }
.faq details p { padding: 0 0 var(--s5); max-width: 62ch; }

/* Footer */
body > footer { margin-top: var(--section); background: var(--surface); border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s8); font-size: var(--fs-small); color: var(--text-3); }
/* Cream band: a full-width section on Cream between linen hairlines, for quiet contrast (light only, never dark). */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: var(--section); margin-top: var(--section); }
.band + section { padding-top: var(--section); }
body > footer .wrap { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: center; justify-content: space-between; }
body > footer nav { display: flex; flex-wrap: wrap; gap: var(--s5); }
body > footer a { color: var(--text-2); text-decoration: none; }
body > footer a:hover { color: var(--text); }

/* Long-form prose. .legal = a centred single-column page container (privacy, terms); .prose = the type rules,
   usable inside any layout (help, changelog). */
.legal { max-width: calc(var(--max-text) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s9) var(--gutter) 0; }
.prose p, .prose li { max-width: 68ch; }
.prose h1, .legal h1 { margin-bottom: var(--s3); }
.prose .meta, .legal .meta { color: var(--text-3); font-size: var(--fs-small); margin-bottom: var(--s6); }
.prose .notice, .legal .draft { border-left: 2px solid var(--gold-fill); padding: var(--s1) 0 var(--s1) var(--s4); margin: 0 0 var(--s7); color: var(--text); font-size: var(--fs-small); }
.prose h2, .legal h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.012em; margin: var(--s7) 0 var(--s3); }
.prose p + p, .legal p + p { margin-top: var(--s4); }
.prose ul, .legal ul { padding-left: 1.2em; margin: var(--s3) 0 0; }
.prose li, .legal li { margin-top: var(--s2); }
.prose li::marker, .legal li::marker { color: var(--text-3); }

/* ---------- 6. Home page sections ---------- */
.hero { padding-top: var(--s10); text-align: center; }
.hero .mark { width: 56px; height: 56px; margin: 0 auto var(--s6); }
.hero h1 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.035em; max-width: 13ch; margin: 0 auto; }
.hero h1 .soft { color: var(--text-3); }
.hero .lead { max-width: 32em; margin: var(--s5) auto 0; }
.hero .actions { justify-content: center; margin-top: var(--s7); }
.hero .caption { margin-top: var(--s4); }
.hero-shot { margin-top: var(--s9); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s8) var(--s6); }
.features .feature { border-top: 1px solid var(--line); padding-top: var(--s5); }
.features h3 { margin-bottom: var(--s3); }
.features p { font-size: var(--fs-small); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; gap: var(--s7); } }

.show { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s8); align-items: center; }
.show + .show { margin-top: var(--s10); }
.show.flip { grid-template-columns: 8fr 4fr; }
.show.flip .copy { order: 2; }
.show .copy p { margin-top: var(--s4); }
@media (max-width: 900px) { .show, .show.flip { grid-template-columns: 1fr; gap: var(--s6); } .show.flip .copy { order: 0; } .show + .show { margin-top: var(--s9); } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin-top: var(--s10); align-items: start; }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; margin-top: var(--s9); } }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); border-top: 1px solid var(--line); padding-top: var(--s6); }
.principles h3 { font-size: 17px; margin-bottom: var(--s2); }
.principles p { font-size: var(--fs-small); color: var(--text-3); }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .principles { grid-template-columns: 1fr; } }

.join { text-align: center; }
.join .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s9) var(--gutter); }
.join .lead { max-width: 30em; margin: var(--s4) auto 0; }
.signup { display: flex; gap: var(--s3); max-width: var(--max-narrow); margin: var(--s7) auto 0; }
.signup .input { flex: 1; min-width: 0; border-radius: var(--r-pill); padding: 0 var(--s5); }
@media (max-width: 520px) { .signup { flex-direction: column; } }
.join .status { margin-top: var(--s4); }
.join .caption { max-width: 46em; margin: var(--s4) auto 0; }
.feature-more { margin-top: var(--s7); }

/* =====================================================================================================================
   8. Richness layer (owner, 2026-11-11: "can they pop a bit more"). Same light cream / gold / grey palette, plus
   gold foil, a champagne glow, a display serif for headings, sand bands, card depth and a gentle load-in.
   Kept in one block so it can be reverted on its own. Text contrast: every text colour still >= 4.5:1; gradient
   text only at display sizes, with a solid deep-gold fallback and its lightest stop >= 3:1 on ivory.
   ===================================================================================================================== */
:root {
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sand: #efe4cf;        /* champagne / sand band; warm grey 5.4:1, deep gold 4.9:1 on it */
  --foil: linear-gradient(135deg, #e9d3a0 0%, #c9a25e 52%, #9e7b3b 100%);           /* decoration: rules, chips, ribbon */
  --foil-text: linear-gradient(100deg, #a8853f 0%, #8e6c2e 55%, #7a5d26 100%);     /* text: lightest stop 3.2:1 on ivory */
  --fs-display: clamp(48px, 7.6vw, 104px);
  --fs-h1: clamp(40px, 5.4vw, 68px);
  --fs-h2: clamp(32px, 4vw, 50px);
  --shadow-float: 0 2px 4px rgba(58, 55, 51, .04), 0 18px 40px -18px rgba(58, 55, 51, .22), 0 60px 120px -40px rgba(122, 93, 38, .30);
  --shadow-card: 0 1px 2px rgba(58, 55, 51, .05), 0 14px 34px -18px rgba(58, 55, 51, .22);
}

/* Paper: a barely-there grain on the ivory (self-hosted 160 px tile). */
body { background: var(--bg) url('/img/texture/grain.png') repeat; }

/* Headings in a refined display serif; Inter stays for body, UI and small headings. */
h1, h2, .t-display, .h3like, .hero h1, .page-hero h1, .lost h1, .legal h1 { font-family: var(--serif); font-weight: 480; letter-spacing: -.02em; font-optical-sizing: auto; }
.hero h1 { font-size: var(--fs-display); line-height: 1.0; max-width: 12ch; }
.features h3, .mini .card h3, .plans .card h2, .show .copy h3, .card h3 { font-family: var(--serif); font-weight: 520; letter-spacing: -.01em; }

/* Gold foil text: solid deep gold everywhere, foil where background-clip:text works. Display sizes only. */
.foil { color: var(--gold); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .foil { background: var(--foil-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
}
.hero h1 .foil { font-style: normal; padding-bottom: .06em; }

/* Eyebrows: small caps with a fine foil rule before them. */
.eyebrow { font-weight: 600; letter-spacing: .18em; }
.eyebrow::before { content: ''; display: inline-block; width: 28px; height: 1px; margin: 0 12px 0 0; vertical-align: middle; background: var(--foil); }

/* Hero: champagne glow behind the headline and the product shot. */
.hero { position: relative; padding-top: var(--s10); background:
  radial-gradient(48% 34% at 50% 18%, rgba(233, 211, 160, .55), rgba(233, 211, 160, 0) 70%),
  radial-gradient(60% 40% at 50% 78%, rgba(233, 211, 160, .38), rgba(233, 211, 160, 0) 70%); }
.hero .lead { font-size: clamp(19px, 1.7vw, 22px); }
.hero-shot .shot { box-shadow: var(--shadow-float); transform: translateY(-2px); }

/* Device frame: a thin gold bookmark ribbon on the frame's top edge, echoing the logo. */
.shot::after, .frame::after {
  content: ''; position: absolute; top: -1px; right: 44px; width: 12px; height: 30px; background: var(--foil);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
@media (max-width: 640px) { .shot::after, .frame::after { right: 24px; width: 9px; height: 22px; } }

/* Section rhythm: sand bands between ivory, fine linen hairlines. */
.band { background: var(--sand) url('/img/texture/grain.png') repeat; border-color: #e3d6bc; }
.band .card, .band .features .feature { background: var(--bg); }

/* Gold numerals on principle rows. */
.principles { counter-reset: pr; }
.principles > div::before { counter-increment: pr; content: counter(pr, decimal-leading-zero); display: block; margin-bottom: var(--s3); font: 600 12px/1 var(--font); letter-spacing: .18em; color: var(--gold); }

/* Feature cards: cream, hairline border, soft shadow and a small lift on hover; icons in gold-foil chips. */
.features .feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: var(--s6) var(--s6) var(--s6); transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease); }
.features .feature:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); border-color: var(--line-strong); }
.features { gap: var(--s5); }
.icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); margin-bottom: var(--s5);
  background: radial-gradient(circle at 30% 25%, #fbf3e0, #ecd9ae 70%, #ddc08a); box-shadow: inset 0 0 0 1px rgba(158, 123, 59, .35), 0 4px 10px -6px rgba(122, 93, 38, .5); }
.icon svg { width: 22px; height: 22px; }
.card { box-shadow: 0 1px 2px rgba(58, 55, 51, .04); }

/* Buttons: rich graphite with a gold inner hairline; a tasteful lift on hover. Ivory text 9.4:1 on the lightest stop. */
.btn { background: #3a3733 linear-gradient(180deg, #45413c, #3a3733); border-color: #3a3733;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 94, .55), 0 8px 18px -10px rgba(58, 55, 51, .55);
  transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.btn:hover { background: #403c37 linear-gradient(180deg, #4d4842, #403c37); border-color: #403c37; transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(233, 211, 160, .75), 0 14px 26px -12px rgba(58, 55, 51, .6); }
.btn.secondary, .btn.ghost { background: rgba(251, 248, 242, .6); box-shadow: none; }
.btn.secondary:hover, .btn.ghost:hover { background: var(--bg); border-color: var(--gold-fill); box-shadow: 0 10px 22px -14px rgba(58, 55, 51, .45); }

/* Notices and the beta panel: foil rule, warm panel. */
.join .panel { background: var(--sand) url('/img/texture/grain.png') repeat; border-color: #e3d6bc; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.join .panel::before { content: ''; position: absolute; left: 50%; top: 0; width: 120px; height: 2px; transform: translateX(-50%); background: var(--foil); }

/* Footer: cream with a foil hairline on top. */
body > footer { position: relative; }
body > footer::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, #c9a25e 30%, #c9a25e 70%, transparent); opacity: .6; }

/* Motion: a gentle fade and rise of the page sections on load (CSS only). Off under prefers-reduced-motion
   (section 2 turns every animation off there). */
@keyframes f-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
main > *, .hero .wrap > *, .page-hero .wrap > * { animation: f-rise 700ms var(--ease) both; }
.hero .wrap > :nth-child(2), .page-hero .wrap > :nth-child(2) { animation-delay: 80ms; }
.hero .wrap > :nth-child(3), .page-hero .wrap > :nth-child(3) { animation-delay: 160ms; }
.hero .wrap > :nth-child(4), .page-hero .wrap > :nth-child(4) { animation-delay: 240ms; }
.hero .wrap > :nth-child(5) { animation-delay: 320ms; }
.hero-shot { animation: f-rise 800ms var(--ease) 360ms both; }
main > :nth-child(2) { animation-delay: 200ms; }
main > :nth-child(n+3) { animation-delay: 300ms; }
