/* Cleopatra Daily — www.cleopatradaily.app. Same palette and type as the app (src/ui/tokens). */

@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/CormorantGaramond_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url('fonts/CormorantGaramond_500Medium_Italic.ttf') format('truetype'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/CormorantGaramond_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/Inter_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/Inter_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/Inter_600SemiBold.ttf') format('truetype'); }

:root {
  --pearl: #FBF6EE;
  --porcelain: #FFFDF9;
  --champagne: #F4EADB;
  --line: #E8D8BE;
  --text: #1B1220;
  --muted: #6A5560;
  --accent: #7C5A1E;
  --gold: #C9A24E;
  --gold-bright: #D9B76A;
  --gold-light: #EED9A4;
  --royal: #0D3D33;
  --royal-deep: #062520;
  --royal-high: #1A6654;
  --on-royal: #F8F0E3;
  --on-royal-muted: #C8D5CB;
  --allure: #9C2F45;
  --bg: var(--pearl);
  --surface: var(--porcelain);
  --tint: var(--champagne);
  --gold-gradient: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-bright) 45%, #B98E3E 100%);
  --royal-gradient: linear-gradient(160deg, #134F41 0%, var(--royal) 45%, var(--royal-deep) 100%);
  --night: radial-gradient(120% 80% at 70% 0%, var(--royal-high) 0%, var(--royal) 48%, var(--royal-deep) 100%);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 24px;
  --column: 1160px;
  --reading: 720px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 10vw, 128px);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 40px -18px rgba(90, 63, 18, 0.22);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07120F;
    --surface: #0F201B;
    --tint: #0B1915;
    --line: #26443B;
    --text: #F8F0E3;
    --muted: #B8B1A4;
    --accent: #D9B76A;
    --allure: #E7A3AE;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 0.2s; }
a:hover { color: var(--allure); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-light); color: var(--royal-deep); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 16px; border-radius: 999px; z-index: 20; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: calc(var(--column) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.reading { max-width: calc(var(--reading) + 2 * var(--gutter)); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 37, 32, 0.95);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(201, 162, 78, 0.45);
  color: var(--on-royal);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-royal); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--gold-light); }
.brand img { width: 36px; height: 36px; }
.brand span { font: 600 12px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; }
.menu-inline { display: flex; gap: 4px; margin-left: auto; }
.menu-inline a, .menu-mobile nav a {
  color: var(--on-royal-muted); text-decoration: none; font: 500 14px/1 var(--sans);
  padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.menu-inline a:hover, .menu-inline a[aria-current="page"] { color: var(--gold-light); background: rgba(201, 162, 78, 0.1); }
.header-end { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(201, 162, 78, 0.35); border-radius: 999px; }
.lang a {
  color: var(--on-royal-muted); text-decoration: none; font: 600 11px/1 var(--sans); letter-spacing: 0.14em;
  padding: 0 12px; border-radius: 999px; min-height: 38px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.lang a[aria-current="true"] { background: var(--gold-gradient), var(--gold-bright); color: var(--royal-deep); }
.menu-mobile { display: none; position: relative; }
.menu-mobile summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(201, 162, 78, 0.45);
}
.menu-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 1.5px; background: var(--gold-light); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.burger { position: relative; }
.burger::before, .burger::after { content: ''; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.menu-mobile[open] .burger { background: transparent; }
.menu-mobile[open] .burger::before { transform: translateY(6px) rotate(45deg); }
.menu-mobile[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.menu-mobile nav {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 220px;
  display: grid; gap: 2px; padding: 10px;
  background: var(--royal-gradient), var(--royal); border: 1px solid rgba(201, 162, 78, 0.55); border-radius: 20px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}
.menu-mobile nav a { font-size: 16px; padding: 12px 16px; }
.menu-mobile nav a:hover { color: var(--gold-light); background: rgba(201, 162, 78, 0.1); }

/* ---------- Type ---------- */
.overline { display: flex; align-items: center; gap: 10px; font: 500 12px/1.4 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.overline img { width: 28px; height: 28px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 18px; letter-spacing: 0.002em; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 92px); }
h2 { font-size: clamp(34px, 4.8vw, 56px); }
h3 { font-size: clamp(24px, 2.4vw, 28px); font-weight: 600; line-height: 1.2; }
p { margin: 0 0 16px; text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); line-height: 1.7; }
.small { font-size: 14px; }
.text-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }

.ornament { display: flex; align-items: center; gap: 12px; color: var(--gold); margin: 22px 0 26px; max-width: 360px; font-size: 13px; letter-spacing: 0.3em; }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; }
.ornament::before { background: linear-gradient(to right, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(to left, transparent, var(--gold)); }
.ornament.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: 0.02em; text-decoration: none;
  border: 1px solid var(--gold); transition: transform 0.2s, box-shadow 0.2s, filter 0.2s, color 0.2s;
}
.button:hover { transform: translateY(-1px); }
.button.gold { background: var(--gold-gradient), var(--gold-bright); color: var(--royal-deep); box-shadow: 0 12px 30px -8px rgba(185, 142, 62, 0.55); }
.button.gold:hover { color: var(--royal-deep); filter: brightness(1.05); box-shadow: 0 16px 36px -8px rgba(185, 142, 62, 0.7); }
.button.outline { color: var(--on-royal); background: rgba(255, 255, 255, 0.02); }
.button.outline:hover { color: var(--gold-light); background: rgba(201, 162, 78, 0.08); }

