/* ===========================================================
   Aanmaning Information VOF — authoritative ebook publisher
   Parchment · deep navy · amber
   =========================================================== */

:root {
  --bg:         #F4F1EB;
  --bg-2:       #ECE8DF;
  --ink:        #1C2340;
  --navy:       #1C2340;
  --navy-2:     #273060;
  --amber:      #E07B2A;
  --amber-deep: #C4661A;
  --muted:      #5A6380;
  --line:       rgba(28,35,64,.12);
  --card:       #FAF8F3;

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Hanken Grotesk", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --r:   16px;
  --r-l: 24px;
  --maxw: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 28px;
  position: relative;
  z-index: 2;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber-deep);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--amber-deep);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  padding: .82em 1.5em;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(28,35,64,.5); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-deep); border-color: var(--amber-deep); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(224,123,42,.55); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand {
  display: flex; align-items: center; gap: .6em;
  font-family: var(--serif); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.03em;
}
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--navy);
  display: grid; place-items: center;
  color: var(--amber);
  font-family: var(--mono); font-size: .9rem; font-weight: 700;
  transform: rotate(-4deg);
}
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: .95rem; font-weight: 500; }
.nav-links a.link { position: relative; padding: 4px 0; color: var(--muted); transition: color .25s; }
.nav-links a.link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--amber); transition: width .3s var(--ease); }
.nav-links a.link:hover { color: var(--ink); }
.nav-links a.link:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 100px; position: relative; }
.hero::after {
  content: ""; position: absolute; top: -14%; right: -6%;
  width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle at 40% 40%, rgba(224,123,42,.13), transparent 60%);
  z-index: 0; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); margin: 22px 0 22px; font-optical-sizing: auto; }
.hero h1 .ital { font-style: italic; color: var(--amber-deep); }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .32em;
  background: var(--amber); opacity: .22; z-index: -1; transform: skewY(-1.2deg);
}
.hero p.lead { font-size: 1.16rem; color: var(--muted); max-width: 30em; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-actions .note { font-family: var(--mono); font-size: .76rem; color: var(--muted); margin-left: 4px; }

.reveal { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; }
.d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; } .d5 { animation-delay: .45s; }

