/* 1on1.fitness holding page. Tokens from builds/1on1-fitness/DESIGN.md v2. */
@font-face { font-family: "Anton"; src: url("fonts/anton-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }

:root {
  --white: #FFFFFF;
  --stone: #E7E4DE;
  --ink: #151413;
  --ink-soft: #55524D;
  --brand: #6E1A20;
  --signal: #D3122F;
  --brand-dark: #561419;
  --line: #D2CDC4;
  --rule-grey: #CFCAC2;
  --field-border: #8C877F;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --chip-shadow: 0 6px 18px rgb(0 0 0 / .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 27px; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.trainers :focus-visible, .foot :focus-visible { outline-color: var(--white); }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .95; letter-spacing: .005em; font-size: clamp(40px, 6vw, 80px); }

/* Buttons: solid rectangles, 6px */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 6px; font: 700 16px/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn--brand { background: var(--brand); color: var(--white); }
.btn--brand:hover { background: var(--brand-dark); }
.btn--line { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--brand); }
.btn--white:hover { background: var(--stone); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--brand); }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn--wide { width: 100%; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--white); }
.top__row { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo-box { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 30px; background: var(--brand); color: var(--white); border-radius: 2px; font-family: var(--display); font-size: 16px; line-height: 1; letter-spacing: .02em; }
.logo-word { margin-left: 8px; font-size: 22px; line-height: 1; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .top__row { flex-wrap: wrap; gap: 0 12px; padding-top: 12px; }
  .logo-word { margin-left: 6px; font-size: 20px; }
  .top__cta { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 6px 0 0; gap: 22px; padding: 6px 0 10px; border-top: 1px solid var(--line); }
}

/* Hero */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 88px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "shout map" "h1 map" "body map"; grid-template-rows: auto auto 1fr; column-gap: clamp(24px, 4vw, 64px); }
.hero__shout { grid-area: shout; font-family: var(--display); text-transform: uppercase; font-size: clamp(56px, 6.3vw, 92px); line-height: .9; letter-spacing: .002em; margin-top: 8px; }
.hero__shout span { display: block; }
.hero__h1 { grid-area: h1; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; font-weight: 700; max-width: 24ch; margin-top: 28px; letter-spacing: -.01em; }
.hero__body { grid-area: body; margin-top: 18px; }
.lede { color: var(--ink-soft); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.map { grid-area: map; margin: 0 calc(var(--gutter) * -1) 0 0; align-self: start; }
.map__stage { position: relative; aspect-ratio: 580 / 540; }
.map__svg { width: 100%; height: 100%; overflow: visible; }

.grat line { stroke: var(--stone); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.grat text { fill: var(--ink-soft); font: 500 11px var(--body); font-variant-numeric: tabular-nums; }
.land { fill: var(--stone); }
.contours use { fill: none; stroke: var(--rule-grey); stroke-width: 1; vector-effect: non-scaling-stroke; }
.coast { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sea { fill: var(--ink-soft); font: 500 13px var(--body); letter-spacing: .14em; }

.pin__dot { fill: var(--signal); stroke: var(--white); stroke-width: 2.5; }
.pin__pulse { fill: none; stroke: var(--signal); stroke-width: 2; opacity: 0; }
.pin__dot, .pin__pulse { transform-box: fill-box; transform-origin: center; }

.towns { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 4px; background: var(--white); color: var(--ink); font: 700 14px/1 var(--body); padding: 8px 10px; white-space: nowrap; }
.towns .chip { position: absolute; left: calc((var(--x) + 40) / 580 * 100%); top: calc((var(--y) - 20) / 540 * 100%); box-shadow: var(--chip-shadow); }
.chip__fig { font-weight: 500; font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.chip--e  { transform: translate(14px, -50%); }
.chip--w  { transform: translate(calc(-100% - 14px), -50%); }
.chip--ne { transform: translate(12px, calc(-100% - 4px)); }
.chip--se { transform: translate(12px, 6px); }
.chip--s  { transform: translate(-24%, 14px); }
.chip--nw { transform: translate(calc(-100% - 10px), calc(-100% - 2px)); }

.map__status { position: absolute; left: 2%; top: 3%; background: var(--ink); color: var(--white); border-radius: 4px; padding: 12px 14px 12px 34px; font: 700 15px/1.35 var(--body); box-shadow: var(--chip-shadow); }
.live { position: absolute; left: 14px; top: 18px; width: 10px; height: 10px; border-radius: 2px; background: var(--signal); }

@media (prefers-reduced-motion: no-preference) {
  .pin__dot { animation: pin-in .5s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--d) + .3s); }
  .pin__pulse { animation: pulse 4.2s cubic-bezier(.1, .6, .3, 1) infinite; animation-delay: calc(var(--d) + .5s); }
  .towns .chip { animation: chip-in .45s ease-out both; animation-delay: calc(var(--d) + .55s); }
  .live { animation: blink 2.4s ease-in-out infinite; }
}
@keyframes pin-in { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .85; } 70% { opacity: 0; } 100% { transform: scale(5.5); opacity: 0; } }
@keyframes chip-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "shout" "h1" "map" "body"; grid-template-rows: none; }
  .hero__shout { font-size: clamp(52px, 15vw, 96px); }
  .hero__h1 { margin-top: 20px; }
  .map { margin: 20px 0 0; }
  .hero__body { margin-top: 20px; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (max-width: 600px) {
  .grat text, .sea { display: none; }
  .chip { font-size: 12px; padding: 6px 8px; }
  .chip__fig { display: none; }
  .chip--e { transform: translate(10px, -50%); }
  .chip--w { transform: translate(calc(-100% - 10px), -50%); }
  .chip--ne { transform: translate(8px, calc(-100% - 2px)); }
  .chip--se { transform: translate(8px, 4px); }
  .chip--s { transform: translate(-20%, 10px); }
  .chip--nw { transform: translate(calc(-100% - 6px), calc(-100% - 2px)); }
  .map__status { font-size: 13px; padding: 9px 10px 9px 26px; left: 0; top: 0; }
  .live { top: 13px; }
  .live { left: 10px; top: 14px; width: 8px; height: 8px; }
}

/* How it will work */
.how { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.steps { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.step { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-content: start; }
.step:nth-child(2) { margin-top: 48px; }
.step:nth-child(3) { margin-top: 96px; }
.step__n { grid-row: span 2; width: 52px; font-family: var(--display); font-size: 88px; line-height: .8; color: var(--brand); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 21px; line-height: 1.25; font-weight: 700; }
.step p { color: var(--ink-soft); margin-top: 8px; max-width: 34ch; }
.facts { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chip--flat { background: var(--stone); font-size: 15px; padding: 10px 14px; }
.tick { width: 16px; height: 16px; fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step:nth-child(2), .step:nth-child(3) { margin-top: 0; }
  .step__n { font-size: 64px; width: 40px; }
  .chip--flat { white-space: normal; line-height: 1.3; }
}

/* Classes */
.classes { background: var(--stone); padding: clamp(56px, 8vw, 104px) 0; }
.classes__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.classes__text p { margin-top: 20px; max-width: 36ch; }
.finder { background: var(--white); border-radius: 6px; padding: clamp(18px, 2.4vw, 32px); box-shadow: 0 1px 0 var(--line); margin-right: calc(var(--gutter) * -1); }
.finder__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--stone); }
.finder__label { width: 64px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.tag { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 4px; padding: 7px 11px; font-size: 15px; line-height: 1; font-weight: 500; }
.tag--day { min-width: 48px; justify-content: center; font-variant-numeric: tabular-nums; }
.tag.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tag.is-on::before { content: ""; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -1px); }
.finder__foot { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .classes__grid { grid-template-columns: minmax(0, 1fr); }
  .finder { margin-right: 0; }
  .finder__label { width: 100%; }
}

/* Trainers band */
.trainers { background: var(--brand); color: var(--white); padding: clamp(56px, 8vw, 112px) 0; }
.trainers__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.trainers__text p { margin-top: 24px; max-width: 42ch; }
.trainers__text .btn { margin-top: 32px; }
.figs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); }
.fig { border-top: 1px solid rgb(255 255 255 / .4); padding: 18px 0 28px; }
.fig dt { font-family: var(--display); font-size: clamp(64px, 7vw, 104px); line-height: .95; font-variant-numeric: tabular-nums; }
.fig dd { margin: 10px 0 0; max-width: 26ch; }
.fig--founding { border-top-width: 4px; padding-top: 15px; }
@media (max-width: 900px) {
  .trainers__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .figs { grid-template-columns: minmax(0, 1fr); }
  .fig { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: start; padding: 14px 0 18px; }
  .fig dt { font-size: 56px; }
  .fig dd { margin: 0; padding-top: 6px; }
}

