/* ==========================================================================
   Level Press — Design System
   Premium publishing aesthetic: deep navy, gold foil, editorial serif.
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-deep: #071527;
  --navy-soft: #12294a;
  --gold: #c8a44d;
  --gold-bright: #e3c98a;
  --sky: #4f9dff;

  --bg: #ffffff;
  --bg-alt: #f5f6f9;
  --bg-card: #ffffff;
  --ink: #16233a;
  --ink-soft: #4b586e;
  --ink-faint: #8d97a8;
  --line: #e5e8ee;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --hero-grad: radial-gradient(1200px 600px at 75% -10%, #1a3a66 0%, var(--navy) 55%, var(--navy-deep) 100%);
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 2px 8px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 2px 6px rgba(11, 31, 58, 0.07), 0 12px 32px rgba(11, 31, 58, 0.1);
  --shadow-lg: 0 8px 24px rgba(11, 31, 58, 0.12), 0 24px 64px rgba(11, 31, 58, 0.16);
  --gold-foil: linear-gradient(115deg, #a8842e 0%, #e3c98a 40%, #c8a44d 60%, #f0dfae 85%, #b08f3a 100%);

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0a1626;
  --bg-alt: #0d1b30;
  --bg-card: #10223c;
  --ink: #e9edf4;
  --ink-soft: #a8b4c8;
  --ink-faint: #6d7c95;
  --line: #1d3253;
  --nav-bg: rgba(10, 22, 38, 0.82);
  --hero-grad: radial-gradient(1200px 600px at 75% -10%, #16345c 0%, #081426 60%, #050d1a 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4), 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h4, h5 { font-weight: 600; line-height: 1.3; }

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- Typography helpers ---------- */

.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }

.section-title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin: 0.85rem 0 0.9rem; }
.section-lede { color: var(--ink-soft); max-width: 56ch; font-size: 1.0625rem; }

.center { text-align: center; }
.center .eyebrow::before { display: none; }
.center .section-lede { margin-inline: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold-foil); background-size: 200% 100%; color: #241a05;
  box-shadow: 0 6px 18px rgba(200, 164, 77, 0.35);
}
.btn-gold:hover { box-shadow: 0 10px 26px rgba(200, 164, 77, 0.5); background-position: 90% 0; }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); box-shadow: var(--shadow-md); }
[data-theme="dark"] .btn-navy { background: var(--sky); color: #06162b; }

.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.nav {
  display: flex; align-items: center; gap: 1.5rem;
  height: 72px;
}

.brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink);
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(200, 164, 77, 0.35), 0 1px 4px rgba(11, 31, 58, 0.18);
}

.nav-links { display: flex; align-items: center; gap: 1.7rem; margin-left: auto; list-style: none; padding: 0; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: 0.9375rem; position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink-soft);
  display: grid; place-items: center;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav-cta { margin-left: 0.4rem; }

.menu-btn { display: none; }

@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; z-index: 99;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.25rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.8rem 0; font-size: 1.05rem; }
  .menu-btn { display: grid; }
  .nav-cta { display: none; }
}

/* ---------- Search overlay ---------- */

.search-overlay {
  position: fixed; inset: 0; z-index: 150; display: none;
  background: rgba(7, 21, 39, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 12vh 1.25rem 0;
}
.search-overlay.open { display: block; animation: fadeIn 0.2s ease; }
.search-panel {
  max-width: 620px; margin: 0 auto; background: var(--bg-card);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid var(--line);
  animation: slideUp 0.3s var(--ease);
}
.search-panel input {
  width: 100%; border: 0; background: transparent; padding: 1.15rem 1.4rem;
  font-size: 1.1rem; outline: none; border-bottom: 1px solid var(--line);
}
.search-results { max-height: 52vh; overflow: auto; padding: 0.5rem; }
.search-results a {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0.9rem;
  border-radius: 10px; color: var(--ink);
}
.search-results a:hover { background: var(--bg-alt); text-decoration: none; }
.search-results .kind {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); flex: none; width: 52px;
}
.search-results .hint { padding: 1rem 1.2rem; color: var(--ink-faint); font-size: 0.9375rem; }

/* ---------- Hero ---------- */

