/* Tabworks: site styles.
   Brand: teal #0d3b3a + lime #c8f169, Sora (self-hosted, SIL Open Font Licence).
   Change colours here only, under :root. */
@font-face {
  font-family: "Sora";
  src: url("fonts/sora-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #0d3b3a;
  --teal-2: #124a48;      /* raised panels on teal */
  --teal-3: #23605d;      /* lines on teal */
  --lime: #c8f169;
  --lime-2: #b5e04f;      /* hover */
  --mint: #f4f8f5;        /* alternate section ground */
  --ink: #0d3b3a;
  --ink-soft: #46605d;
  --on-teal-soft: #a9c4bd;
  --line: #dbe7e1;
  --white: #ffffff;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(13,59,58,.06), 0 8px 24px rgba(13,59,58,.08);
  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 16.5px; overflow-x: clip; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #000; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.22; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 max(4vw, 18px); }
.narrow { max-width: 760px; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }

/* Lime brush highlight behind key words (always teal text on lime) */
.hl {
  font-style: normal; color: var(--teal); padding: .16em .38em; margin: 0 -.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M3 11 Q60 7 120 4 Q170 1 196 0 Q200 0 200 4 L199 49 Q150 52 100 55 Q50 58 4 60 Q0 60 0 56 L1 14 Q1 11 3 11 Z' fill='%23c8f169'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

/* Header */
.site-header { background: var(--teal); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--teal-3); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; color: #fff; text-decoration: none; }
.logo img { height: 30px; width: auto; }
.logo:hover { color: #fff; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: #e6f0ec; text-decoration: none; font-size: .92rem; }
.nav a:hover { color: var(--lime); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: var(--radius-sm); background: var(--lime); color: var(--teal) !important; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: .98rem; font-family: inherit; transition: background .15s, transform .15s; }
.btn:hover { background: var(--lime-2); transform: translateY(-1px); }
.btn-dark { background: var(--teal); color: #fff !important; }
.btn-dark:hover { background: #0a2f2e; }
.btn-ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-ghost.on-light { color: var(--teal) !important; box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn-ghost.on-light:hover { background: var(--mint); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .88rem; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* Hero */
.hero { background: var(--teal); color: #fff; padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(200,241,105,.16), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.hero .lead { font-size: 1.12rem; color: #d7e6e1; max-width: 33em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero .meta { color: var(--on-teal-soft); font-size: .88rem; display: flex; gap: 18px; flex-wrap: wrap; }
.hero .meta span::before { content: "✓ "; color: var(--lime); font-weight: 700; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Hero illustration: lesson window + chat window, with a Tab keycap between them */
.scene { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.win { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.28); overflow: hidden; font-size: .74rem; line-height: 1.4; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef3f0; border-bottom: 1px solid var(--line); }
.win-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c5d4ce; }
.win-bar b { margin-left: 8px; font-weight: 600; font-size: .68rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { padding: 14px; min-height: 250px; }
.mini-step { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.mini-step .n { flex: none; width: 20px; height: 20px; border-radius: 7px; background: var(--teal); color: var(--lime); display: grid; place-items: center; font-weight: 800; font-size: .64rem; }
.mini-step.done .n { background: var(--lime); color: var(--teal); }
.mini-step.done span { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: #9db3ad; }
.mini-code { background: var(--teal); color: #dff0e8; border-radius: 9px; padding: 9px 10px; font-family: var(--mono); font-size: .64rem; margin: 2px 0 10px 28px; position: relative; }
.mini-code em { position: absolute; top: -8px; right: 8px; font-style: normal; font-family: var(--font); font-weight: 700; background: var(--lime); color: var(--teal); border-radius: 999px; padding: 2px 8px; font-size: .6rem; }
.bubble { border-radius: 12px; padding: 9px 11px; margin-bottom: 9px; max-width: 92%; }
.bubble.me { background: #e9f6cf; margin-left: auto; }
.bubble.ai { background: #f1f5f3; }
.bubble .ln { height: 6px; border-radius: 3px; background: #cfdcd7; margin: 5px 0; }
.bubble.me .ln { background: #b8d985; }
.keycap { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%) rotate(-6deg); background: var(--lime); color: var(--teal); border-radius: 14px; padding: 10px 14px 12px; font-weight: 800; font-size: .95rem; box-shadow: 0 6px 0 #9cc23f, 0 14px 30px rgba(0,0,0,.3); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
@media (max-width: 520px) { .win-body { min-height: 200px; } .scene { gap: 10px; } .keycap { font-size: .8rem; } }

/* Audience strip */
.strip { background: var(--mint); border-bottom: 1px solid var(--line); padding: 18px 0; }
.strip .wrap { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; justify-content: center; font-size: .9rem; color: var(--ink-soft); }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); font-weight: 600; font-size: .85rem; }

/* Sections */
section { padding: clamp(56px, 7vw, 88px) 0; }
.alt { background: var(--mint); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--teal); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 28px; height: 28px; }

/* Taster preview */
.preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (max-width: 900px) { .preview { grid-template-columns: minmax(0, 1fr); } }
.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps-list li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps-list li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--teal); color: var(--lime); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.steps-list b { display: block; }
.steps-list span { color: var(--ink-soft); font-size: .9rem; }

/* Course cards */
.course { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.cover { background: var(--teal); padding: 22px 24px; display: flex; justify-content: space-between; align-items: flex-start; min-height: 112px; position: relative; overflow: hidden; }
.cover svg { width: 44px; height: 44px; position: relative; z-index: 1; }
.cover::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid rgba(200,241,105,.12); }
.cover.free { background: var(--lime); }
.cover.free::after { border-color: rgba(13,59,58,.08); }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: var(--teal); background: var(--lime); padding: 5px 11px; border-radius: 999px; white-space: nowrap; position: relative; z-index: 1; }
.cover.free .tag { background: var(--teal); color: var(--lime); }
.course-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.course .meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: 12px; }
.course .foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.soon { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2.6rem; margin: 4px 0 2px; }
.plan .per { font-size: .85rem; color: var(--ink-soft); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.plan li { padding: 6px 0 6px 28px; position: relative; font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; border-radius: 6px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5 L8 12.5 L13 6.5' fill='none' stroke='%230d3b3a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.plan .btn { margin-top: auto; }
.plan.featured { background: var(--teal); color: #fff; border-color: var(--teal); }
.plan.featured .per { color: var(--on-teal-soft); }
.badge { align-self: flex-start; background: var(--lime); color: var(--teal); font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 800; color: var(--teal); background: var(--lime); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Sign-up band */
.signup { background: var(--lime); }
.signup h2 { margin-bottom: .3em; }
.signup form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.signup input { min-height: 48px; padding: 12px 18px; border: 2px solid var(--teal); border-radius: var(--radius-sm); font: inherit; font-size: 16px; min-width: min(300px, 100%); background: #fff; color: var(--ink); }

/* Footer */
.site-footer { background: var(--teal); color: var(--on-teal-soft); padding: 48px 0 36px; font-size: .9rem; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer a { color: #e6f0ec; text-decoration-color: rgba(200,241,105,.5); }
.site-footer a:hover { color: var(--lime); }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.disclaimer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--teal-3); font-size: .82rem; }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.2rem; margin-top: 1.8em; }
.placeholder { background: #fff3b0; padding: 0 4px; border-radius: 3px; }
.note { background: #fff8d6; border: 1px solid #efdc85; padding: 12px 16px; border-radius: 12px; font-size: .9rem; }

/* ---------- Course player: one step per screen, built to read well in half a screen ---------- */
.course-page { background: var(--mint); min-height: 100vh; display: flex; flex-direction: column; }
.course-top { position: sticky; top: 0; z-index: 20; background: var(--teal); color: #fff; }
.course-top .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; max-width: 760px; margin: 0 auto; min-height: 58px; }
.course-top .logo { font-size: 1.1rem; }
.course-top .logo img { height: 24px; }
.course-top .title { font-weight: 600; font-size: .85rem; color: #d7e6e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; text-align: center; }
@media (max-width: 600px) { .course-top .title { display: none; } }
.tally { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .9rem; color: var(--teal); background: var(--lime); border-radius: 999px; padding: 5px 12px 5px 6px; white-space: nowrap; }
.tally .tick-ic { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: var(--lime); display: grid; place-items: center; font-size: .75rem; }
.tally small { font-weight: 600; opacity: .7; }
.tally.bump { animation: bump .45s ease; }
.tally.all { box-shadow: 0 0 0 3px rgba(200,241,105,.35); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tally.bump { animation: none; } }
.segments { display: flex; gap: 4px; max-width: 760px; margin: 0 auto; padding: 0 18px 10px; }
.seg { flex: 1; height: 8px; border-radius: 4px; border: 0; padding: 0; background: var(--teal-3); cursor: pointer; }
.seg.done { background: var(--lime); }
.seg.current { box-shadow: 0 0 0 2px #fff; }
.seg.missed { background: repeating-linear-gradient(45deg, #f2b8a0 0 4px, #c97a5d 4px 8px); }
.course-main { max-width: 760px; width: 100%; margin: 0 auto; padding: 22px 18px 120px; flex: 1; }
.where { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 10px; }
.where .milestone { color: var(--teal); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.where .milestone:empty { display: none; }
.missed { display: flex; gap: 10px; align-items: flex-start; background: #fff4ee; border: 1px solid #f2c7b5; color: #7a3418; border-radius: var(--radius-sm); padding: 10px 14px; font-size: .88rem; margin-bottom: 14px; }
.missed a { color: #7a3418; font-weight: 700; text-decoration-color: #d98c6c; }
.screen { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
.screen[hidden] { display: none; }
.screen h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.screen h2 { font-size: clamp(1.35rem, 3.4vw, 1.7rem); display: flex; gap: 12px; align-items: center; }
.screen h2 .n { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1rem; background: var(--teal); color: var(--lime); }
.screen h1:focus, .screen h2:focus { outline: none; }
.screen .time { font-size: .8rem; color: var(--ink-soft); font-weight: 600; margin: -4px 0 14px; }
.screen.intro { background: var(--teal); color: #fff; border-color: var(--teal); }
.screen.intro p { color: #d7e6e1; }
.pill { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--teal); background: var(--lime); padding: 4px 11px; border-radius: 999px; margin-bottom: 14px; }
.setup { background: var(--teal-2); border: 1px solid var(--teal-3); border-radius: var(--radius-sm); padding: 16px 18px; margin-top: 18px; color: #e6f0ec; font-size: .93rem; }
.setup ol { margin: 8px 0 0; padding-left: 1.2em; }
.setup li { margin-bottom: 6px; }
.browser-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.browser-tabs button { font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--teal-3); background: transparent; color: #e6f0ec; cursor: pointer; min-height: 34px; }
.browser-tabs button[aria-pressed="true"] { background: var(--lime); color: var(--teal); border-color: var(--lime); }
kbd { font-family: var(--font); font-size: .82em; font-weight: 700; background: #fff; color: var(--teal); border-radius: 6px; padding: 1px 6px; box-shadow: 0 2px 0 #9db3ad; white-space: nowrap; }
.prompt { position: relative; background: var(--teal); color: #e6f3ec; border-radius: var(--radius-sm); padding: 16px; margin: 12px 0 16px; font-family: var(--mono); font-size: .86rem; line-height: 1.6; white-space: pre-wrap; }
.prompt .label { display: block; font-family: var(--font); font-size: .74rem; font-weight: 700; color: var(--lime); margin-bottom: 8px; padding-right: 80px; }
.copy { position: absolute; top: 10px; right: 10px; font-family: var(--font); font-size: .8rem; font-weight: 700; min-height: 34px; padding: 6px 14px; border-radius: 10px; border: 0; background: var(--lime); color: var(--teal); cursor: pointer; }
.copy:hover { background: var(--lime-2); }
.copy.copied { background: #fff; }
.expect { border-left: 4px solid var(--lime-2); background: #f3fbe3; padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 12px 0 16px; font-size: .93rem; }
.expect strong { display: block; margin-bottom: 4px; }
.stuck { border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 4px 16px; margin-top: 18px; }
.stuck summary { padding: 10px 0; font-size: .92rem; }
.stuck summary::after { width: 22px; height: 22px; }
.stuck .prompt { margin-top: 4px; }
.shot { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 24px; text-align: center; color: var(--ink-soft); font-size: .85rem; margin: 12px 0 16px; background: #fafcfb; }
.controls { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(13,59,58,.06); }
.controls .in { max-width: 760px; margin: 0 auto; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; }
.controls .spacer { flex: 1; }
.controls .btn { min-height: 48px; }
.controls .btn:disabled { opacity: .35; cursor: default; transform: none; }
.done-check { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; padding: 10px 16px 10px 12px; border-radius: var(--radius-sm); border: 2px solid var(--line); min-height: 48px; user-select: none; white-space: nowrap; }
.done-check:hover { border-color: var(--teal); }
.done-check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--teal); margin: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.done-check input:checked { background: var(--lime); border-color: var(--lime-2); }
.done-check input:checked::after { content: "✓"; color: var(--teal); font-weight: 800; font-size: .9rem; }
.done-check:has(input:checked) { border-color: var(--lime-2); background: #f3fbe3; }
.done-check[hidden] { display: none; }
@media (max-width: 480px) { .controls .in { gap: 8px; padding-left: 12px; padding-right: 12px; } .controls .btn { padding: 10px 14px; } .done-check { padding: 8px 12px 8px 10px; font-size: .9rem; } .back-label { display: none; } }
.finish-list { padding-left: 1.2em; }
.reset { display: block; text-align: center; margin-top: 18px; font-size: .82rem; color: var(--ink-soft); }
.course-foot { text-align: center; font-size: .78rem; color: var(--ink-soft); margin-top: 18px; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.screen.intro a:not(.btn) { color: #fff; text-decoration-color: var(--lime); }
.screen.intro .finish-list li { color: #d7e6e1; }

/* Playbook catalogue and collection pages */
.hero-sm { padding: clamp(40px, 6vw, 72px) 0 clamp(44px, 6vw, 72px); }
.hero-sm .wrap { position: relative; z-index: 1; }
.hero-sm h1 { margin-top: 12px; }
.hero-sm .tag { display: inline-block; }
.crumbs { font-size: .85rem; color: var(--on-teal-soft); margin: 0 0 14px; }
.crumbs a { color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pb-search input { width: 100%; max-width: 560px; margin-top: 22px; padding: 14px 18px; border-radius: var(--radius-sm); border: 0; font: inherit; font-size: 1rem; color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.pb-search input:focus { outline: 3px solid var(--lime); }
.pb-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; padding-bottom: 8px; }
.pb-chips .chip { text-decoration: none; }
.pb-chips .chip:hover { border-color: var(--teal); }
.pb-chips .chip span { color: var(--ink-soft); font-weight: 500; margin-left: 2px; }
.pb-none { padding: 24px 0; color: var(--ink-soft); }
.pb-group { padding: 40px 0 8px; scroll-margin-top: 12px; }
.pb-group + .pb-group { border-top: 1px solid var(--line); }
.pb-group-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.pb-group-head > div { max-width: 640px; }
.pb-group-head h2 { margin: 10px 0 6px; }
.pb-group-head p { margin: 0; }
.pb { display: flex; flex-direction: column; padding: 22px 22px 20px; }
.pb h3 { font-size: 1.05rem; line-height: 1.35; margin: 0 0 6px; }
.pb p { font-size: .92rem; margin: 0 0 10px; }
.pb .meta { font-size: .8rem; color: var(--ink-soft); margin-bottom: 8px; }
.pb .foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pb .price { font-size: 1.2rem; }
.pb.free { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime), var(--shadow); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.grid-4 .plan p { font-size: .9rem; color: var(--ink-soft); margin: 12px 0 18px; }
.grid-4 .plan.featured p { color: var(--on-teal-soft); }
.plan .soon { margin-top: auto; }
.plan.featured .soon { color: var(--on-teal-soft); }
.coll-buy { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 16px 20px; max-width: 640px; }
.coll-buy .big { font-size: 1.6rem; font-weight: 800; color: var(--lime); margin-right: 4px; }
.coll-buy .soon { color: var(--on-teal-soft); }
.caution { background: #fffbe8; border: 1px solid #efe2a6; border-radius: var(--radius-sm); padding: 14px 18px; font-size: .92rem; margin-bottom: 26px; max-width: 760px; }

/* Home page: story and collections */
.story { padding-bottom: 24px; }
.story h2 { margin-bottom: 18px; }
.story p { font-size: 1.08rem; }
.story h3 { font-size: 1.25rem; margin: 30px 0 8px; }
.story-turn { margin-top: 34px; background: var(--teal); color: #fff; border-radius: var(--radius); padding: 28px 30px; }
.story-turn h3 { margin-top: 0; color: var(--lime); }
.story-turn p { color: #d7e6e1; }
.story-turn p:last-child { margin-bottom: 0; color: #fff; font-weight: 600; }
.coll-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.coll-card:hover { transform: translateY(-2px); border-color: var(--teal); }
.coll-card .tag { align-self: flex-start; }
.coll-card h3 { margin: 12px 0 6px; }
.coll-card p { font-size: .92rem; margin: 0 0 14px; }
.coll-card .coll-count { margin-top: auto; font-weight: 700; font-size: .88rem; }
.strip a.chip { text-decoration: none; }
.strip a.chip:hover { border-color: var(--teal); }

/* Home page: course vs playbook band */
.versus { padding: clamp(36px, 5vw, 56px) 0; background: #fff; }
.versus-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; align-items: stretch; }
@media (max-width: 800px) { .versus-grid { grid-template-columns: minmax(0, 1fr); } }
.versus-grid > div { border-radius: var(--radius); padding: 26px 30px; }
.vs-course { background: var(--mint); border: 1px solid var(--line); color: var(--ink-soft); }
.vs-course p { text-decoration: line-through; text-decoration-color: rgba(70,96,93,.45); }
.vs-playbook { background: var(--lime); color: var(--teal); }
.vs-label { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.versus-grid p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.45; font-weight: 600; margin: 0; }

/* Catalogue: collapsible collections */
.pb-list { padding-top: 32px; }
.pb-list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.pb-list-head p { margin: 0; }
.linkish { background: none; border: 0; font: inherit; font-weight: 700; color: var(--teal); cursor: pointer; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; padding: 4px 0; }
details.pb-group { border: 0; border-bottom: 1px solid var(--line); padding: 0; }
details.pb-group + details.pb-group { border-top: 0; }
details.pb-group > summary { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 22px 0; cursor: pointer; list-style: none; }
details.pb-group > summary::after { content: none; }
details.pb-group > summary:hover h2 { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 4px; }
details.pb-group > summary h2 { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); flex: 0 1 auto; min-width: 0; }
details.pb-group > summary .pb-count { margin-left: auto; }
.pb-count { font-size: .88rem; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.chev { width: 38px; height: 38px; border-radius: 12px; background: var(--mint); border: 1px solid var(--line); flex: none; position: relative; transition: background .15s; }
.chev::before { content: ""; position: absolute; left: 50%; top: 45%; width: 10px; height: 10px; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: translate(-50%, -50%) rotate(45deg); transition: transform .2s; }
details.pb-group[open] .chev { background: var(--lime); border-color: var(--lime); }
details.pb-group[open] .chev::before { top: 55%; transform: translate(-50%, -50%) rotate(-135deg); }
details.pb-group > summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 8px; }
.pb-body { padding: 0 0 32px; }
.pb-body .pb-group-head { align-items: center; margin-bottom: 20px; }
.pb-body .pb-group-head p { max-width: 640px; margin: 0; }
@media (max-width: 600px) {
  details.pb-group > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  details.pb-group > summary h2 { grid-column: 1; grid-row: 1; }
  details.pb-group > summary .tag { grid-column: 1; grid-row: 2; justify-self: start; }
  details.pb-group > summary .pb-count { margin-left: 0; }
  details.pb-group > summary .pb-count { grid-column: 1; grid-row: 3; }
  details.pb-group > summary .chev { grid-column: 2; grid-row: 1 / 4; align-self: center; }
}
.pb-jump { padding: 32px 0 0; }
.pb-jump h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 6px; }
.pb-jump .pb-chips { padding-top: 8px; }

/* Hero illustration: project plan output */
.plan-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px 8px; margin-bottom: 9px; background: #fff; box-shadow: 0 4px 14px rgba(13,59,58,.08); }
.plan-title { font-weight: 800; font-size: .7rem; display: flex; justify-content: space-between; margin-bottom: 7px; }
.plan-title span { font-weight: 600; color: var(--ink-soft); }
.g-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 6px; margin: 5px 0; font-size: .6rem; color: var(--ink-soft); }
.g-row i { display: block; height: 8px; border-radius: 4px; background: var(--lime); margin-left: var(--s); width: var(--w); }
.g-row i.t { background: var(--teal); }
.made { display: flex; flex-direction: column; gap: 5px; }
.made span { background: #f1f5f3; border-radius: 8px; padding: 5px 8px; font-size: .62rem; font-weight: 700; color: var(--teal); }
.scene { padding-bottom: 46px; }
.scene .keycap { top: auto; bottom: 0; transform: translateX(-50%) rotate(-6deg); }
.plan-title { white-space: nowrap; gap: 6px; }
@media (max-width: 520px) { .g-row { grid-template-columns: 44px 1fr; } .scene { padding-bottom: 40px; } }

/* Home: four how-it-works cards and motto band */
.how-grid .card p { font-size: .95rem; }
.motto { background: var(--teal); color: #fff; padding: clamp(48px, 6vw, 72px) 0; }
.motto-line { font-size: clamp(1.1rem, 2vw, 1.35rem); color: #d7e6e1; margin: 0 0 10px; }
.motto-hl { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.motto-hl .hl { color: var(--teal); }
