/* Spokn — brand site styles (Home, About, App, Products, Ebooks, Contact, product pages)
   Brand: Inter + Space Grotesk, deep violet #0c0a1a, violet #7c3aed → blue gradient */

:root {
  --bg: #0c0a1a;
  --bg-alt: #110e24;
  --surface: #161230;
  --surface-2: #1d1840;
  --line: rgba(167, 139, 250, 0.14);
  --line-strong: rgba(167, 139, 250, 0.3);
  --text: #f5f3ff;
  --muted: #b3aed0;
  --dim: #8a85a8;
  --violet: #7c3aed;
  --violet-2: #8b5cf6;
  --violet-light: #c4b5fd;
  --yellow: #fcd34d;
  --green: #34d399;
  --grad: linear-gradient(135deg, #7c3aed 0%, #5b5ce8 55%, #2563eb 100%);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet-light); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 300; font-weight: 600; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.97rem; line-height: 1.2; text-decoration: none; text-align: center; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.02rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -12px rgba(124, 58, 237, 0.9); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -12px rgba(124, 58, 237, 1); }
.btn-secondary { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-secondary:hover { border-color: var(--violet-light); background: rgba(167,139,250,0.08); }
.btn-link { color: var(--violet-light); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-link .arrow { transition: transform .18s ease; }
.btn-link:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(12, 10, 26, 0.86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; line-height: 1; padding: 4px 0; }
.logo-mark { width: 32px; height: 32px; flex: none; border-radius: 22%; display: block; }
.logo span { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding: 2px 0; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: color .15s ease, background-color .15s ease; }
.main-nav a:not(.btn):hover { color: var(--text); background: rgba(255,255,255,0.04); }
.main-nav a[aria-current="page"] { color: var(--text); }
.main-nav .nav-extra { display: none; }
.header-cta { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tight { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head-row .section-head { margin-bottom: 0; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet-light); margin-bottom: 12px; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 14px; }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
.lead { font-size: 1.1rem; color: var(--muted); }
.center .lead { margin-left: auto; margin-right: auto; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 85% 0%, rgba(124,58,237,0.16), transparent 70%); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.03em; margin-bottom: 16px; max-width: 820px; }
.page-hero .lead { max-width: 680px; }
.breadcrumbs { font-size: 0.85rem; color: var(--dim); margin-bottom: 20px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--dim); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -12%; top: -30%; width: 760px; height: 760px; background: radial-gradient(closest-side, rgba(124,58,237,0.2), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.4rem); letter-spacing: -0.035em; line-height: 1.03; margin-bottom: 22px; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cats { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--dim); align-items: center; }
.hero-cats a { color: var(--muted); text-decoration: none; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; transition: border-color .15s ease, color .15s ease; }
.hero-cats a:hover { color: var(--text); border-color: var(--line-strong); }

.hero-visual { position: relative; height: 440px; }
.hv-card { position: absolute; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px; text-decoration: none; transition: transform .3s ease, border-color .2s ease; }
.hv-card:hover { border-color: var(--violet-light); }
.hv-app { left: 0; top: 40px; width: 250px; display: grid; gap: 14px; }
.hv-app img { width: 88px; height: 88px; border-radius: 22px; }
.hv-book { right: 0; top: 0; width: 230px; padding: 14px; transform: rotate(3deg); }
.hv-book img { border-radius: 8px; width: 100%; }
.hv-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-light); }
.hv-title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.hv-meta { font-size: 0.82rem; color: var(--muted); }
.hv-more { left: 34px; bottom: 0; width: 280px; background: transparent; border-style: dashed; box-shadow: none; color: var(--dim); font-size: 0.88rem; }
.hv-more strong { color: var(--muted); display: block; margin-bottom: 4px; font-size: 0.92rem; }
@media (prefers-reduced-motion: no-preference) {
  .hv-app { animation: float 7s ease-in-out infinite; }
  .hv-book { animation: float2 8s ease-in-out infinite; }
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float2 { 0%,100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-10px); } }