/* Join */
.join { padding: clamp(56px, 8vw, 112px) 0; }
.join__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.join__intro p { margin-top: 20px; color: var(--ink-soft); max-width: 34ch; }
.form { max-width: 640px; }
.choice { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.choice__opt { position: relative; display: block; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__box { display: block; height: 100%; border: 2px solid var(--line); border-radius: 6px; padding: 16px 16px 16px 50px; position: relative; }
.choice__box::before { content: ""; position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; border: 2px solid var(--ink-soft); border-radius: 50%; background: var(--white); }
.choice__box strong { display: block; font-size: 17px; line-height: 1.3; }
.choice__box span { display: block; font-size: 15px; line-height: 1.4; color: var(--ink-soft); margin-top: 4px; }
.choice__opt input:checked + .choice__box { border-color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.choice__opt input:checked + .choice__box::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--white); }
.choice__opt input:focus-visible + .choice__box { outline: 3px solid var(--ink); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; margin-top: 24px; }
.field label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select { width: 100%; min-height: 50px; border: 1.5px solid var(--field-border); border-radius: 6px; padding: 10px 14px; font: 400 17px var(--body); color: var(--ink); background: var(--white); }
.field input::placeholder { color: var(--ink-soft); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--signal); border-width: 2px; }
.agree { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 22px; font-size: 16px; line-height: 1.45; cursor: pointer; }
.agree input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.agree input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.agree input[aria-invalid="true"] { outline: 2px solid var(--signal); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; top: -9999px; }
altcha-widget { display: block; margin-top: 20px; --altcha-max-width: 100%; --altcha-border-radius: 6px; --altcha-color-border: var(--field-border); --altcha-color-text: var(--ink); --altcha-color-base: var(--white); --altcha-color-border-focus: var(--ink); }
.form .btn--wide { margin-top: 20px; }
.consent { font-size: 14px; line-height: 21px; color: var(--ink-soft); margin-top: 14px; }
.note { margin-top: 16px; font-size: 15px; }
.errors { border: 2px solid var(--signal); border-radius: 6px; padding: 14px 16px; margin-bottom: 20px; }
.errors strong { display: block; }
.errors ul { margin: 6px 0 0; padding-left: 20px; }
.form__done:empty { display: none; }
.form__done { margin-top: 20px; }
.thanks { border-top: 4px solid var(--ink); padding-top: 18px; }
.thanks p:first-child { font-family: var(--display); text-transform: uppercase; font-size: 40px; line-height: 1; }
.thanks p + p { margin-top: 10px; color: var(--ink-soft); }
.for-trainer, .for-trainer-inline { display: none; }
.form:has(input[value="trainer"]:checked) .for-trainer { display: block; }
.form:has(input[value="trainer"]:checked) .for-trainer-inline { display: inline; }
.form:has(input[value="trainer"]:checked) .for-client, .form:has(input[value="trainer"]:checked) .for-client-inline, .form:has(input[value="trainer"]:checked) .opt--client { display: none; }
@media (max-width: 900px) {
  .join__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .choice, .fields { grid-template-columns: minmax(0, 1fr); }
}

