/* EasyEye Puzzles: designed to be easy on the eyes */
:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --surface-2: #fdf1d6;
  --ink: #14213d;
  --ink-soft: #3c4a66;
  --brand: #1d3a8a;
  --brand-ink: #ffffff;
  --accent: #ffc83d;
  --accent-ink: #14213d;
  --line: #e6dcc6;
  --focus: #e4572e;
  --it: #1f7a4d;
  --fr: #2b4fb3;
  --en: #b3262e;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 33, 61, .10);
  --font: "Atkinson Hyperlegible", "Verdana", system-ui, sans-serif;
  --step: 1;
  font-size: calc(20px * var(--step));
}
html[data-size="l"] { --step: 1.15; }
html[data-size="xl"] { --step: 1.3; }

/* Night mode: soft dark theme, gentle on tired eyes */
html[data-theme="night"] {
  color-scheme: dark;
  --bg: #0f1626;
  --surface: #18223a;
  --surface-2: #1f2b47;
  --ink: #eef1f8;
  --ink-soft: #b9c2d8;
  --brand: #ffc83d;
  --brand-ink: #14213d;
  --accent: #ffc83d;
  --accent-ink: #14213d;
  --line: #2c3a5c;
  --focus: #7cc4ff;
  --it: #2e9e66;
  --fr: #4a6fd6;
  --en: #d0454c;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
html[data-theme="night"] .book-card img,
html[data-theme="night"] .samples img { filter: brightness(.92); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 12px 18px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 16px; top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Accessibility bar */
/* Reading-comfort bar (kept compact; fixed size so it doesn't grow with A+/A++) */
.a11y-bar { background: #14213d; color: #fff; font-size: 13px; line-height: 1; }
html[data-theme="night"] .a11y-bar { background: #0a0f1c; border-bottom: 1px solid var(--line); }
.a11y-bar .container { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; padding-block: 4px; }
.a11y-bar span { opacity: .85; margin-right: 2px; }
.a11y-btn {
  font: inherit; font-weight: 700; cursor: pointer; min-height: 28px; min-width: 32px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: transparent; color: inherit; border: 1.5px solid rgba(255,255,255,.55); border-radius: 8px; padding: 3px 9px;
}
.a11y-btn:hover { border-color: #fff; }
.a11y-btn[aria-pressed="true"] { background: #ffc83d; color: #14213d; border-color: #ffc83d; }
.a11y-btn[data-toggle-night] { margin-left: 6px; }
@media (max-width: 480px) { .a11y-bar span { display: none; } }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { height: 58px; width: auto; }
html[data-theme="night"] .logo { background: #fff; border-radius: 12px; padding: 5px 10px; }
html[data-theme="night"] .logo img { height: 48px; }
@media (max-width: 480px) {
  .logo img { height: 44px; }
  html[data-theme="night"] .logo img { height: 38px; }
}
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 16px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--brand); }
.nav-toggle { display: none; font: inherit; font-weight: 700; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 12px; padding: 10px 16px; min-height: 48px; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 14px 16px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 26px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 3px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.15); text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--surface-2); }

/* Hero */
.hero { padding: 64px 0 72px; background:
  radial-gradient(circle at 85% 15%, rgba(255, 200, 61, .35), transparent 40%),
  radial-gradient(circle at 10% 90%, rgba(29, 58, 138, .10), transparent 45%), var(--bg); }
html[data-theme="night"] .hero { background: radial-gradient(circle at 85% 15%, rgba(255, 200, 61, .12), transparent 40%), var(--bg); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--surface-2); color: var(--brand); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .85rem; margin-bottom: 18px; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-stack { position: relative; height: 460px; }
.hero-stack img { position: absolute; width: 56%; border-radius: 12px; box-shadow: 0 18px 40px rgba(20,33,61,.25); border: 4px solid #fff; }
.hero-stack img:nth-child(1) { left: 0; top: 40px; transform: rotate(-7deg); }
.hero-stack img:nth-child(2) { left: 22%; top: 0; z-index: 2; }
.hero-stack img:nth-child(3) { right: 0; top: 60px; transform: rotate(7deg); }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-stack { height: 360px; max-width: 460px; width: 100%; margin-inline: auto; }
}

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 60ch; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 30px; height: 30px; }
.card p { color: var(--ink-soft); margin: 0; }

/* Language tiles */
.langs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .langs { grid-template-columns: repeat(2, 1fr); } }
.lang-tile { display: block; background: var(--surface); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 3px solid transparent; }
.lang-tile:hover { border-color: var(--brand); }
.lang-tile .flag { font-size: 2.2rem; line-height: 1; margin-bottom: 10px; display: flex; gap: 0; height: 28px; width: 42px; border-radius: 4px; overflow: hidden; }
.lang-tile .flag i { flex: 1; }
.lang-tile strong { display: block; font-size: 1.2rem; }
.lang-tile span { color: var(--ink-soft); font-size: .9rem; }

/* Book grid */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filter-group .label { font-weight: 700; margin-right: 6px; min-width: 110px; }
.chip { font: inherit; font-weight: 700; min-height: 48px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.result-count { color: var(--ink-soft); margin: 4px 0 24px; }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.book-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s ease; }
.book-card[hidden] { display: none; }
.book-card:hover { transform: translateY(-4px); }
.book-card .cover { aspect-ratio: 621 / 810; background: var(--surface-2); overflow: hidden; }
.book-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.book-card h3 { font-size: 1.1rem; margin: 0; }
.book-card h3 a { color: var(--ink); text-decoration: none; }
.book-card h3 a::after { content: ""; position: absolute; inset: 0; }
.book-card { position: relative; }
.book-card .sub { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.book-card .more { font-weight: 700; color: var(--brand); font-size: .9rem; }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.tag-it { background: var(--it); color: #fff; }
.tag-fr { background: var(--fr); color: #fff; }
.tag-en { background: var(--en); color: #fff; }
.tag-lv { background: var(--accent); color: var(--accent-ink); }


.coming-soon { display: none; text-align: center; padding: 40px 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.coming-soon.show { display: block; }

/* Book detail */
.breadcrumb { font-size: .9rem; margin-bottom: 20px; color: var(--ink-soft); }
.book-detail { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .book-detail { grid-template-columns: 1fr; } }
.book-detail .cover-lg { border-radius: 14px; box-shadow: 0 18px 40px rgba(20,33,61,.22); overflow: hidden; }
.book-detail .original { color: var(--ink-soft); font-size: 1.1rem; font-style: italic; margin-top: -6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.facts li { background: var(--surface); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.facts b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.check-list li { position: relative; padding-left: 40px; margin-bottom: 10px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 26px; height: 26px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 16px no-repeat; }
.buy-box { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin: 24px 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.buy-box { justify-content: space-between; }
.samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.samples figure { margin: 0; background: var(--surface); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.samples button { all: unset; cursor: zoom-in; display: block; border-radius: 8px; overflow: hidden; }
.samples button:focus-visible { outline: 4px solid var(--focus); }
.samples figcaption { font-size: .85rem; color: var(--ink-soft); padding: 10px 4px 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 8px; background: #fff; }
.lightbox .close { position: absolute; top: 16px; right: 16px; }

/* Steps / CTA */
.cta { background: var(--brand); color: var(--brand-ink); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta p { margin: 0; opacity: .92; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 32px 24px; } }

.faq details { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 24px 20px; color: var(--ink-soft); }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #14213d; color: #e9ecf4; padding: 48px 0 32px; margin-top: 40px; }
html[data-theme="night"] .site-footer { background: #0a0f1c; border-top: 1px solid var(--line); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem; }
.footer-brand img { width: 56px; height: 56px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.copyright { border-top: 1px solid rgba(255,255,255,.2); margin-top: 32px; padding-top: 20px; font-size: .85rem; opacity: .85; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Prices */
.price { font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.price-lg { font-size: 2.2rem; line-height: 1; }
.price-block { display: flex; align-items: baseline; gap: 10px; }
.was { color: var(--ink-soft); font-size: 1rem; }
.muted { color: var(--ink-soft); font-size: .9em; }

/* Bundles */
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
@media (max-width: 400px) { .bundle-grid { grid-template-columns: 1fr; } }
.bundle-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 120px; }
.bundle-card:target { outline: 4px solid var(--accent); }
.bundle-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bundle-body h3 { margin: 0; }
.bundle-body .sub { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.cover-stack { position: relative; height: 210px; background: var(--surface-2); overflow: hidden; }
.cover-stack img { position: absolute; bottom: -14px; width: 118px; border-radius: 6px; box-shadow: 0 8px 20px rgba(20,33,61,.25); border: 3px solid #fff; }
.cover-stack.n1 img { left: calc(50% - 59px); }
.cover-stack.n2 img:nth-child(1) { left: calc(50% - 112px); transform: rotate(-6deg); }
.cover-stack.n2 img:nth-child(2) { left: calc(50% - 6px); transform: rotate(5deg); }
.cover-stack.n3 img:nth-child(1) { left: calc(50% - 150px); transform: rotate(-8deg); }
.cover-stack.n3 img:nth-child(2) { left: calc(50% - 59px); z-index: 2; bottom: -4px; }
.cover-stack.n3 img:nth-child(3) { left: calc(50% + 32px); transform: rotate(8deg); }
.cover-stack.n4 img:nth-child(1) { left: calc(50% - 170px); transform: rotate(-9deg); }
.cover-stack.n4 img:nth-child(2) { left: calc(50% - 100px); transform: rotate(-3deg); z-index: 2; bottom: -6px; }
.cover-stack.n4 img:nth-child(3) { left: calc(50% - 22px); transform: rotate(3deg); z-index: 3; bottom: -6px; }
.cover-stack.n4 img:nth-child(4) { left: calc(50% + 52px); transform: rotate(9deg); }
.included summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 4px 0; }
.included ul { margin: 8px 0 0; padding-left: 20px; font-size: .9rem; }
.included li { margin-bottom: 6px; }
.bundle-buy { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }
/* Checkout pages: standalone, no site header/footer */
.checkout-body { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; }
.checkout { width: 100%; max-width: 560px; }
.checkout-back { display: inline-block; margin-bottom: 14px; font-weight: 700; text-decoration: none; }
.checkout-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 28px; }
.checkout-product { display: flex; gap: 20px; align-items: center; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.checkout-cover { width: 110px; flex: none; border-radius: 8px; box-shadow: 0 8px 20px rgba(20,33,61,.2); }
.checkout-product .cover-stack { width: 170px; height: 150px; flex: none; border-radius: 12px; }
.checkout-product .cover-stack img { width: 72px; bottom: -8px; }
.checkout-product .cover-stack.n2 img:nth-child(1) { left: 14px; } .checkout-product .cover-stack.n2 img:nth-child(2) { left: 80px; }
.checkout-product .cover-stack.n3 img:nth-child(1) { left: 6px; } .checkout-product .cover-stack.n3 img:nth-child(2) { left: 49px; } .checkout-product .cover-stack.n3 img:nth-child(3) { left: 92px; }
.checkout-product .cover-stack.n4 img:nth-child(1) { left: 0; } .checkout-product .cover-stack.n4 img:nth-child(2) { left: 32px; } .checkout-product .cover-stack.n4 img:nth-child(3) { left: 64px; } .checkout-product .cover-stack.n4 img:nth-child(4) { left: 96px; }
.checkout-kind { margin: 0 0 4px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.checkout h1 { font-size: 1.4rem; margin: 0 0 6px; }
.checkout-sub { margin: 0 0 8px; font-size: .85rem; color: var(--ink-soft); }
.checkout-price { margin: 0; font-size: 2rem; font-weight: 700; line-height: 1; }
.checkout-price span { font-size: .9rem; color: var(--ink-soft); font-weight: 400; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input { width: 100%; font: inherit; font-size: 1.05rem; padding: 14px 16px; min-height: 54px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px rgba(29,58,138,.18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checkout-submit { width: 100%; font-size: 1.1rem; margin-top: 6px; }
.checkout-submit:disabled { opacity: .7; cursor: wait; }
.checkout-note { margin: 12px 0 0; text-align: center; font-size: .85rem; color: var(--ink-soft); }
.form-error { background: #fdecea; color: #8a1c1c; border-radius: 10px; padding: 12px 14px; font-weight: 700; }
html[data-theme="night"] .form-error { background: #4a1f1f; color: #ffd7d7; }
.order-done { text-align: center; padding: 10px 0; }
.done-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: #1f7a4d; color: #fff; font-size: 2.4rem; display: grid; place-items: center; }
@media (max-width: 480px) {
  .checkout-card { padding: 20px; }
  .checkout-product { flex-direction: column; text-align: center; }
}.checkout-covers { display: flex; align-items: center; flex: none; }
.checkout-covers img { width: 64px; border-radius: 6px; border: 2px solid #fff; box-shadow: 0 6px 14px rgba(20,33,61,.22); }
.checkout-covers img + img { margin-left: -22px; }
.checkout-covers span { margin-left: 6px; font-weight: 700; color: var(--ink-soft); }
/* =========================================================
   Homepage v2
   ========================================================= */
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
html[data-theme="night"] .kicker { color: var(--accent); }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center p { margin-inline: auto; }
.btn-lg { min-height: 62px; padding: 14px 30px; font-size: 1.05rem; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* Hero */
.hero-v2 { padding: 56px 0 80px; overflow: hidden; position: relative; }
.hero-v2 .container { grid-template-columns: 1.05fr .95fr; }
.hero-v2 .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.hero-v2 .eyebrow svg { width: 16px; height: 16px; color: #e8a400; }
.hero-v2 h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; }
.hl { background: linear-gradient(transparent 58%, rgba(255, 200, 61, .75) 58%, rgba(255, 200, 61, .75) 92%, transparent 92%); padding: 0 .08em; }
html[data-theme="night"] .hl { background: none; color: var(--accent); }
.hero-checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #1f7a4d; color: #fff; flex: none; }
.hero-visual { position: relative; height: 500px; }
.hero-blob { position: absolute; inset: 30px 10px 10px 40px; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; background: radial-gradient(circle at 30% 30%, #ffd86b, #ffc83d 55%, #f5a300); opacity: .9; }
html[data-theme="night"] .hero-blob { opacity: .25; }
.hero-fan { position: absolute; inset: 0; }
.hero-fan img { position: absolute; width: 50%; border-radius: 10px; border: 5px solid #fff; box-shadow: 0 24px 50px rgba(20,33,61,.3); transition: transform .4s ease; }
.hero-fan img:nth-child(1) { left: 2%; top: 70px; transform: rotate(-9deg); }
.hero-fan img:nth-child(2) { left: 25%; top: 20px; z-index: 2; }
.hero-fan img:nth-child(3) { right: 0; top: 80px; transform: rotate(8deg); }
.hero-visual:hover .hero-fan img:nth-child(1) { transform: rotate(-13deg) translateX(-10px); }
.hero-visual:hover .hero-fan img:nth-child(3) { transform: rotate(12deg) translateX(10px); }
.float-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: .85rem; padding: 10px 16px; border-radius: 999px; box-shadow: 0 12px 30px rgba(20,33,61,.18); animation: bob 5s ease-in-out infinite; }
.float-chip svg { width: 20px; height: 20px; color: var(--brand); }
html[data-theme="night"] .float-chip svg { color: var(--accent); }
.chip-a { left: -4px; top: 30px; }
.chip-b { right: -6px; top: 10px; animation-delay: -1.6s; }
.chip-c { left: 18%; bottom: 6px; animation-delay: -3.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .hero-v2 .container { grid-template-columns: 1fr; }
  .hero-visual { height: 400px; max-width: 480px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) {
  .hero-visual { height: 330px; }
  .float-chip { font-size: .72rem; padding: 7px 11px; }
  .float-chip svg { width: 16px; height: 16px; }
}

/* Stats */
.stats-band { padding: 0; background: #14213d; color: #fff; }
html[data-theme="night"] .stats-band { background: #0a0f1c; border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 30px; text-align: center; }
.stats strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; color: #ffc83d; }
.stats span { font-size: .9rem; opacity: .9; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Cover marquee */
.marquee { overflow: hidden; padding: 34px 0; background: var(--surface-2); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 26px; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { width: 150px; border-radius: 8px; box-shadow: 0 10px 24px rgba(20,33,61,.2); transition: transform .25s ease; }
.marquee a:hover img { transform: translateY(-6px) scale(1.03); }
@keyframes marquee { to { transform: translateX(calc(-50% - 13px)); } }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 980px; margin-inline: auto; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare-card { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.compare-card figcaption { display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); font-size: .9rem; margin-bottom: 18px; }
.pill { align-self: flex-start; font-weight: 700; font-size: .8rem; padding: 5px 12px; border-radius: 999px; }
.pill-bad { background: #eceae4; color: #6b6b6b; }
.pill-good { background: #1f7a4d; color: #fff; }
html[data-theme="night"] .pill-bad { background: #2c3a5c; color: #b9c2d8; }
.letters-small { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: #fbfbf8; border: 1px solid #ddd; padding: 10px; font-family: Georgia, serif; font-size: 10px; color: #8a8a8a; text-align: center; line-height: 1.6; }
.letters-big { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; background: #fff; border: 3px solid #14213d; border-radius: 10px; padding: 14px; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); color: #14213d; text-align: center; line-height: 1.5; }
.letters-big span:nth-child(-n+4) { background: #ffe39a; border-radius: 6px; }

/* Type tiles */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .type-grid { grid-template-columns: 1fr; } }
.type-tile { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 3px solid transparent; transition: transform .2s ease, border-color .2s ease; }
.type-tile:hover { transform: translateY(-4px); border-color: var(--brand); }
.type-art { height: 150px; background-size: cover; background-position: center 30%; position: relative; }
.type-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--surface)); }
.type-body { padding: 0 22px 22px; margin-top: -26px; position: relative; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.type-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(20,33,61,.18); }
.type-icon svg { width: 28px; height: 28px; }
.type-body h3 { margin: 8px 0 0; }
.type-body p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.type-meta { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--brand); font-size: .9rem; }
html[data-theme="night"] .type-meta { color: var(--accent); }

/* Mini word search */
.play-section { background: linear-gradient(135deg, #1d3a8a, #14213d); color: #fff; }
html[data-theme="night"] .play-section { background: linear-gradient(135deg, #18223a, #0a0f1c); }
.play-section .kicker { color: #ffc83d; }
.play { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .play { grid-template-columns: 1fr; } }
.play-copy p { opacity: .92; }
.play-section .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.play-section .btn-ghost:hover { background: rgba(255,255,255,.1); }
.ws-words { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ws-words li { font-weight: 700; letter-spacing: .08em; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.3); }
.ws-words li.found { background: #ffc83d; color: #14213d; border-color: #ffc83d; text-decoration: line-through; text-decoration-thickness: 3px; }
.ws-status { font-weight: 700; }
.ws-wrap { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.ws-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; background: #fff; padding: 14px; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.ws-cell { aspect-ratio: 1; border: 0; border-radius: 10px; background: #f4f1ea; color: #14213d; font: inherit; font-weight: 700; font-size: clamp(1.1rem, 3.6vw, 1.7rem); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background .15s ease, transform .1s ease; }
.ws-cell:hover { background: #ffe9ad; }
.ws-cell:focus-visible { outline: 4px solid #e4572e; outline-offset: 1px; }
.ws-cell.start { background: #1d3a8a; color: #fff; transform: scale(1.06); }
.ws-cell.found { background: #ffc83d; color: #14213d; }
.ws-cell.miss { animation: shake .35s; background: #f6c4c4; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.ws-win { position: absolute; inset: 0; border-radius: 20px; background: rgba(20,33,61,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 6px; }
.ws-win[hidden] { display: none; }
.ws-win strong { font-size: 2rem; color: #ffc83d; }

/* Spotlight */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .spotlight { grid-template-columns: 1fr; } }
.spot-images { position: relative; min-height: 460px; }
.spot-cover { position: absolute; left: 0; top: 30px; width: 58%; border-radius: 12px; box-shadow: 0 24px 50px rgba(20,33,61,.3); z-index: 2; border: 4px solid #fff; transform: rotate(-4deg); }
.spot-page { position: absolute; right: 0; top: 0; width: 58%; border-radius: 10px; box-shadow: 0 18px 40px rgba(20,33,61,.22); transform: rotate(3deg); }
@media (max-width: 520px) { .spot-images { min-height: 330px; } }
.spot-copy .original { color: var(--ink-soft); font-style: italic; margin-top: -6px; }
.spot-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.spot-buy .price-lg { margin-right: 8px; }

/* Who it's for */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .who-grid { grid-template-columns: 1fr; } }
.who { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-top: 6px solid var(--accent); }
.who-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--surface-2); color: var(--brand); margin-bottom: 14px; }
html[data-theme="night"] .who-icon { color: var(--accent); }
.who-icon svg { width: 28px; height: 28px; }
.who p { color: var(--ink-soft); margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; position: relative; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: var(--shadow); position: relative; }
.step-num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 1.4rem; margin-bottom: 14px; }
.steps p { color: var(--ink-soft); margin: 0; }

/* FAQ + final CTA */
.faq-wrap { max-width: 900px; }
.cta-v2 { background: linear-gradient(120deg, #1d3a8a, #14213d 70%); position: relative; overflow: hidden; }
html[data-theme="night"] .cta-v2 { background: linear-gradient(120deg, #1f2b47, #0a0f1c); border: 1px solid var(--line); }
.cta-v2::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 200, 61, .18); }
.cta-v2 h2 { color: #fff; }
.cta-v2 p { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* Scroll reveal (added by JS only) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .float-chip { animation: none !important; }
  .marquee { overflow-x: auto; }
  .reveal { opacity: 1; transform: none; }
}
/* Flags (SVG) */
.lang-tile .flag { box-shadow: 0 0 0 1px rgba(20,33,61,.15); }
.lang-tile .flag svg { width: 100%; height: 100%; display: block; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Legal pages */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 24px; } }
.legal-nav { position: sticky; top: 110px; background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .legal-nav { position: static; } }
.legal-nav h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: 10px; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; }
.legal-nav a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; }
.legal-nav a:hover { background: var(--surface-2); }
.legal-nav a[aria-current="page"] { background: var(--brand); color: var(--brand-ink); }
.legal-body { max-width: 75ch; }
.legal-body h1 { margin-bottom: 6px; }
.legal-body h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal-body li { margin-bottom: 8px; }
.legal-updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.6em; }
.legal-contact { margin-top: 2.4em; background: var(--surface-2); border-radius: var(--radius); padding: 22px 26px; }
.legal-contact h2 { margin-top: 0; }
.legal-contact p { margin: 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 10px 0 18px; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--surface-2); }
.checkout-note a { color: inherit; font-weight: 700; }