.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 18px 8px 12px;
  border-radius: 14px; border: 1px solid rgba(201, 162, 78, 0.45); background: rgba(6, 37, 32, 0.55); color: var(--on-royal);
  font: 600 16px/1.1 var(--sans);
}
.store small { display: block; font: 500 10px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-royal-muted); }
.store-glyph { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--royal-deep); background: var(--gold-gradient), var(--gold-bright); font-size: 14px; }

/* ---------- Starry night ---------- */
.stars {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, var(--gold-light), transparent 60%),
    radial-gradient(1px 1px at 28% 62%, #fff, transparent 60%),
    radial-gradient(1.4px 1.4px at 46% 12%, var(--gold-light), transparent 60%),
    radial-gradient(1px 1px at 63% 78%, #fff, transparent 60%),
    radial-gradient(1.6px 1.6px at 78% 30%, var(--gold-light), transparent 60%),
    radial-gradient(1px 1px at 88% 66%, #fff, transparent 60%),
    radial-gradient(1.2px 1.2px at 6% 84%, var(--gold-light), transparent 60%),
    radial-gradient(1px 1px at 54% 44%, #fff, transparent 60%),
    radial-gradient(1.3px 1.3px at 94% 10%, var(--gold-light), transparent 60%),
    radial-gradient(1px 1px at 36% 90%, #fff, transparent 60%);
  background-size: 640px 520px;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.7; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--on-royal); padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 9vw, 120px); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero .overline { color: var(--gold-light); }
.hero h1 { font-style: italic; color: var(--on-royal); }
.hero .lead { color: var(--on-royal-muted); max-width: 560px; margin-bottom: 30px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.halo { position: absolute; width: min(120%, 100vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(217, 183, 106, 0.28) 0%, rgba(217, 183, 106, 0.08) 38%, transparent 65%); }

/* Phone mockup */
.phone {
  position: relative; width: min(320px, 78vw); aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 10px;
  background: linear-gradient(145deg, #3c5a50, #061a15 40%, #2b4a40); border: 1px solid rgba(238, 217, 164, 0.5);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.4) inset;
  transform: rotate(-3deg);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-10px); } }
.phone-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: var(--pearl); color: #1B1220; padding: 34px 14px 0; display: flex; flex-direction: column; gap: 10px; font-family: var(--sans); }
.phone-notch { position: absolute; top: 10px; left: 50%; width: 86px; height: 22px; transform: translateX(-50%); border-radius: 999px; background: #030c0a; }
.app-band { border-radius: 22px; padding: 16px 16px 12px; background: var(--royal-gradient), var(--royal); border: 1px solid var(--gold); color: var(--on-royal); }
.app-over { font: 500 8px/1.3 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 6px; }
.app-greeting { font: italic 500 25px/1.05 var(--serif); margin: 0; }
.app-orn { color: var(--gold); font-size: 8px; letter-spacing: 0.4em; text-align: center; margin: 8px 0 6px; }
.app-summary { font-size: 11px; color: var(--on-royal-muted); margin: 0; }
.app-slot { font: 500 8px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: #6A5560; margin: 6px 2px 0; }
.app-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.app-plan li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #FFFDF9; border: 1px solid #E8D8BE; box-shadow: 0 6px 14px -8px rgba(90, 63, 18, 0.3); }
.app-plan li.done { border-color: var(--gold); }
.app-plan b { display: block; font: 500 11.5px/1.25 var(--sans); }
.app-plan li.done b { text-decoration: line-through; text-decoration-color: rgba(27, 18, 32, 0.4); }
.app-plan small { font-size: 9.5px; color: #6A5560; }
.tick { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 1.3px solid var(--gold); display: grid; place-items: center; font-size: 10px; color: var(--royal-deep); }
.done .tick { background: var(--gold-gradient), var(--gold-bright); }
.app-lesson { border-radius: 16px; padding: 10px 12px; background: var(--royal-gradient), var(--royal); border: 1px solid var(--gold); color: var(--on-royal); }
.app-lesson small { display: block; font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }
.app-lesson b { font: 600 15px/1.2 var(--serif); }
.app-fab { align-self: flex-end; margin-top: auto; font: 500 8px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-royal); background: var(--royal-gradient), var(--royal); border: 1px solid var(--gold); padding: 9px 12px; border-radius: 999px; box-shadow: 0 8px 18px -6px rgba(6, 37, 32, 0.6); }
.app-tabs { display: flex; justify-content: space-around; align-items: center; margin: 0 -14px; padding: 12px 18px 16px; background: var(--royal); border-top: 1px solid var(--gold); }
.app-tabs i { width: 16px; height: 16px; border-radius: 5px; border: 1.3px solid var(--on-royal-muted); opacity: 0.7; }
.app-tabs i.on { border-color: var(--gold-bright); background: rgba(217, 183, 106, 0.25); opacity: 1; }

/* Proof strip */
.proof { background: var(--royal-deep); color: var(--on-royal-muted); border-bottom: 1px solid rgba(201, 162, 78, 0.3); }
.proof ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(20px, 4vw, 48px); padding-top: 18px; padding-bottom: 18px; margin: 0 auto; }
.proof li { display: flex; align-items: center; gap: 10px; font: 500 13px/1.4 var(--sans); letter-spacing: 0.06em; }
.proof span { color: var(--gold); font-size: 11px; }

/* ---------- Sections ---------- */
section { position: relative; padding: var(--section) 0; }
section.tinted { background: var(--tint); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head .overline { justify-content: center; }
.section-head .lead { margin: 0; }

.features { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow); transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.feature::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(201, 162, 78, 0.7), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s;
}
.feature:hover { transform: translateY(-4px); }
.feature:hover::before { opacity: 1; }
.feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.feature-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: radial-gradient(circle at 30% 25%, rgba(238, 217, 164, 0.55), rgba(201, 162, 78, 0.12)); border: 1px solid rgba(201, 162, 78, 0.5); }
.roman { font: italic 500 22px/1 var(--serif); color: var(--gold); }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; }

/* Night timeline */
.night { overflow: hidden; background: var(--night); color: var(--on-royal); }
.night .overline { color: var(--gold-light); }
.night .lead { color: var(--on-royal-muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); position: relative; }
.timeline::before { content: ''; position: absolute; top: 28px; left: 8%; right: 8%; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.moment { position: relative; text-align: center; padding: 0 8px; }
.moment-dot { position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--royal-deep); background: var(--gold-gradient), var(--gold-bright); box-shadow: 0 0 0 8px rgba(6, 37, 32, 0.9), 0 0 32px rgba(217, 183, 106, 0.45); }
.moment .overline { justify-content: center; margin-bottom: 8px; }
.moment h3 { color: var(--on-royal); }
.moment p:last-child { color: var(--on-royal-muted); margin: 0; }

/* Quote */
.quote { text-align: center; }
.quote-mark { display: block; color: var(--gold); font-size: 28px; margin-bottom: 18px; }
.quote blockquote { margin: 0 auto; max-width: 900px; font: italic 500 clamp(32px, 4.8vw, 58px)/1.14 var(--serif); text-wrap: balance; }
.quote cite { display: block; margin-top: 26px; font: 500 12px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); font-style: normal; }

/* Privacy and Premium */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.royal-card {
  position: relative; overflow: hidden;
  background: var(--royal-gradient), var(--royal); color: var(--on-royal);
  border: 1px solid var(--gold); border-radius: 32px; padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 40px 70px -30px rgba(6, 37, 32, 0.65);
}
.royal-card::after { content: '✧'; position: absolute; right: 26px; top: 20px; color: var(--gold); font-size: 22px; }
.royal-card .overline { color: var(--gold-light); }
.royal-card h2 { color: var(--on-royal); }
.royal-card p, .royal-card li { color: var(--on-royal-muted); }
.list-check { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.list-check li { padding-left: 32px; position: relative; }
.list-check li::before { content: '✦'; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 14px; }

/* Closing */
.closing { text-align: center; background: radial-gradient(70% 90% at 50% 0%, rgba(238, 217, 164, 0.35), transparent 70%); }
.closing .crest { width: 112px; margin: 0 auto 24px; filter: drop-shadow(0 18px 36px rgba(201, 162, 78, 0.35)); }
.closing h2 { font-style: italic; }
.closing .stores { justify-content: center; margin: 0 0 40px; }
.closing .store { background: var(--royal-gradient), var(--royal); }
.notice { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 14px; }

/* Reveal on scroll (site.js adds .js) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Documents ---------- */
.doc-hero { position: relative; overflow: hidden; background: var(--night); color: var(--on-royal); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--gold); }
.doc-hero h1 { font-size: clamp(40px, 6vw, 68px); color: var(--on-royal); }
.doc-hero .overline { color: var(--gold-light); }
.doc-hero p { color: var(--on-royal-muted); margin: 0; }
.doc { padding: clamp(36px, 6vw, 72px) 0 var(--section); }
.doc-grid { display: grid; grid-template-columns: 260px minmax(0, var(--reading)); gap: clamp(32px, 5vw, 72px); justify-content: center; align-items: start; }
.toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; }
.toc details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 18px 14px; margin: 0; }
.toc summary { font: 500 12px/1.4 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); padding: 14px 0 8px; }
.toc summary::after { content: none; }
/* Headings carry their own numbers, so the list adds none. */
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.doc h2 { font-size: clamp(28px, 3vw, 34px); margin-top: 52px; padding-top: 8px; }
.doc h2::before { content: '✦'; display: block; font: 14px/1 var(--sans); color: var(--gold); margin-bottom: 14px; }
.doc-body > h2:first-child, .reading > h2:first-child { margin-top: 0; }
.doc h3 { font-size: 22px; margin-top: 30px; }
.doc ul { padding-left: 22px; margin: 0 0 18px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--gold); }
.doc strong { font-weight: 600; }
.doc .card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin: 0 0 18px; box-shadow: var(--shadow); }
.doc .card p:last-child { margin: 0; }
.doc .notice { margin: 24px 0; max-width: none; border-top: 0; border-left: 2px solid var(--gold); padding: 4px 0 4px 18px; }
.reading details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; margin-bottom: 12px; transition: border-color 0.2s; }
.reading details[open] { border-color: var(--gold); }
.reading summary { cursor: pointer; padding: 18px 0; font: 600 16px/1.45 var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.reading summary::-webkit-details-marker { display: none; }
.reading summary::after { content: '✧'; color: var(--gold); flex-shrink: 0; }
.reading details[open] summary::after { content: '✦'; }
.reading details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--royal-deep); color: var(--on-royal-muted); padding: clamp(48px, 7vw, 80px) 0 40px; font-size: 14px; border-top: 1px solid var(--gold); }
.site-footer a { color: var(--on-royal); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); margin-bottom: 40px; }
.footer-grid h4 { font: 500 12px/1.4 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid li a { overflow-wrap: anywhere; }
.fineprint { border-top: 1px solid rgba(201, 162, 78, 0.3); padding-top: 22px; font-size: 13px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu-inline { display: none; }
  .menu-mobile { display: block; }
  .header-end { margin-left: auto; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-grid { grid-template-columns: minmax(0, var(--reading)); }
  .toc { position: static; max-height: none; }
  .toc details:not([open]) { padding-bottom: 4px; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero .overline { justify-content: center; }
  .hero .ornament { margin-left: auto; margin-right: auto; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .cta-row, .hero .stores { justify-content: center; }
  .hero-visual { margin-top: 12px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 460px; margin: 0 auto; }
  .timeline::before { top: 0; bottom: 0; left: 28px; right: auto; width: 1px; height: auto; background: linear-gradient(to bottom, transparent, var(--gold), transparent); }
  .moment { text-align: left; padding-left: 84px; min-height: 56px; }
  .moment-dot { position: absolute; left: 0; top: 0; margin: 0; }
  .moment .overline { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .brand span { letter-spacing: 0.2em; font-size: 11px; }
  .button { width: 100%; }
  .cta-row { flex-direction: column; }
  .store { flex: 1 1 200px; justify-content: flex-start; }
  .phone { width: min(290px, 80vw); }
  .royal-card { border-radius: 26px; }
}

@media (max-width: 440px) {
  /* The crest alone carries the brand next to the language switch and the menu. */
  .brand span { display: none; }
  .site-header .wrap { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .toc, .stars { display: none; }
  .doc-hero { background: none; color: #000; border: 0; }
  .doc-hero h1, .doc-hero p { color: #000; }
}
