/* =========================================================
   Gebeta Books — colours
   Every colour comes from these few values. Other palettes (palettes.css) only change them.
   Default palette: Purple #F2EEBF (cream) / Oil #320C35
   ========================================================= */
:root {
  --lt: #F2EEBF;  --lt-rgb: 242, 238, 191;  --lt-2: #E9E4AE;      /* light colour, + a slightly deeper one */
  --dk: #320C35;  --dk-rgb: 50, 12, 53;     --dk-deep: #1C061E;   /* dark colour, + a deeper one (dark mode background) */
  --plum: #5A1E5E;                                               /* in-between dark */
  --orchid: #8C3B6E; --orchid-rgb: 140, 59, 110;                 /* accent / glow */
  --hi: #E6A5D2;   --hi-rgb: 230, 165, 210;                      /* bright highlight on dark backgrounds */

  --cream: var(--lt);
  --oil: var(--dk);
  --oil-deep: var(--dk-deep);

  --serif: "Fraunces", "Noto Sans Ethiopic", Georgia, serif;
  --sans: "Inter", "Noto Sans Ethiopic", system-ui, sans-serif;
  --script: "Yellowtail", cursive;

  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

[data-theme="dark"] {
  --bg: var(--dk-deep);
  --bg-2: var(--dk);
  --surface: rgba(var(--lt-rgb), .05);
  --surface-2: rgba(var(--lt-rgb), .09);
  --text: var(--lt);
  --muted: rgba(var(--lt-rgb), .66);
  --line: rgba(var(--lt-rgb), .14);
  --accent: var(--lt);
  --accent-ink: var(--dk);
  --glow-a: rgba(var(--orchid-rgb), .55);
  --glow-b: rgba(var(--lt-rgb), .12);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --tint: var(--hi);
}

[data-theme="light"] {
  --bg: var(--lt);
  --bg-2: var(--lt-2);
  --surface: rgba(var(--dk-rgb), .04);
  --surface-2: rgba(var(--dk-rgb), .08);
  --text: var(--dk);
  --muted: rgba(var(--dk-rgb), .68);
  --line: rgba(var(--dk-rgb), .14);
  --accent: var(--dk);
  --accent-ink: var(--lt);
  --glow-a: rgba(var(--orchid-rgb), .28);
  --glow-b: rgba(var(--dk-rgb), .10);
  --shadow: 0 30px 70px -30px rgba(var(--dk-rgb), .45);
  --tint: var(--orchid);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
  -webkit-font-smoothing: antialiased;
}
html[lang="am"] body { font-family: "Noto Sans Ethiopic", var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Logo ---------- */
.logo-mark {
  display: inline-block;
  width: 34px; aspect-ratio: 792 / 573;
  background: currentColor;
  -webkit-mask: url("assets/logo-mark.png") center / contain no-repeat;
  mask: url("assets/logo-mark.png") center / contain no-repeat;
}
.wordmark { font-family: var(--script); font-size: 1.7rem; line-height: 1; letter-spacing: .01em; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: var(--oil-deep); color: var(--cream);
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }   /* never blocks a tap, even while fading */
.loader-inner { display: grid; justify-items: center; gap: 14px; }
.loader-mark { width: 90px; animation: bookOpen 1.4s var(--ease) infinite alternate; }
.loader-word { font-size: 2.6rem; opacity: 0; animation: fadeUp .8s .2s var(--ease) forwards; }
.loader-bar { width: 160px; height: 2px; background: rgba(var(--lt-rgb),.15); border-radius: 2px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--cream); animation: load .8s var(--ease) forwards; }
@keyframes bookOpen { from { transform: scaleX(.55) translateY(6px); } to { transform: scaleX(1) translateY(0); } }
@keyframes load { to { width: 100%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Announcement ---------- */
.announce {
  position: relative; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 9px 44px; font-size: .82rem; font-weight: 500;
  background: linear-gradient(90deg, var(--oil), var(--orchid), var(--oil));
  background-size: 200% 100%;
  animation: shimmer 8s linear infinite;
  color: var(--cream);
}
@keyframes shimmer { to { background-position: -200% 0; } }
.announce-cta { background: rgba(var(--lt-rgb),.16); padding: 4px 12px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.announce-cta:hover { background: var(--cream); color: var(--oil); }
.announce-x { position: absolute; right: 14px; opacity: .7; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #7CE3A4; box-shadow: 0 0 0 0 rgba(124,227,164,.7); animation: ping 1.8s infinite; flex: none; display: inline-block; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(124,227,164,0); } 100% { box-shadow: 0 0 0 0 rgba(124,227,164,0); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s, background .5s;
}
.nav.scrolled { border-color: var(--line); padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo-mark { transition: transform .5s var(--ease); }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.1); }
.nav-links { display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.brand, .nav-links a { white-space: nowrap; }
.nav-links a { padding: 8px 16px; border-radius: 99px; font-size: .9rem; font-weight: 500; color: var(--muted); transition: .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-ink); background: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .lang-btn, .cart-btn {
  height: 40px; min-width: 40px; display: grid; place-items: center;
  border-radius: 99px; border: 1px solid var(--line); background: var(--surface);
  transition: transform .2s, background .25s;
}
.icon-btn:hover, .lang-btn:hover, .cart-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.lang-btn { padding: 0 14px; font-weight: 700; font-size: .85rem; }
.cart-btn { position: relative; padding: 0 12px; background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.cart-btn:hover { background: var(--accent); }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 99px; font-size: .7rem; font-weight: 800;
  background: var(--orchid); color: var(--cream); border: 2px solid var(--bg);
}
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }
[data-theme="dark"] .i-sun, [data-theme="light"] .i-moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 99px; font-weight: 700; font-size: .98rem;
  transition: transform .25s var(--ease), box-shadow .3s, background .3s;
  will-change: transform;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--glow-a); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px var(--glow-a); }
.btn-primary .arr { transition: transform .3s var(--ease); }
.btn-primary:hover .arr { transform: translateX(5px); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn.full { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100vh - 110px);
  padding: 40px clamp(18px, 4vw, 56px) 80px;
  display: flex; align-items: center; overflow: hidden;
  isolation: isolate;
}
#letterField { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -2; pointer-events: none; }
.hero-glow.g1 { width: 620px; height: 620px; right: -120px; top: -120px; background: var(--glow-a); animation: drift 14s ease-in-out infinite alternate; }
.hero-glow.g2 { width: 460px; height: 460px; left: -160px; bottom: -160px; background: var(--glow-b); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 60px) scale(1.15); } }