/* Footer */
.foot { background: var(--ink); color: var(--white); padding: 40px 0; font-size: 15px; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.foot__mark { margin-right: auto; }
.foot .logo-box { background: var(--signal); }
.foot .logo-word { color: var(--white); }
.credit { color: var(--rule-grey); }
.credit a { color: var(--white); }

/* Standalone pages (privacy, signup result) */
.page { padding: clamp(40px, 6vw, 88px) 0; }
.page .wrap { max-width: 820px; }
.page h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 7vw, 72px); line-height: .95; }
.page h2 { font-size: 21px; line-height: 1.3; margin-top: 36px; }
.page p, .page ul { margin-top: 12px; max-width: 66ch; }
.page li + li { margin-top: 6px; }
.form [hidden] { display: none !important; }
.trainers .display { font-size: clamp(40px, 4.8vw, 72px); }
.btn[disabled] { opacity: .7; cursor: progress; }
.page h1 + p { margin-top: 20px; }

/* Hero order on small screens: words and buttons first, map after */
@media (max-width: 700px) {
  .hero__grid { grid-template-areas: "shout" "h1" "body" "map"; }
  .hero__shout { font-size: clamp(48px, 13.4vw, 72px); }
  .hero__h1 { font-size: 20px; margin-top: 16px; }
  .lede { font-size: 16px; line-height: 25px; }
  .hero__body { margin-top: 12px; }
  .hero__actions { margin-top: 18px; gap: 10px; }
  .map { margin-top: 32px; }
}

/* Class finder preview badge */
.finder { position: relative; }
.finder__badge { display: inline-block; margin-bottom: 6px; border: 1.5px solid var(--ink); border-radius: 4px; padding: 5px 9px; font-size: 14px; line-height: 1; font-weight: 700; }

/* Town strip under the trainer band */
.strip { padding: clamp(36px, 5vw, 56px) 0 0; }
.strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.strip__list::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; border-top: 1.5px dashed var(--rule-grey); }
.strip__list li { position: relative; display: flex; flex-direction: column; gap: 12px; font-weight: 700; font-size: 16px; line-height: 1.2; }
.strip__pin { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--signal); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--signal); }
@media (max-width: 600px) {
  .strip__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .strip__list::before { display: none; }
}

/* Mini map beside the form */
.minimap { width: min(280px, 60%); margin-top: 28px; overflow: visible; }
.minimap__note { font-size: 15px; font-weight: 700; margin-top: 8px; min-height: 24px; }
@media (min-width: 901px) { .join__intro { position: sticky; top: 24px; } }

/* A town chosen in the form lights up everywhere it appears */
.pin__dot { transition: scale .35s cubic-bezier(.16, 1, .3, 1); }
.pin.is-lit .pin__dot { scale: 1.7; stroke: var(--ink); }
.towns .chip.is-lit { background: var(--ink); color: var(--white); }
.towns .chip.is-lit .chip__fig { color: var(--rule-grey); }
.towns .chip.is-lit::before, .strip__list li.is-lit::after { content: ""; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.strip__list li.is-lit { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.strip__list li.is-lit .strip__pin { box-shadow: 0 0 0 1px var(--signal), 0 0 0 7px rgb(211 18 47 / .22); }
.strip__list li.is-lit::after { position: absolute; left: 30px; top: 3px; }
@media (prefers-reduced-motion: reduce) { .pin__dot { transition: none; } }