.hero {
  background: var(--hero-grad);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(4.5rem, 9vw, 7.5rem);
  position: relative; z-index: 1;
}
.hero .eyebrow { color: var(--gold-bright); }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem); margin: 1rem 0 1.2rem; color: #fff;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero p.sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c3d0e4; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }
.hero-note { margin-top: 1.4rem; font-size: 0.875rem; color: #8fa3c0; display: flex; align-items: center; gap: 0.5rem; }
.hero-note .stars { color: var(--gold-bright); letter-spacing: 2px; }

/* Hero video */
.hero-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(227, 201, 138, 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(255, 255, 255, 0.04);
  max-width: 560px; margin-inline: auto; align-self: center;
}
.hero-media::after {           /* subtle gold sheen along the top edge */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 201, 138, 0.7), transparent);
}
.hero-video { display: block; width: 100%; height: auto; }

/* Desktop: align video top with the headline and bottom with the CTA buttons */
@media (min-width: 881px) {
  .hero-media { max-width: none; align-self: start; margin: 46px 0 0; height: 388px; }
  .hero-video { height: 100%; object-fit: cover; }
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ---------- Book covers (pure CSS) ---------- */

.cover {
  aspect-ratio: 5 / 7; width: 100%; border-radius: 6px 12px 12px 6px;
  background: linear-gradient(150deg, var(--cover-a, #12294a) 0%, var(--cover-b, #0b1f3a) 70%);
  color: #f5ead0; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 9% 10%;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cover::before {                    /* spine highlight */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%;
  background: linear-gradient(90deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 60%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.cover::after {                     /* gold frame */
  content: ""; position: absolute; inset: 6%; border: 1px solid rgba(227, 201, 138, 0.55);
  border-radius: 3px; pointer-events: none;
}
.cover-pub {
  font-family: var(--sans); font-size: clamp(6px, 0.55em, 11px); font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-bright);
  text-align: center;
}
.cover-title {
  font-family: var(--serif); font-weight: 600; text-align: center;
  font-size: clamp(11px, 1.15em, 26px); line-height: 1.2; text-wrap: balance;
}
.cover-orn { display: flex; align-items: center; justify-content: center; gap: 6%; color: var(--gold-bright); }
.cover-orn::before, .cover-orn::after { content: ""; height: 1px; width: 18%; background: currentColor; opacity: 0.7; }
.cover-orn svg { width: 14%; height: auto; }
.cover-series {
  font-family: var(--sans); font-size: clamp(5px, 0.5em, 10px); letter-spacing: 0.18em;
  text-transform: uppercase; text-align: center; color: rgba(245, 234, 208, 0.75);
}

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 640px) { .section-head-row { flex-direction: column; align-items: flex-start; } }

/* Trust bar */
.trust-bar { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: 1.4rem 0;
}
.trust-item {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); text-align: center;
}
.trust-item svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.trust-item .stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
@media (max-width: 760px) { .trust-inner { grid-template-columns: repeat(2, 1fr); row-gap: 1.1rem; } }

/* ---------- Product cards ---------- */

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.product-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-card:hover .cover { transform: rotate(-1.2deg) translateY(-4px); box-shadow: var(--shadow-lg); }

.product-card .cover { width: 62%; margin: 0.4rem auto 1.4rem; }
.product-card h3 { font-size: 1.25rem; margin-bottom: 0.45rem; }
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { text-decoration: none; color: var(--gold); }
.product-card .desc { color: var(--ink-soft); font-size: 0.9375rem; flex: 1; }
.product-card .meta { display: flex; align-items: center; gap: 0.6rem; margin: 1rem 0 1.1rem; }
.price { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.badge {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.28rem 0.65rem; border-radius: 999px;
  background: rgba(200, 164, 77, 0.14); color: #96742a;
}
[data-theme="dark"] .badge { color: var(--gold-bright); }
.badge-sky { background: rgba(79, 157, 255, 0.14); color: #2f7fe0; }
[data-theme="dark"] .badge-sky { color: #8dbfff; }
.card-actions { display: flex; gap: 0.6rem; }
.card-actions .btn { flex: 1; padding-inline: 0.5rem; }

/* ---------- Feature grid (Why choose) ---------- */

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.feature {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1.1rem;
  background: var(--navy); color: var(--gold-bright);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(227, 201, 138, 0.4);
}
[data-theme="dark"] .feature-icon { background: rgba(200, 164, 77, 0.14); }
.feature-icon svg { width: 21px; height: 21px; }
.feature h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; margin-bottom: 0.4rem; }
.feature p { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Testimonials ---------- */

.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.testimonial {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem 1.8rem; display: flex; flex-direction: column; gap: 1rem;
  position: relative;
}
.testimonial::before {
  content: "“"; position: absolute; top: 0.4rem; right: 1.4rem;
  font-family: var(--serif); font-size: 4.5rem; line-height: 1; color: var(--gold);
  opacity: 0.22;
}
.testimonial .stars { color: var(--gold); letter-spacing: 3px; }
.testimonial blockquote { font-size: 1rem; color: var(--ink); flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 0.8rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--navy); color: var(--gold-bright);
  display: grid; place-items: center; font-weight: 600; font-size: 0.9rem;
  font-family: var(--serif);
}
.testimonial .who strong { display: block; font-size: 0.9375rem; }
.testimonial .who span { font-size: 0.8125rem; color: var(--ink-faint); }

/* ---------- Blog cards ---------- */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.post-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-thumb {
  aspect-ratio: 16 / 8.5; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--thumb-a, #12294a), var(--thumb-b, #0b1f3a));
  color: var(--gold-bright);
}
.post-thumb svg { width: 40px; height: 40px; opacity: 0.9; }
.post-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.post-meta { font-size: 0.8125rem; color: var(--ink-faint); display: flex; gap: 0.6rem; align-items: center; }
.post-meta .cat { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.71875rem; }
.post-card h3 { font-size: 1.2rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--gold); text-decoration: none; }
.post-card p { color: var(--ink-soft); font-size: 0.9375rem; flex: 1; }
.read-more { font-weight: 600; font-size: 0.875rem; color: var(--sky); }

/* ---------- Newsletter ---------- */

.newsletter {
  background: var(--hero-grad); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: center;
}
.newsletter::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; border: 1px solid rgba(227, 201, 138, 0.35);
}
.newsletter h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0.8rem 0 0.7rem; }
.newsletter p { color: #c3d0e4; max-width: 48ch; }
.newsletter form { display: flex; gap: 0.7rem; flex-wrap: wrap; position: relative; z-index: 1; }
.newsletter input[type="email"] {
  flex: 1; min-width: 220px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1); color: #fff; padding: 0.9rem 1.4rem;
}
.newsletter input::placeholder { color: #93a7c4; }
.newsletter .fine { font-size: 0.8125rem; color: #8fa3c0; margin-top: 0.9rem; }
.form-success { display: none; font-weight: 600; color: var(--gold-bright); padding: 0.6rem 0; }
@media (max-width: 820px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: #9db0cc; margin-top: clamp(3rem, 7vw, 5rem); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { box-shadow: 0 0 0 1px rgba(200, 164, 77, 0.5); }
.footer-tagline { margin-top: 1rem; font-size: 0.9375rem; max-width: 30ch; }
.footer-col h4 {
  color: #fff; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: #9db0cc; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--gold-bright); text-decoration: none; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2a4166;
  display: grid; place-items: center; color: #9db0cc; transition: all 0.25s;
}
.footer-social a:hover { color: var(--navy-deep); background: var(--gold); border-color: var(--gold); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid #1a2f50; padding: 1.4rem 0; font-size: 0.8438rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
@media (max-width: 880px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { padding: 1.1rem 0 0; font-size: 0.8438rem; color: var(--ink-faint); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.45rem; opacity: 0.5; }
.breadcrumbs a { color: var(--ink-faint); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--ink-soft); }

/* ---------- Page hero (interior pages) ---------- */

.page-hero { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 0.85rem 0 0.8rem; }
.page-hero .section-lede { font-size: 1.1rem; }

/* ---------- Catalogue toolbar ---------- */

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem;
  padding: 1.1rem 0 2rem;
}
.toolbar .search-box {
  display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 220px;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.1rem;
  background: var(--bg-card); color: var(--ink-faint);
}
.toolbar .search-box input { border: 0; outline: none; background: none; width: 100%; color: var(--ink); }
.toolbar .search-box svg { width: 18px; height: 18px; flex: none; }
.toolbar select {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 2.2rem 0.6rem 1.1rem;
  background: var(--bg-card); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238d97a8' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.55rem; padding-bottom: 2rem; }
.chip {
  border: 1px solid var(--line); background: var(--bg-card); color: var(--ink-soft);
  border-radius: 999px; padding: 0.45rem 1.05rem; font-size: 0.875rem; font-weight: 500;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-theme="dark"] .chip.active { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.results-count { font-size: 0.875rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.empty-state { text-align: center; color: var(--ink-soft); padding: 3rem 0; }

/* ---------- Product detail ---------- */

.product-hero {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.product-hero .cover-wrap { position: sticky; top: 100px; }
.product-hero .cover { max-width: 380px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.product-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0.8rem 0 1rem; }
.product-hero .lede { font-size: 1.1rem; color: var(--ink-soft); }
.buy-box {
  margin-top: 1.6rem; padding: 1.5rem 1.6rem; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow-sm);
}
.buy-box .price-row { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1.1rem; }
.buy-box .price { font-size: 2rem; }
.buy-box .vat { font-size: 0.8125rem; color: var(--ink-faint); }
.buy-box .btn { width: 100%; }
.buy-perks { list-style: none; padding: 0; margin-top: 1.2rem; display: grid; gap: 0.5rem; }
.buy-perks li { display: flex; gap: 0.6rem; align-items: center; font-size: 0.875rem; color: var(--ink-soft); }
.buy-perks svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
@media (max-width: 820px) { .product-hero { grid-template-columns: 1fr; } .product-hero .cover-wrap { position: static; } }

.detail-section { padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line); }
.detail-section h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.2rem; }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.9rem; }
.learn-item { display: flex; gap: 0.8rem; align-items: flex-start; }
.learn-item svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 0.2rem; }
.learn-item p { color: var(--ink-soft); font-size: 0.9688rem; }
.learn-item strong { color: var(--ink); display: block; }

.toc-list { list-style: none; padding: 0; counter-reset: toc; max-width: 640px; }
.toc-list li {
  counter-increment: toc; display: flex; align-items: baseline; gap: 1rem;
  padding: 0.75rem 0.3rem; border-bottom: 1px dashed var(--line);
}
.toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--serif); color: var(--gold); font-weight: 700; font-size: 0.9375rem;
}
.toc-list .pg { margin-left: auto; color: var(--ink-faint); font-size: 0.8438rem; }

/* Preview spread */
.preview-spread {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 760px;
  background: var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-md);
}
.preview-page { background: #fbf9f4; color: #2a3345; padding: clamp(1.2rem, 3vw, 2.2rem); font-size: 0.8125rem; line-height: 1.6; }
[data-theme="dark"] .preview-page { background: #14263f; color: #c9d4e5; }
.preview-page h5 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.7rem; color: inherit; }
.preview-page .folio { margin-top: 1.2rem; font-size: 0.6875rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.preview-page p + p { margin-top: 0.6rem; }
@media (max-width: 560px) { .preview-spread { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.1rem 0.2rem; font-weight: 600; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); transition: transform 0.25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0.2rem 1.2rem; color: var(--ink-soft); font-size: 0.9688rem; max-width: 62ch; }

/* ---------- Prose (blog articles, legal, about) ---------- */

.prose { max-width: 720px; margin: 0 auto; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.65rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.9rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose li + li { margin-top: 0.4rem; }
.prose strong { color: var(--ink); }
.prose blockquote {
  border-left: 3px solid var(--gold); padding: 0.4rem 0 0.4rem 1.4rem;
  font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--ink);
}
.article-header { max-width: 720px; margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) 0 1rem; }
.article-header h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0.9rem 0; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.4rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 1rem;
  background: var(--bg-card); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(79, 157, 255, 0.18);
}
.info-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem 1.6rem;
  background: var(--bg-card); margin-bottom: 1.2rem;
}
.info-card h3 { font-family: var(--sans); font-size: 1rem; font-weight: 650; margin-bottom: 0.5rem; }
.info-card p { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 140;
  max-width: 560px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.3rem 1.5rem;
  display: none; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; animation: slideUp 0.45s var(--ease); }
.cookie-banner p { font-size: 0.875rem; color: var(--ink-soft); flex: 1 1 260px; }
.cookie-actions { display: flex; gap: 0.6rem; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; bottom: 1.4rem; left: 50%; transform: translate(-50%, 20px); z-index: 160;
  background: var(--navy); color: #fff; padding: 0.9rem 1.5rem; border-radius: 999px;
  box-shadow: var(--shadow-lg); font-size: 0.9375rem; opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  max-width: min(92vw, 480px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
