:root {
  --red: #e02b27;
  --red-dark: #b81f1c;
  --ink: #0f2233;
  --ink-soft: #46586a;
  --line: #d9e0e6;
  --bg: #f4f6f8;
  --card: #ffffff;
  --sea: #0b5c8a;
  --ok: #1d7a46;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 34, 51, .06), 0 4px 14px rgba(15, 34, 51, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--sea); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-soft); margin: 0 0 14px; }
[hidden] { display: none !important; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; }
.brand img { display: block; }
.header-contact { display: flex; gap: 18px; font-size: .92rem; flex-wrap: wrap; justify-content: flex-end; }
.header-contact a { color: var(--ink); text-decoration: none; font-weight: 600; }
.header-contact a:hover { color: var(--red); }

/* hero */
.hero { background: var(--ink); color: #fff; padding: 34px 0 30px; }
.eyebrow { margin: 0 0 6px; color: #ff8d86; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.1; letter-spacing: -.01em; }
.lede { margin: 0; max-width: 62ch; color: #cdd8e2; font-size: 1.05rem; }
.steps-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 20px 0 0; color: #cdd8e2; font-size: .92rem; }
.steps-strip b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: .78rem; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 22px; padding-bottom: 96px; }
@media (min-width: 940px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; padding-bottom: 48px; }
  .summary { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
}
.step, .summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.step + .step { margin-top: 20px; }
.step h2, .summary h2 { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.25; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.num { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: .9rem; }
.for-model { font-weight: 600; color: var(--ink-soft); font-size: 1rem; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { font: inherit; font-weight: 600; font-size: .9rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* boats */
.boat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.boat { font: inherit; text-align: left; padding: 0; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); cursor: pointer; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s; }
.boat:hover { border-color: #9fb1c1; transform: translateY(-1px); }
.boat[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(224, 43, 39, .18); }
.boat .pic { aspect-ratio: 4 / 3; background: linear-gradient(160deg, #1c4a6b, #0f2233); display: grid; place-items: center; color: rgba(255, 255, 255, .9); font-weight: 800; font-size: 1.5rem; letter-spacing: .02em; }
.boat .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.boat .name { padding: 9px 10px 10px; font-weight: 700; font-size: .95rem; line-height: 1.2; }
.boat .from { padding: 0 10px 9px; color: var(--ink-soft); font-size: .8rem; }

/* products */
.type-group + .type-group { margin-top: 20px; }
.type-group h3 { margin: 0 0 8px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.product { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.product + .product { margin-top: 10px; }
.product.selected { border-color: var(--red); background: #fff8f7; }
.product-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.product-head h4 { margin: 0; font-size: 1.05rem; }
.product-note { margin: 2px 0 0; color: var(--ink-soft); font-size: .88rem; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 10px; }
.opt { font: inherit; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.opt:hover { border-color: #9fb1c1; }
.opt .cloth { font-weight: 600; font-size: .93rem; line-height: 1.2; }
.opt .price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: #fff; }
.opt[aria-pressed="true"] .cloth::before { content: "✓ "; }

/* colour designer */
.designer { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.designer h3 { margin: 0 0 10px; font-size: 1.05rem; }
.designer-body { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .designer-body { grid-template-columns: minmax(180px, 260px) 1fr; align-items: start; } }
.sail-box { background: #eaf1f6; border-radius: 8px; padding: 12px; display: grid; place-items: center; }
.sail-svg { display: block; width: 100%; max-width: 260px; max-height: 460px; height: auto; touch-action: manipulation; }
.sail-svg .panel { cursor: pointer; outline: none; }
.sail-svg .panel:hover polygon { filter: brightness(.93); }
.sail-svg .panel:focus-visible polygon { stroke: var(--sea); stroke-width: 3; }
.sail-lines { mix-blend-mode: multiply; pointer-events: none; }
.panel-num { pointer-events: none; font-weight: 700; font-family: inherit; opacity: .8; }
.designer-help { margin: 0 0 10px; color: var(--ink-soft); font-size: .9rem; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.swatch { font: inherit; font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; padding: 6px 8px; min-height: 40px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.swatch .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(15, 34, 51, .25); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.swatch:focus-visible { outline: 3px solid rgba(11, 92, 138, .35); outline-offset: 1px; }
.designer-tools { display: flex; gap: 8px; margin-top: 10px; }
.btn-ghost.small { padding: 8px 12px; font-size: .88rem; }
.designer-status { margin: 10px 0 0; font-size: .88rem; color: var(--ink-soft); }
.designer-status.warn { color: #8a5a00; }

/* form */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
input:not([type=radio]), textarea { width: 100%; font: inherit; color: var(--ink); padding: 11px 12px; border: 1.5px solid #b9c5d0; border-radius: 8px; background: #fff; }
textarea { resize: vertical; }
input:focus, textarea:focus, .opt:focus-visible, .boat:focus-visible, .chip:focus-visible, .btn-primary:focus-visible, .btn-ghost:focus-visible { outline: 3px solid rgba(11, 92, 138, .35); outline-offset: 1px; border-color: var(--sea); }
input.invalid { border-color: var(--red); background: #fff6f5; }
.grid-2, .grid-3 { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 2fr 1fr 1fr; } }
.pay { border: 0; padding: 0; margin: 8px 0 16px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pay legend { font-weight: 600; font-size: .88rem; padding: 0; margin-bottom: 6px; }
.pay-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--ink); background: #f1f5f8; }
.pay-opt small { display: block; color: var(--ink-soft); }
.form-error { color: var(--red-dark); font-weight: 600; margin: 0 0 10px; }
.btn-primary { font: inherit; font-weight: 800; font-size: 1.05rem; display: inline-block; text-align: center; text-decoration: none; padding: 14px 22px; min-height: 50px; border: 0; border-radius: 8px; background: var(--red); color: #fff; cursor: pointer; }
.btn-primary:hover { background: var(--red-dark); }
form .btn-primary { width: 100%; }
.btn-ghost { font: inherit; font-weight: 700; padding: 13px 18px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.btn-ghost:hover { border-color: #9fb1c1; }
.fine { color: var(--ink-soft); font-size: .86rem; margin: 10px 0 0; }

/* confirm */
.confirm { border-color: var(--ok); }
.confirm pre { background: #f4f6f8; border: 1px solid var(--line); border-radius: 8px; padding: 14px; font: .9rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-word; margin: 0 0 14px; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* summary */
.sum-model { font-weight: 700; margin: 0 0 8px; }
.sum-lines { list-style: none; padding: 0; margin: 0 0 10px; }
.sum-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); }
.sum-lines .what b { display: block; font-size: .95rem; line-height: 1.25; }
.sum-lines .what small { color: var(--ink-soft); }
.sum-lines .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.rm { font: inherit; border: 0; background: none; color: var(--ink-soft); cursor: pointer; padding: 0 4px; font-size: 1.1rem; line-height: 1.2; }
.rm:hover { color: var(--red); }
.totals { margin: 0; border-top: 2px solid var(--ink); padding-top: 8px; }
.totals div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { font-weight: 800; font-size: 1.2rem; padding-top: 6px; }
.hint { background: #fff7e0; border: 1px solid #ecd28a; border-radius: 8px; padding: 9px 11px; font-size: .88rem; margin: 10px 0 0; }
.sum-cta { display: block; margin-top: 14px; }

/* mobile bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.mobile-bar span { display: block; font-size: .8rem; color: #cdd8e2; }
.mobile-bar b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.mobile-bar a { background: var(--red); color: #fff; font-weight: 800; text-decoration: none; padding: 10px 16px; border-radius: 8px; }
@media (min-width: 940px) { .mobile-bar { display: none !important; } }

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 28px 0 110px; color: var(--ink-soft); font-size: .92rem; }
@media (min-width: 940px) { .site-footer { padding-bottom: 28px; } }
.foot-cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 18px; }
.site-footer h3 { margin: 0 0 4px; color: var(--ink); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer p { margin: 0; }
.legal { font-size: .8rem; margin-top: 10px !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .boat { transition: none; } }

/* ---------- site navigation ---------- */
.header-row { flex-wrap: wrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { background: var(--bg); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.site-nav a[href="order-form.html"]:not([aria-current]) { background: var(--red); color: #fff; }
.site-nav a[href="order-form.html"]:not([aria-current]):hover { background: var(--red-dark); }
.nav-toggle { display: none; font: inherit; font-weight: 700; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
@media (max-width: 859px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; padding-bottom: 6px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; font-size: 1rem; }
}

/* ---------- content pages ---------- */
.page { padding-top: 22px; padding-bottom: 48px; }
.home-hero { background: var(--ink); }
.home-hero img { display: block; width: 100%; max-width: 1140px; height: auto; margin: 0 auto; }
.hero-split { display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .hero-split { grid-template-columns: 1fr auto; } }
.hero-cta { max-width: 300px; }
.hero-cta p { margin: 10px 0 0; color: #cdd8e2; font-size: .9rem; }
a.boat { text-decoration: none; }
.how { list-style: none; counter-reset: how; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.how li { counter-increment: how; position: relative; padding-left: 42px; }
.how li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: .9rem; }
.how b { display: block; }
.how span { color: var(--ink-soft); font-size: .93rem; }
.quotes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.quotes figure { margin: 0; padding: 16px; background: var(--bg); border-radius: var(--radius); border-left: 4px solid var(--red); }
.quotes blockquote { margin: 0 0 10px; font-size: 1.02rem; }
.quotes figcaption { color: var(--ink-soft); font-size: .88rem; font-weight: 600; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 22px; font-size: 1.1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.timeline { list-style: none; padding: 0; margin: 0 0 20px; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline b { color: var(--red-dark); font-variant-numeric: tabular-nums; }
.contact-card .big { font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 800; margin: 0 0 8px; }
.contact-card .big a { color: var(--ink); text-decoration: none; }
.contact-card .big a:hover { color: var(--red); }
.cloth-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cloth-grid figure { margin: 0; }
.cloth-grid img, .wide-img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.cloth-grid figcaption { margin-top: 6px; font-weight: 600; font-size: .9rem; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery a { display: block; height: 190px; flex: 0 1 auto; border-radius: 8px; overflow: hidden; background: var(--bg); }
.gallery img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: cover; }
.video-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.video { margin: 0; }
.video .frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 6px; font-weight: 600; font-size: .92rem; }
.step.video-grid + .step, .page .step + .step { margin-top: 20px; }

/* ---------- order sending ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
a.btn-ghost { text-decoration: none; display: inline-block; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.confirm.sent { background: #f1faf4; }
.confirm.sent h2 { color: var(--ok); }

/* ---------- chosen boat (order form) ---------- */
.boat-chosen { display: flex; align-items: center; gap: 14px; }
.boat-chosen .pic { flex: none; width: 84px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: linear-gradient(160deg, #1c4a6b, #0f2233); display: grid; place-items: center; color: #fff; font-weight: 800; }
.boat-chosen .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.boat-chosen .who { flex: 1; min-width: 0; }
.boat-chosen .who b { display: block; font-size: 1.15rem; line-height: 1.2; }
.boat-chosen .who span { color: var(--ink-soft); font-size: .88rem; }
