/* Reading Lobster — landing v1
   Tokens mirror design/preview-bear.html v6.1 */

:root {
  --bg: #F9F1E0; /* warm cream — sits closer to honey than to grey */
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #3A3A3A;
  --muted: #6C645A;      /* warm, ≥4.5:1 on the cream bg */
  --muted-soft: #948A7E;
  --tomato-deep: #BC3A2C; /* the "cover" band; white text passes 4.5:1 */
  --hairline: #ECE6D9;
  --hairline-soft: #F4EFE5;
  --sand: #D6C29A;
  --sand-soft: #F0E5D0;
  --sand-ink: #5C4A2D;
  --clay-ink: #74553E;
  --clay-soft: #EBDDD0;
  --tomato: #DC4A37;
  --tomato-warm: #E54E3A;
  --tomato-soft: #FBE3DC;
  --shadow-soft: 0 1px 2px rgba(38,28,18,.05), 0 8px 24px rgba(38,28,18,.06);
  --shadow-page: 0 2px 6px rgba(38,28,18,.06), 0 30px 60px rgba(38,28,18,.10);
  --shadow-button: 0 1px 2px rgba(38,28,18,.10), 0 2px 6px rgba(38,28,18,.08);
  --sans: 'General Sans', -apple-system, system-ui, sans-serif;
  --serif: 'Fraunces', 'Newsreader', Georgia, ui-serif, serif;
  --max: 1080px;
  /* motion tokens: strong curves, UI stays under 300ms */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 560; letter-spacing: -0.01em; }
h1, h2, h3, .verb { text-wrap: balance; }
::selection { background: var(--tomato-soft); }

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* the page teaches you four verbs as you scroll — the brand's section system */
.job p.verb {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(42px, 5.2vw, 64px); line-height: .95; letter-spacing: -0.02em;
  color: var(--ink); max-width: none;
}
.job p.verb span { color: var(--tomato); font-style: normal; }
.job p.verb-tr { font-size: 14.5px; color: var(--muted); margin: 8px 0 22px; }
.section-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 17px; max-width: 560px; }

/* ---------- bookmark ribbon: unrolls in, begs to be pulled ---------- */
.bookmark {
  position: absolute; top: -1px; right: -24px; z-index: 20;
  width: 52px; height: 240px;
  background: transparent; border: none; padding: 0;
  transform-origin: top center;
  cursor: grab; touch-action: none;
  pointer-events: none;
}
.bookmark.dropped { pointer-events: auto; }
.bookmark:active { cursor: grabbing; }