.hero-grid {
  width: 100%; max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 99px; font-size: .82rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 26px;
}
.pill b { color: var(--text); }
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: .98; letter-spacing: -.035em;
  font-variation-settings: "opsz" 144;
}
html[lang="am"] .hero-title { font-family: "Noto Sans Ethiopic", var(--serif); font-weight: 800; letter-spacing: -.01em; line-height: 1.12; font-size: clamp(2.4rem, 5.4vw, 4.9rem); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > * { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero-title.in .line > * { transform: none; }
.hero-title .line:nth-child(2) > * { transition-delay: .1s; }
.hero-title .line:nth-child(3) > * { transition-delay: .2s; }
.accent-word {
  font-weight: 400;
  background: linear-gradient(100deg, var(--text) 10%, var(--orchid) 50%, var(--text) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s linear infinite;
}
[data-theme="dark"] .accent-word { background-image: linear-gradient(100deg, var(--cream) 10%, var(--hi) 50%, var(--cream) 90%); }
@keyframes sheen { to { background-position: -200% 0; } }
.hero-tags { display: flex; gap: 12px; margin: 26px 0 16px; font-weight: 600; font-size: .95rem; }
.hero-tags i { color: var(--orchid); font-style: normal; }
.hero-sub { max-width: 500px; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 34px; }
.hero-stats { display: flex; gap: 24px; align-items: center; }
.hero-stats div { display: grid; }
.hero-stats b { font-family: var(--serif); font-size: 1.9rem; }
.hero-stats span { color: var(--muted); font-size: .84rem; }
.hero-stats .sep { width: 1px; height: 40px; background: var(--line); }
.hero-note { margin-top: 18px; font-size: .86rem; color: var(--muted); }

/* --- 3D book stage --- */
.hero-stage { position: relative; height: 680px; display: grid; place-items: center; perspective: 1600px; }
.stage-ring { position: absolute; border-radius: 50%; border: 1px dashed var(--line); pointer-events: none; }
.stage-ring.r1 { width: 470px; height: 470px; animation: spin 60s linear infinite; }
.stage-ring.r2 { width: 580px; height: 580px; border-style: solid; opacity: .5; animation: spin 90s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.book-wrap { position: relative; transform-style: preserve-3d; cursor: pointer; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.book3d {
  --w: 330px; --h: 470px; --d: 52px;
  position: relative; width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -28deg));
}
.book3d.swap { animation: swapSpin 1s var(--ease); }
@keyframes swapSpin { 50% { transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + 180deg)) scale(.9); } }
.b-face, .b-cover { position: absolute; }
.b-back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); border-radius: 4px 12px 12px 4px; background: var(--cover-bg, var(--oil)); }
.b-spine {
  width: var(--d); height: var(--h); left: calc(50% - var(--d) / 2);
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.08) 40%, rgba(0,0,0,.25)), var(--cover-bg, var(--oil));
  display: grid; place-items: center; overflow: hidden;
}
.b-spine span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--serif); font-weight: 600; font-size: .78rem; letter-spacing: .08em; color: var(--cover-fg, var(--cream)); white-space: nowrap; }
.b-pages-r {
  width: calc(var(--d) - 4px); height: calc(var(--h) - 10px); top: 5px; left: calc(50% - (var(--d) - 4px) / 2);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 5px));
  background: repeating-linear-gradient(90deg, #f7f3d6 0 2px, #d9d3a6 2px 3px);
}
.b-pages-t, .b-pages-b {
  width: calc(var(--w) - 10px); height: calc(var(--d) - 4px); left: 4px; top: calc(50% - (var(--d) - 4px) / 2);
  background: repeating-linear-gradient(0deg, #f7f3d6 0 2px, #d9d3a6 2px 3px);
}
.b-pages-t { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 5px)); }
.b-pages-b { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 5px)); }
.b-firstpage {
  inset: 5px 5px 5px 2px; transform: translateZ(calc(var(--d) / 2 - 3px));
  background: #FBF8E4; color: var(--dk); border-radius: 2px 8px 8px 2px;
  padding: 34px 28px; font-family: var(--serif); font-size: .92rem; line-height: 1.7;
  box-shadow: inset 12px 0 20px -12px rgba(0,0,0,.4);
}
.b-firstpage h4 { font-size: 1.3rem; margin-bottom: 4px; }
.b-firstpage small { display: block; opacity: .6; margin-bottom: 18px; font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.b-firstpage p::first-letter { font-size: 2.6em; float: left; line-height: .9; padding-right: 6px; color: var(--orchid); font-weight: 800; }
.b-cover {
  inset: 0; transform-origin: left center; transform-style: preserve-3d;
  transform: translateZ(calc(var(--d) / 2)) rotateY(0);
  transition: transform 1.2s var(--ease);
}
.book3d.open .b-cover { transform: translateZ(calc(var(--d) / 2)) rotateY(-155deg); }
.b-cover-front, .b-cover-inside { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 4px 12px 12px 4px; overflow: hidden; }
.b-cover-front .cover { width: 100%; height: 100%; border-radius: inherit; }
.b-cover-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.22) 45%, rgba(255,255,255,0) 60%); background-size: 250% 100%; background-position: var(--shine, 100%) 0; pointer-events: none; }
.b-cover-inside { transform: rotateY(180deg); background: var(--cover-bg, var(--oil)); color: var(--cover-fg, var(--cream)); display: grid; place-content: center; justify-items: center; gap: 10px; }
.b-cover-inside .logo-mark { width: 70px; }
.book-shadow { position: absolute; left: 50%; bottom: -60px; width: 260px; height: 40px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(rgba(0,0,0,.55), transparent 70%); filter: blur(6px); animation: shadowPulse 6s ease-in-out infinite; }
@keyframes shadowPulse { 50% { transform: translateX(-50%) scale(.85); opacity: .6; } }
.stage-hint { position: absolute; bottom: 4px; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }

.feat-card {
  position: absolute; right: 0; bottom: 70px; width: 240px; padding: 15px;
  border-radius: 16px; background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow); transition: opacity .4s, transform .4s var(--ease);
}
.feat-card.fade { opacity: 0; transform: translateY(12px); }
.feat-title { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.feat-meta { font-size: .8rem; color: var(--muted); margin: 6px 0 10px; }
.stars { color: #E9B949; }
.feat-price { font-family: var(--serif); font-weight: 800; font-size: 1.7rem; margin-bottom: 12px; }
.feat-card .btn { width: 100%; }
.feat-dots { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.feat-dots button { width: 22px; height: 4px; border-radius: 4px; background: var(--line); transition: .4s var(--ease); }
.feat-dots button.on { width: 44px; background: var(--accent); }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px; background: var(--text); transform: translateX(-50%); animation: cue 1.8s infinite; }
@keyframes cue { 60% { transform: translate(-50%, 14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--accent); color: var(--accent-ink); }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker-track span { padding: 16px 26px; font-weight: 700; font-size: .95rem; white-space: nowrap; display: flex; align-items: center; gap: 26px; }
.ticker-track span::after { content: "✦"; opacity: .5; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section-head { max-width: 760px; margin: 0 auto 50px; text-align: center; padding: 0 20px; }
.section-head.left { text-align: left; margin-left: 0; padding: 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orchid); margin-bottom: 14px; }
[data-theme="dark"] .eyebrow { color: var(--hi); }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -.03em; line-height: 1.04; }
html[lang="am"] .section-head h2 { font-family: "Noto Sans Ethiopic", var(--serif); font-weight: 800; letter-spacing: 0; }
.section-head h2 em { font-weight: 400; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

/* ---------- Book cover (generated) ---------- */
.cover {
  position: relative; aspect-ratio: 2 / 2.85; overflow: hidden;
  background: var(--cb); color: var(--cf);
  border-radius: 4px 10px 10px 4px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 9% 10%;
  container-type: inline-size;
}
.cover::before { /* spine crease */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.12) 55%, rgba(0,0,0,.08));
  z-index: 2;
}
.cover .c-pat { position: absolute; inset: 0; opacity: .9; z-index: 0; }
.cover .c-glyph { position: absolute; right: -6%; bottom: -10%; font-family: "Noto Sans Ethiopic"; font-weight: 800; font-size: 78cqw; line-height: 1; opacity: .13; z-index: 0; }
.cover > *:not(.c-pat):not(.c-glyph) { position: relative; z-index: 1; }
.cover .c-top { font-size: 5.4cqw; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; opacity: .8; }
.cover .c-title { font-family: var(--serif); font-weight: 800; font-size: 12cqw; line-height: 1.02; letter-spacing: -.02em; }
.cover .c-am { font-family: "Noto Sans Ethiopic"; font-weight: 600; font-size: 6.4cqw; opacity: .85; margin-top: 4%; }
.cover .c-foot { display: flex; align-items: center; justify-content: space-between; font-size: 5.4cqw; font-weight: 600; }
.cover .c-foot .logo-mark { width: 12cqw; }
.pat-tilet { background:
  repeating-linear-gradient(90deg, transparent 0 6%, color-mix(in srgb, var(--cf) 35%, transparent) 6% 7%) 0 62% / 100% 14% no-repeat,
  linear-gradient(135deg, transparent 46%, color-mix(in srgb, var(--cf) 45%, transparent) 46% 54%, transparent 54%) 0 55.5% / 9% 5% repeat-x,
  linear-gradient(45deg, transparent 46%, color-mix(in srgb, var(--cf) 45%, transparent) 46% 54%, transparent 54%) 0 69% / 9% 5% repeat-x; }
.pat-rings { background: repeating-radial-gradient(circle at 85% 20%, transparent 0 8%, color-mix(in srgb, var(--cf) 18%, transparent) 8% 8.8%); }
.pat-sun { background: radial-gradient(circle at 50% 108%, color-mix(in srgb, var(--cf) 30%, transparent) 0 30%, transparent 30.5%), repeating-conic-gradient(from 0deg at 50% 108%, color-mix(in srgb, var(--cf) 10%, transparent) 0 4deg, transparent 4deg 12deg); }
.pat-grid { background: linear-gradient(color-mix(in srgb, var(--cf) 12%, transparent) 1px, transparent 1px) 0 0 / 12% 8.6%, linear-gradient(90deg, color-mix(in srgb, var(--cf) 12%, transparent) 1px, transparent 1px) 0 0 / 12% 8.6%; }
.pat-arch { background: radial-gradient(ellipse 45% 38% at 50% 100%, transparent 98%, color-mix(in srgb, var(--cf) 35%, transparent) 99% 100%, transparent 101%), radial-gradient(ellipse 35% 28% at 50% 100%, color-mix(in srgb, var(--cf) 16%, transparent) 99%, transparent 100%); }
.pat-waves { background: repeating-linear-gradient(-35deg, transparent 0 14px, color-mix(in srgb, var(--cf) 12%, transparent) 14px 16px); }

/* ---------- The turning table (book ring) ---------- */
.shelf-section { padding: 120px 0 90px; overflow: hidden; }
.ring-stage {
  --iw: 170px;
  position: relative; height: calc(var(--iw) * 1.5 + 120px); margin-top: 20px;
  perspective: 1300px; perspective-origin: 50% 30%;
  display: grid; place-items: start center; padding-top: 30px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
}
.ring-stage:active { cursor: grabbing; }
.ring { position: relative; width: var(--iw); height: calc(var(--iw) * 1.5); transform-style: preserve-3d; will-change: transform; z-index: 1; }
.ring-item {
  position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer;
  transform: rotateY(var(--a)) translateZ(var(--r, 400px));
  transition: opacity .5s, filter .5s;
  -webkit-tap-highlight-color: transparent;
}
.ring-item .cover { width: 100%; height: 100%; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s; pointer-events: none; }
.ring-item[data-d="0"] .cover { transform: translateY(-18px) translateZ(40px) scale(1.14); box-shadow: 0 40px 60px -24px var(--glow-a), var(--shadow); }
.ring-item[data-d="1"] { filter: brightness(.75); }
.ring-item[data-d="2"] { filter: brightness(.7); opacity: .9; }
.ring-item[data-d="3"] { filter: brightness(.55); opacity: .75; }
.ring-item[data-d="far"] { filter: brightness(.45); opacity: .5; }
.ring-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 6px; }
/* the round table (ገበታ) under the books */
.ring-table {
  position: absolute; left: 50%; bottom: 34px; width: min(920px, 150vw); height: 120px; transform: translateX(-50%);
  border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--text) 14%, transparent), color-mix(in srgb, var(--text) 4%, transparent) 60%, transparent 72%);
  border-top: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
}
.ring-info { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto; padding: 0 16px; max-width: 560px; }
.ring-arrow { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.2rem; cursor: pointer; transition: background .25s, color .25s; }
.ring-arrow:hover { background: var(--accent); color: var(--accent-ink); }
.ring-now { flex: 1; display: grid; gap: 2px; text-align: center; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px 4px; min-height: 48px; }
.ring-now small { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ring-now b { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.ring-now span { color: var(--muted); font-weight: 600; }
@media (max-width: 760px) {
  .shelf-section { padding: 80px 0 60px; }
  .ring-stage { --iw: 118px; perspective: 900px; height: calc(var(--iw) * 1.5 + 90px); }
  .ring-table { height: 80px; bottom: 26px; }
  .ring-now b { font-size: 1.15rem; }
}

/* ---------- Catalog ---------- */
.catalog { max-width: 1320px; margin: 0 auto; padding: 60px clamp(18px, 4vw, 56px) 100px; }
.cat-tools { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 34px; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 52px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--surface-2); }
.search svg { opacity: .6; }
.search input { flex: 1; background: none; border: 0; outline: 0; font: inherit; color: var(--text); font-size: 1rem; }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 11px 18px; border-radius: 99px; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--muted); transition: .25s; }
.chip:hover { color: var(--text); background: var(--surface-2); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.sort { height: 48px; padding: 0 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; font-weight: 600; font-size: .88rem; outline: 0; }
.sort option { background: var(--bg-2); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .5s, border-color .3s, opacity .5s;
}
.card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--text) 26%, transparent); }
.card .cover-wrap { position: relative; border-radius: 14px; overflow: hidden; padding: 22px 34px; background: radial-gradient(circle at 50% 30%, var(--surface-2), transparent 70%); cursor: pointer; }
.card .cover { box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); transition: transform .6s var(--ease); }
.card:hover .cover { transform: translateY(-6px) rotate(-1.5deg) scale(1.03); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 5px 10px; border-radius: 99px; font-size: .72rem; font-weight: 800; background: var(--orchid); color: var(--cream); }
.badge.best { background: var(--accent); color: var(--accent-ink); }
.card-body { padding: 16px 6px 4px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; line-height: 1.25; cursor: pointer; }
html[lang="am"] .card h3 { font-family: "Noto Sans Ethiopic"; }
.card .author { font-size: .82rem; color: var(--muted); margin: 3px 0 8px; }
.card .desc { font-size: .88rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .rate { font-size: .8rem; color: var(--muted); margin: 10px 0 2px; }
.card .rate .stars { letter-spacing: 1px; }
.card .buyers { font-size: .78rem; color: var(--muted); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.price-old { display: block; font-size: .8rem; color: var(--muted); text-decoration: line-through; }
.price { font-family: var(--serif); font-weight: 800; font-size: 1.45rem; }
.buy-btn { padding: 11px 20px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .88rem; display: flex; gap: 6px; align-items: center; transition: transform .25s var(--ease); }
.buy-btn:hover { transform: scale(1.06); }
.add-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; margin-right: 6px;
  transition: background .2s, border-color .2s, transform .15s; }
.add-btn:hover { background: var(--surface-2); border-color: rgba(var(--hi-rgb), .5); }
.add-btn:active, .buy-btn:active { transform: scale(.92); }
.add-btn svg { transition: transform .3s var(--ease); }
.add-btn:hover svg { transform: rotate(90deg); }
.add-btn svg { width: 18px; height: 18px; }
.card-foot .acts { display: flex; align-items: center; }
.card.hide { display: none; }
.empty { display: none; text-align: center; color: var(--muted); padding: 40px; }
.empty.show { display: block; }
.count { margin-top: 30px; color: var(--muted); font-size: .9rem; }

/* ---------- Stats ---------- */
.stats { padding: 0 clamp(18px, 4vw, 56px); }
.stats-grid {
  max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--oil), var(--plum)); color: var(--cream);
}
.stat { padding: 46px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -.03em; }
.stat span { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

/* ---------- How ---------- */
.how { padding: 120px clamp(18px, 4vw, 56px); }
.steps { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding: 34px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), background .3s; }
.step:hover { transform: translateY(-6px); background: var(--surface-2); }
.step-n { font-family: var(--serif); font-size: 4.2rem; font-weight: 800; opacity: .14; position: absolute; right: 20px; top: 6px; }
.step h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 10px; font-weight: 600; }
html[lang="am"] .step h3 { font-family: "Noto Sans Ethiopic"; }
.step p { color: var(--muted); line-height: 1.6; }
.pay-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pay-badges span { padding: 6px 12px; border-radius: 99px; font-size: .76rem; font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.no-account { text-align: center; margin-top: 34px; color: var(--muted); }

@keyframes slideIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }

/* ---------- Footer ---------- */
.footer { padding: 70px clamp(18px, 4vw, 56px) 34px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.brand.big .logo-mark { width: 60px; }
.brand.big .wordmark { font-size: 3.2rem; }
.footer-top p { color: var(--muted); }
.footer-bottom { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.demo-note { padding: 4px 10px; border-radius: 99px; background: var(--surface-2); }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; left: 20px; bottom: 20px; z-index: 70; display: grid; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px; max-width: 340px;
  padding: 12px 16px 12px 12px; border-radius: 16px;
  background: color-mix(in srgb, var(--bg-2) 90%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow); font-size: .84rem; line-height: 1.35;
  animation: toastIn .6s var(--ease);
}
.toast.out { animation: toastOut .5s var(--ease) forwards; }
.toast .t-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.toast small { color: var(--muted); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-30px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-30px) scale(.95); } }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(var(--dk-rgb), .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: .4s; }
.overlay.show { opacity: 1; visibility: visible; }
.modal {
  position: fixed; left: 50%; top: 50%; z-index: 90; width: min(920px, calc(100vw - 28px)); max-height: calc(100vh - 40px); overflow: auto;
  border-radius: 28px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 50px 120px -30px rgba(0,0,0,.7);
  transform: translate(-50%, -46%) scale(.96); opacity: 0; visibility: hidden; transition: .45s var(--ease);
}
.modal.show { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; }
.modal-x { position: absolute; top: 16px; right: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; transition: transform .3s; }
.modal-x:hover { transform: rotate(90deg); }
.modal-x.static { position: static; }
.m-grid { display: grid; grid-template-columns: 1fr 1.15fr; }
.m-cover { padding: 50px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--glow-a), transparent 70%), var(--surface); }
.m-cover .cover { width: 100%; max-width: 270px; box-shadow: var(--shadow); animation: coverIn .8s var(--ease); }
@keyframes coverIn { from { transform: rotateY(-40deg) translateX(-30px); opacity: 0; } }
.m-info { padding: 46px 40px 40px; }
.m-info h2 { font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1.1; letter-spacing: -.02em; padding-right: 30px; }
html[lang="am"] .m-info h2 { font-family: "Noto Sans Ethiopic"; }
.m-info .author { color: var(--muted); margin: 6px 0 14px; }
.m-info .desc { color: var(--muted); line-height: 1.7; margin: 14px 0 18px; }
.m-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.m-meta span { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.m-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.m-price .price { font-size: 2.2rem; }
.m-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.m-actions .btn { flex: 1; }
.pay-title { font-family: var(--serif); font-size: 1.3rem; margin: 6px 0 14px; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pay-opt { padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); text-align: left; transition: .25s; }
.pay-opt b { display: block; font-size: 1rem; }
.pay-opt small { color: var(--muted); font-size: .76rem; }
.pay-opt:hover { background: var(--surface-2); }
.pay-opt.on { border-color: var(--accent); background: var(--surface-2); box-shadow: 0 0 0 3px var(--surface-2); }
.pay-sum { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px dashed var(--line); margin-top: 6px; font-weight: 600; }
.demo-tag { font-size: .76rem; color: var(--muted); margin-top: 10px; text-align: center; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 20px auto; }
.success { text-align: center; padding: 20px 0; }
.check { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; animation: pop .6s var(--ease); }
.check svg { width: 40px; height: 40px; stroke-width: 3; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .3s forwards; }
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.15); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 6px; }
.success p { color: var(--muted); margin-bottom: 22px; }
.dl-list { display: grid; gap: 8px; margin-bottom: 16px; text-align: left; }
.dl-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.dl-item button { padding: 8px 14px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 700; white-space: nowrap; }

