/* Yacht job class pages (live sign-up + watch now). Hugo's own colours and type, taken from his old sign-up page
   (superyachtsundayschool.com/formula-masterclass): white, black, orange #EF552E (hover #E74C3C), green #127059,
   blue #2E91FC, sand #B9A193, light grey #F8F8F8. Headlines in Anton, body in Titillium Web.
   Colour pairs computed (WCAG): white on orange 3.49:1, so button words are 19px+ bold (large text, needs 3:1) ·
   white on hover red 3.82:1 · orange on white 3.49:1, used only at headline sizes · black on orange 6.0:1 ·
   green on white 6.0:1 and on grey 5.7:1 (the small labels) · muted on white 8.9:1, on grey 8.3:1 ·
   input and door edges 3.45:1 · blue 3.2:1 and sand 2.45:1 are never used for words, only for dots and dividers. */
:root {
  --white: #FFFFFF;
  --black: #000000;
  --grey: #F8F8F8;
  --muted: #4A4A4A;
  --edge: #8A8A8A;
  --orange: #EF552E;
  --red: #E74C3C;
  --green: #127059;
  --blue: #2E91FC;
  --sand: #B9A193;
  --line: #E6E1DC;
  --bad: #B3261E;
  --radius: 12px;
  --wrap: 1120px;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: 'Titillium Web', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--black); text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
mark { background: none; color: var(--orange); padding: 0; }

/* top strip: wordmark only, no menu */
.top { padding: 16px 0 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--black); text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }

/* hero */
.hero { padding: 24px 0 44px; }
.hero-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.kicker { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); font-weight: 700; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 8.6vw, 3.6rem); line-height: 1.06; letter-spacing: 0.005em; color: var(--black); margin-top: 10px; text-wrap: balance; }
/* the headline test: A shows unless the page was opened as B */
.hl-b { display: none; }
[data-hl="b"] .hl-a { display: none; }
[data-hl="b"] .hl-b { display: inline; }
.lede { margin-top: 14px; font-size: 1.14rem; line-height: 1.5; color: var(--black); max-width: 36rem; }

/* phones only: the form is a scroll away, so the first screen gets a button that jumps to it */
.jump { margin-top: 20px; }
@media (min-width: 980px) { .btn.jump { display: none; } }   /* .btn.jump, so it beats the .btn rule further down */

/* the crew photo: real people. The crop keeps the yacht on the lift AND every face (Hugo: never cut the yacht off). */
.shot { margin-top: 22px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 6 / 5; background: var(--grey); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.shot.in-more { margin-top: 0; margin-bottom: 8px; }

/* watch page: on a phone the form comes straight after the headline, the three lessons after it */
.has-more .more .steps { margin-top: 0; }

/* the live date, written the way the old page wrote it: big, black, the time in orange. The script fills it. */
.when { margin-top: 22px; border-top: 2px solid var(--black); border-bottom: 1px solid var(--line); padding: 14px 0 16px; display: grid; gap: 2px; }
.when-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--green); }
.when-label::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.when-day { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 6.6vw, 2.4rem); line-height: 1.1; color: var(--black); }
.when-time { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 5.6vw, 2rem); line-height: 1.1; color: var(--orange); }
.when-zones { margin-top: 4px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.count { margin-top: 8px; display: inline-flex; gap: 14px; align-items: baseline; }
.count b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--black); font-variant-numeric: tabular-nums; }
.count i { font-style: normal; font-size: 13px; color: var(--muted); margin-left: 4px; }
.livenow { display: inline-block; margin-top: 8px; background: var(--black); color: var(--white); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }

/* sign-up card */
.card { background: var(--grey); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 20px; }
.card h2 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; color: var(--orange); }
.card .sub { margin-top: 6px; color: var(--black); font-size: 1rem; font-weight: 600; }
.doors { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.door { appearance: none; border: 1.5px solid var(--edge); background: var(--white); color: var(--black); border-radius: 10px; padding: 11px 10px; font: inherit; font-size: 0.98rem; font-weight: 700; line-height: 1.25; cursor: pointer; text-align: left; min-height: 60px; }
.door small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.door[aria-pressed='true'] { border-color: var(--black); background: var(--black); color: var(--white); }
.door[aria-pressed='true'] small { color: #D9D9D9; }
.field { margin-top: 14px; display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 700; color: var(--black); }
.field label i { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select { font: inherit; font-size: 16px; color: var(--black); background: var(--white); border: 1.5px solid var(--edge); border-radius: 10px; padding: 12px; width: 100%; min-height: 50px; }
.field input::placeholder { color: #6E6E6E; }
.field input:focus, .field select:focus { outline: 3px solid var(--black); outline-offset: 1px; }
.phone { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 8px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.btn { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 58px; margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--orange); color: var(--white); font: inherit; font-size: 1.2rem; font-weight: 700; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); transition: background-color 120ms ease-out; }
.btn:hover { background: var(--red); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-quiet { background: var(--white); color: var(--black); border: 1.5px solid var(--black); box-shadow: none; font-size: 1rem; }
.btn-quiet:hover { background: var(--black); color: var(--white); }
.fine { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.msg { margin-top: 12px; font-size: 0.95rem; font-weight: 600; }
.msg.bad { color: var(--bad); }
.swap { margin-top: 14px; font-size: 0.95rem; color: var(--muted); }

/* after sign-up */
.done h2 { color: var(--green); }
.done h2:focus { outline: none; }   /* focused for screen readers after sign-up; a heading needs no ring */
.done ol { margin-top: 12px; display: grid; gap: 8px; counter-reset: n; }
.done ol li { counter-increment: n; padding-left: 30px; position: relative; font-size: 0.98rem; }
.done ol li::before { content: counter(n); position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: var(--black); color: var(--white); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cal { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.cal .btn { margin-top: 0; min-height: 46px; font-size: 0.95rem; padding: 10px 8px; }

/* proof line: real numbers on a white card, like the cards on Hugo's old page (black numbers, a short orange bar) */
.proof { background: var(--grey); padding: 26px 0 30px; }
.proof ul { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.07); }
.proof li { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line); }
.proof li:first-child { border-top: 0; }
.proof b { font-family: var(--display); font-weight: 400; font-size: 2.3rem; line-height: 1; color: var(--black); font-variant-numeric: tabular-nums; white-space: nowrap; }
.proof b::after { content: ''; display: block; width: 30px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--orange); }
.proof li > span { font-size: 0.98rem; font-weight: 600; line-height: 1.35; color: var(--black); }

/* the three lessons, each with what you walk away knowing */
.learn { padding: 52px 0 48px; }
.learn h2, .fit h2, .host h2, .said h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 6.6vw, 2.8rem); line-height: 1.08; color: var(--black); }
.steps { margin-top: 22px; display: grid; gap: 0; }
.steps > li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 6px 14px; padding: 20px 0; border-top: 2px solid var(--black); }
.steps > li:last-child { border-bottom: 2px solid var(--black); }
.steps .n { font-family: var(--display); font-size: 2.8rem; line-height: 0.95; color: var(--orange); }
.steps h3 { font-family: var(--display); font-weight: 400; font-size: 1.55rem; line-height: 1.1; color: var(--black); }
.steps p { margin-top: 6px; color: var(--black); max-width: 38rem; }
.steps ul { margin-top: 10px; display: grid; gap: 6px; max-width: 38rem; }
.steps ul li { position: relative; padding-left: 22px; color: var(--muted); }
.steps ul li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.btn.mid { margin-top: 26px; }

.fit { background: var(--grey); padding: 48px 0 52px; }
.fit-grid { margin-top: 22px; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.fit h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--green); }
.fit .no h3 { color: var(--black); }
.fit ul { margin-top: 10px; display: grid; gap: 10px; }
.fit li { padding-left: 28px; position: relative; }
.fit li::before { content: '\2713'; position: absolute; left: 2px; top: 0; font-weight: 700; color: var(--green); }
.fit .no li { color: var(--muted); }
.fit .no li::before { content: '\2715'; color: var(--black); }

