/* =====================================================================
   Woolhive website v30 — one place for the header, the phone menu,
   the store buttons, even spacing and the phone fixes on every page.
   Loaded after site.css and site-v2.css, so these rules win.
   ===================================================================== */

:root {
  --gutter: 20px;
  --section-y: clamp(60px, 8vw, 104px);
  --head-h: 72px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
@media (max-width: 760px) { :root { --gutter: 18px; --head-h: 64px; } }
@media (max-width: 360px) { :root { --gutter: 14px; } }

.container { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ------------------------------ Header ------------------------------ */
.site-header .container { height: var(--head-h); gap: 18px; position: relative; }
.site-header .nav { align-items: center; }
.nav-extra { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.getapp { position: relative; }
.getapp-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.site-header .header-actions .btn-sm { min-height: 42px; height: 42px; padding: 0 18px; font-size: 15px; gap: 7px; }

/* The "Get the app" card (computers). */
.getapp-pop { position: absolute; right: 0; top: calc(100% + 12px); width: 318px; z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 24px 60px rgba(42, 28, 18, .18); display: grid; gap: 14px; transform-origin: top right; animation: wh-pop .22s var(--ease-out); }
.getapp-pop[hidden] { display: none; }
.getapp-pop::before { content: ""; position: absolute; top: -7px; right: 34px; width: 14px; height: 14px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.getapp-head { display: flex; align-items: center; gap: 12px; }
.getapp-head img { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.getapp-head b { display: block; font: 700 17px/1.2 'Woolhive Brand', sans-serif; }
.getapp-head span { font-size: 14px; color: var(--ink-soft); }
.getapp-pop .store-badges.sb30 { grid-template-columns: minmax(0, 1fr); }
.getapp-pop .store-badge.sb30 { width: 100%; }
.getapp-web { font-weight: 600; font-size: 14px; text-align: center; }
@keyframes wh-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }

/* Phones and tablets: logo · Get the app · menu. Language and account go inside the menu. */
@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; order: 3; flex: none; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); cursor: pointer; transition: background .2s ease; }
  .menu-toggle:hover { background: var(--honey-soft); }
  .site-header.menu-open .menu-toggle .i-open { display: none; }
  .site-header.menu-open .menu-toggle .i-close { display: block; }
  .header-actions { order: 2; gap: 8px; }
  .header-actions .lang-switch, .header-actions .btn-signin { display: none !important; }
  .site-header .nav {
    display: flex !important; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 20px; background: var(--cream-2, #FFFBF4);
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(42, 28, 18, .12);
    max-height: calc(100vh - var(--head-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
    transition: opacity .22s ease, transform .28s var(--ease-out), visibility 0s linear .28s;
  }
  .site-header .nav.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .22s ease, transform .28s var(--ease-out), visibility 0s; }
  .site-header .nav > a { padding: 13px 14px; border-radius: 14px; font-size: 17px; font-weight: 600; }
  .site-header .nav > a:hover { background: var(--honey-soft); }
  .nav-extra { display: grid; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav-lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 14px; font-weight: 600; }
  .nav-lang select { font: inherit; font-size: 15px; min-height: 44px; min-width: 150px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0 14px; color: var(--ink); }
  .nav-extra .nav-signin { display: flex !important; justify-content: center; min-height: 48px; align-items: center; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
}
@media (max-width: 760px) {
  .site-header .container { gap: 10px; }
  .logo img { width: 124px; height: auto; }
  .site-header .header-actions .btn-sm { height: 40px; min-height: 40px; padding: 0 14px; font-size: 14px; }
  .menu-toggle { width: 40px; height: 40px; }
}
@media (max-width: 360px) {
  .logo img { width: 40px; height: 40px; object-fit: cover; object-position: left center; }
  .site-header .header-actions .btn-sm { padding: 0 12px; font-size: 13.5px; }
}
/* The smaller header after scrolling (fresh design) keeps the same rules. */
html.v2 .site-header.v2-scrolled .container { height: calc(var(--head-h) - 10px); }

/* ------------------------------ Store buttons ------------------------------ */
/* Always two side by side — on computers and on the smallest phones. */
.store-badges.sb30 { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px; justify-content: start; flex-direction: initial; align-items: stretch; }
.store-badge.sb30 { display: inline-flex; align-items: center; gap: 10px; width: 200px; height: 56px; padding: 0 16px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.2; white-space: nowrap; box-sizing: border-box; transition: transform .2s var(--ease-out), box-shadow .2s ease; }
.store-badge.sb30 strong { display: block; font-size: 16.5px; letter-spacing: -.01em; }
.store-badge.sb30 svg { width: 24px; height: 24px; fill: #fff; flex: none; }
a.store-badge.sb30:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(42, 28, 18, .22); }
.store-badge.sb30.is-soon { background: #4A3626; cursor: default; }
.store-badge.sb30.is-soon > span { opacity: .92; }
.site-footer .store-badges.sb30 { margin-top: 18px; }
.site-footer .store-badge.sb30 { width: 200px; }
@media (max-width: 760px) {
  .store-badges.sb30, .app-hero .store-badges.sb30, .site-footer .store-badges.sb30, .cta-band .store-badges.sb30 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 440px; gap: 10px; }
  .store-badge.sb30, .site-footer .store-badge.sb30 { width: 100%; min-width: 0; height: 54px; padding: 0 12px; gap: 9px; justify-content: center; font-size: 11.5px; }
  .store-badge.sb30 strong { font-size: 15px; }
  .store-badge.sb30 svg { width: 22px; height: 22px; }
}
@media (max-width: 360px) {
  .store-badge.sb30, .site-footer .store-badge.sb30 { padding: 0 9px; gap: 7px; height: 52px; font-size: 10.5px; }
  .store-badge.sb30 strong { font-size: 13.5px; }
  .store-badge.sb30 svg { width: 19px; height: 19px; }
}

/* ------------------------------ Inside the app (the story with every screen) ------------------------------ */
html.v2 .v2-story { padding: var(--section-y) 0; }
html.v2 .v2-story > .container { display: block; }
.v2-story-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.v2-story-head .eyebrow { margin: 0 auto 12px; }
.v2-story-head h2 { font-size: clamp(30px, 3.8vw, 48px); margin-bottom: 14px; text-wrap: balance; }
.v2-story-head .lead { margin: 0 auto; line-height: 1.6; }
.v2-story-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.v2-story-phone { position: sticky; top: calc(var(--head-h) + 28px); display: grid; justify-items: center; padding: 10px 0; }
.v2-story-phone::before { top: 30px; }
.v2-story-phone .v2-phone-lg { width: min(300px, calc((100vh - 260px) * .462)); }
.v2-story-cap { display: inline-flex; align-items: center; gap: 10px; margin: 20px 0 0; padding: 6px 6px 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 700 14.5px/1.2 'Woolhive Brand', sans-serif; color: var(--ink); box-shadow: var(--shadow); min-height: 44px; }
.v2-zoom-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--honey); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease-out); }
.v2-zoom-btn:hover { transform: scale(1.08); }
.v2-zoom-btn svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.v2-story-progress { display: block; width: 140px; height: 4px; margin-top: 14px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.v2-story-progress i { position: absolute; inset: 0; width: 0; background: var(--honey); border-radius: 4px; }
.v2-story-progress i.run { animation: wh-progress 3.2s linear forwards; }
@keyframes wh-progress { to { width: 100%; } }
.v2-story-dots { margin-top: 18px; }

.v2-story-steps { display: grid; gap: 28px; min-width: 0; }
.v2-chapter { min-height: 0; padding: clamp(26px, 3vw, 38px); justify-content: flex-start; background: rgba(255, 255, 255, .78); border: 1px solid var(--line); border-radius: 30px; box-shadow: 0 18px 50px rgba(42, 28, 18, .06); position: relative; overflow: hidden; scroll-margin-top: calc(var(--head-h) + 20px); min-width: 0; }
@media (min-width: 981px) { .v2-chapter { min-height: 62vh; justify-content: center; } }
.v2-chapter::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--honey); }
.v2-chapter-2::before { background: var(--sage-deep, #4F7A5B); }
.v2-chapter-3::before { background: var(--lilac-ink, #5F4B9B); }
html.v2-js .v2-chapter { opacity: .55; transition: opacity .5s ease, box-shadow .5s ease, transform .5s var(--ease-out); }
html.v2-js .v2-chapter.is-active { opacity: 1; box-shadow: 0 24px 60px rgba(42, 28, 18, .1); }
.v2-chapter-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.v2-chapter-num { font: 800 52px/1 'Woolhive Brand', sans-serif; margin: 0; -webkit-text-stroke: 1.5px var(--honey-deep); }
.v2-chapter-top .eyebrow { margin: 0; }
.v2-chapter-title { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
.v2-chapter-text { font-size: 18px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 18px; max-width: 60ch; }
.v2-chapter .ticks { display: grid; gap: 10px; margin: 0 0 6px; padding: 0; }
.v2-chapter .ticks li { line-height: 1.5; margin: 0; }

.v2-screens-wrap { margin-top: 24px; min-width: 0; }
.v2-screens { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; overflow: visible; flex-wrap: initial; }
.v2-screen { width: auto; min-width: 0; padding: 8px 6px 10px; gap: 8px; background: #fff; }
.v2-screen-img { width: 100%; max-width: 84px; aspect-ratio: 390 / 640; border-radius: 12px; }
.v2-screen-name { font-size: 12px; line-height: 1.25; }
.wh-slider-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.wh-slider-nav[hidden] { display: none; }
.wh-arrow { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); box-shadow: 0 4px 12px rgba(42, 28, 18, .08); transition: background .2s ease, opacity .2s ease, transform .2s var(--ease-out); }
.wh-arrow:hover:not(:disabled) { background: var(--honey); transform: scale(1.05); }
.wh-arrow:disabled { opacity: .35; cursor: default; }
.wh-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wh-dots { display: flex; gap: 6px; align-items: center; }
.wh-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: var(--line); cursor: pointer; transition: width .3s var(--ease-out), background .3s ease; }
.wh-dots button.on { width: 22px; background: var(--honey); }

@media (max-width: 1180px) and (min-width: 981px) {
  .v2-screens { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-screen-img { max-width: 96px; }
}
@media (max-width: 980px) {
  .v2-story-grid { grid-template-columns: minmax(0, 1fr); }
  .v2-story-phone { display: none; }
  .v2-story-head { margin-bottom: 30px; }
  .v2-chapter { border-radius: 26px; }
  html.v2-js .v2-chapter { opacity: 1; }
  /* A real slider inside the card: room on both sides, snap, arrows and dots. */
  .v2-screens { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; margin: 0 -4px; padding: 4px 4px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .v2-screens::-webkit-scrollbar { display: none; }
  .v2-screen { flex: 0 0 auto; width: 156px; scroll-snap-align: start; padding: 10px 8px 12px; border-radius: 20px; }
  .v2-screen-img { width: 136px; max-width: none; aspect-ratio: 390 / 844; border-radius: 20px; border-width: 4px; }
  .v2-screen-name { font-size: 13px; }
  .v2-screen:hover { transform: none; }
  .v2-screen.on { border-color: var(--line); background: #fff; }
}
@media (max-width: 760px) {
  .v2-chapter { padding: 24px 18px 20px; }
  .v2-chapter::before { width: 4px; }
  .v2-chapter-num { font-size: 40px; }
  .v2-chapter-title { font-size: 25px; }
  .v2-chapter-text { font-size: 16.5px; }
  .v2-screen { width: 142px; }
  .v2-screen-img { width: 122px; }
}
@media (max-width: 360px) {
  .v2-chapter { padding: 22px 14px 18px; }
  .v2-screen { width: 128px; }
  .v2-screen-img { width: 108px; }
}

/* The full-size screen viewer. */
.wh-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 24px; background: rgba(30, 20, 13, .86); backdrop-filter: blur(8px); animation: wh-fade .25s ease; }
.wh-lightbox[hidden] { display: none; }
.wh-lb-figure { margin: 0; display: grid; justify-items: center; gap: 14px; min-width: 0; }
.wh-lb-phone { width: min(360px, 78vw, calc((100vh - 150px) * .462)); border-radius: 40px; padding: 9px; background: #1E140D; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.wh-lb-phone img { width: 100%; height: auto; border-radius: 32px; display: block; touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.wh-lb-figure figcaption { display: grid; justify-items: center; gap: 2px; color: #fff; text-align: center; }
.wh-lb-figure b { font: 700 18px 'Woolhive Brand', sans-serif; }
.wh-lb-figure span { font-size: 14px; color: #E3D3C2; }
.wh-lb-nav, .wh-lb-close { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s ease; }
.wh-lb-nav:hover, .wh-lb-close:hover { background: var(--honey); color: var(--ink); }
.wh-lb-nav svg, .wh-lb-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wh-lb-close { position: absolute; top: 18px; right: 18px; }
@media (max-width: 760px) {
  .wh-lightbox { grid-template-columns: minmax(0, 1fr); padding: 64px 16px 96px; }
  .wh-lb-phone { width: min(300px, 74vw, calc((100vh - 250px) * .462)); border-radius: 34px; padding: 7px; }
  .wh-lb-phone img { border-radius: 28px; }
  .wh-lb-nav { position: absolute; bottom: 24px; }
  .wh-lb-prev { left: calc(50% - 60px); }
  .wh-lb-next { right: calc(50% - 60px); }
}
@keyframes wh-fade { from { opacity: 0; } to { opacity: 1; } }
body.wh-noscroll { overflow: hidden; }

/* ------------------------------ Every tool at a glance (bento) ------------------------------ */
html.v2 .v2-tools { padding: var(--section-y) 0; }
.v2-tools-head { margin-bottom: 40px; }
.v2-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: 20px; }
.v2-tile { padding: 28px; gap: 0; border-radius: 28px; min-width: 0; }
.v2-tile h3 { font-size: 21px; line-height: 1.25; margin: 0 0 10px; text-wrap: balance; }
.v2-tile p { font-size: 16px; line-height: 1.6; margin: 0; }
.v2-tile .v2-tag { margin-bottom: 14px; }
.v2-tile-icon { width: 48px; height: 48px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--honey-soft); margin-bottom: 18px; }
.v2-tile-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--amber); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.v2-tile-honey .v2-tile-icon { background: rgba(255, 255, 255, .45); }
.v2-tile-honey .v2-tile-icon svg { stroke: var(--ink); }
.v2-tile-sage .v2-tile-icon { background: rgba(255, 255, 255, .6); }
.v2-tile-sage .v2-tile-icon svg { stroke: var(--sage-ink); }
.v2-tile-sage h3 { color: var(--sage-ink); }
.v2-tile-copy { display: flex; flex-direction: column; min-width: 0; }

/* The big row counter tile: words top-left, the phone rising from the bottom-right. */
.v2-tile-xl { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: minmax(0, 1fr) 200px; align-items: start; gap: 22px; padding: 34px 34px 0; min-height: 440px; }
.v2-tile-xl > .v2-tile-copy { padding-bottom: 34px; align-self: start; }
.v2-tile-xl h3 { font-size: clamp(26px, 2.4vw, 32px); margin-bottom: 14px; }
.v2-tile-xl p { font-size: 17px; }
.v2-tile-xl .device { width: 200px; align-self: end; margin: 0 0 -60px; }

/* The dark "Fix my crochet" tile. */
.v2-tile-dark { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 24px; padding: 30px 30px 0; align-items: start; overflow: hidden; }
.v2-tile-dark > .v2-tile-copy { padding-bottom: 30px; }
.v2-tile-dark .device { position: static; width: 140px; align-self: end; margin-bottom: -40px; }
.v2-tile-dark .v2-tag { margin-bottom: 14px; }

/* The four small tiles: a big icon in the middle, then the title and one line. */
.v2-tile-mini { align-items: center; text-align: center; justify-content: flex-start; padding: 32px 24px; }
.v2-tile-mini .v2-icon-lg { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 18px; transition: transform .4s var(--ease-out); }
.v2-tile-mini .v2-icon-lg svg { width: 38px; height: 38px; }
.v2-tile-mini:hover .v2-icon-lg { transform: translateY(-4px) rotate(-4deg); }
.v2-tile-mini h3 { font-size: 19px; }
.v2-tile-mini p { font-size: 15px; }
.v2-bento > .v2-tile:nth-child(7) { flex-direction: column; }

@media (max-width: 1100px) {
  .v2-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-tile-xl { grid-column: span 2; grid-row: auto; min-height: 0; }
  .v2-tile-wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  .v2-bento { gap: 14px; }
  .v2-tile { padding: 22px; border-radius: 24px; }
  .v2-tile-xl { grid-template-columns: minmax(0, 1fr) 120px; padding: 24px 22px 0; gap: 14px; }
  .v2-tile-xl > .v2-tile-copy { padding-bottom: 24px; }
  .v2-tile-xl h3 { font-size: 23px; }
  .v2-tile-xl p { font-size: 15.5px; }
  .v2-tile-xl .device { width: 120px; margin-bottom: -40px; }
  .v2-tile-dark { grid-template-columns: minmax(0, 1fr) 104px; padding: 24px 22px 0; gap: 14px; }
  .v2-tile-dark > .v2-tile-copy { padding-bottom: 24px; }
  .v2-tile-dark .device { width: 104px; margin-bottom: -40px; }
  .v2-bento > .v2-tile:not(.v2-tile-mini):not(.v2-tile-xl):not(.v2-tile-dark) { grid-column: span 2; }
  .v2-bento > .v2-tile-mini { grid-column: span 1; padding: 24px 14px; }
  .v2-bento > .v2-tile:nth-child(7) { grid-column: span 1; flex-direction: column; align-items: center; }
  .v2-tile-mini .v2-icon-lg { width: 60px; height: 60px; border-radius: 20px; margin-bottom: 14px; }
  .v2-tile-mini .v2-icon-lg svg { width: 32px; height: 32px; }
  .v2-tile-mini h3 { font-size: 16.5px; margin-bottom: 6px; }
  .v2-tile-mini p { font-size: 13.5px; line-height: 1.5; }
}
@media (max-width: 360px) {
  .v2-tile-xl { grid-template-columns: minmax(0, 1fr) 96px; }
  .v2-tile-xl .device { width: 96px; }
  .v2-tile-dark { grid-template-columns: minmax(0, 1fr); padding-bottom: 22px; }
  .v2-tile-dark .device { display: none; }
}

/* ------------------------------ Lesson videos (cinema) ------------------------------ */
.lesson-cinema { padding: var(--section-y) 0; }
/* Computers: the playlist is exactly as tall as the player box next to it. */
.cinema { align-items: stretch; }
.cinema-side { display: flex; flex-direction: column; min-width: 0; }
.cinema-side .cinema-list { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.cinema-side .cinema-ticket { flex: 1 1 0; min-height: 96px; }
.cinema-side .wh-slider-nav { margin-top: 6px; }
.cinema-foot .btn { min-height: 46px; }
@media (max-width: 980px) {
  .cinema-side .cinema-list { flex: none; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; margin: 0 -4px; padding: 4px 4px 14px; gap: 12px; scrollbar-width: none; }
  .cinema-side .cinema-ticket { flex: 0 0 min(300px, 80vw); min-height: 0; scroll-snap-align: start; }
  .cinema-side .cinema-ticket[aria-selected="true"] { box-shadow: 5px 5px 0 var(--honey); }
}
@media (max-width: 560px) {
  .cinema-stage { margin: 0; }
  .cinema-side .cinema-ticket { flex-basis: min(282px, 84vw); }
  .cinema-foot { flex-direction: column; align-items: stretch; text-align: left; }
  .cinema-foot p { flex: none; }
  .cinema-foot .btn { width: 100%; }
}

/* ------------------------------ One rhythm for every section ------------------------------ */
/* The same space above and below every part of the page, on computers and phones. */
.section, html.v2 .section, html.v2 .v2-levels, html.v2 .v2-tools, html.v2 .v2-story, .lesson-cinema { padding-top: var(--section-y); padding-bottom: var(--section-y); }
html.v2 .v2-hero { padding-bottom: calc(var(--section-y) * .6); }
.site-footer { margin-top: 0; padding: clamp(44px, 6vw, 64px) 0 28px; }
main > .section:last-child { padding-bottom: var(--section-y); }
[id] { scroll-margin-top: calc(var(--head-h) + 8px); }
.section-head, .v2-levels-head, .v2-tools-head { margin-bottom: clamp(26px, 3.5vw, 40px); }
.section-head h2, .v2-levels-head h2, .v2-tools-head h2, .cinema-head h2 { text-wrap: balance; }
.lead { line-height: 1.6; }
.ticks li { line-height: 1.5; }

/* Questions: a readable column with even gaps. */
#faq .faq { margin: 0 0 12px; }
#faq .faq summary { line-height: 1.4; }

/* Footer: logo and text, the two store buttons side by side, then the link columns. */
.footer-grid { gap: 36px 28px; }
.site-footer .footer-grid > div:first-child p { line-height: 1.6; max-width: 420px; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; align-items: center; }
}
@media (max-width: 360px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------ Hero ------------------------------ */
.v2-hero h1 { font-size: clamp(38px, 4.9vw, 66px); text-wrap: balance; }
.v2-hero .lead { line-height: 1.6; max-width: 34em; }
@media (min-width: 981px) and (max-width: 1180px) { .v2-hero > .container:not(.v2-stats) { gap: 32px; } }
@media (max-width: 980px) and (min-width: 761px) { .v2-hero h1 { font-size: clamp(42px, 6.4vw, 56px); } }

/* Cards on their own pages (invite, sign in, delete account, not found) keep the side gutter on phones. */
.form-card { margin-left: auto; margin-right: auto; width: calc(100% - (var(--gutter) * 2)); }
.form-card .store-badges.sb30 { justify-content: center; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { .form-card { padding-left: 20px; padding-right: 20px; } }

/* ================= v31: bigger phone on the left, bigger screens on the right (a slider) ================= */
@media (min-width: 981px) { .v2-story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.v2-story-phone .v2-phone-lg { width: min(360px, calc((100vh - 250px) * .47)); }
.v2-story-phone { top: calc(var(--head-h) + 20px); }
.v2-story-cap { margin-top: 16px; }
.v2-story-progress { margin-top: 12px; }
.v2-story-dots { margin-top: 14px; }

/* The six screens of a chapter: big enough to read, sliding sideways (by itself, with the
   arrows and dots, or with a swipe / trackpad). */
.v2-screens, .v2-screens-wrap .v2-screens { position: relative; display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; margin: 0 -4px; padding: 6px 4px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.v2-screens::-webkit-scrollbar { display: none; }
.v2-screen { flex: 0 0 auto; width: 172px; scroll-snap-align: start; padding: 10px 10px 12px; gap: 10px; border-radius: 22px; background: #fff; }
.v2-screen-img { width: 150px; max-width: none; aspect-ratio: 390 / 844; border-radius: 22px; border-width: 4px; }
.v2-screen-name { font-size: 14px; }
.v2-screen:hover { transform: translateY(-4px); }
.v2-screen.on { border-color: var(--honey); background: var(--honey-soft); box-shadow: 0 10px 24px rgba(227, 150, 28, .22); }
/* A soft fade on the right edge says "there is more". */
.v2-screens-wrap { position: relative; }
.v2-screens-wrap::after { content: ""; position: absolute; top: 0; right: -1px; width: 36px; height: calc(100% - 64px); pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .9)); border-radius: 0 22px 22px 0; }
@media (max-width: 1180px) and (min-width: 981px) {
  .v2-screen { width: 156px; }
  .v2-screen-img { width: 134px; }
}
@media (max-width: 980px) {
  .v2-screen { width: 156px; }
  .v2-screen-img { width: 136px; }
  .v2-screen:hover { transform: none; }
  .v2-screen.on { border-color: var(--line); background: #fff; box-shadow: none; }
}
@media (max-width: 760px) {
  .v2-screen { width: 142px; }
  .v2-screen-img { width: 122px; }
}
@media (max-width: 360px) {
  .v2-screen { width: 128px; }
  .v2-screen-img { width: 108px; }
}
/* The small screens show the top of each screen (tap or click for the whole screen). */
.v2-screen-img { aspect-ratio: 390 / 600; }
.v2-screen-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (max-width: 980px) { .v2-screen-img { aspect-ratio: 390 / 700; } }

/* ================= v31: Levels — the number and the name in one line ================= */
.v2-ladder { gap: 20px; }
.v2-level-card { padding: 24px; gap: 14px; border-radius: 24px; }
.v2-level-top { display: flex; align-items: center; gap: 14px; }
.v2-level .v2-hex { width: 52px; height: 58px; font-size: 21px; }
.v2-level-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v2-level-name small { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); line-height: 1.2; }
.v2-level-name h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.v2-level-card p { margin: 0; font-size: 15.5px; line-height: 1.6; flex: 1; }
.v2-level-foot { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.v2-level-foot .v2-level-bar { flex: 1; margin: 0; height: 7px; }
.v2-level-of { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.v2-level-card:hover .v2-hex { transform: rotate(-8deg) scale(1.06); }
.v2-level .v2-hex { transition: transform .35s var(--ease-out); }
@media (max-width: 760px) {
  .v2-level-card { padding: 20px; gap: 12px; }
  .v2-level .v2-hex { width: 46px; height: 52px; font-size: 19px; }
  .v2-level-name h3 { font-size: 20px; }
  .v2-level-card p { font-size: 15px; }
}
/* v31: everything in the level cards centred — the number and name together in the middle, the text and bar under them. */
.v2-level-card { align-items: center; text-align: center; }
.v2-level-top { justify-content: center; }
.v2-level-name { align-items: flex-start; text-align: left; }
.v2-level-card p { max-width: 34ch; margin-left: auto; margin-right: auto; }
.v2-level-foot { width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }

/* ================= v31: tools — icon and title on one line, "Pro" in the corner ================= */
.v2-tile { position: relative; }
.v2-tile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; min-width: 0; }
.v2-tile-head .v2-tile-icon { margin: 0; width: 52px; height: 52px; border-radius: 16px; }
.v2-tile-head .v2-tile-icon svg { width: 26px; height: 26px; }
.v2-tile-head h3 { margin: 0; min-width: 0; font-size: 21px; line-height: 1.25; }
.v2-tile > .v2-tag { position: absolute; top: 20px; right: 20px; margin: 0; z-index: 1; box-shadow: 0 4px 12px rgba(227, 150, 28, .3); }
.v2-tile:has(> .v2-tag) .v2-tile-head { padding-right: 56px; }
/* Big row counter tile. */
.v2-tile-xl .v2-tile-head h3 { font-size: clamp(22px, 2vw, 27px); }
.v2-tile-xl p { font-size: 16.5px; }
.v2-tile-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.v2-tile-points li { position: relative; padding-left: 30px; font-weight: 600; font-size: 15px; line-height: 1.4; }
.v2-tile-points li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--honey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232A1C12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
/* Dark tile: a light icon box, the phone on the right. */
.v2-tile-dark .v2-tile-icon { background: rgba(244, 174, 51, .18); }
.v2-tile-dark .v2-tile-icon svg { stroke: var(--honey); }
.v2-tile-dark > .v2-tag { right: auto; left: auto; top: 20px; right: 190px; }
.v2-tile-dark:has(> .v2-tag) .v2-tile-head { padding-right: 0; }
.v2-tile-dark .v2-tile-copy { padding-top: 0; }
/* Honey tile. */
.v2-tile-honey .v2-tile-icon { background: rgba(255, 255, 255, .5); }
@media (max-width: 760px) {
  .v2-tile-head { gap: 12px; margin-bottom: 12px; }
  .v2-tile-head .v2-tile-icon { width: 46px; height: 46px; border-radius: 14px; }
  .v2-tile-head .v2-tile-icon svg { width: 23px; height: 23px; }
  .v2-tile-head h3, .v2-tile-xl .v2-tile-head h3 { font-size: 19px; }
  .v2-tile > .v2-tag { top: 16px; right: 16px; }
  .v2-tile-dark > .v2-tag { right: 136px; }
  .v2-tile-points { margin-top: 16px; gap: 8px; }
  .v2-tile-points li { font-size: 14px; }
}
@media (max-width: 360px) { .v2-tile-dark > .v2-tag { right: 16px; } }
/* v31b: "Pro" sits right after the title; the big tile's heading runs across the whole tile. */
.v2-tile-head { flex-wrap: wrap; row-gap: 8px; }
.v2-tile-head .v2-tag { margin: 0; align-self: center; flex: none; box-shadow: none; }
.v2-tile-head h3 { flex: 0 1 auto; }
.v2-tile:has(> .v2-tag) .v2-tile-head { padding-right: 0; }
.v2-tile-xl > .v2-tile-head { grid-column: 1 / -1; margin-bottom: 0; }
.v2-tile-xl { grid-template-rows: auto 1fr; row-gap: 16px; }
.v2-tile-xl .v2-tile-head h3 { font-size: clamp(23px, 2.1vw, 28px); }
.v2-tile-honey .v2-tile-head h3, .v2-bento > .v2-tile:nth-child(3) .v2-tile-head h3 { font-size: 20px; }
@media (max-width: 760px) {
  .v2-tile-xl { grid-template-columns: minmax(0, 1fr); padding: 24px 22px 0; row-gap: 14px; }
  .v2-tile-xl > .v2-tile-copy { padding-bottom: 6px; }
  .v2-tile-xl .device { width: 170px; justify-self: center; margin: 4px 0 -70px; }
  .v2-tile-xl { overflow: hidden; }
  .v2-tile-xl .v2-tile-head h3 { font-size: 21px; }
}
/* v31c: "Pro" as a small badge on the corner of the icon, so the title always stays on the icon's line. */
.v2-tile-head { position: relative; flex-wrap: nowrap; }
.v2-tile-head .v2-tag { position: absolute; left: 32px; top: -9px; font-size: 9.5px; letter-spacing: .08em; padding: 3px 7px; border-radius: 999px; box-shadow: 0 3px 8px rgba(42, 28, 18, .18); border: 2px solid #fff; }
.v2-tile-dark .v2-tile-head .v2-tag { border-color: #2E1F15; }
.v2-tile-xl > .v2-tile-head { padding-bottom: 0; align-self: start; }
.v2-tile-xl > .v2-tile-copy { align-self: start; }
@media (max-width: 760px) { .v2-tile-head .v2-tag { left: 26px; top: -8px; } }

/* ================= v32: the big phone on its own stage, drawn like a real phone ================= */
.v2-story-phone::before { display: none; }
@media (min-width: 981px) { .v2-story-phone { display: block; width: 100%; padding: 0; top: calc(var(--head-h) + 16px); } }
.v2-stage { width: 100%; position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 24px 22px; }
/* v33: no card behind the phone (as before) — only the soft honey glow it always had. */
.v2-stage::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 40px; width: 420px; height: 420px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(244, 174, 51, .28), transparent 68%); }

.v2-device { --w: clamp(190px, calc((100vh - var(--head-h) - 210px) / 2.42), 340px); position: relative; width: var(--w); flex: none; padding: calc(var(--w) * .032); border-radius: calc(var(--w) * .17); background: linear-gradient(150deg, #3d3128 0%, #18110c 55%, #2a2019 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 1.5px #5a4a3c, 0 34px 60px -24px rgba(77, 45, 10, .5), 0 14px 26px -14px rgba(77, 45, 10, .4); }
.v2-device::before, .v2-device::after { content: ""; position: absolute; width: 3px; border-radius: 3px; background: #3d3128; }
.v2-device::before { left: -3px; top: 22%; height: 12%; box-shadow: 0 calc(var(--w) * .2) 0 #3d3128; }
.v2-device::after { right: -3px; top: 28%; height: 16%; }
.v2-device-screen { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: calc(var(--w) * .14); background: #FFF8ED; }
.v2-device-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: calc(var(--w) * .125); padding: 0 calc(var(--w) * .075); color: var(--ink); font: 700 calc(var(--w) * .045)/1 'Woolhive Brand', sans-serif; }
.v2-device-time { justify-self: start; letter-spacing: .01em; }
.v2-device-island { display: block; width: calc(var(--w) * .3); height: calc(var(--w) * .085); border-radius: 999px; background: #0d0a08; }
.v2-device-icons { justify-self: end; display: flex; align-items: center; gap: calc(var(--w) * .015); }
.v2-device-icons svg { height: calc(var(--w) * .036); width: auto; fill: currentColor; }
.v2-device-view { position: relative; width: 100%; aspect-ratio: 780 / 1688; }
.v2-device-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.02); transition: opacity .6s ease, transform .6s var(--v2-ease); }
.v2-device-view img.on { opacity: 1; transform: none; }
.v2-device-home { display: block; position: relative; height: calc(var(--w) * .06); }
.v2-device-home::after { content: ""; position: absolute; left: 50%; top: 50%; width: 36%; height: 4px; border-radius: 4px; background: var(--ink); opacity: .85; transform: translate(-50%, -50%); }

.v2-stage-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.v2-stage .v2-story-cap { position: relative; overflow: hidden; margin: 0; min-width: 210px; justify-content: space-between; }
.v2-stage .v2-story-progress { position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 3px; margin: 0; border-radius: 0; background: transparent; }
.v2-stage .v2-story-dots { display: inline-flex; gap: 2px; margin: 0; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.v2-stage .v2-story-dots li { width: auto; height: 36px; padding: 0 16px; gap: 6px; display: inline-flex; align-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: 600 14px/1 'Woolhive Brand', sans-serif; transform: none; cursor: pointer; transition: background .3s ease, color .3s ease; }
.v2-stage .v2-story-dots li b { font-size: 12px; font-weight: 700; color: var(--honey-deep); transition: color .3s ease; }
.v2-stage .v2-story-dots li:hover { background: var(--honey-soft); color: var(--ink); }
.v2-stage .v2-story-dots li.on { background: var(--ink); color: #fff; transform: none; }
.v2-stage .v2-story-dots li.on b { color: var(--honey); }
.v2-stage .v2-story-dots li:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .v2-device-view img { transition: none; } }
/* Short laptop screens: a little less air so the whole stage stays in view. */
@media (max-height: 780px) and (min-width: 981px) {
  .v2-stage { padding: 20px 20px 16px; gap: 12px; }
  .v2-stage-foot { gap: 8px; }
  .v2-stage .v2-story-cap { min-height: 38px; }
  .v2-stage .v2-story-dots li { height: 30px; padding: 0 12px; font-size: 13px; }
}

/* v34: tablets and phones — the hexagon sits centred above the level name, so every
   hexagon lines up on the same centre line from card to card (names have different lengths). */
@media (max-width: 980px) {
  .v2-level-top { flex-direction: column; gap: 10px; }
  .v2-level-name { align-items: center; text-align: center; }
}