/* confetti */
.confetti { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; font-family: "Noto Sans Ethiopic"; font-weight: 800; }

/* ---------- Drawer ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(420px, 100vw);
  background: var(--bg); border-left: 1px solid var(--line); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .5s var(--ease);
}
.drawer.show { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-size: 1.5rem; }
.drawer-items { flex: 1; overflow: auto; padding: 16px 24px; display: grid; align-content: start; gap: 14px; }
.d-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; animation: slideIn .4s var(--ease); }
.d-item .cover { padding: 6px; border-radius: 3px 6px 6px 3px; }
.d-item .cover > *:not(.c-pat) { display: none; }
.d-item h4 { font-family: var(--serif); font-size: .98rem; font-weight: 600; }
.d-item span { font-size: .84rem; color: var(--muted); }
.d-item button { opacity: .6; font-size: .8rem; }
.d-item button:hover { opacity: 1; }
.d-empty { color: var(--muted); text-align: center; padding: 60px 0; }
.drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.drawer-total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 1.1rem; }
.drawer-total b { font-family: var(--serif); font-size: 1.4rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { height: 560px; }
  .feat-card { right: 50%; transform: translateX(50%); bottom: 50px; width: 214px; }
  .feat-card.fade { transform: translateX(50%) translateY(12px); }
  .stage-hint { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
/* Nav links always stay visible: on narrow screens they drop to their own row */
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; row-gap: 10px; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 1; text-align: center; padding: 8px 12px; font-size: .86rem; }
}
@media (max-width: 860px) {
  #searchJump { display: none; }
  .steps { grid-template-columns: 1fr; }
  .m-grid { grid-template-columns: 1fr; }
  .m-cover { padding: 30px; }
  .m-cover .cover { max-width: 180px; }
  .m-info { padding: 26px 22px; }
  .announce { font-size: .74rem; padding-left: 14px; }
  .announce-cta { display: none; }
}
@media (max-width: 520px) {
  .wordmark { font-size: 1.4rem; }
  .book3d { --w: 220px; --h: 312px; --d: 36px; }
  .hero-stage { height: 500px; }
  .stage-ring.r1 { width: 340px; height: 340px; }
  .stage-ring.r2 { width: 420px; height: 420px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 8px; }
  .card .cover-wrap { padding: 12px 14px; }
  .card .desc, .card .buyers { display: none; }
  .card h3 { font-size: 1rem; }
  .price { font-size: 1.15rem; }
  /* phones: price on top, then [+] and Buy side by side — both always tappable */
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card-foot .acts { justify-content: space-between; gap: 6px; }
  .add-btn { width: 38px; height: 38px; margin-right: 0; flex: none; }
  .buy-btn { padding: 9px 14px; flex: 1; text-align: center; }
  .pay-grid { grid-template-columns: 1fr; }
  .lang-btn { padding: 0 10px; }
}
/* =========================================================
   BOLD LAYER — cursor, grain, reactive type, big type, coverflow
   ========================================================= */

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 300; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
[data-theme="light"] .grain { opacity: .09; mix-blend-mode: multiply; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}