.host { padding: 52px 0; }
.host-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.host figure img { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.host .kicker { color: var(--orange); font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: 0.01em; }
.host h2 { margin-top: 2px; }
.host p { margin-top: 14px; max-width: 36rem; }
.host p strong { font-weight: 700; }
.creds { margin-top: 16px; display: grid; gap: 8px; max-width: 36rem; }
.creds li { position: relative; padding-left: 28px; font-weight: 600; }
.creds li::before { content: '\2713'; position: absolute; left: 2px; top: 0; font-weight: 700; color: var(--green); }
.host .btn { max-width: 380px; }

.said { background: var(--grey); padding: 52px 0 48px; }
.quotes { margin-top: 24px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.quotes blockquote { display: flex; flex-direction: column; justify-content: space-between; background: var(--white); border-radius: var(--radius); padding: 22px 20px 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.07); }
.quotes p { font-size: 1.02rem; color: var(--black); }
.quotes footer { margin-top: 14px; display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--muted); }
.quotes footer img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quotes footer b { display: block; color: var(--black); font-weight: 700; font-size: 1rem; }

/* the one loud block on the page */
.band { background: var(--orange); color: var(--black); padding: 42px 0 46px; }
.band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.06; }
.band p { margin-top: 10px; font-weight: 600; max-width: 36rem; }
.band .btn { background: var(--black); color: var(--white); max-width: 380px; box-shadow: none; }
.band .btn:hover { background: #222222; }
.band a.alt { display: inline-block; margin-top: 14px; color: var(--black); font-weight: 700; }
.band :focus-visible { outline-color: var(--black); }

.foot { padding: 22px 0 34px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }

/* watch page */
.player { margin-top: 18px; position: relative; background: var(--black); border-radius: var(--radius); overflow: hidden; }
.player:not(:has(wistia-player)) { aspect-ratio: 16 / 9; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player wistia-player { display: block; width: 100%; }
.player wistia-player:not(:defined) {
  background: var(--replay-swatch) center / contain no-repeat;
  display: block;
  filter: blur(5px);
  padding-top: calc(100% / var(--replay-aspect, 1.5433212996389891));
}
.player .wait { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--white); font-weight: 600; }
.replay-note { margin-top: 12px; font-size: 1rem; line-height: 1.45; color: var(--black); }
.next { margin-top: 14px; }
.pitch {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.72);
}
.pitch-card {
  width: min(640px, 100%);
  max-height: 92vh;
  max-height: 92dvh;
  overflow: auto;
  position: relative;
  background: var(--white);
  color: var(--black);
  border-radius: 16px;
  padding: 36px 22px 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}
.pitch-card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.85rem, 8vw, 3rem);
  line-height: 1.05;
  color: var(--black);
  padding-right: 36px;
  text-wrap: balance;
}
.pitch-card p { margin-top: 12px; font-size: 1.12rem; line-height: 1.45; }
.pitch-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--grey);
  color: var(--black);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.pitch-x:hover { background: var(--black); color: var(--white); }
body.pitch-open { overflow: hidden; }
.next .btn, .gift .btn { margin-top: 10px; }
.gift { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.then b { color: var(--black); }
.linkish { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--black); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
[hidden] { display: none !important; }

@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .proof { padding: 34px 0 38px; }
  .proof ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof li { display: block; padding: 24px 26px; border-top: 0; border-left: 1px solid var(--line); }
  .proof li:first-child { border-left: 0; }
  .proof li > span { display: block; margin-top: 12px; }
  .fit-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; }
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .host-grid { grid-template-columns: 340px minmax(0, 1fr); gap: 48px; }
  .btn.mid { width: auto; min-width: 380px; }
}
@media (min-width: 980px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: start; }
  .card { padding: 26px 24px 24px; position: sticky; top: 20px; }
  .has-more { grid-template-areas: 'intro card' 'more card'; row-gap: 28px; }
  .has-more .intro { grid-area: intro; }
  .has-more .card { grid-area: card; }
  .has-more .more { grid-area: more; }
  .learn { padding: 72px 0 64px; }
  .steps > li { grid-template-columns: 84px minmax(0, 1fr); padding: 26px 0; }
  .steps .n { font-size: 3.8rem; }
  .fit, .said, .host { padding-top: 72px; padding-bottom: 72px; }
}
/* the smallest phones (under 360px): the two longest button words would be clipped, so only there they wrap */
@media (max-width: 359px) {
  .btn { white-space: normal; text-wrap: balance; line-height: 1.2; }
  .card { padding: 20px 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