/* the ribbon cloth: grows downward while the roll unrolls */
.bm-cloth {
  position: absolute; left: 0; right: 0; top: 0; height: 0;
  background:
    linear-gradient(90deg,
      #C33D2C 0%, var(--tomato) 16%, var(--tomato-warm) 50%,
      var(--tomato) 84%, #C33D2C 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 18px), 0 100%);
  box-shadow: var(--shadow-button);
}
/* stitched edges */
.bm-cloth::before, .bm-cloth::after {
  content: ""; position: absolute; top: 6px; bottom: 22px; width: 0;
  border-left: 2px dashed rgba(255,255,255,.35);
}
.bm-cloth::before { left: 7px; }
.bm-cloth::after { right: 7px; }

/* white chevron near the tip */
.bm-arrow {
  position: absolute; left: 50%; bottom: 30px;
  width: 13px; height: 13px;
  border-right: 3px solid rgba(255,255,255,.9);
  border-bottom: 3px solid rgba(255,255,255,.9);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0; transition: opacity .3s ease .1s;
}
.bookmark.dropped .bm-arrow { opacity: 1; }

/* the rolled-up coil that travels down and vanishes as the ribbon unrolls */
.bm-curl {
  position: absolute; left: 50%; top: -6px;
  width: 62px; height: 30px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 42%, #F0A08C 0 26%, #C33D2C 30% 100%);
  box-shadow: 0 3px 8px rgba(38,28,18,.25);
  transform: translateX(-50%);
  opacity: 0;
}

.bookmark.unroll .bm-cloth { animation: bmUnroll 1.05s cubic-bezier(.3,1.15,.45,1) forwards; }
.bookmark.unroll .bm-curl { animation: bmCurl 1.05s cubic-bezier(.3,1.15,.45,1) forwards; }
@keyframes bmUnroll {
  0% { height: 0; }
  70% { height: 106%; }
  85% { height: 97%; }
  100% { height: 100%; }
}
@keyframes bmCurl {
  0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  12% { opacity: 1; }
  70% { transform: translateX(-50%) translateY(234px) scale(.4); opacity: 1; }
  100% { transform: translateX(-50%) translateY(246px) scale(.15); opacity: 0; }
}
.bookmark.dropped .bm-cloth { height: 100%; }

/* idle: a couple of impatient tugs, then a pause */
.bookmark.idle { animation: bmIdle 3s ease-in-out 1.2s infinite; }
@keyframes bmIdle {
  0%, 100% { transform: translateY(0); }
  8% { transform: translateY(12px); }
  16% { transform: translateY(0); }
  22% { transform: translateY(6px); }
  30% { transform: translateY(0); }
}

.bookmark.snapback { transition: transform .45s cubic-bezier(.28,1.6,.36,1); }

.bm-hint {
  position: absolute; right: 62px; top: 42%; width: max-content;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
  padding: 7px 12px; border-radius: 9px;
  opacity: 0; transform: translateX(4px); transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.bm-hint::after {
  content: ""; position: absolute; right: -4px; top: 50%;
  width: 8px; height: 8px; background: var(--ink);
  transform: translateY(-50%) rotate(45deg);
}
.bookmark.hint .bm-hint, .bookmark.dropped:hover .bm-hint { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .bookmark { width: 42px; height: 176px; right: -8px; }
  .bm-curl { width: 52px; height: 25px; }
  @keyframes bmCurl {
    0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    12% { opacity: 1; }
    70% { transform: translateX(-50%) translateY(170px) scale(.4); opacity: 1; }
    100% { transform: translateX(-50%) translateY(182px) scale(.15); opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .bookmark.unroll .bm-cloth, .bookmark.dropped .bm-cloth { height: 100%; }
  .bm-curl { display: none; }
}

.demo-word.flash { animation: wordFlash .9s ease; }
@keyframes wordFlash {
  0% { background: var(--tomato-soft); box-shadow: 0 0 0 6px var(--tomato-soft); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 19px; font-weight: 600; text-decoration: none; }
.logo-mark { width: 11px; height: 17px; fill: var(--tomato); flex: none; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--tomato); }
@media (max-width: 720px) { .nav-links { display: none; } }
.nav .btn-store { margin-left: auto; }
@media (min-width: 721px) { .nav .btn-store { margin-left: 0; } }

/* ---------- buttons: slim, rectangular, App-Store-badge proportions ---------- */
.btn-store {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 8px; padding: 6px 13px 6px 10px;
  border: none;
  transition: transform .15s ease, opacity .15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn-store:hover { transform: translateY(-1px); opacity: .9; }
}
.btn-store:active { transform: scale(0.97); }
.btn-store svg { width: 16px; height: 16px; fill: #fff; }
.btn-store .lines { text-align: left; line-height: 1.1; }
.btn-store .l1 { font-size: 8.5px; opacity: .75; letter-spacing: .02em; }
.btn-store .l2 { font-size: 13px; font-weight: 600; }
.btn-store.big { border-radius: 9px; padding: 7px 16px 7px 12px; }
.btn-store.big svg { width: 18px; height: 18px; }
.btn-store.big .l1 { font-size: 9.5px; }
.btn-store.big .l2 { font-size: 15px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(38px, 5.5vw, 60px); line-height: 1.06; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--tomato); }
.hero .tagline { font-size: 19px; color: var(--ink-soft); max-width: 480px; margin-bottom: 30px; }
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; justify-content: center; }

/* phone mockup — flat, warm, no shadows */
.phone {
  width: min(330px, 84vw);
  background: var(--paper); border-radius: 42px;
  border: 1.5px solid var(--hairline);
  padding: 12px; position: relative; z-index: 2;
}
.phone-screen { background: var(--bg); border-radius: 32px; overflow: hidden; }

/* the scene: the lobster walks up and snips German into English */
.scene { position: relative; height: 430px; padding: 24px 20px; }
.scene-meta {
  font-size: 11px; color: var(--muted-soft); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 22px;
}
.scene-stage { position: relative; min-height: 200px; }
.scene-line {
  position: absolute; inset: 0 0 auto 0;
  font-family: var(--serif); font-size: 21px; line-height: 1.6; color: var(--ink);
}
.scene-line .w { display: inline-block; opacity: 0; transform: translateY(10px); filter: blur(5px); white-space: pre; }
.scene-line .w.in {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 380ms ease, transform 380ms var(--ease-out), filter 380ms ease;
}
/* the shredding: each word flies off on its own vector */
.scene-de.sliced .w {
  opacity: 0;
  transform: translate(var(--dx, 0px), var(--dy, 30px)) rotate(var(--rot, 8deg)) scale(.9);
  transition: opacity .55s ease, transform .55s cubic-bezier(.5,0,.8,.4);
}
.scene-en { color: var(--ink); }
.scene-en .w.in { transition-delay: var(--d, 0s); }
.scene-en .tr-tag {
  display: inline-block; font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--tomato);
  background: var(--tomato-soft); border-radius: 999px; padding: 3px 9px;
  margin-bottom: 10px;
}
.scene-lobster {
  position: absolute; bottom: 18px; right: 0; width: 180px;
  transform: translateX(115%);
  transition: transform 900ms var(--ease-drawer);
  cursor: pointer;
}
.scene-lobster:active { transform: translateX(-14px) scale(.96); }
.scene-lobster.walk-in { transform: translateX(-14px); }
.scene-lobster.snap { animation: sceneSnap .4s ease; }
@keyframes sceneSnap {
  0%, 100% { transform: translateX(-14px) rotate(0); }
  35% { transform: translateX(-26px) rotate(-9deg) scale(1.05); }
  65% { transform: translateX(-18px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .scene-lobster { transform: translateX(-14px); }
  .scene-line .w { opacity: 1; transform: none; }
}

/* ---------- demo ---------- */
.demo { padding-top: 72px; }
.demo-box {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 24px;
  box-shadow: var(--shadow-page); padding: clamp(20px, 4vw, 44px); position: relative;
}
.demo-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.demo-pill {
  border: 1px solid var(--hairline); background: var(--bg); border-radius: 999px;
  padding: 9px 16px; font-size: 14.5px; color: var(--ink-soft);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .demo-pill:hover { border-color: var(--sand); }
}
.demo-pill:active { transform: scale(0.96); }
.demo-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* text swap masked by a short blur crossfade */
#demo-sentences { transition: opacity 140ms ease, filter 140ms ease; }
#demo-sentences.sw { opacity: .35; filter: blur(6px); }

.demo-stage { display: grid; grid-template-columns: 1fr 300px; gap: 36px; }
@media (max-width: 860px) { .demo-stage { grid-template-columns: 1fr; } }

.demo-text { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 23px); line-height: 1.85; color: var(--ink); }
.demo-text .sent { display: block; margin-bottom: 10px; }
.demo-text .tr { display: block; font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin: -4px 0 10px; }
.demo-word {
  cursor: pointer; border-bottom: 2px dotted var(--sand);
  border-radius: 3px 3px 0 0; padding: 0 1px; transition: background .15s ease;
}
.demo-word:hover { background: var(--sand-soft); }
.demo-word.caught { background: var(--tomato-soft); border-bottom: 2px solid var(--tomato); }

.demo-side { display: flex; flex-direction: column; gap: 16px; }
.demo-audio {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  background: var(--bg); border: 1px solid var(--hairline); border-radius: 999px;
  padding: 8px 18px 8px 8px; font-size: 14px; color: var(--ink-soft);
}
.demo-audio .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--tomato); display: grid; place-items: center; transition: transform .15s ease; }
.demo-audio:hover .dot { transform: scale(1.08); }
.demo-audio .dot svg { width: 11px; height: 11px; fill: #fff; }

.catch-meter {
  background: var(--bg); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
}
.catch-meter img { width: 44px; height: auto; transition: transform 200ms var(--ease-out); }
.catch-meter img.snap { transform: rotate(-10deg) scale(1.12); }
.catch-meter .n { font-family: var(--serif); font-size: 22px; color: var(--tomato); }
.catch-meter .n.pop { animation: counterPop 240ms var(--ease-out); }
@keyframes counterPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.catch-meter .lbl { font-size: 13px; color: var(--muted); }

/* word card */
.word-card {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 18px;
  box-shadow: var(--shadow-page); padding: 20px;
  opacity: 0; transform: translateY(6px) scale(.97); filter: blur(3px);
  transform-origin: top center;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), filter 200ms ease;
  pointer-events: none;
}
.word-card.show { opacity: 1; transform: none; filter: blur(0); pointer-events: auto; }
.word-card .w { font-family: var(--serif); font-size: 26px; }
.word-card .form { font-size: 12.5px; color: var(--clay-ink); letter-spacing: .04em; margin: 2px 0 10px; }
.word-card .meaning { font-size: 16px; margin-bottom: 12px; }
.word-card .ex { font-size: 14px; font-family: var(--serif); font-style: italic; color: var(--ink-soft); border-left: 3px solid var(--sand); padding-left: 10px; margin-bottom: 10px; }
.word-card .note { font-size: 13px; color: var(--muted); background: var(--sand-soft); border-radius: 10px; padding: 8px 10px; }
.word-card .idiom-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tomato); background: var(--tomato-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }

@media (max-width: 860px) {
  .word-card {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 100;
    transform: translateY(16px);
  }
  .word-card.show { transform: none; }
}

/* ---------- jobs (zigzag) ---------- */
.job { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: 72px 0; }
.job:nth-child(even) .job-copy { order: 2; }
@media (max-width: 860px) {
  .job { grid-template-columns: 1fr; padding: 48px 0; }
  .job:nth-child(even) .job-copy { order: 0; }
}
.job h3 {
  font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: 0;
  line-height: 1.35; margin-bottom: 10px;
}
.job p { color: var(--ink-soft); font-size: 16.5px; max-width: 460px; text-wrap: pretty; }

.job-visual {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 22px;
  box-shadow: var(--shadow-soft); padding: clamp(20px, 3vw, 32px);
}

/* import ways (job 1) */
.ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.way { background: var(--bg); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px; }
.way b { font-family: var(--serif); font-size: 17px; display: block; margin-bottom: 3px; }
.way span { font-size: 13px; color: var(--muted); }

/* voices (job 2) */
.voices { display: flex; flex-direction: column; gap: 10px; }
.voice {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--hairline); border-radius: 14px; padding: 10px 14px;
}
.voice button {
  width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--tomato);
  display: grid; place-items: center; flex: none; transition: transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .voice button:hover { transform: scale(1.1); }
}
.voice button:active { transform: scale(0.9); }
.voice button svg { width: 11px; height: 11px; fill: #fff; }
.voice .who b { font-family: var(--serif); font-size: 16px; }
.voice .who span { font-size: 13px; color: var(--muted); display: block; }
.voices-more { font-size: 13.5px; color: var(--muted); padding-left: 4px; }

/* Verstehen: full-width break in the zigzag rhythm */
.job-wide { padding: 88px 0 72px; }
.job-wide-head { max-width: 580px; margin-bottom: 44px; }
.job-wide-head h3 {
  font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: 0;
  line-height: 1.35; margin-bottom: 10px;
}
.job-wide-head p:last-child { color: var(--ink-soft); font-size: 16.5px; text-wrap: pretty; }
.job-wide .verb {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(42px, 5.2vw, 64px); line-height: .95; letter-spacing: -0.02em;
}
.job-wide .verb span { color: var(--tomato); font-style: normal; }
.job-wide .verb-tr { font-size: 14.5px; color: var(--muted); margin: 8px 0 22px; }

/* asymmetric trio, not three identical soldiers */
.idioms-wide {
  display: grid; grid-template-columns: 1.05fr 0.95fr 1.1fr; gap: 20px;
  align-items: start;
}
.idioms-wide .idiom { background: var(--paper); }
.idioms-wide .idiom:nth-child(1) { transform: rotate(-.8deg); }
.idioms-wide .idiom:nth-child(2) { transform: translateY(26px) rotate(.6deg); }
.idioms-wide .idiom:nth-child(3) { transform: translateY(10px) rotate(-.4deg); }
@media (max-width: 860px) {
  .idioms-wide { grid-template-columns: 1fr; }
  .idioms-wide .idiom:nth-child(n) { transform: none; }
}

/* idioms — meaning hides behind blur until hover/tap */
.idioms { display: flex; flex-direction: column; gap: 12px; }
.idioms.idioms-wide { display: grid; }
.idiom {
  background: var(--bg); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px;
  cursor: pointer; transition: border-color 200ms ease, transform 200ms var(--ease-out);
}
.idiom:active { transform: scale(0.98); }
.idiom .val { filter: blur(6px); transition: filter 260ms ease; user-select: none; }
.idiom.open .val { filter: blur(0); user-select: auto; }
@media (hover: hover) and (pointer: fine) {
  .idiom:hover { border-color: var(--sand); transform: translateY(-1px); }
  .idiom:hover .val { filter: blur(0); }
}
.idiom .de { font-family: var(--serif); font-size: 18px; margin-bottom: 10px; }
.idiom .row { display: flex; gap: 8px; font-size: 14px; margin-top: 4px; align-items: baseline; }
.idiom .tag { flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; }
.idiom .tag.lit { background: var(--hairline-soft); color: var(--muted); }
.idiom .tag.mean { background: var(--tomato-soft); color: var(--tomato); }
.idiom .lit-t { color: var(--muted); }

/* trainer (job 4) */
.trainer { max-width: 340px; margin: 0 auto; }
.trainer .t-card { background: var(--bg); border: 1px solid var(--hairline); border-radius: 16px; padding: 20px; text-align: center; }
.trainer .t-word { font-family: var(--serif); font-size: 24px; margin: 10px 0 2px; }
.trainer .t-form { font-size: 12.5px; color: var(--clay-ink); margin-bottom: 14px; }
.trainer .t-input {
  border-bottom: 2px dashed var(--sand); padding: 6px 0; font-family: var(--serif);
  font-size: 19px; letter-spacing: .18em; color: var(--ink-soft); width: 70%; margin: 0 auto 6px;
}
.trainer .t-input .cursor { display: inline-block; width: 2px; height: 1em; background: var(--tomato); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.trainer .t-play {
  width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--tomato);
  display: inline-grid; place-items: center;
  transition: transform 160ms var(--ease-out);
}
.trainer .t-play:active { transform: scale(0.9); }
.trainer .t-play svg { width: 13px; height: 13px; fill: #fff; }
.t-progress { margin-top: 18px; }
.t-progress .bar { height: 8px; background: var(--hairline-soft); border-radius: 999px; overflow: hidden; }
.t-progress .fill { height: 100%; width: 67%; background: var(--tomato); border-radius: 999px; }
.t-progress .lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---------- what's inside ---------- */
.inside-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: center; }
@media (max-width: 860px) { .inside-grid { grid-template-columns: 1fr; } .inside-grid img { max-width: 240px; margin: 0 auto; } }
.tabs { display: flex; gap: 8px; margin: 24px 0 20px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--hairline); background: var(--paper); border-radius: 999px;
  padding: 8px 18px; font-size: 14.5px; color: var(--ink-soft);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.tab:active { transform: scale(0.96); }
.tab.active { background: var(--tomato); border-color: var(--tomato); color: #fff; }
#tab-panel h4, #tab-panel p { animation: panelIn 220ms var(--ease-out) backwards; }
#tab-panel p { animation-delay: 40ms; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
}
.tab-panel { background: var(--paper); border: 1px solid var(--hairline); border-radius: 18px; box-shadow: var(--shadow-soft); padding: 26px; min-height: 130px; }
.tab-panel h4 { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; }
.tab-panel p { color: var(--ink-soft); font-size: 15.5px; max-width: 520px; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; margin-top: 40px; }
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }
.plan { background: var(--paper); border: 1px solid var(--hairline); border-radius: 22px; box-shadow: var(--shadow-soft); padding: 32px; }
.plan.pro { border: 2px solid var(--tomato); box-shadow: var(--shadow-page); position: relative; }
.plan.pro .flag {
  position: absolute; top: -12px; left: 28px; background: var(--tomato); color: #fff;
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 12px;
}
.plan h3 { font-size: 24px; }
.plan .price { font-family: var(--serif); font-size: 38px; margin: 10px 0 2px; }
.plan .per { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); transform: translateY(-1px); }
.plan.pro li::before { background: var(--tomato); }