/* custom cursor (desktop only) */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor, .has-cursor .cursor-dot { opacity: 1; }
.cursor {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1.5px solid var(--text);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, opacity .3s;
  mix-blend-mode: difference;
}
[data-theme="dark"] .cursor { mix-blend-mode: normal; }
.cursor span { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); opacity: 0; transition: opacity .25s; white-space: nowrap; }
.cursor.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.cursor.label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); border-color: var(--accent); }
.cursor.label span { opacity: 1; }
.cursor.down { transform: scale(.8); }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--text); }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor select { cursor: text !important; }

/* scroll progress */
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--orchid), var(--text)); }

/* reactive headline letters */
.hero-title .ch { display: inline-block; transition: color .3s; will-change: font-variation-settings, transform; }
.hero-title .ch.sp { width: .26em; }
.hero-title { font-weight: 500; transition: opacity .6s; }
.hero-title.in .accent-word { transform: skewX(var(--sk, 0deg)); }
.hero-title.settled .line > * { transition: none; }
.intro .hero-title { opacity: 0; }

/* hero intro: stage pieces arrive after the letters form the word */
.hero-stage, .hero-copy .pill, .hero-tags, .hero-sub, .hero-ctas, .hero-stats, .hero-note { transition: opacity .9s var(--ease), transform 1s var(--ease); }
.intro .hero-stage { opacity: 0; transform: scale(.85) translateY(40px); }
.intro .hero-copy .reveal { opacity: 0 !important; transform: translateY(30px) !important; }

