/* Flow.Fit — site styles
   Palette: tide (deep teal), spray (cool page tint), buoy (saffron action), kelp (success), ink (text). */
:root {
  --tide: #0b4f5c;
  --tide-2: #0e6474;
  --tide-deep: #06323b;
  --spray: #eaf3f1;
  --foam: #ffffff;
  --buoy: #ffb627;
  --buoy-deep: #e89a00;
  --kelp: #2e8b6e;
  --coral: #d9472b;
  --ink: #102a30;
  --ink-2: #3e5a60;
  --line: #c9ddd9;
  --line-2: #dce9e6;
  --radius: 14px;
  --radius-s: 8px;
  --wrap: 1180px;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 0 rgba(6, 50, 59, .06), 0 10px 30px -18px rgba(6, 50, 59, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--spray); }
img, svg { max-width: 100%; }
a { color: var(--tide-2); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--tide-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--buoy); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; color: var(--tide-deep); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 750; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 720; }
h3 { font-size: 1.3rem; font-weight: 680; }
h4 { font-size: 1.08rem; font-weight: 680; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.small, small { font-size: .9rem; }
.muted { color: var(--ink-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--buoy); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Owner banner */
.owner-banner { background: var(--tide-deep); text-align: center; font-size: .86rem; padding: 7px 14px; line-height: 1.35; }
.owner-banner a { color: #e6f4f1; text-decoration: none; }
.owner-banner a:hover { color: var(--buoy); text-decoration: underline; }

/* Header */
.site-header { background: var(--foam); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--tide-deep); font-family: var(--display); font-weight: 780; font-size: 1.45rem; letter-spacing: -.03em; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo .dot { color: var(--buoy-deep); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; flex: 1; }
.nav > a, .nav .more > button { color: var(--ink); text-decoration: none; font-size: .97rem; padding: 8px 10px; border-radius: 8px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav > a:hover, .nav .more > button:hover, .nav > a[aria-current="page"] { background: var(--spray); color: var(--tide-deep); }
.nav .more { position: relative; }
.nav .more > button::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: 8px; }
.nav .menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: var(--foam); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 260px; z-index: 50; }
.nav .more.open .menu { display: block; }
.nav .menu a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.nav .menu a span { display: block; font-size: .84rem; color: var(--ink-2); }
.nav .menu a:hover { background: var(--spray); }
.header-cta { margin-left: auto; display: flex; gap: 8px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; color: var(--ink); }
@media (max-width: 1060px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--foam); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); margin: 0; max-height: calc(100vh - 110px); overflow: auto; }
  .nav.open { display: flex; }
  .nav .menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; display: block; }
  .nav .more > button { width: 100%; text-align: left; }
  .nav .more > button::after { display: none; }
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 560px) { .header-cta { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1.1 var(--text); padding: 13px 20px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--buoy); color: var(--tide-deep); }
.btn-primary:hover { background: #ffc552; color: var(--tide-deep); }
.btn-dark { background: var(--tide); color: #fff; }
.btn-dark:hover { background: var(--tide-deep); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--tide-deep); }
.btn-ghost:hover { border-color: var(--tide); color: var(--tide-deep); }
.btn-light { background: #fff; color: var(--tide-deep); }
.btn-small { padding: 8px 14px; font-size: .92rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Sections */
main { display: block; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-white { background: var(--foam); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-tide { background: var(--tide); color: #e7f3f1; }
.section-tide h2, .section-tide h3 { color: #fff; }
.section-tide a:not(.btn) { color: var(--buoy); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.page-head { padding: 48px 0 28px; }
.page-head .lede { margin-bottom: 0; }
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 46px 0; } }
.panel { background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel-tide { background: var(--tide); color: #e7f3f1; border-radius: var(--radius); padding: 24px; }
.note { background: #fff8e6; border-left: 4px solid var(--buoy); padding: 14px 16px; border-radius: 6px; font-size: .95rem; }
.warn { background: #fdeeea; border-left: 4px solid var(--coral); padding: 14px 16px; border-radius: 6px; font-size: .95rem; }
.tag { display: inline-block; font-size: .8rem; padding: 3px 9px; border-radius: 999px; background: var(--spray); color: var(--tide-deep); border: 1px solid var(--line-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Line figures */
.fig { color: var(--tide); display: block; }
.fig path, .fig line { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.fig-near, .fig-body { stroke-width: 3.6; }
.fig-far { stroke-width: 3.2; opacity: .36; }
.fig-floor { stroke-width: 1; opacity: .28; }
.fig-prop { stroke-width: 2; opacity: .32; }
.fig-head { fill: var(--foam); stroke: currentColor; stroke-width: 3.2; }
.on-tide .fig { color: #f2fbf9; }
.on-tide .fig-head { fill: var(--tide); }
.fig-ghost { opacity: .18; }

/* Hero */
.hero { padding: 34px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 36px; align-items: stretch; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-top: 10px; }
.hero .lede { margin-bottom: 22px; }
.quick { background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.quick fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.quick legend { font-weight: 700; font-size: .95rem; margin-bottom: 8px; color: var(--tide-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--foam); font-size: .95rem; cursor: pointer; transition: background .12s, border-color .12s; }
.chip input:checked + span { background: var(--tide); border-color: var(--tide); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--buoy); outline-offset: 2px; }
.chip:hover span { border-color: var(--tide); }
.stage { position: relative; background: var(--tide); border-radius: 22px; padding: 22px 22px 18px; color: #e7f3f1; overflow: hidden; display: flex; flex-direction: column; min-height: 460px; }
.stage::before { content: ""; position: absolute; inset: auto -20% -42% -20%; height: 70%; background: radial-gradient(closest-side, rgba(255, 182, 39, .16), transparent); pointer-events: none; }
.stage .stage-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; position: relative; }
.stage .stage-title { font-family: var(--display); font-size: 1.45rem; font-weight: 700; color: #fff; margin: 0; }
.stage .stage-meta { font-size: .92rem; color: #b9dcd6; }
.stage-fig { flex: 1; display: grid; place-items: center; position: relative; min-height: 250px; }
.stage-fig .figwrap { position: relative; width: min(100%, 470px); aspect-ratio: 120/100; }
.stage-fig .figwrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-ticker { position: relative; display: flex; gap: 8px; overflow: hidden; mask-image: linear-gradient(90deg, #000 80%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); }
.stage-ticker span { white-space: nowrap; font-size: .9rem; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: #cfe7e2; }
.stage-ticker span.now { background: var(--buoy); color: var(--tide-deep); border-color: var(--buoy); font-weight: 700; }
.stage .btn-row { position: relative; margin-top: 14px; }

/* Tool rail (home) */
.rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
@media (max-width: 760px) { .rail { grid-template-columns: 1fr; } }
.rail a { display: grid; grid-template-columns: 78px 1fr; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.rail a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.rail .fig { width: 78px; height: 65px; background: var(--foam); border-radius: 10px; border: 1px solid var(--line-2); }
.rail h3 { font-size: 1.12rem; margin: 0 0 2px; }
.rail p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Cards */
.card { background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .card-fig { background: var(--spray); border-bottom: 1px solid var(--line-2); padding: 8px 18px 0; }
.card .card-fig .fig { width: 100%; height: auto; aspect-ratio: 120/100; max-height: 160px; margin: 0 auto; }
.card .card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.12rem; margin: 0; }
.card h3 a { color: var(--tide-deep); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.card .tag { align-self: flex-start; }
.card .meta { font-size: .85rem; color: var(--ink-2); margin-top: auto; padding-top: 6px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 22px; background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 700; color: var(--tide-deep); }
.filters select, .filters input[type="search"] { min-width: 160px; }
.count { font-size: .92rem; color: var(--ink-2); margin: 0 0 14px; }

/* Forms */
label { font-weight: 700; color: var(--tide-deep); font-size: .95rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; font: 1rem/1.4 var(--text); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--tide); outline: 3px solid rgba(255, 182, 39, .5); outline-offset: 0; }
textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .hint { font-size: .85rem; color: var(--ink-2); font-weight: 400; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label, .consent { font-weight: 400; color: var(--ink); display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; }
.checks input, .consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--tide); }
.form-status { margin-top: 12px; font-weight: 700; }
.form-status.ok { color: var(--kelp); }
.form-status.err { color: var(--coral); }
.hp { position: absolute; left: -5000px; }
.form-card { background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }

/* Multi-step lead form */
.steps-bar { display: flex; gap: 6px; margin-bottom: 18px; }
.steps-bar span { flex: 1; height: 6px; border-radius: 6px; background: var(--line-2); }
.steps-bar span.done { background: var(--buoy); }
.step { display: none; }
.step.active { display: block; }
.step h3 { margin-bottom: 4px; }
.step .step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.pick label { position: relative; font-weight: 400; color: var(--ink); }
.pick input { position: absolute; opacity: 0; }
.pick span { display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; min-height: 100%; }
.pick span b { display: block; color: var(--tide-deep); }
.pick input:checked + span { border-color: var(--tide); background: #eef7f5; box-shadow: inset 0 0 0 1px var(--tide); }
.pick input:focus-visible + span { outline: 3px solid var(--buoy); }

/* Flow builder */
.builder { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
@media (max-width: 980px) { .builder { grid-template-columns: 1fr; } }
.builder .controls { position: sticky; top: 84px; }
@media (max-width: 980px) { .builder .controls { position: static; } }
.flow-summary { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; margin-bottom: 12px; }
.flow-summary h2 { margin: 0; }
.flow-list { list-style: none; margin: 0; padding: 0; counter-reset: fl; }
.flow-list li { display: grid; grid-template-columns: 34px 74px 1fr auto; gap: 14px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line-2); counter-increment: fl; }
.flow-list li::before { content: counter(fl); font-family: var(--display); font-weight: 700; color: var(--ink-2); text-align: right; }
.flow-list .fig { width: 74px; height: 62px; background: var(--foam); border: 1px solid var(--line-2); border-radius: 9px; }
.flow-list .nm { font-weight: 700; color: var(--tide-deep); }
.flow-list .nm a { color: inherit; text-decoration: none; }
.flow-list .nm a:hover { text-decoration: underline; }
.flow-list .sub { font-size: .87rem; color: var(--ink-2); }
.flow-list .tm { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.flow-list .ph { padding: 14px 6px 6px; font-family: var(--display); font-weight: 700; color: var(--tide); border-bottom: 0; display: block; }
.flow-list .ph::before { content: none; }
.flow-list li.ph { counter-increment: none; }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; cursor: pointer; color: var(--ink-2); font: inherit; font-size: .82rem; }
.icon-btn:hover { border-color: var(--tide); color: var(--tide-deep); }
.range-out { font-weight: 700; color: var(--tide-deep); }
input[type="range"] { width: 100%; accent-color: var(--tide); }

/* Player */
.player { position: fixed; inset: 0; z-index: 200; background: var(--tide-deep); color: #e7f3f1; display: none; flex-direction: column; }
.player.open { display: flex; }
.pl-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; }
.pl-progress { flex: 1; height: 6px; background: rgba(255, 255, 255, .15); border-radius: 6px; overflow: hidden; }
.pl-progress span { display: block; height: 100%; width: 0; background: var(--buoy); }
.pl-clock { font-variant-numeric: tabular-nums; font-size: .95rem; min-width: 84px; text-align: right; }
.pl-body { flex: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px 30px; align-items: center; padding: 0 28px 10px; min-height: 0; }
@media (max-width: 820px) { .pl-body { grid-template-columns: 1fr; align-content: center; } }
.pl-stage { position: relative; width: 100%; max-width: 640px; aspect-ratio: 120/100; justify-self: center; max-height: 62vh; }
.pl-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl-stage .fig { color: #f3fbf9; }
.pl-stage .fig-head { fill: var(--tide-deep); }
.pl-info .pl-side { display: inline-block; background: var(--buoy); color: var(--tide-deep); font-weight: 700; border-radius: 999px; padding: 3px 12px; font-size: .9rem; margin-bottom: 8px; }
.pl-info .pl-side:empty { display: none; }
.pl-info h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.8rem); margin-bottom: 8px; }
.pl-info .pl-cue { font-size: 1.25rem; color: #d3ebe6; min-height: 3.2em; }
.pl-timer { display: flex; align-items: center; gap: 16px; margin: 6px 0 12px; }
.pl-ring { width: 86px; height: 86px; }
.pl-ring circle { fill: none; stroke-width: 7; }
.pl-ring .bg { stroke: rgba(255, 255, 255, .14); }
.pl-ring .fg { stroke: var(--buoy); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.pl-sec { font-family: var(--display); font-size: 3rem; font-weight: 750; color: #fff; font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.pl-next { color: #b9dcd6; font-size: 1rem; }
.pl-ctrl { display: flex; justify-content: center; gap: 12px; padding: 14px 18px 22px; flex-wrap: wrap; }
.pl-ctrl button { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; border-radius: 999px; padding: 12px 20px; font: 700 1rem var(--text); cursor: pointer; min-width: 64px; }
.pl-ctrl button:hover { background: rgba(255, 255, 255, .18); }
.pl-ctrl button.main { background: var(--buoy); color: var(--tide-deep); border-color: var(--buoy); min-width: 130px; }
.pl-ctrl button[aria-pressed="false"] { opacity: .6; }
.pl-close { background: none; border: 1px solid rgba(255, 255, 255, .3); color: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; cursor: pointer; }
.pl-done { text-align: center; max-width: 560px; margin: auto; padding: 20px; }
.pl-done h2 { color: #fff; font-size: 2.4rem; }
.pl-done .btn-row { justify-content: center; }
.pl-ready { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 6rem; font-weight: 800; color: var(--buoy); background: rgba(6, 50, 59, .55); }

/* Move pages */
.move-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
@media (max-width: 820px) { .move-hero { grid-template-columns: 1fr; } }
.move-hero .tags { margin: 14px 0 4px; }
.move-hero .demo { background: var(--tide); border-radius: 20px; padding: 18px; }
.move-hero .demo .figwrap { position: relative; aspect-ratio: 120/100; }
.move-hero .demo .figwrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--foam); margin: 16px 0; }
.facts div { padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line-2); }
.facts dt { font-size: .82rem; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 700; color: var(--tide-deep); }
ol.howto { padding-left: 1.3em; }
ol.howto li { margin-bottom: .6em; padding-left: .2em; }
.variations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .variations { grid-template-columns: 1fr; } }
.variations > div { background: var(--foam); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.variations h4 { margin-bottom: 4px; }

/* Article */
.article { background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 48px); }
.article h2 { font-size: 1.55rem; margin-top: 1.4em; }
.article h3 { margin-top: 1.2em; }
.article p, .article li { max-width: 70ch; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .4em; }
.byline { font-size: .92rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; }
.toc { background: var(--spray); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.toc ol { margin: 6px 0 0; }
.callout { background: var(--spray); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.article table, .table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .96rem; }
.article th, .article td, .table th, .table td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; vertical-align: top; }
.article th, .table th { color: var(--tide-deep); font-family: var(--display); }

/* Program week grid */
.weeks { display: grid; gap: 18px; }
.week { background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.week h3 { margin: 0 0 10px; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.day { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.day.done { border-color: var(--kelp); background: #eef8f3; }
.day b { color: var(--tide-deep); }
.day .small { color: var(--ink-2); }
.day .btn-row { margin-top: auto; }

/* Challenge calendar */
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.cal button { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; font: inherit; color: var(--ink); min-height: 92px; display: flex; flex-direction: column; gap: 4px; }
.cal button b { font-family: var(--display); font-size: 1.3rem; color: var(--tide-deep); }
.cal button.done { background: var(--tide); border-color: var(--tide); color: #e7f3f1; }
.cal button.done b { color: var(--buoy); }
.cal button.today { box-shadow: inset 0 0 0 2px var(--buoy); }
.stats { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 10px 0 20px; }
.stats div b { display: block; font-family: var(--display); font-size: 2rem; color: var(--tide-deep); line-height: 1; }
.stats div span { font-size: .9rem; color: var(--ink-2); }

/* Body map */
.bodymap { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .bodymap { grid-template-columns: 1fr; } }
.bodymap svg.body { width: 100%; max-width: 340px; display: block; margin: 0 auto; }
.body .shape { fill: #d7e9e5; stroke: var(--tide); stroke-width: 1.4; }
.body .zone { fill: rgba(255, 182, 39, 0); stroke: transparent; cursor: pointer; transition: fill .15s; }
.body .zone:hover, .body .zone:focus { fill: rgba(255, 182, 39, .45); outline: none; }
.body .zone.on { fill: rgba(255, 182, 39, .8); }
.body text { font: 700 9px var(--text); fill: var(--tide-deep); pointer-events: none; }

/* Tools */
.timer-display { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 14vw, 9rem); line-height: 1; color: var(--tide-deep); font-variant-numeric: tabular-nums; text-align: center; }
.timer-phase { text-align: center; font-size: 1.4rem; font-weight: 700; color: var(--tide); min-height: 1.6em; }
.timer-box { background: var(--foam); border: 1px solid var(--line); border-radius: 20px; padding: 26px; text-align: center; }
.timer-box.work { background: #fff4dc; border-color: var(--buoy); }
.timer-box.rest { background: #e4f4ef; border-color: var(--kelp); }
.breath-stage { display: grid; place-items: center; min-height: 380px; position: relative; }
.breath-circle { width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #2a8a97, var(--tide)); box-shadow: 0 0 0 14px rgba(11, 79, 92, .08); transition-property: transform; transition-timing-function: ease-in-out; }
.breath-label { position: absolute; font-family: var(--display); font-weight: 750; font-size: 1.6rem; color: #fff; pointer-events: none; }
.result { background: var(--tide); color: #e7f3f1; border-radius: var(--radius); padding: 22px; }
.result h3 { color: #fff; }
.result .big { font-family: var(--display); font-weight: 800; font-size: 3rem; color: var(--buoy); line-height: 1; }
.result table td, .result table th { border-color: rgba(255, 255, 255, .15); color: #e7f3f1; }
.result a { color: var(--buoy); }
.calc-form .form-grid { margin-bottom: 14px; }
.radar text { font: 700 10px var(--text); fill: var(--tide-deep); }
.check-item { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.check-item .fig { width: 110px; height: 92px; background: var(--foam); border: 1px solid var(--line-2); border-radius: 10px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 8px; flex-wrap: wrap; }
.seg label { font-weight: 400; color: var(--ink); position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 7px 14px; cursor: pointer; font-size: .92rem; }
.seg input:checked + span { background: var(--tide); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--buoy); }

/* Videos */
.video { background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.yt { position: relative; aspect-ratio: 16/9; background: #0d3e47 center / cover no-repeat; border: 0; width: 100%; cursor: pointer; display: block; padding: 0; }
.yt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 12px; background: rgba(6, 50, 59, .82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffb627' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat; }
.yt:hover::after { background-color: var(--tide-deep); }
.yt.playing::after { display: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .body { padding: 12px 14px 14px; }
.video h3 { font-size: 1rem; margin: 0 0 4px; font-family: var(--text); font-weight: 700; color: var(--tide-deep); }
.video p { margin: 0; font-size: .87rem; color: var(--ink-2); }

/* News */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.news-list a { font-weight: 700; color: var(--tide-deep); text-decoration: none; }
.news-list a:hover { text-decoration: underline; }
.news-list .src { display: block; font-size: .85rem; color: var(--ink-2); }

/* Funding meter */
.meter { height: 16px; background: rgba(255, 255, 255, .16); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.meter span { display: block; height: 100%; background: var(--buoy); min-width: 2%; border-radius: 999px; }
.panel .meter { background: var(--line-2); }
.alloc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .alloc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .alloc { grid-template-columns: 1fr; } }
.alloc > div { background: var(--foam); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.alloc b { font-family: var(--display); font-size: 1.5rem; color: var(--tide); display: block; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--foam); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tier.feature { border-color: var(--tide); box-shadow: inset 0 0 0 1px var(--tide); }
.tier .price { font-family: var(--display); font-size: 1.9rem; font-weight: 780; color: var(--tide-deep); }
.tier ul { padding-left: 1.1em; margin: 0 0 8px; }
.countdown { display: flex; gap: 10px; flex-wrap: wrap; }
.countdown div { background: var(--tide); color: #fff; border-radius: 12px; padding: 10px 14px; text-align: center; min-width: 76px; }
.countdown b { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--buoy); line-height: 1.1; }
.countdown span { font-size: .8rem; }

/* Lead band */
.lead-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 900px) { .lead-band { grid-template-columns: 1fr; } }
.lead-band ul { padding-left: 1.2em; }
.lead-band li { margin-bottom: 6px; }
.inline-cta { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--foam); border: 1.5px solid var(--tide); border-radius: var(--radius); padding: 18px 20px; margin: 26px 0; }
.inline-cta p { margin: 0; max-width: 62ch; }
.inline-cta b { color: var(--tide-deep); }

/* Ads */
.ad-slot { margin: 26px auto; text-align: center; min-height: 0; }
.ad-label { font-size: .72rem; color: var(--ink-2); margin-bottom: 4px; }

/* Footer */
.site-footer { background: var(--tide-deep); color: #bcd8d2; padding: 54px 0 26px; margin-top: 40px; font-size: .95rem; }
.site-footer a { color: #e6f4f1; text-decoration: none; }
.site-footer a:hover { color: var(--buoy); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 26px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 7px; }
.site-footer .logo { color: #fff; }
.foot-news { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.foot-news input { flex: 1; min-width: 180px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 34px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }

/* Cookie notice */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 760px; margin: 0 auto; background: var(--foam); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; display: none; gap: 14px; align-items: center; flex-wrap: wrap; }
.cookie.show { display: flex; }
.cookie p { margin: 0; flex: 1; min-width: 240px; font-size: .93rem; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--tide-deep); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 300; font-weight: 700; display: none; }
.toast.show { display: block; }

@media print {
  .owner-banner, .site-header, .site-footer, .ad-slot, .cookie, .btn, .controls, .icon-btn, .inline-cta { display: none !important; }
  body { background: #fff; }
  .builder { grid-template-columns: 1fr; }
}

@media (max-width: 900px) { .hide-sm { display: none !important; } }
