/* TideTutor website. Brand colours from brand-pack/README.md. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); }

:root {
  --navy: #0C2A3E;
  --navy-deep: #081D2B;
  --ink: #04101A;
  --sea-glass: #7FCFC4;
  --teal: #2C8C80;
  --ocean: #0B5C8A;
  --canvas: #F3EFE6;
  --amber: #8A5A00;
  --amber-bg: #FCEFD2;

  --bg: #F3F6F8;
  --surface: #FFFFFF;
  --text: #0C2A3E;
  --muted: #53657A;
  --border: #D9E2E9;
  --accent: var(--teal);
  --link: var(--ocean);
  --paper: var(--canvas);
  --paper-line: rgba(12, 42, 62, 0.07);
  --paper-ink: var(--navy);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081D2B;
    --surface: #0F2B3E;
    --text: #F3EFE6;
    --muted: #A9B8C6;
    --border: #1E3D52;
    --accent: var(--sea-glass);
    --link: #8FD3F5;
    --paper: #0D2536;
    --paper-line: rgba(127, 207, 196, 0.07);
    --paper-ink: var(--sea-glass);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 700; margin: 0.4em 0 0.3em; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); font-weight: 700; margin: 0 0 0.5em; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.35em; }
img { max-width: 100%; height: auto; display: block; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
section { padding: 88px 0; position: relative; overflow-x: clip; }
html, body { overflow-x: clip; }
.small { font-size: 0.9rem; color: var(--muted); }
.center { text-align: center; }
.kicker { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.button {
  display: inline-block; padding: 13px 22px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--sea-glass); color: var(--ink); font: 700 1rem Inter, system-ui, sans-serif; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }

/* Header */
.bar { border-bottom: 1px solid var(--border); background: var(--surface); position: relative; z-index: 5; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand b { color: var(--accent); }
.bar nav { display: flex; gap: 20px; }
.bar nav a { font-weight: 600; text-decoration: none; }
.mark { color: var(--text); flex: none; }
.home .bar { position: absolute; inset: 0 0 auto; background: transparent; border: 0; }
.home .bar .brand, .home .bar .mark { color: var(--canvas); }
.home .bar .brand b, .home .bar nav a { color: var(--sea-glass); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  --accent: var(--sea-glass);
  background: radial-gradient(120% 90% at 85% 10%, #123A54 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--canvas);
  padding: 120px 0 170px;
  overflow: hidden;
}
/* Chart grid. */
.chart-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(127, 207, 196, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 207, 196, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero-inner { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { font-size: clamp(3.2rem, 10vw, 7rem); line-height: 0.92; letter-spacing: -0.04em; margin: 0 0 28px; }
.hero h1 span { color: var(--sea-glass); }
.hero .lead { font-size: 1.2rem; max-width: 32em; color: #CFDDE3; margin: 0 0 32px; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.soon { color: #CFDDE3; font-weight: 600; margin: 0; font-size: 0.95rem; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }

.phone {
  border-radius: 46px; border: 9px solid var(--ink);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: var(--ink);
}
.hero-phones { position: relative; width: 460px; height: 660px; margin: 0 auto; }
.hero-phones .phone { position: absolute; width: 250px; }
.phone-back { right: 0; top: 0; rotate: 9deg; opacity: 0.92; }
.phone-front { left: 10px; top: 50px; rotate: -6deg; }
/* Hand-drawn pointer from the note to the "Nearly there" feedback on the front phone. */
.pointer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.pointer path { fill: none; stroke: var(--sea-glass); stroke-width: 2.5; stroke-linecap: round; }
.pointer marker path { fill: var(--sea-glass); stroke: none; }
.scribble {
  position: absolute; left: 52px; top: 598px; margin: 0; rotate: -3deg;
  color: var(--sea-glass); font-weight: 600; font-size: 1.05rem; line-height: 1.3;
}
/* Smaller screens: scale the whole group, so the pointer still lands on the feedback. */
@media (min-width: 900px) and (max-width: 1099px) {
  .hero-phones { scale: 0.82; transform-origin: top center; margin-bottom: -119px; }
}
@media (max-width: 899px) {
  .hero-phones { scale: 0.68; transform-origin: top left; margin: 0 0 -211px calc(50% - 140px); }
}

/* The tide, flowing along the bottom of the hero. */
.tide { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 150px; }
.tide-flow { animation: flow 16s linear infinite; }
@keyframes flow { to { transform: translateX(-600px); } }
.tide-water { fill: rgba(127, 207, 196, 0.10); }
.tide-line { fill: none; stroke: var(--sea-glass); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0.7; }

/* Launch-day sign-up */
.launch-form { max-width: 30em; }
.lf-hero { margin: 0 0 22px; }
.lf-label { display: block; font-weight: 700; margin-bottom: 8px; }
.lf-label.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lf-row { display: flex; gap: 8px; flex-wrap: wrap; }
.lf-row input {
  flex: 1 1 220px; min-width: 0; padding: 13px 14px; border-radius: 12px; font: 400 1rem Inter, system-ui, sans-serif;
  border: 2px solid rgba(127, 207, 196, 0.45); background: rgba(255, 255, 255, 0.07); color: inherit; outline: none;
}
.lf-row input:focus { border-color: var(--sea-glass); }
.lf-row input::placeholder { color: rgba(207, 221, 227, 0.6); }
.lf-row .button:disabled { opacity: 0.6; cursor: default; transform: none; }
.lf-note { font-size: 0.85rem; margin: 8px 0 0; opacity: 0.8; }
.lf-note a { color: inherit; }
.lf-status:empty { display: none; }
.lf-status { margin: 10px 0 0; font-weight: 600; font-size: 0.95rem; }
.lf-status.good { color: var(--sea-glass); }
.lf-status.bad { color: #F4A6A6; }
.launch-form.done .lf-row, .launch-form.done .lf-note { display: none; }
.button.ghost { background: transparent; color: var(--sea-glass); box-shadow: inset 0 0 0 2px rgba(127, 207, 196, 0.5); }
.lf-end-wrap { max-width: 640px; margin: 48px auto 0; background: var(--navy); color: var(--canvas); border-radius: 20px; padding: 32px; box-shadow: 0 18px 40px rgba(12, 42, 62, 0.2); }
.lf-end { max-width: none; }
.lf-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 8px; color: var(--canvas); }
.lf-lead { color: #CFDDE3; margin: 0 0 18px; }
@media (prefers-color-scheme: dark) { .lf-end-wrap { border: 1px solid rgba(127, 207, 196, 0.35); } }

/* ── Chart paper sections ─────────────────────────────── */
.paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ── Have a go ────────────────────────────────────────── */
.try-inner { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .try-inner { grid-template-columns: 0.8fr 1.2fr; } }
.try-intro p { font-size: 1.1rem; }
.try-intro .aside { color: var(--muted); font-size: 1rem; border-left: 3px solid var(--accent); padding-left: 14px; }
.worksheet {
  background: var(--surface); color: var(--text); border-radius: 18px; padding: 28px 24px 24px;
  box-shadow: 0 24px 50px rgba(12, 42, 62, 0.16), 0 2px 0 rgba(12, 42, 62, 0.05);
  position: relative;
}
.ws-head { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid var(--text); padding-bottom: 8px; }
.ws-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 1.1rem; }
.ws-table th, .ws-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ws-table th { color: var(--accent); width: 25%; }
.ws-table td:last-child { text-align: right; }
.ws-q { margin: 0 0 18px; }
.ws-label { display: block; font-weight: 600; margin-bottom: 8px; }
.ws-row { display: flex; gap: 10px; }
.ws-input { flex: 1; min-width: 0; display: flex; align-items: center; border: 2px solid var(--border); border-radius: 12px; padding: 0 14px; background: var(--bg); }
.ws-input:focus-within { border-color: var(--accent); }
.ws-input input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--text); font: 600 1.3rem Inter, system-ui, sans-serif; padding: 10px 0; outline: none; }
.ws-input span { color: var(--muted); font-weight: 600; }
.worksheet .button { background: var(--ocean); color: #fff; }
.ws-feedback:not(:empty) { margin-top: 14px; padding: 12px 16px; border-radius: 10px; border-left: 4px solid; animation: pop 0.25s ease; }
.ws-feedback b { display: block; }
.ws-feedback.good { background: #E3F4EE; color: #146C4E; }
.ws-feedback.warn { background: var(--amber-bg); color: var(--amber); }
.ws-feedback.bad { background: #FBE7E7; color: #A12F2F; }
@keyframes pop { from { opacity: 0; translate: 0 6px; } }
.ws-hints ol { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: h; }
.ws-hints li { counter-increment: h; background: rgba(127, 207, 196, 0.16); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; animation: pop 0.25s ease; }
.ws-hints li::before { content: counter(h) ' · ' attr(data-k); font-weight: 700; color: var(--accent); margin-right: 6px; }
.ws-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.link { background: none; border: 0; padding: 0; color: var(--link); font: 600 0.95rem Inter, system-ui, sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ws-solution { margin-top: 20px; border-top: 2px dashed var(--border); padding-top: 18px; }
.twelfths { width: 100%; max-width: 420px; display: block; margin: 0 auto 8px; overflow: visible; }
.tw-grid { stroke: var(--border); }
.tw-axis { fill: var(--muted); font: 11px ui-monospace, Menlo, monospace; text-anchor: end; }
.tw-block { fill: rgba(127, 207, 196, 0.25); transform-box: fill-box; transform-origin: bottom; }
.tw-block.on { fill: var(--teal); }
.tw-n { fill: var(--muted); font: 600 10px Inter, sans-serif; text-anchor: middle; }
.tw-curve { fill: none; stroke: var(--text); stroke-width: 2; }
.tw-mark { stroke: var(--amber); stroke-dasharray: 4 4; stroke-width: 1.5; }
.tw-dot { fill: var(--amber); }
.tw-label { fill: var(--amber); font: 700 12px Inter, sans-serif; }
.ws-solution.in .tw-block { animation: grow 0.5s calc(var(--i) * 0.12s) both cubic-bezier(.3, 1.4, .5, 1); }
@keyframes grow { from { transform: scaleY(0); } }
.steps { padding-left: 1.4em; margin: 12px 0; }
.steps li { margin: 6px 0; }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); }
.ws-outro { font-weight: 600; margin: 12px 0 0; }

/* ── Slips ────────────────────────────────────────────── */
.slips { background: var(--navy-deep); color: var(--canvas); overflow: hidden; --accent: var(--sea-glass); }
.slips h2 { font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -0.03em; }
.slips-lead { max-width: 36em; color: #CFDDE3; font-size: 1.1rem; margin-bottom: 48px; }
.notes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px 22px; }
.note {
  --r: -2deg;
  background: var(--canvas); color: var(--navy); padding: 16px 18px 18px; border-radius: 4px;
  width: min(100%, 250px); font-weight: 600; line-height: 1.35;
  rotate: var(--r); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: rotate 0.2s ease, scale 0.2s ease;
}
.note:hover { rotate: 0deg; scale: 1.04; }
@media (max-width: 699px) {
  .slips h2, .slips-lead { text-align: center; margin-left: auto; margin-right: auto; }
  .notes { justify-content: center; }
  .note { margin-top: 0 !important; text-align: center; }
}
.note span { display: block; font-size: 0.72rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); margin-bottom: 6px; }
.note:nth-child(2n) { --r: 2.5deg; margin-top: 18px; }
.note:nth-child(3n) { --r: -3.5deg; background: #E6F4F1; }
.note:nth-child(4n) { --r: 1.5deg; margin-top: -6px; }
.note:nth-child(5n) { --r: -1deg; background: var(--amber-bg); }
.note:nth-child(7n) { --r: 3deg; margin-top: 24px; }

/* ── Passage plan ─────────────────────────────────────── */
.passage h2 { max-width: 16em; }
.route { position: relative; margin-top: 48px; }
.waypoints { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; position: relative; }
.waypoints li { position: relative; padding-left: 64px; }
.waypoints b { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.waypoints li > span:not(.wp) { display: block; color: var(--muted); }
.wp-guide { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.wp-guide:hover { text-decoration: underline; }
.passage-lead { max-width: 36em; color: var(--muted); font-size: 1.05rem; }
.wp {
  position: absolute; left: 0; top: -4px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
  background: var(--surface); color: var(--accent); border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px var(--paper);
}
.track { position: absolute; left: 22px; top: 10px; bottom: 30px; border-left: 2px dashed var(--accent); opacity: 0.6; }
.boat { position: absolute; left: -9px; top: 0; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 16px solid var(--accent); animation: sail-down 9s ease-in-out infinite; }
/* One way only, WP1 → WP5, then fade out and start again from WP1. */
@keyframes sail-down { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 85% { top: calc(100% - 16px); opacity: 1; } 100% { top: calc(100% - 16px); opacity: 0; } }
@media (min-width: 900px) {
  .waypoints { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .waypoints li { padding: 64px 0 0; }
  .wp { top: 0; }
  .track { left: 23px; right: calc((100% - 96px) / 5 - 23px); top: 22px; bottom: auto; border-left: 0; border-top: 2px dashed var(--accent); }
  .boat { top: -9px; left: 0; border: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 16px solid var(--accent); width: 0; animation: sail 12s ease-in-out infinite; }
  @keyframes sail { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 88% { left: calc(100% - 16px); opacity: 1; } 100% { left: calc(100% - 16px); opacity: 0; } }
}

/* ── Chart table (iPad) ───────────────────────────────── */
.table { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--canvas); overflow: hidden; --accent: var(--sea-glass); }
.table-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .table-inner { grid-template-columns: 0.75fr 1.25fr; } }
.table-copy p:last-child { color: #CFDDE3; font-size: 1.1rem; }
.tablet-wrap { perspective: 1800px; }
.tablet {
  border: 12px solid var(--ink); border-radius: 30px; width: 100%;
  transform: rotateY(-16deg) rotateX(7deg) rotateZ(1deg);
  box-shadow: -30px 40px 80px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s ease;
}
.tablet-wrap:hover .tablet { transform: rotateY(-6deg) rotateX(3deg); }
@media (min-width: 900px) { .tablet-wrap { margin-right: -12vw; } }

/* ── Offline ──────────────────────────────────────────── */
.offline-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 800px) { .offline-inner { grid-template-columns: 0.6fr 1.4fr; } }
.offline h2 { margin-bottom: 40px; }
.offline h2 span { color: var(--accent); }
.offline p { font-size: 1.1rem; max-width: 34em; }
.phone-tilt { width: min(280px, 70vw); margin: 0 auto; rotate: -5deg; }

/* ── Price ticket ─────────────────────────────────────── */
.ticket {
  display: grid; grid-template-columns: 1fr; max-width: 820px; margin: 0 auto 16px;
  background: var(--surface); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(12, 42, 62, 0.16);
}
@media (min-width: 700px) { .ticket { grid-template-columns: 1fr 220px; } }
.ticket-main { padding: 32px; }
.ticket-main h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.ticket-main p:last-child { margin-bottom: 0; }
.ticket-stub {
  background: var(--navy); color: var(--canvas); display: grid; place-content: center; text-align: center; padding: 28px;
  border-left: 3px dashed var(--bg); position: relative;
}
.ticket-stub span { color: var(--sea-glass); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.ticket-stub b { font-size: 3rem; letter-spacing: -0.03em; line-height: 1.1; }
@media (max-width: 699px) { .ticket-stub { border-left: 0; border-top: 3px dashed var(--bg); } }

.fine { padding: 56px 0; text-align: center; color: var(--muted); }
.seo-line { font-weight: 600; color: var(--text); }
@media (max-width: 699px) { .hero-kicker { display: none; } }
.fine .mark { margin: 0 auto 12px; color: var(--muted); }

/* ── Scroll reveal (only when JS is on) ───────────────── */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.7s ease, translate 0.7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
}

/* ── Long-form pages ──────────────────────────────────── */
.prose { padding-top: 0; }
.prose h1 { font-size: 2.25rem; margin-top: 0; }
.prose h2 { font-size: 1.25rem; margin: 1.6em 0 0.5em; }
.prose li { margin: 4px 0; }
.prose em:first-child { color: var(--muted); }
main > section:only-child { padding: 48px 0; }

footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
footer nav a { font-weight: 600; text-decoration: none; }

@media (prefers-color-scheme: dark) {
  .ticket-stub { background: var(--sea-glass); color: var(--ink); }
  .ticket-stub span { color: var(--navy); }
}

/* Let grid columns shrink below their content's natural width on small screens. */
.hero-inner > *, .try-inner > *, .table-inner > *, .offline-inner > * { min-width: 0; }

/* ── Guides ───────────────────────────────────────────── */
footer .guide-links a { font-weight: 400; }
footer .credits { font-size: 0.8rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.guide h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
.guide h2 { font-size: 1.45rem; margin: 2em 0 0.6em; }
.guide h3 { font-size: 1.05rem; margin: 1.4em 0 0.3em; }
.method { padding-left: 1.4em; }
.method li { margin: 10px 0; padding-left: 4px; }
.method li::marker { color: var(--accent); font-weight: 700; }
.guide-note { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; color: var(--muted); }
.example { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; margin: 16px 0; }
.ex-code { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin: 0 0 10px; }
.facts { border-collapse: collapse; margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.facts th { text-align: left; font-weight: 400; color: var(--muted); padding: 4px 18px 4px 0; }
.facts td { font-weight: 600; padding: 4px 0; white-space: pre; }
.table-scroll { overflow-x: auto; margin: 14px 0; }
.data { border-collapse: collapse; width: 100%; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.data caption { text-align: left; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.data th, .data td { border-bottom: 1px solid var(--border); padding: 7px 10px 7px 0; text-align: left; white-space: nowrap; }
.data th { color: var(--muted); font-weight: 600; }
.data tr.hl td { background: rgba(127, 207, 196, 0.18); font-weight: 600; }
.steps small { display: block; color: var(--muted); }
.answer { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--border); }
.curve-fig, .cts-fig { margin: 16px 0; }
.curve-fig svg { width: 100%; height: auto; }
.cts-fig svg { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; overflow: visible; }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.curve-fig .g { stroke: var(--border); }
.curve-fig .ax, .cts-fig text { fill: var(--muted); font: 11px Inter, sans-serif; }
.curve-fig .sp { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.curve-fig .np { fill: none; stroke: var(--text); stroke-width: 2; stroke-dasharray: 6 4; }
.curve-fig .mk { stroke: var(--amber); stroke-dasharray: 3 3; }
.curve-fig .dsp { fill: var(--accent); }
.curve-fig .dnp { fill: var(--text); }
.key { display: inline-block; width: 18px; height: 0; vertical-align: middle; margin: 0 4px 0 8px; border-top: 2.5px solid var(--accent); }
.key.np { border-top: 2px dashed var(--text); }
.key.gt { border-top: 2px dashed var(--muted); }
.key.td { border-top: 3px solid var(--amber); }
.key.wt { border-top: 3px solid var(--accent); }
.cts-fig .gt { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 4; }
.cts-fig .td { stroke: var(--amber); stroke-width: 3; }
.cts-fig .wt { stroke: var(--accent); stroke-width: 3; }
.cts-fig .pt { fill: var(--text); }
.cts-fig .lb { fill: var(--text); font-weight: 700; font-size: 13px; }
.slips-list li { margin: 6px 0; }
.cta { background: var(--navy); color: var(--canvas); border-radius: 18px; padding: 24px; margin: 40px 0 24px; --accent: var(--sea-glass); }
.cta h2 { margin-top: 0; color: var(--canvas); }
.next { font-weight: 600; }
.guide-list { list-style: none; padding: 0; counter-reset: g; }
.guide-list li { counter-increment: g; margin: 12px 0; }
.guide-list a { display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px 16px 58px; position: relative; }
.guide-list a::before { content: 'WP' counter(g); position: absolute; left: 14px; top: 18px; font: 700 0.75rem ui-monospace, Menlo, monospace; color: var(--accent); }
.guide-list a:hover { border-color: var(--accent); }
.guide-list b { display: block; font-size: 1.1rem; }
.guide-list span { color: var(--muted); }