/* giant scroll type */
.bigtype { padding: 70px 0 10px; overflow: hidden; pointer-events: none; }
.bt-row { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.bt-row span {
  font-family: var(--serif); font-weight: 800; font-style: italic;
  font-size: clamp(4.5rem, 13vw, 12rem); line-height: 1.05; letter-spacing: -.04em;
  color: var(--text);
}
.bt-row.outline span { color: transparent; -webkit-text-stroke: 1.5px var(--text); font-style: normal; font-weight: 300; }

/* phones & touch screens: drop the costly effects so scrolling is equally smooth on every phone
   (no full-screen grain layer, no live blur behind bars/cards, no giant blurred glows) */
@media (pointer: coarse), (max-width: 760px) {
  .grain { display: none; }
  .hero-title .ch { will-change: auto; }
  .nav, .toast, .overlay, .feat-card, .gb-consent, .announce { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .nav { background: color-mix(in srgb, var(--bg) 94%, transparent); }
  .overlay { background: rgba(var(--dk-rgb), .72); }
  .hero-glow { filter: none; animation: none; }      /* soft gradient instead of a live 80px blur that moves */
  .hero-glow.g1 { background: radial-gradient(closest-side, var(--glow-a), transparent); }
  .hero-glow.g2 { background: radial-gradient(closest-side, var(--glow-b), transparent); }
  .feat-card { padding: 12px 13px; border-radius: 14px; box-shadow: 0 10px 26px rgba(0,0,0,.22); background: color-mix(in srgb, var(--bg-2) 88%, transparent); }
  .feat-title { font-size: .92rem; }
  .feat-meta { margin: 3px 0 6px; font-size: .74rem; }
  .feat-price { font-size: 1.3rem; margin-bottom: 8px; }
  .feat-card .btn { padding: 9px 14px; font-size: .84rem; }
}
/* native scrolling everywhere: "clip" stops sideways overflow without turning the page into a scroll container */
body { overflow-x: clip; }

/* catalog 3D entrance */
.card.reveal { transform: perspective(1000px) translateY(80px) rotateX(-22deg) scale(.94); transform-origin: 50% 100%; }
.card.reveal.in { transform: none; }

@media (max-width: 860px), (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

/* ---------- real cover images ---------- */
.cover.cover-img { padding: 0; }
.cover.cover-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- checkout extras ---------- */
.co-phone { display: grid; gap: 6px; margin: 4px 0 6px; font-size: .84rem; color: var(--muted); }
.co-phone input { height: 48px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; outline: 0; }
.co-phone input:focus { border-color: var(--accent); }
.co-err { color: #ff8a8a; font-size: .84rem; min-height: 1.2em; margin-bottom: 4px; }
[data-theme="light"] .co-err { color: #b3261e; }
.btn:disabled { opacity: .6; pointer-events: none; }
.m-lp-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .9rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.m-lp-link:hover { color: var(--text); border-color: var(--text); }

/* ---------- live checkout ---------- */
.co-phone small { font-size: .76rem; color: var(--muted); }
.co-phone select { height: 48px; padding: 0 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.co-phone select option { background: var(--bg-2); }
.co-methods { display: grid; gap: 10px; margin-bottom: 4px; }
.co-method { display: flex; align-items: center; gap: 14px; width: 100%; }
.co-method small { display: block; margin-top: 2px; }
.co-ico { font-size: 1.5rem; flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); }
.co-amount { white-space: nowrap; font-family: var(--serif); font-weight: 800; }
.co-accounts { display: grid; gap: 8px; margin: 12px 0; }
.co-acc { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.co-acc small { display: block; color: var(--muted); font-size: .78rem; }
.co-num { display: block; font-size: 1.25rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.co-reason { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed var(--accent); }
.co-reason span { width: 100%; font-size: .84rem; color: var(--muted); }
.co-code { font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; letter-spacing: .06em; }
.co-file { position: relative; display: grid; place-items: center; gap: 10px; min-height: 120px; margin: 10px 0 4px; padding: 16px; border-radius: 18px; border: 2px dashed var(--line); background: var(--surface); cursor: pointer; text-align: center; font-weight: 600; }
.co-file:hover { border-color: var(--accent); }
.co-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.co-file img { max-height: 180px; max-width: 100%; border-radius: 10px; }
.co-note { color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.co-return { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); line-height: 1.5; font-size: .95rem; }
.co-return b { font-weight: 800; }
/* unfinished payment: "welcome back" note + the bottom button that reopens it */
.co-resumed { margin-bottom: 16px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--accent); }
.co-resumed p { margin: 6px 0 8px; color: var(--muted); line-height: 1.55; font-size: .92rem; }
.co-resumed p b { color: var(--text, inherit); font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.co-cancel { background: none; border: 0; padding: 6px 0; min-height: 36px; color: var(--muted); font: inherit; font-size: .84rem; text-decoration: underline; cursor: pointer; }
.co-resume { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 75; display: flex; align-items: stretch; width: max-content; max-width: calc(100vw - 24px);
  border-radius: 99px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 34px rgba(10, 2, 12, .45); animation: coResumeIn .5s var(--ease, ease) both; }
.co-resume button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; min-height: 52px; }
.co-resume-go { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; text-align: start; line-height: 1.25; }
.co-resume-go > span:last-child { display: grid; }
.co-resume-go > span:last-child > span { font-weight: 700; font-size: .95rem; }
.co-resume-go b { font-family: ui-monospace, Consolas, monospace; font-weight: 600; font-size: .78rem; letter-spacing: .04em; opacity: .8; }
.co-resume-ico { font-size: 1.2rem; }
.co-resume-x { padding: 0 16px 0 10px; opacity: .6; font-size: 1rem; }
.co-resume-x:hover { opacity: 1; }
.co-resume button:focus-visible { outline: 2px solid var(--orchid); outline-offset: -4px; border-radius: 99px; }
body:has(.lp-sticky.show) .co-resume, body:has(.gb-consent) .co-resume { bottom: calc(92px + env(safe-area-inset-bottom)); }
@keyframes coResumeIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .co-resume { animation: none; } }
.btn-ghost.full { width: 100%; }
[data-dl].is-busy { opacity: .55; pointer-events: none; }
.co-method:disabled { cursor: default; }
.co-method.is-off { opacity: .55; }
.op-pay { display: grid; gap: 10px; }
.op-tg { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.op-tg .btn { background: #229ED9; color: #fff; }
.op-tg.done { color: var(--muted); }
.catalog .empty.show { display: block; text-align: left; padding: 0 0 18px; color: var(--muted); }
.catalog .empty.warn { padding: 16px 20px; margin-bottom: 22px; border-radius: 16px; color: var(--text); background: rgba(233,185,73,.12); border: 1px solid rgba(233,185,73,.35); }

/* ---------- order page ---------- */
.op-main { max-width: 760px; margin: 0 auto; padding: 10px 18px 40px; display: grid; gap: 18px; min-height: 60vh; }
.op-nav { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: .9rem; }
.op-nav a { color: var(--muted); }
.op-card { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.op-h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.12; margin: 6px 0 10px; }
.op-h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin-bottom: 12px; }
html[lang="am"] .op-h1, html[lang="am"] .op-h2 { font-family: "Noto Sans Ethiopic"; font-weight: 800; }
.op-sub { color: var(--muted); line-height: 1.6; }
.op-reason { padding: 12px 16px; border-radius: 14px; background: rgba(255,120,120,.12); color: #ffb3b3; margin: 8px 0; }
[data-theme="light"] .op-reason { color: #8d1f1f; }
.op-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 22px 0; counter-reset: s; }
.op-steps li { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: .76rem; color: var(--muted); position: relative; }
.op-steps li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; border: 2px solid var(--line); background: var(--bg); }
.op-steps li.done span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.op-steps li.now span { border-color: var(--accent); animation: ping 1.8s infinite; }
.op-steps li.done, .op-steps li.now { color: var(--text); }
.op-steps li.bad span { border-color: #ff8a8a; color: #ff8a8a; }
.op-meta { display: flex; gap: 30px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.op-meta small { display: block; color: var(--muted); font-size: .76rem; }
.op-items { display: grid; gap: 12px; }
.op-item { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; }
.op-item .cover { padding: 6px; }
.op-item .cover > *:not(.c-pat):not(img) { display: none; }
.op-item b { display: block; font-family: var(--serif); }
.op-item span { color: var(--muted); font-size: .86rem; }
.op-save { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: .86rem; }
.op-contact { text-align: center; color: var(--muted); font-size: .84rem; }
.op-find { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.op-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.op-row small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.op-badge { padding: 4px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); }
.op-badge.s-paid { background: rgba(124,227,164,.18); color: #9BE8B5; }
.op-badge.s-pending_review, .op-badge.s-pending_payment { background: rgba(233,185,73,.16); color: #f0cd7a; }
.op-badge.s-rejected { background: rgba(255,120,120,.14); color: #ff9c9c; }
[data-theme="light"] .op-badge.s-paid { color: #1d6b3a; } [data-theme="light"] .op-badge.s-pending_review, [data-theme="light"] .op-badge.s-pending_payment { color: #7a5600; } [data-theme="light"] .op-badge.s-rejected { color: #8d1f1f; }
@media (max-width: 560px) { .op-card { padding: 20px; } .op-find { grid-template-columns: 1fr; } .op-item { grid-template-columns: 44px 1fr; } .op-item .btn { grid-column: 1 / -1; } .op-steps li { font-size: .68rem; } }

/* ---------- cookie notice ---------- */
.gb-consent {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 250;
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 24px);
  padding: 10px 10px 10px 18px; border-radius: 99px; font-size: .84rem;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent); color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.gb-consent a { text-decoration: underline; }
.gb-consent button { padding: 8px 18px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* ---------- Meta event inspector (?pixel_debug=1) ---------- */
.gb-debug {
  position: fixed; right: 12px; bottom: 12px; z-index: 500; width: min(380px, calc(100vw - 24px)); max-height: 60vh;
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: #0f0310; color: #F2EEBF; border: 1px solid rgba(242,238,191,.2);
  font: 12px/1.4 ui-monospace, Consolas, monospace; box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.gb-debug.min .gbd-status, .gb-debug.min .gbd-list { display: none; }
.gbd-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #320C35; }
.gbd-head button { color: inherit; font-size: 16px; padding: 0 6px; }
.gbd-status { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-bottom: 1px solid rgba(242,238,191,.12); }
.gbd-status span { padding: 2px 8px; border-radius: 99px; background: rgba(242,238,191,.08); }
.gbd-status .ok { background: rgba(124,227,164,.18); color: #9BE8B5; }
.gbd-status .bad { background: rgba(255,120,120,.16); color: #ff9c9c; }
.gbd-status .warn { background: rgba(233,185,73,.18); color: #f0cd7a; }
.gbd-list { overflow: auto; padding: 6px 12px 10px; }
.gbd-ev { padding: 8px 0; border-bottom: 1px dashed rgba(242,238,191,.12); }
.gbd-ev code { display: block; margin-top: 4px; word-break: break-all; opacity: .75; }
.gbd-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.gbd-chips span { padding: 1px 6px; border-radius: 6px; background: rgba(242,238,191,.08); }
.gbd-id { opacity: .45; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* checkout: a field that needs fixing */
.co-phone input.is-bad { border-color: #E5484D !important; box-shadow: 0 0 0 3px rgba(229,72,77,.18); }
.co-phone span { font-weight: 600; }


/* order page: polite rejection + Telegram nudge while checking */
.op-reject .op-note { margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: rgba(var(--hi-rgb), .1); border: 1px solid rgba(var(--hi-rgb), .25); }
.op-reject .op-note small { opacity: .7; }
.op-reject .op-note p { margin: 4px 0 0; font-weight: 600; }
.op-tips { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 10px; }
.op-tips li { line-height: 1.5; }
.op-tg-hot { border: 2px solid rgba(var(--hi-rgb), .55); box-shadow: 0 10px 30px rgba(var(--hi-rgb), .15); }

/* ---------- Promise strip (replaces the big moving text) ---------- */
.promise { padding: clamp(28px, 5vw, 56px) clamp(16px, 5vw, 64px); }
.pr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1180px; margin: 0 auto; }
.pr { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 18px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(var(--lt-rgb), .07), rgba(var(--lt-rgb), .02));
  border: 1px solid rgba(var(--lt-rgb), .1); transition: transform .35s ease, border-color .35s ease, background .35s ease; }
.pr:hover { transform: translateY(-3px); border-color: rgba(var(--hi-rgb), .45); background: linear-gradient(160deg, rgba(var(--hi-rgb), .12), rgba(var(--lt-rgb), .03)); }
.pr-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: rgba(var(--hi-rgb), .14); color: var(--hi); box-shadow: inset 0 0 0 1px rgba(var(--hi-rgb), .25); }
.pr-ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pr-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pr-txt b { font-weight: 700; font-size: .98rem; line-height: 1.25; }
.pr-txt small { font-size: .8rem; opacity: .65; line-height: 1.35; }
html[data-theme="light"] .pr { background: linear-gradient(160deg, rgba(var(--dk-rgb), .05), rgba(var(--dk-rgb), .015)); border-color: rgba(var(--dk-rgb), .1); }
@media (max-width: 980px) { .pr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .pr-grid { gap: 10px; }
  .promise { padding: 22px 16px; }
  .pr-grid { gap: 8px; }
  .pr { gap: 9px; padding: 11px 10px; border-radius: 14px; }
  .pr-ico { width: 32px; height: 32px; border-radius: 10px; }
  .pr-ico svg { width: 17px; height: 17px; }
  .pr-txt { gap: 1px; }
  .pr-txt b { font-size: .8rem; }
  .pr-txt small { font-size: .68rem; }
}

/* purchases: bold and easy to see */
.card .buyers { font-size: .86rem; margin-top: 4px; }
.card .buyers b, .m-buyers b, .lp-buyers b { font-weight: 800; font-size: 1.12em; color: var(--hi); }
.m-buyers { margin: 6px 0 2px; font-size: 1rem; }
.lp-buyers { margin-top: 8px; font-size: 1.05rem; }

/* mistake in a field: a bright yellow note right under the box — readable on every palette, dark or light */
.co-ferr { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 10px 12px; border-radius: 12px;
  background: #FFD84D; color: #1F1300; font-size: .92rem; font-weight: 800; line-height: 1.45; box-shadow: 0 6px 18px rgba(255,216,77,.28);
  animation: coFerrIn .28s ease-out; }
.co-ferr::before { content: "⚠️"; flex: none; }
@keyframes coFerrIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.co-phone input.is-bad { border-color: #FFD84D !important; box-shadow: 0 0 0 3px rgba(255,216,77,.35) !important; }
