/* Mystic Pyramid — landing page styles.
   Tokens come from the Classical design system (project/_ds/classical-…/styles.css),
   with the page's own cream / gold / copper palette layered on top. */

:root {
  --color-bg: #f6eedf;
  --color-surface: #eae9e9;
  --color-text: #6b3d22;
  --color-divider: rgba(160, 98, 58, 0.28);

  --color-accent: #b68235;
  --color-accent-700: #7d5411;
  --color-accent-900: #3a270d;

  --gold: #a8732a;
  --gold-deep: #8f5f22;
  --copper: #9a5a33;

  --font-display: "Bellefair", "Cormorant Garamond", serif;
  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Assistant", system-ui, sans-serif;

  --radius-md: 4px;
  --edge: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  text-wrap: pretty;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--color-accent-700); text-decoration-color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-900); }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.page { max-width: 1100px; margin: 0 auto; }

/* — shared pieces — */
.rule { height: 1px; border: 0; margin: 0 var(--edge); background: var(--color-divider); }
.section { padding: 64px var(--edge); }
.prose { max-width: 640px; margin: 0 auto; }
.prose p { margin: 14px 0 0; text-align: justify; }
.prose .lead { margin-top: 18px; }
.kicker { display: block; font-size: 13px; letter-spacing: 0.08em; color: var(--color-accent-700); margin-bottom: 10px; }
.h2 {
  font-family: var(--font-display); font-weight: 400; color: var(--gold);
  font-size: clamp(28px, 6vw, 40px); line-height: 1.2; margin: 0;
}
.muted { color: color-mix(in srgb, var(--color-text) 78%, transparent); }

.plate {
  margin: 0;
  filter: sepia(0.22) saturate(0.82) contrast(1.05);
  border: 6px solid var(--color-surface);
  outline: 1px solid var(--color-divider);
}
.plate img, .plate video { display: block; width: 100%; height: auto; object-fit: cover; }

/* — buttons (Classical .btn, set in Assistant) — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 9.2px 16.56px;
  font-family: var(--font-body); font-weight: 500; font-size: 14px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-md);
}
.btn-primary { color: var(--gold-deep); border-color: var(--color-accent); }
.btn-primary:hover { color: var(--gold-deep); background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.btn-ghost { color: var(--gold-deep); padding-inline: 4.6px; }
.btn-ghost:hover { color: var(--gold-deep); background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-soft { background: rgba(246, 238, 223, 0.6); }
.btn-lg { min-height: 50px; padding-inline: 28px; font-size: 16px; }

/* — hero — */
.hero {
  position: relative; min-height: 92vh; min-height: 92svh;
  display: flex; flex-direction: column;
  background-image:
    linear-gradient(to bottom, rgba(246, 238, 223, 0.55) 0%, rgba(246, 238, 223, 0.78) 45%, rgba(246, 238, 223, 0.96) 100%),
    url("assets/grove.jpg");
  background-size: cover; background-position: 50% 40%;
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--edge);
  border-bottom: 1px solid var(--color-divider);
  background: rgba(246, 238, 223, 0.85);
}
.brand {
  font-family: var(--font-display); font-size: 17px; letter-spacing: 0.14em;
  text-transform: uppercase; direction: ltr; color: var(--gold-deep);
}
.hero-body {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px var(--edge) 64px;
}
.hero-logo {
  display: block; width: min(280px, 70vw); height: auto; aspect-ratio: 1; object-fit: cover;
  mix-blend-mode: multiply; margin: -30px auto -50px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400; color: var(--gold-deep);
  font-size: clamp(32px, 8vw, 50px); line-height: 1.2; letter-spacing: -0.01em;
  margin: 0; max-width: 16ch;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }

/* — copper benefits — */
.benefits {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 0 20px; max-width: 900px; margin: 40px auto 0;
  border-top: 1px solid var(--color-divider);
}
.benefit {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 28px 12px; border-bottom: 1px solid var(--color-divider);
}
.benefit-icon {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border: 1px solid var(--color-accent); border-radius: 50%; color: var(--gold);
}
.benefit h3 { font-family: var(--font-display); font-weight: 400; font-size: 23px; line-height: 1.2; color: var(--copper); margin: 0; }
.benefit p { margin: 0; font-size: 15.5px; color: color-mix(in srgb, var(--color-text) 80%, transparent); }