/* ---------- Hero visual: ebook mockup ---------- */
.ebook-stack {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.ebook-card {
  background: var(--navy);
  border-radius: 14px;
  padding: 34px 30px 36px;
  box-shadow: 0 50px 90px -40px rgba(28,35,64,.55);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ebook-card::before {
  content: "§";
  position: absolute; right: 16px; bottom: -14px;
  font-family: var(--serif); font-style: italic; font-size: 8rem;
  color: rgba(255,255,255,.05); line-height: 1; pointer-events: none;
}
.ebook-tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin-bottom: 20px; }
.ebook-title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; margin-bottom: 10px; color: #fff; }
.ebook-sub { font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: 28px; }
.ebook-divider { height: 1px; background: rgba(255,255,255,.12); margin-bottom: 22px; }
.ebook-meta { display: flex; justify-content: space-between; align-items: flex-end; }
.ebook-pages { font-family: var(--mono); font-size: .74rem; color: rgba(255,255,255,.5); }
.ebook-price { font-family: var(--serif); font-size: 1.8rem; color: var(--amber); line-height: 1; }
.ebook-price small { font-family: var(--sans); font-size: .9rem; color: rgba(255,255,255,.5); }

.badge-new {
  position: absolute; top: -14px; right: 20px;
  background: var(--amber); color: #fff;
  font-family: var(--mono); font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .4em .85em; border-radius: 100px;
  box-shadow: 0 0 0 0 rgba(224,123,42,.6);
  animation: pulse 2.8s infinite;
}
@keyframes pulse {
  0%  { box-shadow: 0 0 0 0 rgba(224,123,42,.55); }
  70% { box-shadow: 0 0 0 14px rgba(224,123,42,0); }
  100%{ box-shadow: 0 0 0 0 rgba(224,123,42,0); }
}

.shadow-card {
  position: absolute; left: -20px; bottom: -16px; right: 20px; top: 16px;
  background: var(--navy-2); border-radius: 14px; z-index: -1; opacity: .55;
}
.shadow-card-2 {
  position: absolute; left: -38px; bottom: -28px; right: 38px; top: 28px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; z-index: -2;
}

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; }
.trust .wrap { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; justify-content: center; }
.trust .lbl { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.trust .logos { display: flex; gap: 40px; flex-wrap: wrap; opacity: .6; font-family: var(--serif); font-style: italic; font-size: 1.1rem; }

/* ---------- Section ---------- */
section.block { padding: 96px 0; position: relative; }
.section-head { max-width: 38rem; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Ebook grid ---------- */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.book {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
  display: flex; flex-direction: column;
}
.book:hover { transform: translateY(-6px); box-shadow: 0 28px 54px -32px rgba(28,35,64,.38); border-color: var(--navy-2); }
.book-cover {
  background: var(--navy);
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.book-cover::after {
  content: attr(data-glyph);
  position: absolute; right: 12px; top: -12px;
  font-family: var(--serif); font-style: italic;
  font-size: 6rem; color: rgba(255,255,255,.06); line-height: 1; pointer-events: none;
}
.book-cover-tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.book-cover h3 { font-family: var(--serif); font-size: 1.28rem; color: #fff; line-height: 1.2; }
.book-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.book-desc { color: var(--muted); font-size: .96rem; flex: 1; margin-bottom: 20px; }
.book-footer { display: flex; align-items: center; justify-content: space-between; }
.book-price { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.02em; }
.book-pages { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.book .btn { width: 100%; justify-content: center; margin-top: 14px; }

.books .book.featured { grid-column: span 3; display: grid; grid-template-columns: 280px 1fr; }
.books .book.featured .book-cover { min-height: 200px; border-radius: 0; }
.books .book.featured .book-cover h3 { font-size: 1.6rem; }
.books .book.featured .book-body { padding: 32px 36px; }
.books .book.featured .book-desc { font-size: 1.02rem; }
.books .book.featured .btn-amber { margin-top: 0; width: auto; }

/* ---------- Why section ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 24px 30px;
  transition: transform .4s var(--ease);
}
.why-item:hover { transform: translateY(-4px); }
.why-item .ic {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--bg-2);
  display: grid; place-items: center;
  margin-bottom: 18px;
  font-family: var(--serif); font-size: 1.3rem; color: var(--navy-2);
  transition: background .3s;
}
.why-item:hover .ic { background: var(--amber); color: #fff; }
.why-item h3 { font-size: 1.3rem; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: .96rem; }

/* ---------- Stats ---------- */
.statband { background: var(--ink); color: #fff; border-radius: var(--r-l); padding: 52px 40px; }
.statband .grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.stat .n { font-family: var(--serif); font-size: clamp(2.2rem,4.5vw,3.4rem); color: var(--amber); letter-spacing: -.03em; line-height: 1; }
.stat .l { color: rgba(255,255,255,.65); font-size: .94rem; margin-top: 10px; }

/* ---------- CTA ---------- */
.cta-band { padding-top: 0; }
.cta-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: var(--r-l);
  padding: 68px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-card::before {
  content: "§";
  position: absolute; font-family: var(--serif); font-style: italic;
  font-size: 26rem; color: rgba(255,255,255,.04);
  top: -6rem; right: -3rem; line-height: 1; pointer-events: none;
}
.cta-card h2 { font-size: clamp(2.1rem,4.6vw,3.4rem); margin-bottom: 18px; position: relative; color: #fff; }
.cta-card p { color: rgba(255,255,255,.72); font-size: 1.1rem; max-width: 34em; margin: 0 auto 30px; position: relative; }
.cta-card .hero-actions { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
footer.ft { background: var(--ink); color: #fff; padding: 72px 0 36px; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ft .brand { color: #fff; margin-bottom: 16px; }
.ft .brand .mark { background: var(--navy-2); }
.ft .blurb { color: rgba(255,255,255,.58); font-size: .95rem; max-width: 26em; }
.ft h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; font-weight: 700; }
.ft ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.ft ul a { color: rgba(255,255,255,.66); font-size: .95rem; transition: color .2s; }
.ft ul a:hover { color: var(--amber); }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; flex-wrap: wrap; gap: 12px; }
.ft-bottom small { color: rgba(255,255,255,.44); font-family: var(--mono); font-size: .75rem; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(2.2rem,4.8vw,3.6rem); margin: 18px 0 14px; }
.legal-hero p { color: var(--muted); font-size: 1.04rem; max-width: 40em; }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; padding: 56px 0 96px; align-items: start; }
.toc { position: sticky; top: 90px; border-left: 2px solid var(--line); padding-left: 18px; }
.toc h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.toc a { font-size: .9rem; color: var(--muted); transition: color .2s; line-height: 1.4; display: block; }
.toc a:hover { color: var(--amber-deep); }
.legal-body { max-width: 44rem; }
.legal-body section { margin-bottom: 40px; scroll-margin-top: 90px; }
.legal-body h2 { font-size: 1.65rem; margin-bottom: 14px; display: flex; gap: .5em; align-items: baseline; }
.legal-body h2 .num { font-family: var(--mono); font-size: 1rem; color: var(--amber-deep); font-weight: 700; }
.legal-body h3 { font-family: var(--sans); font-weight: 700; font-size: 1.06rem; margin: 22px 0 8px; }
.legal-body p { margin-bottom: 14px; color: #2e3555; }
.legal-body ul, .legal-body ol { margin: 0 0 16px 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-body li { color: #2e3555; }
.legal-body a { color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 12px; padding: 18px 22px; margin: 22px 0; font-size: .96rem; }
.callout strong { font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .ebook-stack { max-width: 380px; margin-inline: auto; }
  .books { grid-template-columns: 1fr 1fr; }
  .books .book.featured { grid-column: span 2; grid-template-columns: 1fr; }
  .books .book.featured .book-cover { min-height: 140px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .statband .grid { grid-template-columns: 1fr 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; border-left: none; padding-left: 0; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .books, .books .book.featured { grid-template-columns: 1fr; }
  .books .book.featured { grid-column: span 1; }
  .why-grid, .statband .grid, .ft-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 48px 26px; }
  .hero { padding: 52px 0 72px; }
  section.block { padding: 70px 0; }
}
