/* Woolhive website — plain CSS, no build step needed. */
/* v25: the Woolhive brand font, stored on this server (Plus Jakarta Sans today, SIL Open Font License; Gilroy-ready — see public/fonts/site/brand). */
@font-face { font-family: 'Woolhive Brand'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/site/brand/Brand-Regular-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Woolhive Brand'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/site/brand/Brand-Regular.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Woolhive Brand'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/site/brand/Brand-Medium-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Woolhive Brand'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/site/brand/Brand-Medium.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Woolhive Brand'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/site/brand/Brand-SemiBold-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Woolhive Brand'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/site/brand/Brand-SemiBold.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Woolhive Brand'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/site/brand/Brand-Bold-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Woolhive Brand'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/site/brand/Brand-Bold.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Woolhive Brand'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/site/brand/Brand-ExtraBold-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Woolhive Brand'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/site/brand/Brand-ExtraBold.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #2A1C12;
  --ink-soft: #6B5443;
  --muted: #8A7563;
  --honey: #F4AE33;
  --honey-deep: #E3961C;
  --amber: #A95F08;
  --cream: #FFF7EA;
  --cream-2: #FFFBF4;
  --line: #EFE2CD;
  --honey-soft: #FDE9C4;
  --sage: #E1EBE2;
  --sage-ink: #3D5A44;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(42, 28, 18, .08);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 'Woolhive Brand', system-ui, -apple-system, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: #7A4306; }
h1, h2, h3, h4 { font-family: 'Woolhive Brand', sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 600; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 247, 234, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--ink); font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--honey-soft); color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch select { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 12px; color: var(--ink); }
.menu-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px 'Woolhive Brand', sans-serif; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; box-shadow: var(--shadow); }
.btn-honey { background: var(--honey); color: var(--ink); }
.btn-honey:hover { background: var(--honey-deep); color: var(--ink); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.nav .nav-signin { display: none; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.lead { font-size: 20px; color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 14px; padding: 8px 16px 8px 12px; font-size: 13px; line-height: 1.2; }
.store-badge:hover { color: #fff; opacity: .92; }
.store-badge strong { display: block; font-size: 16px; }
.store-badge svg { width: 24px; height: 24px; fill: #fff; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone { width: 300px; border-radius: 42px; background: var(--ink); padding: 12px; box-shadow: 0 30px 60px rgba(42, 28, 18, .25); }
.phone-screen { border-radius: 32px; background: var(--cream); overflow: hidden; aspect-ratio: 9 / 19; display: flex; flex-direction: column; gap: 12px; padding: 22px 16px; }
.phone-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 12px; font-size: 13px; }
.phone-card b { font-family: 'Woolhive Brand', sans-serif; font-size: 15px; display: block; margin-bottom: 2px; }
.counter { display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: 18px; padding: 14px 16px; }
.counter span { font: 600 32px 'Woolhive Brand', sans-serif; }
.hex-bg { position: absolute; inset: -40px -20px; z-index: -1; opacity: .5; background: radial-gradient(circle at 50% 40%, var(--honey-soft), transparent 60%); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head p { margin: 0; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card-media { aspect-ratio: 4 / 3; background: var(--honey-soft); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.wide { aspect-ratio: 16 / 9; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--honey-soft); color: #7A4306; }
.chip-dark { background: var(--ink); color: #fff; }
.chip-sage { background: var(--sage); color: var(--sage-ink); }
.chip-line { background: var(--white); border: 1px solid var(--line); color: var(--ink-soft); }
.badge-corner { position: absolute; top: 12px; left: 12px; }
.placeholder-art { width: 100%; height: 100%; display: grid; place-items: center; color: var(--amber); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .icon { width: 44px; height: 44px; border-radius: 14px; background: var(--honey-soft); display: grid; place-items: center; margin-bottom: 12px; }
.feature .icon svg { width: 24px; height: 24px; stroke: var(--amber); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 15px; }
.filters a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { display: flex; gap: 8px; max-width: 520px; margin-bottom: 18px; }
.search input { flex: 1; min-height: 48px; border-radius: 999px; border: 1px solid var(--line); padding: 0 20px; font: inherit; background: var(--white); }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); margin: 26px 0 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-soft); }

/* Detail pages */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding-bottom: 64px; }
.detail-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h3 { margin-bottom: 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 15px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.materials { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.materials li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.prose { font-size: 18px; line-height: 1.75; }
.prose h2 { margin-top: 1.6em; }
.prose img { border-radius: 16px; margin: 1em 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 20px; border-left: 4px solid var(--honey); background: var(--cream-2); border-radius: 0 12px 12px 0; }

/* Video player */
.player { border-radius: var(--radius); overflow: hidden; background: var(--ink); position: relative; aspect-ratio: 16 / 9; }
.player button.facade { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: #000; }
.player button.facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.player button.facade .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: var(--honey); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.player button.facade .play svg { width: 30px; height: 30px; fill: var(--ink); margin-left: 4px; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hand-toggle { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 14px 0; }
.hand-toggle button { border: 0; background: transparent; font: 600 14px 'Woolhive Brand', sans-serif; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.hand-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.credit { font-size: 13px; color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 22px; counter-reset: step; }
.step { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; scroll-margin-top: 90px; }
.step-img { border-radius: 14px; overflow: hidden; background: var(--cream-2); aspect-ratio: 1; }
.step-img img { width: 100%; height: 100%; object-fit: contain; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--honey); font: 700 15px 'Woolhive Brand', sans-serif; margin-right: 8px; }
.step h3 { display: flex; align-items: center; margin-bottom: 8px; }
.tip { margin-top: 10px; background: var(--sage); color: var(--sage-ink); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.jump { font-size: 14px; font-weight: 600; }
.locked { position: relative; border-radius: var(--radius); padding: 34px; text-align: center; background: linear-gradient(180deg, rgba(255,255,255,0), var(--white) 35%), repeating-linear-gradient(45deg, var(--honey-soft) 0 12px, var(--cream-2) 12px 24px); border: 1px solid var(--line); }

/* Rows (patterns) */
.rows { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.rows th, .rows td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rows th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--cream-2); }
.rows td.label { font-weight: 700; white-space: nowrap; }
.terms-switch a { font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.terms-switch a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Reviews */
.stars { color: var(--honey-deep); letter-spacing: 2px; }
.review { border-top: 1px solid var(--line); padding: 14px 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.plan { background: var(--white); border: 2px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan.featured { border-color: var(--honey-deep); box-shadow: 0 16px 40px rgba(227, 150, 28, .18); }
.plan .price { font: 600 40px 'Woolhive Brand', sans-serif; }
.plan .price small { font-size: 16px; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 12px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.plan li::before { content: "✓"; color: var(--sage-ink); font-weight: 700; margin-right: 8px; }
.ribbon { position: absolute; top: -13px; right: 20px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.notice { background: var(--sage); color: var(--sage-ink); border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; }
.notice-warn { background: var(--honey-soft); color: #7A4306; }

/* Forms */
.form-card { max-width: 440px; margin: 48px auto 72px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; }
.form-card label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.form-card input[type=text], .form-card input[type=email], .form-card input[type=password] { width: 100%; min-height: 48px; border: 1px solid #E3D3BA; border-radius: 12px; padding: 0 14px; font: inherit; background: var(--cream-2); }
.error { color: #B42318; font-size: 14px; margin-top: 6px; }

/* FAQ */
details.faq { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--amber); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; color: var(--ink-soft); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 0 12px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #E8DCCB; margin: 0; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 44px 0 30px; margin-top: 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.site-footer h4 { font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--ink-soft); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; color: var(--muted); font-size: 14px; }
/* v15: social links (Admin → Settings → General → Social links) */
.site-footer ul.social-links { flex-direction: row; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--honey-soft, #FFF1D6); color: var(--ink, #2B1D14); transition: background .15s, color .15s; }
.social-links a:hover, .social-links a:focus-visible { background: var(--honey, #F4AE33); color: var(--ink, #2B1D14); }
.social-links svg { width: 20px; height: 20px; }

/* Responsive */
@media (max-width: 980px) {
  .hero .container, .detail { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .grid-3, .grid-4, .features, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; }
  .header-actions .btn-signin { display: none; }
  .header-actions { gap: 6px; }
  .logo img { width: 118px; height: auto; }
  .lang-switch select { max-width: 96px; padding: 7px 8px; font-size: 13px; }
  .nav .nav-signin { display: block; }
  .grid-3, .grid-4, .features, .plans { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 30px 24px; }
  .hero { padding-top: 36px; }
  .phone { width: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- v2.1: levels, slides, zoom, video player ---------- */
.level-chip { color: var(--ink); }
.level-chip:hover { background: var(--honey-soft); color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.steps-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.steps-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 9px; color: var(--ink-soft); cursor: pointer; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.steps-view:focus-visible { outline: 3px solid var(--honey); outline-offset: 6px; border-radius: 12px; }
.steps-view[data-mode="slides"] .step { display: none; }
.steps-view[data-mode="slides"] .step.current { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.steps-view[data-mode="slides"] .step.current .step-img img { width: 100%; height: auto; }
.steps-view[data-mode="list"] .slide-nav { display: none; }
.slide-nav { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-top: 10px; }
.slide-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; flex: 1; }
.slide-dots button { width: 12px; height: 12px; border-radius: 6px; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.slide-dots button[aria-current="true"] { background: var(--honey-deep); width: 26px; }
.slide-nav button:disabled { opacity: .4; cursor: default; }
.step-img { position: relative; }
.step-img img { cursor: zoom-in; }
.zoom-badge { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 700; background: rgba(42,28,18,.8); color: #fff; padding: 4px 9px; border-radius: 999px; pointer-events: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.gallery img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.gallery figcaption { font-size: 13px; padding: 8px 12px; color: var(--ink-soft); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 13, 8, .92); display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-stage { flex: 1; overflow: hidden; position: relative; touch-action: none; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 92vw; max-height: 80vh; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; border-radius: 12px; background: var(--cream); }
.lb-stage.zoomed { cursor: grab; }
.lb-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: #fff; flex-wrap: wrap; }
.lb-caption { flex: 1; font-size: 14px; min-width: 120px; }

.vplayer { background: var(--ink); border-radius: var(--radius); overflow: hidden; color: #fff; }
.vplayer:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; }
.vstage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; touch-action: none; background: #000; }
.vstage video { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 0 0; object-fit: contain; background: #000; }
.vstage.zoomed { cursor: grab; }
.vzoom-hint { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; background: rgba(0,0,0,.45); color: #fff; padding: 3px 10px; border-radius: 999px; opacity: .8; pointer-events: none; transition: opacity .3s; }
.vplayer.played .vzoom-hint { opacity: 0; }
.vstage.zoomed .vzoom-hint { display: none; }
.vcontrols { display: flex; align-items: center; gap: 6px; padding: 8px 10px; flex-wrap: wrap; }
.vbtn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.1); color: #fff; display: inline-grid; place-items: center; cursor: pointer; font: inherit; font-weight: 700; font-size: 18px; }
.vbtn:hover { background: rgba(255,255,255,.2); }
.vbtn svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.vbtn svg path[d*="M8 11h6"], .vbtn svg circle, .vbtn svg path[d^="M4 9"], .vbtn svg path[d^="M7 6v12"], .vbtn svg path[d^="M17 6v12"] { fill: none; stroke-width: 2; stroke-linecap: round; }
.vplay { background: var(--honey); color: var(--ink); }
.vplay:hover { background: var(--honey-deep); }
.vplay .i-pause { display: none; }
.vplay.playing .i-play { display: none; }
.vplay.playing .i-pause { display: block; }
.vseek { flex: 1; min-width: 60px; accent-color: var(--honey); }
.vtime { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 72px; text-align: center; }
.vspeed select { font: inherit; font-size: 13px; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 10px; padding: 9px 8px; }
.vspeed option { color: var(--ink); }
.vzoom { display: inline-flex; gap: 4px; }
.vchapters { display: flex; gap: 6px; padding: 0 10px 10px; overflow-x: auto; }
.vchapters button { flex-shrink: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 13px; padding: 8px 12px; cursor: pointer; text-align: left; min-height: 40px; }
.vchapters button small { display: block; opacity: .7; font-size: 11px; }
.vchapters button[aria-current="true"] { background: var(--honey); color: var(--ink); }
.vchapters .vloop { background: rgba(244,174,51,.2); color: var(--honey); font-weight: 700; }
.vchapters .vloop[aria-pressed="true"] { background: var(--honey); color: var(--ink); }
.levels { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 6px; }
.levels a { display: inline-flex; flex-direction: column; border: 1px solid var(--line); background: var(--white); border-radius: 14px; padding: 8px 14px; color: var(--ink); min-width: 110px; }
.levels a small { color: var(--ink-soft); font-size: 12px; }
.levels a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.levels a.active small { color: #E9D9CB; }
@media (max-width: 760px) {
  .steps-view[data-mode="slides"] .step.current { grid-template-columns: 1fr; }
  .vtime { min-width: 0; }
  .vseek { order: 10; flex-basis: 100%; }
}

/* ── v2.2: app overview website ─────────────────────────────── */
.device { margin: 0; border-radius: 38px; background: var(--ink); padding: 9px; box-shadow: 0 24px 50px rgba(42, 28, 18, .22); }
.device img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 30px; background: var(--cream); }
.hero-phones { position: relative; min-height: 560px; }
.hero-phones .hex-bg { position: absolute; inset: 20px 0; }
.hero-phones .device { position: absolute; width: 250px; }
.hero-phones .device-front { right: 6%; top: 0; z-index: 2; }
.hero-phones .device-back { left: 4%; top: 60px; transform: rotate(-6deg); opacity: .96; }
.stats-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.stats-strip .container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-top: 22px; padding-bottom: 22px; text-align: center; }
.stats-strip b { display: block; font: 700 26px 'Woolhive Brand', sans-serif; color: var(--ink); }
.stats-strip span { font-size: 14px; color: var(--ink-soft); }
.feature-row .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row.flip .feature-text { order: 2; }
.feature-row h2 { font-size: clamp(28px, 3.4vw, 40px); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--honey-soft); color: var(--amber); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.feature-phones { display: flex; justify-content: center; align-items: flex-end; gap: 22px; }
.feature-phones .device { width: 240px; }
.feature-phones .device-small { width: 200px; margin-bottom: 30px; }
.screens-nav { display: flex; gap: 8px; align-items: center; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.round-btn:hover { border-color: var(--ink); }
.screens-row { --edge: max(20px, calc((100vw - var(--max)) / 2 + 20px)); display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px var(--edge) 24px; scroll-padding-inline: var(--edge); scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; }
.screens-row::-webkit-scrollbar { display: none; }
/* v27: the screens carousel — round arrows at both sides, no scrollbar. */
.screens-carousel { position: relative; }
.carousel-arrow { position: absolute; top: 250px; z-index: 3; width: 48px; height: 48px; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(42, 28, 18, .16); transition: opacity .25s ease, transform .25s ease, border-color .2s ease; }
.carousel-arrow svg { display: block; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
/* Wide screens: the arrows sit in the empty space beside the content, never on top of a phone. */
@media (min-width: 1300px) {
  .carousel-prev { left: calc((100vw - var(--max)) / 2 - 52px); }
  .carousel-next { right: calc((100vw - var(--max)) / 2 - 52px); }
}
.carousel-arrow:hover:not(:disabled) { transform: scale(1.06); }
.carousel-arrow:disabled { opacity: 0; pointer-events: none; }
.screens-carousel.no-scroll .carousel-arrow { display: none; }
.screen-card { margin: 0; flex: 0 0 230px; scroll-snap-align: start; }
.screen-card figcaption { margin-top: 14px; display: grid; gap: 4px; font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.screen-card figcaption b { color: var(--ink); font-size: 16px; font-family: 'Woolhive Brand', sans-serif; }
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.steps-3 > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--honey); color: var(--ink); font: 700 18px 'Woolhive Brand', sans-serif; margin-bottom: 10px; }
.small-num { width: 28px; height: 28px; font-size: 14px; margin-bottom: 2px; }
.price-card { background: var(--white); border: 2px solid var(--line); border-radius: 24px; padding: 24px; position: relative; }
.price-card.featured { border-color: var(--honey); box-shadow: 0 10px 30px rgba(227, 150, 28, .18); }
.price-card h3 { margin: 0 0 6px; }
.price-card .price { font: 600 34px 'Woolhive Brand', sans-serif; }
.price-card .price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.tour-chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.tour-chapters a { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; }
.tour-chapters a:hover { border-color: var(--ink); }
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 24px; margin-top: 22px; }
.tour-grid .screen-card { flex: none; }
.preview-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 28px; }
.preview-image { width: 100%; height: auto; border-radius: 20px; background: var(--cream); object-fit: contain; }
@media (max-width: 980px) {
  .hero-phones { min-height: 480px; }
  .hero-phones .device { width: 210px; }
  .feature-row .container { grid-template-columns: 1fr; gap: 30px; }
  .feature-row.flip .feature-text { order: 0; }
  .stats-strip .container { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .hero-phones { min-height: 420px; max-width: 360px; margin: 0 auto; }
  .hero-phones .device { width: 180px; }
  .feature-phones .device { width: 180px; }
  .feature-phones .device-small { width: 150px; }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .steps-3, .preview-card { grid-template-columns: 1fr; }
  .screen-card { flex-basis: 70vw; max-width: 260px; }
  .carousel-arrow { width: 40px; height: 40px; top: 260px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}
.app-hero { overflow: hidden; }

/* ── v3: colour refresh, real lesson videos, small-screen fixes ─────────────── */
:root {
  --sage-deep: #4F7A5B;
  --lilac: #EDE7F8; --lilac-ink: #5F4B9B;
  --sky: #E1EEF9; --sky-ink: #2B618F;
  --peach: #FFE6D8; --peach-ink: #A8481D;
  --shadow-sm: 0 2px 10px rgba(42, 28, 18, .06);
  --shadow-md: 0 8px 26px rgba(42, 28, 18, .1);
}
body { background: var(--cream); }
.app-hero { position: relative; background: radial-gradient(1200px 500px at 85% 10%, #FFE2A8 0%, rgba(255,226,168,0) 60%), linear-gradient(180deg, #FFF8EE 0%, #FFF1D9 100%); }
.app-hero::before { content: ""; position: absolute; inset: 0; background: url('../images/brand/honeycomb.svg') right -60px top -40px / 520px auto no-repeat; opacity: .7; pointer-events: none; }
.app-hero .container { position: relative; }
.hero h1 { letter-spacing: -.02em; }
.stats-strip { box-shadow: var(--shadow-sm); position: relative; z-index: 1; }
.stats-strip b { color: var(--amber); }
.section-alt { background: linear-gradient(180deg, #FFFCF7, #FFF6E6); }
.card, .feature, .steps-3 > div, .price-card, details.faq, .panel, .form-card { box-shadow: var(--shadow-sm); border-color: #F3E8D6; }
.price-card.featured { background: linear-gradient(180deg, #FFFFFF, #FFF6E3); }
.btn-dark { background: linear-gradient(180deg, #3A281B, #2A1C12); }
.btn-honey { background: linear-gradient(180deg, #FFC75A, #F4AE33); }
.eyebrow { background: var(--honey-soft); color: #7A4306; padding: 4px 12px; border-radius: 999px; letter-spacing: .06em; }
.ticks li:nth-child(4n+2)::before { background: var(--sage); color: var(--sage-ink); }
.ticks li:nth-child(4n+3)::before { background: var(--lilac); color: var(--lilac-ink); }
.ticks li:nth-child(4n+4)::before { background: var(--sky); color: var(--sky-ink); }
.cta-band { background: radial-gradient(600px 300px at 90% 0%, rgba(244,174,51,.35), transparent 60%), linear-gradient(135deg, #3A281B, #1E140D); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; background: url('../images/brand/honeycomb.svg') center / contain no-repeat; opacity: .5; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.store-badge { white-space: nowrap; flex-shrink: 0; }
.store-badge span { white-space: nowrap; }
.site-footer { background: linear-gradient(180deg, #FFFFFF, #FFF9EF); }
.site-footer ul a { display: inline-block; padding: 3px 0; }
.site-footer .store-badges { flex-direction: column; align-items: flex-start; margin-top: 14px; }

/* Real lesson videos */
.video-demo { background: linear-gradient(180deg, #2A1C12, #1E140D); color: #fff; }
.video-demo h2, .video-demo h3 { color: #fff; }
.video-demo .lead { color: #E8DCCB; }
.video-demo .eyebrow { background: rgba(244, 174, 51, .18); color: var(--honey); }
.demo-head { max-width: 760px; margin-bottom: 22px; }
.demo-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.demo-tabs button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; font: 600 15px 'Woolhive Brand', sans-serif; padding: 8px 16px 8px 8px; border-radius: 999px; cursor: pointer; }
.demo-tabs button[aria-selected="true"] { background: var(--honey); color: var(--ink); border-color: var(--honey); }
.demo-tabs .chip { background: rgba(255,255,255,.15); color: inherit; }
.demo-tabs button[aria-selected="true"] .chip { background: rgba(42,28,18,.12); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.video-demo .hand-toggle { margin-top: 0; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.video-demo .hand-toggle button { color: #E8DCCB; }
.video-demo .hand-toggle button[aria-pressed="true"] { background: var(--honey); color: var(--ink); }
.video-demo .vplayer { box-shadow: 0 20px 50px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
.demo-side { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
.demo-side ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.demo-side li { display: flex; align-items: center; gap: 10px; color: #F3E9DC; font-size: 15px; }
.demo-side li .step-num { margin: 0; flex-shrink: 0; }
.demo-side .muted { color: #CDBCAD; margin: 0; }

@media (max-width: 980px) {
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head .btn { align-self: flex-start; }
  .app-hero::before { background-size: 360px auto; background-position: right -120px top -60px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .cta-band { text-align: left; }
  .cta-band .store-badges { flex-direction: column; align-items: stretch; }
  .cta-band .store-badge { justify-content: center; }
  .vcontrols { gap: 4px; padding: 6px; }
  .vbtn { width: 38px; height: 38px; }
  .demo-tabs button { font-size: 14px; }
}
@media (max-width: 400px) {
  .header-actions .btn-sm { padding: 0 12px; }
  .lang-switch select { max-width: 84px; }
  .logo img { width: 104px; }
  .hero-phones { min-height: 380px; }
  .hero-phones .device { width: 160px; }
  .stats-strip b { font-size: 22px; }
}
.demo-grid > *, .demo-panel, .demo-panel > div { min-width: 0; }
.site-footer .store-badge, .site-footer .store-badge:hover { color: #fff; }
@media (max-width: 980px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
}

/* v12: buttons and store badges line up everywhere: same height, same width, same corners */
.store-badge { box-sizing: border-box; width: 214px; height: 56px; padding: 0 18px; border-radius: 16px; justify-content: flex-start; }
.app-hero .hero-actions, .app-hero .store-badges { display: grid; grid-template-columns: repeat(2, 214px); gap: 12px; }
.app-hero .hero-actions { margin-bottom: 12px; }
.app-hero .hero-actions .btn { width: 100%; min-height: 56px; padding: 0 16px; border-radius: 16px; }
.cta-band .store-badges { justify-content: center; }
@media (max-width: 760px) {
  .app-hero .hero-actions, .app-hero .store-badges { grid-template-columns: 1fr 1fr; }
  .store-badge { width: auto; justify-content: center; padding: 0 12px; }
  .site-footer .store-badge { width: 214px; justify-content: flex-start; }
}
@media (max-width: 420px) {
  .app-hero .hero-actions, .app-hero .store-badges { grid-template-columns: 1fr; }
}


/* v14: Woolhive Plus and Pro side by side */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.tier .price small { font-size: 15px; }
.tier-options { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.tier-option { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 16px; }
.tier-option.on { border-color: var(--honey); background: var(--honey-soft, #fff4d6); }
.tier-option > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.tier-option form, .tier-option > a.btn { grid-column: 1 / -1; }
.tier-price { font: 600 18px 'Woolhive Brand', sans-serif; white-space: nowrap; }
.tier-price small { font: 400 13px 'Woolhive Brand', sans-serif; color: var(--muted); }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }

/* v16: no sideways scrolling on small phones (the two app pictures were wider than the screen). */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.feature-row .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 980px) { .feature-row .container { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .feature-phones { gap: 12px; }
  .feature-phones .device { width: 50%; max-width: 180px; }
  .feature-phones .device-small { width: 42%; max-width: 150px; margin-bottom: 20px; }
  .hero-phones { max-width: 100%; }
  .hero-phones .device { width: 150px; }
}

/* v20: phone header — logo on the left; language, "Get the app" and the menu button together on the right, all the same height. */
@media (max-width: 760px) {
  .site-header .container { gap: 8px; height: 64px; }
  .nav { top: 64px; }
  .logo { flex-shrink: 0; }
  .header-actions { order: 2; margin-left: auto; gap: 6px; }
  .menu-toggle { order: 3; width: 40px; height: 40px; flex-shrink: 0; color: var(--ink); border-radius: 999px; }
  .lang-switch select { height: 40px; padding: 0 8px; }
  .header-actions .btn-sm { height: 40px; padding: 0 14px; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; }
}
@media (max-width: 400px) {
  .logo img { width: 96px; }
  .lang-switch select { max-width: 76px; font-size: 12.5px; }
  .header-actions .btn-sm { padding: 0 11px; font-size: 13px; }
}
@media (max-width: 400px) {
  .lang-switch select { max-width: 84px; padding: 0 4px 0 8px; }
}
@media (max-width: 360px) {
  .logo img { width: 38px; height: 38px; object-fit: cover; object-position: left center; }
}

/* v21: App tour on phones — two screens side by side, filling the width (no empty space on the right). */
@media (max-width: 760px) {
  .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .tour-grid .screen-card { max-width: none; width: 100%; }
  .tour-grid .device { border-radius: 26px; padding: 6px; }
  .tour-grid .device img { border-radius: 21px; }
  .tour-grid .screen-card figcaption { font-size: 13px; }
  .tour-grid .screen-card figcaption b { font-size: 15px; }
}
@media (max-width: 330px) {
  .tour-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .tour-grid .screen-card { max-width: 260px; }
}

/* v21: parts of the home page opened from /features, /levels, /help … sit below the sticky top bar. */
#features, #videos, #levels, #faq, #get-the-app { scroll-margin-top: 84px; }

/* ================= v29: lesson videos as a "lesson cinema" (playlist + player) ================= */
.lesson-cinema { position: relative; overflow: hidden; background:
  radial-gradient(circle at 92% 8%, rgba(244, 174, 51, .28), transparent 38%),
  radial-gradient(circle at 4% 96%, rgba(225, 235, 226, .9), transparent 40%),
  linear-gradient(180deg, var(--cream-2), var(--cream)); }
.lesson-cinema::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66 0 50V18L28 2l28 16v32zM28 98V66M0 50v48M56 50v48' fill='none' stroke='%23EFE2CD' stroke-width='1.5'/%3E%3C/svg%3E"); }
.lesson-cinema .container { position: relative; }
.cinema-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.cinema-head > div { max-width: 700px; min-width: 0; }
.cinema-facts { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-shrink: 0; }
.cinema-facts li { display: grid; justify-items: center; gap: 2px; min-width: 96px; padding: 12px 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); text-align: center; }
.cinema-facts b { font: 700 20px/1.1 'Woolhive Brand', sans-serif; color: var(--amber); }
.cinema-facts span { font-size: 12.5px; line-height: 1.25; color: var(--ink-soft); }
.cinema { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.cinema-list { display: grid; gap: 10px; counter-reset: t; }
.cinema-ticket { position: relative; display: grid; grid-template-columns: 34px 92px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 18px; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease; }
.cinema-ticket:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.cinema-ticket:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
.cinema-ticket[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 10px 10px 0 var(--honey); transform: none; }
.ticket-num { font: 700 26px/1 'Woolhive Brand', sans-serif; color: transparent; -webkit-text-stroke: 1.2px var(--honey-deep); text-align: center; }
.cinema-ticket[aria-selected="true"] .ticket-num { -webkit-text-stroke-color: var(--honey); }
.ticket-poster { position: relative; display: block; width: 92px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--honey-soft); }
.ticket-poster img { width: 100%; height: 100%; object-fit: cover; }
.ticket-play { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); }
.ticket-play svg { width: 14px; height: 14px; fill: var(--ink); margin-left: 2px; }
.ticket-eq { position: absolute; right: 6px; bottom: 6px; display: none; gap: 2px; align-items: flex-end; height: 14px; padding: 3px 4px; border-radius: 6px; background: var(--honey); }
.ticket-eq i { width: 3px; background: var(--ink); border-radius: 2px; animation: cinema-eq 1s ease-in-out infinite; }
.ticket-eq i:nth-child(2) { animation-delay: -.3s; } .ticket-eq i:nth-child(3) { animation-delay: -.6s; }
.cinema-ticket[aria-selected="true"] .ticket-eq { display: flex; }
.cinema-ticket[aria-selected="true"] .ticket-play { display: none; }
@keyframes cinema-eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }
.ticket-text { display: grid; gap: 3px; min-width: 0; }
.ticket-text b { font: 700 15.5px/1.25 'Woolhive Brand', sans-serif; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ticket-text small { font-size: 12.5px; color: var(--ink-soft); }
.ticket-text em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--sage-ink); background: var(--sage); border-radius: 999px; padding: 1px 8px; justify-self: start; }
.cinema-ticket[aria-selected="true"] small { color: #E3D3C2; }
.cinema-stage { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 18px; box-shadow: 0 24px 60px rgba(42, 28, 18, .12); display: grid; gap: 14px; }
.cinema-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cinema-title { margin: 0; font-size: 22px; min-width: 0; }
.cinema-bar .hand-toggle { margin: 0; }
.cinema-screen .vplayer { border-radius: 18px; }
.cinema-steps { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cinema-steps::-webkit-scrollbar { display: none; }
.cinema-steps li { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.cinema-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--honey); font-size: 12px; font-weight: 700; }
.cinema-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cinema-foot p { margin: 0; flex: 1 1 260px; }
@media (max-width: 980px) {
  .cinema-head { flex-direction: column; align-items: flex-start; }
  .cinema { grid-template-columns: minmax(0, 1fr); }
  /* The playlist becomes a row to swipe above the player. */
  .cinema-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 16px; scrollbar-width: none; }
  .cinema-list::-webkit-scrollbar { display: none; }
  .cinema-ticket { flex: 0 0 min(300px, 82vw); scroll-snap-align: start; }
  .cinema-ticket:hover { transform: none; }
  .cinema-ticket[aria-selected="true"] { box-shadow: 6px 6px 0 var(--honey); }
}
@media (max-width: 560px) {
  .cinema-facts { width: 100%; }
  .cinema-facts li { flex: 1; min-width: 0; }
  .cinema-stage { padding: 12px; border-radius: 22px; margin: 0 -8px; }
  .cinema-title { font-size: 18px; }
  .cinema-bar .hand-toggle { width: 100%; }
  .cinema-bar .hand-toggle button { flex: 1; }
  .cinema-ticket { grid-template-columns: 26px 76px minmax(0, 1fr); gap: 10px; }
  .ticket-poster { width: 76px; }
  .ticket-num { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .ticket-eq i { animation: none; height: 8px; } }
.cinema-steps[hidden], .cinema-title[hidden] { display: none; }
.cinema-stage { grid-template-columns: minmax(0, 1fr); }
.cinema-stage > *, .cinema-screen .demo-panel, .cinema-screen .demo-panel > div { min-width: 0; }