.egypt-photo { margin: 28px 0 0; }
.egypt-photo img { aspect-ratio: 16 / 9; }
.egypt-photo figcaption { margin-top: 8px; font-size: 12.5px; color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.egypt-photo figcaption a { color: inherit; }

/* — models — */
.models-intro { max-width: 640px; margin: 0 auto 36px; }
.models-intro p { margin: 14px 0 0; }
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; }
.model {
  display: flex; flex-direction: column; gap: 14px; padding: 16px;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.model .plate img { aspect-ratio: 4 / 3; }
.model-diagram { margin: 4px 0 0; text-align: center; color: var(--gold); }
.model-diagram svg { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto; overflow: visible; }
.model-diagram .front { stroke-width: 2.2; }
.model-diagram .back { stroke-width: 1.2; opacity: 0.55; }
.model-diagram .ground { stroke-width: 1.2; opacity: 0.4; }
.model-diagram text { fill: var(--copper); stroke: none; font: 500 11px var(--font-body); }
.model-diagram figcaption { margin-top: 4px; font-size: 13px; letter-spacing: 0.04em; color: var(--color-accent-700); }
.model-head { padding: 0 4px; }
.models { max-width: 900px; margin: 0 auto; }
.model h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.15;
  margin: 0; color: var(--gold);
}
.model-sub, .model-spec { font-size: 14px; color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.model p { margin: 0; padding: 0 4px; font-size: 15.5px; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.model-facts { margin: 0; padding: 0 4px; display: flex; flex-direction: column; gap: 10px; }
.model-facts dt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--copper); }
.model-facts dt svg { color: var(--gold); flex: none; }
.model-facts dd { margin: 2px 0 0; font-size: 15px; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.model-spec { padding: 10px 4px 0; border-top: 1px solid var(--color-divider); }
.model .btn { display: flex; min-height: 48px; margin-top: auto; }

/* — how to use — */
.usage {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px; align-items: center; max-width: 900px; margin: 0 auto;
}
.steps { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--color-divider); }
.steps li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--color-divider); font-size: 15.5px; }
.steps .num {
  font-family: var(--font-heading); font-size: 20px; line-height: 1.4; color: var(--color-accent);
  font-feature-settings: "tnum" 1; min-width: 18px;
}
.steps strong { font-weight: 600; color: var(--copper); }
.steps .num { display: flex; align-items: center; height: 1.75em; min-width: 14px; }
.virtues-intro { margin: 14px 0 0; text-align: justify; }
.usage .plate { max-width: 380px; width: 100%; justify-self: center; }
.usage video { aspect-ratio: 9 / 16; }
.video { position: relative; }
.sound-toggle {
  position: absolute; bottom: 14px; inset-inline-start: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  font: 500 14px/1 var(--font-body); color: var(--gold-deep);
  background: rgba(246, 238, 223, 0.88); border: 1px solid var(--color-accent); border-radius: 999px;
  cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.sound-toggle:hover { background: rgba(246, 238, 223, 1); }
.sound-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sound-toggle[hidden] { display: none; }
.sound-toggle .wave { display: none; }
.sound-toggle[aria-pressed="true"] .wave { display: inline; }
.sound-toggle[aria-pressed="true"] .mute { display: none; }

/* — order — */
.order {
  margin: 0 var(--edge) 48px; padding: 56px clamp(20px, 5vw, 48px);
  border: 1px solid var(--color-accent); border-radius: var(--radius-md); text-align: center;
}
.order p { max-width: 40ch; margin: 14px auto 0; }
.order .btn { min-height: 52px; padding: 0 28px; margin-top: 28px; font-size: 17px; }

/* — footer — */
.footer {
  padding: 24px var(--edge) 40px; border-top: 1px solid var(--color-divider);
  font-size: 13px; color: color-mix(in srgb, var(--color-text) 82%, transparent);
}
.footer a { color: inherit; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.footer-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; }
.link-btn {
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit;
  text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 3px;
}
.link-btn:focus-visible, .btn:focus-visible, .sound-toggle:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

/* — accessibility helpers — */
.skip-link {
  position: absolute; top: 8px; inset-inline-start: 8px; z-index: 100;
  padding: 10px 16px; background: var(--color-bg); color: var(--gold-deep);
  border: 1px solid var(--color-accent); border-radius: var(--radius-md);
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* — entrance animations (only when JS is on; content stays visible otherwise) — */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), translate 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
  transition-delay: var(--d, 0ms);
}
.js .reveal-zoom { transform: translateY(20px) scale(0.96); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero-logo.reveal { transform: translateY(-14px) scale(0.92); }
.js .hero-logo.reveal.is-visible { transform: none; }
.benefit-icon { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s; }
.benefit:hover .benefit-icon { transform: translateY(-4px) rotate(-6deg); background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.model { transition: box-shadow 0.4s, translate 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.model:hover { translate: 0 -4px; box-shadow: 0 14px 34px color-mix(in srgb, #6b3d22 14%, transparent); }
.model .plate { overflow: hidden; }
.model .plate img { transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.model:hover .plate img { transform: scale(1.04); }
.hero-logo { animation: float 7s ease-in-out 1.4s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes sway { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
.model-diagram .front, .model-diagram .back, .model-diagram .ground { stroke-dasharray: 400; stroke-dashoffset: 0; }
.js .model.reveal .model-diagram .front,
.js .model.reveal .model-diagram .back,
.js .model.reveal .model-diagram .ground { stroke-dashoffset: 400; transition: stroke-dashoffset 1.8s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--d, 0ms) + 250ms); }
.js .model.reveal.is-visible .model-diagram path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-zoom { opacity: 1; transform: none; transition: none; }
  .hero-logo,   .js .model.reveal .model-diagram path { stroke-dashoffset: 0; transition: none; }
  .model, .model .plate img, .benefit-icon { transition: none; }
}

/* — cookie banner — */
.cookie-banner {
  position: fixed; z-index: 50; inset-inline: 12px; bottom: 12px;
  max-width: 560px; margin-inline: auto;
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 18px; background: #fbf6ec; color: var(--color-text);
  border: 1px solid var(--color-accent); border-radius: 8px;
  box-shadow: 0 16px 40px color-mix(in srgb, #6b3d22 22%, transparent);
  font-size: 14.5px; line-height: 1.6;
  opacity: 0; transform: translateY(20px); transition: opacity 0.4s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.is-open { opacity: 1; transform: none; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner strong { color: var(--gold-deep); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1 1 140px; }
.btn-solid { background: var(--gold-deep); border-color: var(--gold-deep); color: #fbf6ec; }
.btn-solid:hover { background: #7a4f1a; color: #fbf6ec; }

/* — legal pages — */
.legal-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--edge); border-bottom: 1px solid var(--color-divider); }
.legal-nav .brand { text-decoration: none; }
.legal { max-width: 720px; margin: 0 auto; padding: 48px var(--edge) 64px; }
.legal h1 { font-family: var(--font-display); font-weight: 400; color: var(--gold-deep); font-size: clamp(30px, 7vw, 42px); line-height: 1.2; margin: 0 0 6px; }
.legal .updated { font-size: 13px; color: color-mix(in srgb, var(--color-text) 82%, transparent); margin: 0 0 28px; }
.legal h2 { font-family: var(--font-display); font-weight: 400; color: var(--gold-deep); font-size: 24px; line-height: 1.3; margin: 36px 0 8px; }
.legal p, .legal li { font-size: 16px; }
.legal p { margin: 10px 0 0; }
.legal ul, .legal ol { margin: 10px 0 0; padding-inline-start: 22px; }
.legal li + li { margin-top: 6px; }
.legal .fill { background: color-mix(in srgb, var(--color-accent) 18%, transparent); padding: 0 4px; border-radius: 3px; }
.legal .box { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
