/* "How it works" (templates/howto.html). Self-contained: tokens for light and
   dark (html.dark-mode), inline SVG diagrams styled by class, animations that
   start when a diagram scrolls into view (howto.js adds .is-visible) and stop
   under prefers-reduced-motion. */

.wr-page.wr-page-howto { max-width: 1160px; }

.hw {
  --hw-ink: #0f1f35;
  --hw-muted: #5b6b80;
  --hw-card: #ffffff;
  --hw-card-2: #f4f7fc;
  --hw-line: #dfe6f1;
  --hw-blue: #1e88e5;
  --hw-orange: #ff7043;
  --hw-teal: #14b8a6;
  --hw-coral: #f43f5e;
  --hw-gold: #f59e0b;
  --hw-violet: #8b5cf6;
  --hw-shadow: 0 18px 50px rgba(15, 31, 53, 0.09);
  --hw-glass: rgba(15, 31, 53, 0.04);
  /* Orange as small text needs a darker tone on light backgrounds (contrast). */
  --hw-orange-text: #c2410c;
  --hw-blue-text: #1565c0;
  color: var(--hw-ink);
  display: flex;
  flex-direction: column;
  gap: 88px;
  padding-bottom: 24px;
}
:root.dark-mode .hw {
  --hw-ink: #eef4fb;
  --hw-muted: #9db0c8;
  --hw-card: #14233a;
  --hw-card-2: #10203a;
  --hw-line: #253956;
  --hw-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --hw-glass: rgba(255, 255, 255, 0.04);
  --hw-orange-text: #ff8a5c;
  --hw-blue-text: #7cc4ff;
  /* the hero's brighter boat colours on dark */
  --hw-teal: #2dd4bf;
  --hw-coral: #fb7185;
  --hw-gold: #fbbf24;
}
/* A navy page in dark mode (the site gradient drifts to indigo). */
:root.dark-mode:has(.wr-page-howto) {
  --wr-bg-gradient: linear-gradient(180deg, #0c1728 0%, #0b1626 55%, #0a1422 100%);
}

.hw h1, .hw h2, .hw h3 { font-family: "Space Grotesk", system-ui, sans-serif; letter-spacing: -0.02em; margin: 0; color: var(--hw-ink); }
.hw p { margin: 0; }
.hw-eyebrow {
  font: 700 12px/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hw-orange-text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hw-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hw-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 48px;
  border-radius: 32px;
  overflow: hidden;
  color: #eef6ff;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(30, 136, 229, 0.45), transparent 60%),
    radial-gradient(700px 360px at -10% 110%, rgba(255, 112, 67, 0.28), transparent 60%),
    linear-gradient(160deg, #0b1d33 0%, #0a1628 60%, #081221 100%);
  box-shadow: 0 30px 80px rgba(8, 18, 33, 0.35);
  isolation: isolate;
}
.hw-hero::after { /* fine grid */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}
.hw-hero .hw-eyebrow, .hw-band .hw-eyebrow { color: #ff8a5c; }
.hw-hero h1 { color: #fff; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; margin: 18px 0 20px; font-weight: 700; }
.hw-hero h1 span { background: linear-gradient(90deg, #ff8a5c, #ffb37e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hw-lede { font-size: 18px; line-height: 1.6; color: #c4d6ea; max-width: 30em; }
.hw-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hw-hero__art { margin: 0; width: 100%; }
/* hero: a real result — the results renderer in an iframe (/demo/replay?view=start) */
.hw-replay { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #0d1b2b;
  border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 24px 70px rgba(0,0,0,0.45); }
.hw-replay__head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding: 16px 20px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hw-replay__eyebrow { grid-column: 1 / -1; font: 700 10.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: #ff8a5c; }
.hw-replay__head strong { font: 700 18px "Space Grotesk", sans-serif; color: #fff; margin-top: 6px; }
.hw-replay__sub { font-size: 12.5px; color: #9fb6cf; text-align: right; }
.hw-replay__frame { position: relative; height: 400px; background: #0d1b2b; }
.hw-replay__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hw-replay__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; visibility: hidden; pointer-events: none; }
.hw-replay__frame iframe[hidden] { display: none; }
.hw-replay--ready .hw-replay__frame iframe { visibility: visible; pointer-events: auto; }
.hw-replay--ready .hw-replay__frame > img { visibility: hidden; }
.hw-replay__link { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 20px; color: #dbe7f5; font-size: 14px; font-weight: 600; text-decoration: none; border-top: 1px solid rgba(255,255,255,0.08); }
.hw-replay__link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.hw-replay__link:focus-visible { outline: 3px solid #ffb37e; outline-offset: -3px; }

.hw-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  color: #e6f1ff; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.06);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.hw-btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.12); }
.hw-btn--primary { background: linear-gradient(135deg, #ff7043, #f4511e); border-color: transparent; color: #fff; box-shadow: 0 12px 26px rgba(244,81,30,0.4); }
.hw-btn--primary:hover { background: linear-gradient(135deg, #ff8257, #f8622f); }
.hw-btn--light { background: #fff; color: #0f1f35; border-color: #fff; }
.hw-btn:focus-visible { outline: 3px solid #ffb37e; outline-offset: 3px; }

/* ── Sections ──────────────────────────────────────────────────────────── */
.hw-section { display: flex; flex-direction: column; gap: 32px; scroll-margin-top: 24px; }
.hw-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.hw-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; font-weight: 700; }
.hw-sub { font-size: 17px; line-height: 1.6; color: var(--hw-muted); }

.hw-card { background: var(--hw-card); border: 1px solid var(--hw-line); border-radius: 24px; box-shadow: var(--hw-shadow); }

/* steps */
.hw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.hw-step { position: relative; background: var(--hw-card); border: 1px solid var(--hw-line); border-radius: 22px; padding: 22px 22px 26px; box-shadow: var(--hw-shadow); display: flex; flex-direction: column; gap: 10px; }
.hw-step__art { height: 110px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 6px;
  background: radial-gradient(120% 120% at 30% 0%, rgba(30,136,229,0.16), transparent 60%), var(--hw-card-2); }
.hw-step__art svg { width: 70%; max-height: 92px; }
.hw-step__n { font: 700 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--hw-orange-text); }
.hw-step h3 { font-size: 20px; }
.hw-step p { color: var(--hw-muted); font-size: 15px; line-height: 1.55; }
.hw-ink-fill { fill: #1e3a5f; }
:root.dark-mode .hw-ink-fill { fill: #2a4a73; }
.hw-screen { fill: #0d2440; }
.hw-rec-ring { transform-origin: 60px 44px; animation: hw-pulse2 1.8s ease-out infinite; }
@keyframes hw-pulse2 { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.hw-up { animation: hw-up 1.8s ease-in-out infinite; }
@keyframes hw-up { 0%, 100% { transform: translateY(3px); } 50% { transform: translateY(-3px); } }
.hw-merge { fill: none; stroke-width: 6; stroke-linecap: round; }
.hw-merge--teal { stroke: var(--hw-teal); } .hw-merge--coral { stroke: var(--hw-coral); } .hw-merge--gold { stroke: var(--hw-gold); }

/* diagrams */
.hw-diagram { margin: 0; padding: 26px; display: flex; flex-direction: column; gap: 22px; }
.hw-diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.hw-diagram figcaption { color: var(--hw-muted); font-size: 15px; line-height: 1.55; }
.hw-diagram figcaption b { color: var(--hw-ink); }

.hw-axis line { stroke: var(--hw-line); stroke-width: 2; }
.hw-axis text { fill: var(--hw-muted); font: 600 12px ui-monospace, Menlo, monospace; text-anchor: middle; }
.hw-group { fill: rgba(30,136,229,0.07); stroke: var(--hw-blue); stroke-width: 2; stroke-dasharray: 8 6; }
.hw-group__label { fill: var(--hw-blue-text); font: 700 12px ui-monospace, Menlo, monospace; letter-spacing: .12em; }
.hw-boatname { fill: var(--hw-ink); font: 600 15px "Space Grotesk", system-ui, sans-serif; }
.hw-bar { transform-box: fill-box; transform-origin: left center; }
.hw-bar--teal { fill: var(--hw-teal); } .hw-bar--coral { fill: var(--hw-coral); } .hw-bar--gold { fill: var(--hw-gold); }
.hw-bar--violet { fill: var(--hw-violet); } .hw-bar--muted { fill: #94a3b8; }
.hw-anim .hw-bar { transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.hw-anim.is-visible .hw-bar { transform: scaleX(1); }
.hw-anim.is-visible .hw-bar:nth-of-type(2) { transition-delay: .12s; }
.hw-anim.is-visible .hw-bar:nth-of-type(3) { transition-delay: .24s; }
.hw-anim.is-visible .hw-bar:nth-of-type(4) { transition-delay: .5s; }
.hw-anim.is-visible .hw-bar:nth-of-type(5) { transition-delay: .7s; }
.hw-tag { fill: var(--hw-card-2); stroke: var(--hw-line); }
.hw-tag__text { fill: var(--hw-muted); font: 600 12.5px system-ui, sans-serif; }
.hw-boatname--m { font-size: 14px; }
.hw-tag__text--m { font-size: 12px; }
.hw-only-mobile { display: none !important; }

.hw-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hw-rules li { padding: 14px 16px; border-radius: 16px; background: var(--hw-card-2); border: 1px solid var(--hw-line); display: flex; flex-direction: column; gap: 4px; counter-increment: r; }
.hw-rules li b { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.hw-rules li b::before { content: counter(r); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--hw-blue); color: #fff; font-size: 12px; }
.hw-rules li span { color: var(--hw-muted); font-size: 14px; line-height: 1.45; }
.hw-rules { counter-reset: r; }

.hw-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; }
.hw-split--wide { grid-template-columns: 1fr 1fr; align-items: center; }
.hw-node { fill: var(--hw-card-2); stroke: var(--hw-line); stroke-width: 1.5; }
.hw-node__title { fill: var(--hw-ink); font: 700 16px "Space Grotesk", sans-serif; text-anchor: middle; }
.hw-node__sub { fill: var(--hw-muted); font: 500 12px system-ui, sans-serif; text-anchor: middle; }
.hw-flow { fill: none; stroke: var(--hw-blue); stroke-width: 2.5; stroke-dasharray: 6 6; animation: hw-flow 1.2s linear infinite; }
@keyframes hw-flow { to { stroke-dashoffset: -12; } }
.hw-pill { stroke-width: 1.5; }
.hw-pill--teal { fill: rgba(20,184,166,0.12); stroke: var(--hw-teal); }
.hw-pill--coral { fill: rgba(244,63,94,0.10); stroke: var(--hw-coral); }
.hw-pill--gold { fill: rgba(245,158,11,0.12); stroke: var(--hw-gold); }
:root.dark-mode .hw-pill--teal { fill: rgba(45,212,191,0.16); }
:root.dark-mode .hw-pill--coral { fill: rgba(251,113,133,0.16); }
:root.dark-mode .hw-pill--gold { fill: rgba(251,191,36,0.16); }
.hw-allfleets { fill: none; stroke: var(--hw-orange); stroke-width: 2; stroke-dasharray: 7 6; }
.hw-allfleets__chip { fill: var(--hw-orange); }
.hw-allfleets__t { fill: #fff; font: 700 13px "Space Grotesk", sans-serif; text-anchor: middle; }
.hw-pill__t { fill: var(--hw-ink); font: 700 14px "Space Grotesk", sans-serif; }
.hw-pill__s { fill: var(--hw-muted); font: 500 11.5px system-ui, sans-serif; }

.hw-facts { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.hw-fact { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; background: var(--hw-card); border: 1px solid var(--hw-line); box-shadow: var(--hw-shadow); font-size: 15.5px; line-height: 1.55; color: var(--hw-muted); }
.hw-fact b { color: var(--hw-ink); }
.hw-fact__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--hw-orange), #f4511e); box-shadow: 0 8px 18px rgba(255,112,67,0.3); }
.hw-fact__icon svg, .hw-tiles li span svg { width: 22px; height: 22px; }

/* course */
.hw-diagram--sea { padding: 0; overflow: hidden; background: transparent; border: none; }
.hw-sea { fill: #0f2f52; }
.hw-course-track { fill: none; stroke: #2dd4bf; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.hw-anim.is-visible .hw-course-track { animation: hw-draw-once 3.2s ease-in-out forwards; }
@keyframes hw-draw-once { to { stroke-dashoffset: 0; } }
.hw-callout__dot { fill: #ff7043; stroke: #fff; stroke-width: 2; }
.hw-callout__n { fill: #fff; font: 700 12px system-ui, sans-serif; text-anchor: middle; }
.hw-sea__label { fill: #b6dcff; font: 700 11px system-ui, sans-serif; letter-spacing: .08em; }

.hw-numbered { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; counter-reset: n; }
.hw-numbered li { counter-increment: n; position: relative; padding-left: 52px; font-size: 16px; line-height: 1.6; color: var(--hw-muted); }
.hw-numbered li b { color: var(--hw-ink); }
.hw-numbered li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--hw-orange); color: #fff; font-weight: 700; box-shadow: 0 8px 18px rgba(255,112,67,0.35); }

.hw-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hw-chip { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid; }
.hw-chip--ok { color: #047857; background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.35); }
.hw-chip--warn { color: #c2410c; background: rgba(249,115,22,0.10); border-color: rgba(249,115,22,0.35); }
.hw-chip--muted { color: var(--hw-muted); background: var(--hw-glass); border-color: var(--hw-line); }
:root.dark-mode .hw-chip--ok { color: #6ee7b7; } :root.dark-mode .hw-chip--warn { color: #fdba74; }

/* wind — a dark band, like the hero */
.hw-band {
  padding: 56px 48px; border-radius: 32px; color: #eef6ff; isolation: isolate; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(30,136,229,0.40), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(255,112,67,0.20), transparent 60%),
    linear-gradient(160deg, #0b1d33 0%, #0a1628 60%, #081221 100%);
  box-shadow: 0 30px 80px rgba(8, 18, 33, 0.3);
  --hw-ink: #f2f7fd; --hw-muted: #b7cbe2; --hw-card: rgba(255,255,255,0.06); --hw-line: rgba(255,255,255,0.12);
}
.hw-windfig { margin: 0; }
.hw-windfig svg { width: 100%; height: auto; display: block; overflow: visible; }
.hw-windtop line { stroke: #7cc4ff; stroke-width: 3; stroke-linecap: round; }
.hw-windtop text { fill: #9fd0ff; font: 700 12px ui-monospace, Menlo, monospace; letter-spacing: .18em; }
.hw-beat { fill: none; stroke: rgba(255,255,255,0.42); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 0; }
.hw-anim .hw-beat { stroke-dashoffset: 700; }
.hw-anim.is-visible .hw-beat { animation: hw-draw-once 2.2s ease-in-out forwards; }
.hw-bis line { stroke: #ff8a5c; stroke-width: 3.5; stroke-linecap: round; }
.hw-bis text { fill: #ffc4a6; font: 700 13px ui-monospace, Menlo, monospace; }
.hw-anim .hw-bis, .hw-anim .hw-detail { opacity: 0; transition: opacity .5s ease; }
.hw-anim.is-visible .hw-bis, .hw-anim.is-visible .hw-detail { opacity: 1; }
.hw-anim.is-visible .hw-bis--1 { transition-delay: .9s; }
.hw-anim.is-visible .hw-detail { transition-delay: 1.1s; }
.hw-anim.is-visible .hw-bis--2 { transition-delay: 1.5s; }
.hw-anim.is-visible .hw-bis--3 { transition-delay: 2.1s; }
.hw-detail__h { stroke: #2dd4bf; stroke-width: 3; stroke-linecap: round; }
.hw-detail__arc { fill: none; stroke: #ff8a5c; stroke-width: 2.5; }
.hw-detail text { fill: #b7cbe2; font: 600 13px system-ui, sans-serif; }
.hw-tack { fill: #ff7043; stroke: #0b1d33; stroke-width: 3; }
.hw-tacklabel { fill: #b7cbe2; font: 600 13px system-ui, sans-serif; }
.hw-pips { flex: none; width: 40px; display: inline-flex; align-items: center; gap: 5px; }
.hw-pips i { width: 11px; height: 11px; border-radius: 50%; background: #ff8a5c; box-shadow: 0 0 0 3px rgba(255,138,92,0.18); }
.hw-pips--tie { font: 600 12px system-ui, sans-serif; color: var(--hw-muted); padding: 3px 0; border-radius: 999px; border: 1px dashed var(--hw-line); justify-content: center; box-sizing: border-box; }

.hw-ballot { display: flex; flex-direction: column; gap: 16px; }
.hw-ballot__q { font-size: 17px; line-height: 1.55; color: var(--hw-muted); }
.hw-ballot__q b { color: var(--hw-ink); }
.hw-ballot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hw-ballot li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--hw-card); border: 1px solid var(--hw-line); font-size: 15.5px; color: var(--hw-ink); }
.hw-note { font-size: 14.5px; line-height: 1.6; color: var(--hw-muted); padding-left: 14px; border-left: 3px solid var(--hw-orange); }

/* tiles */
.hw-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hw-tiles { row-gap: 26px; }
.hw-tiles li { display: flex; flex-direction: column; gap: 6px; padding: 4px 8px 0 0; color: var(--hw-muted); font-size: 14px; line-height: 1.45; }
.hw-tiles li span { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--hw-blue-text); background: rgba(30,136,229,0.12); border: 1px solid rgba(30,136,229,0.25); margin-bottom: 6px; }
.hw-tiles li b { color: var(--hw-ink); font-size: 16px; }

/* clubs */
.hw-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: t; }
.hw-timeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 21px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--hw-blue), var(--hw-orange)); opacity: .55; }
.hw-timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 14px; counter-increment: t; }
.hw-timeline li::before { content: counter(t); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #1e88e5, #1565c0); box-shadow: 0 10px 24px rgba(21,101,192,0.35); position: relative; margin-bottom: 8px; }
.hw-timeline li:last-child::before { background: linear-gradient(135deg, #ff7043, #f4511e); }
.hw-timeline b { font-size: 17px; font-family: "Space Grotesk", sans-serif; }
.hw-timeline span { color: var(--hw-muted); font-size: 14.5px; line-height: 1.5; }

/* tips — one checklist strip */
.hw-tips { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 22px; background: var(--hw-card); border: 1px solid var(--hw-line); box-shadow: var(--hw-shadow); }
.hw-tips li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; color: var(--hw-muted); font-size: 14.5px; line-height: 1.5; }
.hw-tips li + li { border-left: 1px solid var(--hw-line); }
.hw-tips li span { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #1e88e5, #1565c0); }
.hw-tips li span svg { width: 20px; height: 20px; }
.hw-tips li b { display: block; color: var(--hw-ink); font-size: 15px; margin-bottom: 2px; }
.hw-tips em { font-style: normal; color: var(--hw-ink); font-weight: 600; }

/* CTA */
.hw-cta { text-align: center; padding: 56px 24px; border-radius: 32px; color: #eaf3ff; border: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(600px 260px at 50% 0%, rgba(30,136,229,0.5), transparent 70%), linear-gradient(160deg, #0b1d33, #081221); }
.hw-cta h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); }
.hw-cta p { color: #b9cde4; margin-top: 10px; font-size: 17px; }
.hw-cta .hw-hero__cta { justify-content: center; }
.hw-stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hw-store { display: inline-flex; align-items: center; justify-content: center; min-width: 170px; box-sizing: border-box; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.25); transition: transform .15s ease; }
.hw-store:hover { transform: translateY(-1px); }
.hw-store:focus-visible { outline: 3px solid #ffb37e; outline-offset: 3px; }
.hw-store svg { width: 22px; height: 22px; }
.hw-store span { display: flex; flex-direction: column; font: 600 16px/1.1 system-ui, sans-serif; text-align: left; }
.hw-store small { font-size: 10px; font-weight: 500; opacity: .8; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hw { gap: 64px; }
  .hw-hero { grid-template-columns: 1fr; padding: 36px 26px; gap: 32px; }
  .hw-hero__art { max-width: 560px; justify-self: center; }
  .hw-replay__frame { height: 380px; }
  .hw-band { padding: 40px 26px; }
  .hw-steps, .hw-tiles { grid-template-columns: repeat(2, 1fr); }
  .hw-tips { grid-template-columns: 1fr 1fr; }
  .hw-tips li:nth-child(3) { border-left: none; }
  .hw-tips li:nth-child(n+3) { border-top: 1px solid var(--hw-line); }
  .hw-rules { grid-template-columns: repeat(2, 1fr); }
  .hw-split, .hw-split--wide { grid-template-columns: 1fr; }
  .hw-split .hw-diagram svg, .hw-windfig svg { max-width: 460px; margin-inline: auto; }
  .hw-diagram--sea { max-width: 460px; margin-inline: auto; width: 100%; }
  .hw-timeline { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .hw-timeline::before { display: none; }
}
@media (max-width: 860px) {
  .hw-only-desktop { display: none !important; }
  .hw-only-mobile { display: block !important; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .hw-hero { padding: 28px 18px; border-radius: 24px; }
  .hw-replay__frame { height: 340px; }
  .hw-replay__head { grid-template-columns: 1fr; }
  .hw-replay__sub { text-align: left; }
  .hw-lede { font-size: 16px; }
  .hw-steps, .hw-tips, .hw-rules, .hw-timeline { grid-template-columns: 1fr; }
  .hw-tiles { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .hw-diagram { padding: 16px; }
  .hw-diagram--sea { padding: 0; }
  .hw-band { padding: 32px 18px; border-radius: 24px; }
  .hw-tips { grid-template-columns: 1fr; }
  .hw-tips li + li { border-left: none; border-top: 1px solid var(--hw-line); }
  /* steps: small art on the left, text on the right */
  .hw-step { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; row-gap: 4px; padding: 18px; }
  .hw-step__art { grid-row: span 3; width: 72px; height: 72px; margin: 0; border-radius: 14px; }
  .hw-step__art svg { width: 94%; max-height: 64px; }
  /* diagrams scale down to the column: keep their labels readable (~13px) */
  .hw-windfig .hw-bis text, .hw-detail text, .hw-tacklabel, .hw-windtop text { font-size: 20px; }
  .hw-pill__t { font-size: 18px; }
  .hw-pill__s { font-size: 14.5px; }
  .hw-node__title { font-size: 19px; }
  .hw-node__sub { font-size: 15px; }
  .hw-allfleets__t { font-size: 15px; }
  .hw-chips { flex-direction: column; }
  .hw-chip { text-align: center; }
  /* number on the left, title over text on the right */
  .hw-timeline li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 2px; text-align: left; align-items: start; padding: 0; }
  .hw-timeline li::before { grid-row: span 2; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hw *, .hw *::before, .hw *::after { animation: none !important; transition: none !important; }
  .hw-course-track, .hw-beat { stroke-dashoffset: 0 !important; }
  .hw-bis, .hw-detail { opacity: 1 !important; }
  .hw-anim .hw-bar { transform: none !important; }
}