/* ---------- Intro / statement ---------- */
.statement { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.statement p.big { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.35; letter-spacing: -0.01em; color: var(--text); margin-bottom: 20px; }
.statement p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color .2s ease, transform .2s ease, background-color .2s ease; }
.cat-card:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-2px); }
.cat-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(124,58,237,0.14); color: var(--violet-light); }
.cat-icon svg { width: 20px; height: 20px; }
.cat-card h3 { font-size: 1.15rem; }
.cat-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.cat-count { font-size: 0.82rem; color: var(--dim); display: flex; justify-content: space-between; align-items: center; }
.cat-count .arrow { color: var(--violet-light); transition: transform .18s ease; }
.cat-card:hover .cat-count .arrow { transform: translateX(3px); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-grid.two { grid-template-columns: repeat(2, 1fr); }
.product-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.product-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pc-media { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(90% 90% at 30% 20%, #2a2160 0%, #17132e 70%); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.pc-media img { transition: transform .35s ease; }
.product-card:hover .pc-media img { transform: scale(1.03); }
.pc-media.square img { width: 34%; max-width: 128px; border-radius: 22%; box-shadow: 0 16px 40px -14px rgba(0,0,0,0.7); }
.pc-media.cover img { position: absolute; top: 8%; left: 50%; height: 84%; width: auto; transform: translateX(-50%); border-radius: 6px; box-shadow: 0 18px 40px -14px rgba(0,0,0,0.8); }
.product-card:hover .pc-media.cover img { transform: translateX(-50%) scale(1.03); }
.pc-media.wide img { width: 100%; height: 100%; object-fit: cover; }
.pc-status { position: absolute; top: 12px; left: 12px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; background: rgba(12,10,26,0.82); border: 1px solid var(--line-strong); color: var(--violet-light); }
.pc-status.coming-soon { color: var(--yellow); }
.pc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 0.78rem; color: var(--dim); margin-bottom: 8px; }
.pc-cat { color: var(--violet-light); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem; }
.pc-title { font-size: 1.2rem; margin-bottom: 8px; }
.pc-title a { text-decoration: none; }
.pc-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pc-desc { color: var(--muted); font-size: 0.94rem; flex: 1; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pc-price { font-weight: 600; }
.pc-price small { display: block; font-weight: 400; color: var(--dim); font-size: 0.78rem; }
.pc-cta { color: var(--violet-light); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.empty-state { grid-column: 1 / -1; padding: 48px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters a { min-height: 42px; display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.92rem; transition: all .15s ease; }
.filters a:hover { color: var(--text); border-color: var(--line-strong); }
.filters a[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters .count { margin-left: 6px; opacity: 0.6; font-size: 0.82em; }
.filter-select { display: none; }

/* ---------- Showcase (app / ebook) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.showcase.reverse .showcase-media { order: 2; }
.showcase-media { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line); background: radial-gradient(80% 80% at 30% 20%, #2a2160 0%, #15112d 75%); min-height: 380px; display: grid; place-items: center; padding: 40px; overflow: hidden; }
.showcase-media .app-icon { width: 168px; height: 168px; border-radius: 40px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8); }
.showcase-media .book-cover { width: 62%; max-width: 280px; border-radius: 8px; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.9); transform: rotate(-2deg); }
.platform-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.platform-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.platform-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.platform-pill.soon .dot { background: var(--yellow); }
.check-list { display: grid; gap: 10px; margin: 20px 0 28px; }
.check-list li { position: relative; padding-left: 28px; color: var(--muted); }
.check-list li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2px solid var(--violet-light); border-bottom: 2px solid var(--violet-light); transform: rotate(-45deg); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.small-note { font-size: 0.86rem; color: var(--dim); margin-top: 14px; }
.editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 26px; }
.edition { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,0.015); }
.edition b { display: block; font-family: var(--display); font-size: 1.25rem; }
.edition span { font-size: 0.8rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { padding: 24px 22px; border-top: 2px solid var(--violet-2); background: linear-gradient(180deg, rgba(124,58,237,0.07), transparent 70%); border-radius: 0 0 var(--radius) var(--radius); }
.value h3 { margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 0.94rem; }

/* ---------- CTA section ---------- */
.cta-section { padding: 104px 0; text-align: center; background: radial-gradient(55% 90% at 50% 0%, rgba(124,58,237,0.24), transparent 70%); border-top: 1px solid var(--line); }
.cta-section h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 760px; margin: 0 auto 14px; }
.cta-section p { color: var(--muted); max-width: 580px; margin: 0 auto 30px; font-size: 1.08rem; }
.cta-section .cta-row { justify-content: center; }

/* ---------- Two-column info blocks ---------- */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.info-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.info-card h3 { margin-bottom: 6px; }
.info-card p { color: var(--muted); font-size: 0.94rem; }
.tag { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; background: rgba(52,211,153,0.12); color: var(--green); }
.tag.later { background: rgba(167,139,250,0.12); color: var(--violet-light); }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.94rem; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: s; padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); font-family: var(--display); font-weight: 700; margin-bottom: 14px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Pricing (app) ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; }
.plan { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.plan.highlight { border-color: rgba(167,139,250,0.5); background: linear-gradient(180deg, #211a4a, #161230 70%); }
.plan h3 { font-size: 1.2rem; }
.plan .amount { font-family: var(--display); font-size: 2.2rem; font-weight: 700; margin: 8px 0 4px; }
.plan .amount small { font-family: var(--font); font-size: 0.9rem; color: var(--dim); font-weight: 400; }
.plan p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Gallery ---------- */
.gallery { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.gallery img { flex: 0 0 auto; height: 440px; width: auto; border-radius: 16px; border: 1px solid var(--line); scroll-snap-align: start; }

/* ---------- Product detail ---------- */
.pd-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.pd-media { min-height: 360px; }
.pd-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); margin-bottom: 12px; }
.pd-tagline { font-size: 1.15rem; color: var(--muted); margin-bottom: 20px; }
.pd-price { font-family: var(--display); font-size: 1.8rem; font-weight: 700; margin-bottom: 4px; }
.pd-price-note { color: var(--dim); font-size: 0.88rem; margin-bottom: 22px; }
.details-table { width: 100%; border-collapse: collapse; }
.details-table th, .details-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.95rem; }
.details-table th { color: var(--dim); font-weight: 500; width: 38%; padding-right: 16px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 600; font-size: 1.03rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--violet-light); border-bottom: 2px solid var(--violet-light); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--violet-light); }
.faq .answer { padding: 0 44px 20px 0; color: var(--muted); }
.faq .answer a { color: var(--violet-light); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; }
.contact-card { padding: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); }
.contact-email { display: inline-block; font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; color: var(--violet-light); text-decoration: none; margin: 8px 0 18px; word-break: break-all; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #09071a; border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--dim); font-size: 0.92rem; margin-top: 14px; max-width: 340px; }
.footer-col h2 { font-family: var(--font); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.94rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.86rem; }

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

/* ---------- Product route (served via homepage fallback) ---------- */
.route-product .home-only { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .showcase, .statement, .split, .pd-hero, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .showcase.reverse .showcase-media { order: 0; }
  .hero-visual { height: 400px; max-width: 560px; width: 100%; margin: 0 auto; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 24px; background: #0c0a1a; border-bottom: 1px solid var(--line-strong); box-shadow: 0 24px 48px -12px rgba(0,0,0,0.7); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; }
  .main-nav a:not(.btn) { padding: 14px 12px; font-size: 1.06rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .nav-extra { display: block; }
  .main-nav .btn { margin-top: 14px; }
  .cat-grid, .feature-grid, .steps, .info-cards { grid-template-columns: 1fr 1fr; }
  .editions { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: 2.45rem; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hv-card { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; animation: none !important; transform: none !important; }
  .hv-app { padding: 16px; }
  .hv-app img { width: 64px; height: 64px; border-radius: 16px; }
  .hv-more { grid-column: 1 / -1; }
  .product-grid, .product-grid.two, .cat-grid, .feature-grid, .steps, .info-cards, .values, .plans { grid-template-columns: 1fr; }
  .editions { grid-template-columns: 1fr; }
  .showcase-media { min-height: 280px; padding: 32px; }
  .showcase-media .app-icon { width: 128px; height: 128px; border-radius: 30px; }
  .cta-row .btn { width: 100%; }
  .filters { display: none; }
  .filter-select { display: block; margin-bottom: 24px; }
  .filter-select label { display: block; font-size: 0.85rem; color: var(--dim); margin-bottom: 6px; }
  .filter-select select { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; }
  .gallery img { height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-section { padding: 80px 0; }
  .page-hero { padding: 48px 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Free practice (/practice) ---------- */
.practice { padding: 40px 0 88px; }
.practice .container { max-width: 820px; }
.pr-intro-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 10px 0 14px; }
.pr-intro-head .lead { max-width: 640px; }
.pr-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 30px; }
.pr-badges span { border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 13px; font-size: 0.86rem; color: var(--violet-light); }
.pr-rounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pr-round { text-align: left; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .18s ease, transform .18s ease, background-color .18s ease; min-height: 170px; }
.pr-round:hover { border-color: var(--violet-light); transform: translateY(-2px); background: var(--surface-2); }
.pr-round-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.pr-round-desc { color: var(--muted); font-size: 0.95rem; flex: 1; }
.pr-round-go { color: var(--violet-light); font-weight: 600; font-size: 0.93rem; }
.pr-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px 0 20px; counter-reset: prhow; }
.pr-how li { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 0.93rem; color: var(--muted); counter-increment: prhow; }
.pr-how li::before { content: counter(prhow); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(124,58,237,0.22); color: var(--violet-light); font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; }
.pr-how strong { display: block; color: var(--text); margin-bottom: 2px; }
.pr-privacy { font-size: 0.86rem; color: var(--dim); max-width: 680px; }
.pr-warn, .pr-limit { border: 1px solid rgba(252, 211, 77, 0.35); background: rgba(252, 211, 77, 0.06); border-radius: var(--radius); padding: 14px 16px; color: #fde68a; font-size: 0.93rem; margin-bottom: 18px; }
.pr-limit { padding: 22px; color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.pr-limit h2 { font-size: 1.35rem; margin-bottom: 8px; }
.pr-limit p { color: var(--muted); margin-bottom: 16px; }

.pr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.pr-badge { background: rgba(124,58,237,0.18); color: var(--violet-light); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; font-weight: 600; }
.pr-progress-label { color: var(--muted); font-size: 0.9rem; }
.pr-quit { color: var(--dim); font-size: 0.88rem; text-decoration: underline; text-underline-offset: 3px; }
.pr-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.06); overflow: hidden; margin-bottom: 22px; }
.pr-bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .4s ease; }
.pr-qcard { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 22px 22px 18px; margin-bottom: 18px; }
.pr-qhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pr-qlabel { font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-light); font-weight: 700; }
.pr-qtools { display: flex; gap: 8px; }
.pr-tool { border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; font-size: 0.82rem; color: var(--violet-light); display: inline-flex; gap: 6px; align-items: center; }
.pr-tool:hover { background: rgba(167,139,250,0.1); }
.pr-question { font-family: var(--display); font-size: clamp(1.3rem, 3.4vw, 1.7rem); font-weight: 600; line-height: 1.3; outline: none; }
.pr-speaking { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; margin-top: 10px; }
.pr-speaking::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: prpulse 1s ease-in-out infinite; }
.pr-tipbox { margin-top: 12px; font-size: 0.92rem; }
.pr-tipbox summary { cursor: pointer; color: var(--violet-light); font-weight: 600; }
.pr-tipbox p { color: var(--muted); margin-top: 6px; }
.pr-voicearea { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 14px; }
.pr-voicerow { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.pr-mic { flex: none; width: 68px; height: 68px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 12px 30px -12px rgba(124,58,237,0.9); transition: transform .15s ease; }
.pr-mic svg { width: 28px; height: 28px; }
.pr-mic:hover { transform: scale(1.04); }
.pr-mic.listening { background: #dc2626; box-shadow: 0 0 0 0 rgba(220,38,38,0.6); animation: prring 1.4s ease-out infinite; }
.pr-status { color: var(--muted); font-size: 0.93rem; flex: 1; }
.pr-status.live { color: var(--green); font-weight: 600; }
.pr-status.warn { color: #fde68a; }
.pr-timer { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.9rem; }
.pr-answer { width: 100%; min-height: 130px; resize: vertical; background: rgba(0,0,0,0.25); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font: inherit; font-size: 1rem; line-height: 1.55; padding: 12px 14px; }
.pr-answer:focus { outline: 2px solid var(--violet-light); outline-offset: 1px; }
.pr-answer:disabled { opacity: .75; }
.pr-error { color: #fca5a5; font-size: 0.92rem; margin: 6px 0 10px; }
.pr-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pr-actions .btn { flex: 1 1 220px; }
.pr-feedback { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 22px; margin: 6px 0 16px; }
.pr-fb-title { font-size: 1.35rem; margin-bottom: 14px; outline: none; }
.pr-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.pr-chip { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.pr-chip-val { font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.pr-chip-val small { font-size: 0.9rem; color: var(--dim); font-weight: 500; margin-left: 2px; }
.pr-chip-lbl { color: var(--muted); font-size: 0.86rem; }
.pr-meter { height: 5px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; margin-top: 4px; }
.pr-meter i { display: block; height: 100%; background: var(--grad); }
.pr-meta { color: var(--dim); font-size: 0.86rem; margin-bottom: 16px; }
.pr-fb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pr-fb-block { margin-bottom: 16px; }
.pr-fb-block h3 { font-size: 0.98rem; margin-bottom: 8px; }
.pr-list li { position: relative; padding-left: 22px; margin-bottom: 7px; color: var(--muted); font-size: 0.94rem; }
.pr-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.pr-list.good li::before { content: "✓"; color: var(--green); }
.pr-list.improve li::before { content: "→"; color: var(--yellow); }
.pr-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-tag { border-radius: 999px; padding: 4px 11px; font-size: 0.86rem; background: rgba(252,211,77,0.1); border: 1px solid rgba(252,211,77,0.3); color: #fde68a; }
.pr-tag.ok { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.3); color: var(--green); }
.pr-points li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.94rem; color: var(--muted); }
.pr-points li.hit { color: var(--text); }
.pr-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; border: 1.5px solid var(--line-strong); }
.pr-points li.hit .pr-dot { background: var(--green); border-color: var(--green); color: #052e22; font-weight: 800; }
.pr-example { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.pr-example summary { cursor: pointer; font-weight: 600; color: var(--violet-light); }
.pr-example p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.pr-muted { color: var(--dim); font-size: 0.88rem; }
.pr-note { color: var(--dim); font-size: 0.86rem; }
.pr-note a { color: var(--violet-light); }
.pr-res-head h2 { font-size: clamp(2rem, 6vw, 3rem); margin: 8px 0 10px; outline: none; }
.pr-res-head h2 small { font-size: 0.5em; color: var(--dim); }
.pr-res-head .lead { margin-bottom: 20px; }
.pr-res-list { margin: 18px 0 22px; border-top: 1px solid var(--line); }
.pr-res-list li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pr-res-q { color: var(--muted); }
.pr-res-s { font-weight: 700; white-space: nowrap; }
.pr-cta { display: flex; gap: 20px; align-items: flex-start; background: radial-gradient(90% 120% at 100% 0%, rgba(124,58,237,0.25), transparent 60%), var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 26px; margin-top: 10px; }
.pr-cta > img { flex: none; border-radius: 22%; }
.pr-cta h3 { font-size: 1.45rem; margin-bottom: 8px; }
.pr-cta > div > p { color: var(--muted); margin-bottom: 12px; }
.pr-cta .check-list { margin-bottom: 18px; }
.pr-cta .small-note { margin-top: 12px; }
@keyframes prpulse { 50% { opacity: .35; } }
@keyframes prring { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.55); } 100% { box-shadow: 0 0 0 18px rgba(220,38,38,0); } }
@media (max-width: 640px) {
  .practice { padding-top: 24px; }
  .pr-rounds, .pr-how, .pr-fb-grid { grid-template-columns: 1fr; }
  .pr-round { min-height: 0; }
  .pr-chips { gap: 8px; }
  .pr-chip { padding: 10px; }
  .pr-chip-val { font-size: 1.35rem; }
  .pr-cta { flex-direction: column; padding: 20px; }
  .pr-cta > img { width: 56px; height: 56px; }
  .pr-mic { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) { .pr-mic.listening, .pr-speaking::before { animation: none; } }