/* ---------- faq ---------- */
.faq-list { max-width: 720px; margin: 36px auto 0; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-size: 17px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--serif); font-size: 22px; color: var(--tomato); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .a { padding: 0 0 18px; color: var(--ink-soft); font-size: 15.5px; max-width: 620px; }
.faq-item[open] .a { animation: faqIn 200ms var(--ease-out); }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-5px); }
}

/* ---------- final: the tomato back cover ---------- */
.final {
  text-align: center; padding: 100px 0 96px;
  background: var(--tomato-deep); color: #FFF9F0;
}
.final h2 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 14px; color: #FFF9F0; }
.final p { color: #FFFFFF; margin-bottom: 34px; }
.final .hero-cta { justify-content: center; }
.final .btn-store { background: #FFF9F0; color: var(--ink); }
.final .btn-store svg { fill: var(--ink); }
.final .btn-store .l1 { opacity: .6; }
.final-lobster { width: 150px; margin: 0 auto 28px; transform: rotate(-4deg); }

.founder { width: 100%; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.founder b { color: var(--ink-soft); font-weight: 500; }

/* ---------- footer ---------- */
footer { padding: 36px 0 48px; }
.foot { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--tomato); }
.foot .spacer { flex: 1; }

/* ---------- one-time scroll reveals (default state stays visible; JS opts in) ---------- */
.verb.pre { clip-path: inset(-12% 100% -12% 0); }
.verb.pre span { opacity: 0; transform: scale(.5); }
.verb.pre + .verb-tr { opacity: 0; transform: translateY(6px); }
.verb.rise { clip-path: inset(-12% -2% -12% 0); transition: clip-path 620ms var(--ease-in-out); }
.verb span { display: inline-block; }
.verb.rise span { opacity: 1; transform: none; transition: opacity 200ms ease 430ms, transform 300ms var(--ease-out) 430ms; }
.verb.rise + .verb-tr { opacity: 1; transform: none; transition: opacity 300ms var(--ease-out) 250ms, transform 300ms var(--ease-out) 250ms; }

.way.pre, .plan.pre { opacity: 0; transform: translateY(12px); }
.way.rise, .plan.rise {
  opacity: 1; transform: none;
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.t-progress .fill.pre { width: 0; }
.t-progress .fill.rise { width: 67%; transition: width 900ms var(--ease-in-out) 150ms; }

.final-lobster { animation: finalBob 5.5s ease-in-out infinite; }
@keyframes finalBob {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-8px); }
}

