/* Your First Salesman: site v1 styles. Mobile first. No frameworks. */

:root {
  /* Brand colours, locked 18 Nov 2026 (see YFS Brand Sheet v1) */
  --navy: #0B2545;   /* headings, text links, header, footer text */
  --teal: #0D736C;   /* "First" in the logo, list numbers, thin rules. Never next to coral */
  --coral: #C8461F;  /* buttons only */
  --coral-dark: #A93A19; /* button hover only */
  --gold: #D9A62E;   /* Founders badge only */
  --mint: #E2F3EF;   /* quiet background bands */
  --slate: #55687C;  /* body text */
  --line: #D3DAE3;   /* hairlines and borders */
  --white: #FFFFFF;

  --head: "Montserrat", "Arial Black", Arial, sans-serif;
  --body: "Open Sans", Arial, Helvetica, sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
  --space: clamp(56px, 9vw, 108px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--head);
  color: var(--navy);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.25rem, 4.9vw, 3.4rem); line-height: 1.06; }
h2 { font-size: clamp(1.6rem, 4vw, 2.35rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }

p, ul, ol, dl { margin: 0 0 1.1em; }
strong { color: var(--navy); font-weight: 700; }

a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons: one style, square, coral ---------- */
.btn {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 17px 26px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--coral-dark); color: var(--white); }
.btn-sm { font-size: 0.875rem; padding: 11px 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.btn-row .or { color: var(--slate); }

/* ---------- Founders bar ---------- */
.founders-bar {
  display: block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.founders-bar:hover { color: var(--white); }
.founders-bar:hover .fb-text { text-decoration: underline; text-underline-offset: 3px; }
.founders-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-top: 9px; padding-bottom: 9px; }
.founders-bar strong { color: var(--white); font-weight: 600; }
.fb-count { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fb-count:empty { display: none; }

.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--head);
  font-weight: 800;
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 8px 5px;
  border-radius: 0;
}
.founders-bar .badge { display: none; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.head-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand book" "nav nav";
  align-items: center;
  gap: 12px 16px;
  padding-top: 16px;
  padding-bottom: 14px;
}
.brand { display: block; max-width: 250px; }
.head-row .brand { grid-area: brand; }
.head-row > .btn { grid-area: book; }
.brand img { width: 100%; height: auto; }
.main-nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 2px 16px; }
.main-nav a {
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--navy);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--navy); color: var(--navy); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section + .section { padding-top: 0; }
.band { background: var(--mint); }
.band + .section, .section + .band { padding-top: var(--space); }
.rule-top { border-top: 1px solid var(--line); padding-top: var(--space); }

.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-head p.lede { margin-bottom: 0; }
.lede { font-size: clamp(1.125rem, 2.2vw, 1.3rem); line-height: 1.55; color: var(--slate); max-width: 40em; }

/* Split layout: heading left, content right on wide screens */
.split { display: grid; gap: 8px 48px; }
.split > .content { max-width: 680px; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(36px, 4.5vw, 64px) 0 clamp(96px, 16vw, 176px); }
.hero .lede { max-width: 36em; }
.hero .lede { margin-bottom: 28px; }
.video-spot {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 560px;
  border: 2px solid var(--navy);
  display: grid;
  place-items: center;
  font-family: var(--head);
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  margin: 0 0 28px;
}

/* ---------- Protect / Grow / Prove ---------- */
.three { display: grid; gap: 28px; margin-top: 8px; }
.three > div { border-top: 3px solid var(--navy); padding-top: 18px; }
.three h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
.three p { margin: 0; }

/* ---------- Pull line ---------- */
.pull {
  font-family: var(--head);
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.8em;
  padding-left: 20px;
  border-left: 4px solid var(--teal);
}

/* ---------- Lists ---------- */
.plain-list { list-style: none; padding: 0; }
.plain-list li { position: relative; padding-left: 24px; margin-bottom: 0.7em; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--navy); }

.num-list { list-style: none; padding: 0; counter-reset: n; }
.num-list > li { counter-increment: n; position: relative; padding-left: 44px; margin-bottom: 1em; }
.num-list > li::before {
  content: counter(n);
  position: absolute; left: 0; top: 0;
  font-family: var(--head); font-weight: 800; font-size: 1.25rem; line-height: 1.35;
  color: var(--teal);
}

/* ---------- Owner ---------- */
.owner { display: grid; gap: 28px; align-items: center; }
.owner-photo {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 480 / 718;
  background: var(--mint);
}
.owner-photo img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.photo-spot {
  width: 100%; max-width: 300px; aspect-ratio: 4 / 5;
  border: 2px solid var(--navy);
  display: grid; place-items: center;
  font-family: var(--head); font-weight: 700; color: var(--navy);
}
.owner-text p { max-width: 36em; }
.signed { font-family: var(--head); font-weight: 800; color: var(--navy); margin-top: 1.2em; }

/* ---------- Postcode box ---------- */
.postcode { max-width: 560px; margin-top: 8px; }
.pc-label { display: block; font-family: var(--head); font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.pc-row { display: flex; gap: 0; }
.pc-row input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 1.125rem;
  color: var(--navy);
  padding: 14px 14px;
  border: 2px solid var(--navy);
  border-right: 0;
  border-radius: 0;
  background: var(--white);
  text-transform: uppercase;
}
.pc-row input::placeholder { color: #7D8C9C; text-transform: none; }
.pc-row .btn { flex: 0 0 auto; }
.pc-help { font-size: 0.9375rem; margin: 10px 0 0; }
.pc-result:not(:empty) { margin-top: 22px; padding: 20px 20px 8px; border: 1px solid var(--line); background: var(--white); }
.pc-result p { margin-bottom: 0.9em; }

/* ---------- Plans ---------- */
.plans { display: grid; gap: 20px; margin: 0 0 40px; }
.plan {
  border: 1px solid var(--line);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.plan-name {
  font-family: var(--head);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 14px;
  line-height: 1;
}
.plan-name .badge { font-size: 0.8125rem; padding: 7px 9px 6px; margin-left: -9px; }
.plan-name span.plain { display: inline-block; padding: 7px 0 6px; }
.price { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 1.05rem; margin-bottom: 20px; }
.price .amt { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-right: 4px; }
.plan dl { margin: 0 0 24px; }
.plan dt { font-size: 0.8125rem; font-weight: 700; color: var(--navy); margin-top: 14px; }
.plan dd { margin: 2px 0 0; }
.plan .btn { margin-top: auto; }
.closed-note { margin-top: auto; padding: 16px; border: 2px solid var(--navy); text-align: center; }
.closed-note strong { font-family: var(--head); font-weight: 800; }

/* ---------- Q and A ---------- */
.qa { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.qa h3 { margin-bottom: 0.35em; }
.qa p { margin: 0; }

/* ---------- Guarantee statement ---------- */
.promise {
  font-family: var(--head);
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  margin: 0;
  max-width: 34em;
}

/* ---------- Money maths table ---------- */
.maths { width: 100%; border-collapse: collapse; margin: 8px 0 28px; }
.maths caption { text-align: left; }
.maths th, .maths td { text-align: left; vertical-align: top; }
.maths thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.maths tr { display: block; border-top: 3px solid var(--navy); padding: 18px 0 10px; }
.maths tr:last-child { border-bottom: 1px solid var(--line); }
.maths th[scope="row"] { display: block; font-family: var(--head); font-weight: 800; color: var(--navy); font-size: 1.25rem; margin-bottom: 6px; }
.maths td { display: block; margin-bottom: 10px; }
.maths td::before { content: attr(data-label); display: block; font-size: 0.8125rem; font-weight: 700; color: var(--navy); }
.maths .cost { font-family: var(--head); font-weight: 700; color: var(--navy); }

/* ---------- Steps (Leaving us) ---------- */
.step { border-top: 3px solid var(--navy); padding-top: 22px; margin-top: 40px; }
.step:first-child { margin-top: 0; }
.step .video-spot { max-width: 480px; margin: 8px 0 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mint); padding: 48px 0 56px; margin-top: clamp(24px, 4vw, 48px); font-size: 0.9375rem; }
.site-footer .brand { max-width: 220px; margin-bottom: 18px; }
.site-footer p { margin: 0 0 0.9em; }
.site-footer address { font-style: normal; margin-bottom: 0.9em; }
.foot-grid { display: grid; gap: 8px 48px; }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  .founders-bar .badge { display: inline-block; }
  .three { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .owner { grid-template-columns: 260px 1fr; gap: 48px; }
  .maths thead { position: static; width: auto; height: auto; clip: auto; display: table-header-group; }
  .maths tr { display: table-row; border: 0; padding: 0; }
  .maths th, .maths td { display: table-cell; padding: 18px 20px 18px 0; border-top: 1px solid var(--line); }
  .maths thead th { font-size: 0.8125rem; font-weight: 700; color: var(--navy); border-top: 0; border-bottom: 3px solid var(--navy); padding-top: 0; padding-bottom: 10px; }
  .maths tbody tr:first-child th, .maths tbody tr:first-child td { border-top: 0; }
  .maths tr:last-child th, .maths tr:last-child td { border-bottom: 1px solid var(--line); }
  .maths th[scope="row"] { display: table-cell; margin: 0; font-size: 1.1rem; width: 18%; }
  .maths td::before { content: none; }
  .maths .cost { width: 24%; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .head-row { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav book"; padding-top: 22px; padding-bottom: 22px; gap: 32px; }
  .main-nav a { font-size: 0.9375rem; }
  .brand { max-width: 290px; }
  .main-nav { justify-content: flex-end; gap: 28px; }
  .split { grid-template-columns: 4fr 8fr; }
  .split > h2 { margin: 0; padding-right: 16px; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .owner { grid-template-columns: 300px 1fr; gap: 64px; }
  .foot-grid { grid-template-columns: 4fr 8fr; }
}

@media (min-width: 900px) and (max-height: 820px) {
  .hero .video-spot { max-width: 440px; }
}
main { display: block; min-height: 45vh; }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.35rem; margin: 2em 0 0.6em; }
.legal h3 { margin: 1.5em 0 0.5em; }
.legal ol, .legal ul { padding-left: 1.4em; }
.legal li { margin-bottom: 0.4em; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* ---------- Welcome page ---------- */
.cal-embed { min-height: 520px; margin: 8px 0 12px; border: 1px solid var(--line); background: var(--white); overflow: auto; }
.cal-fallback { font-size: 0.9375rem; }
.onboard { display: grid; gap: 6px; max-width: 640px; }
.onboard label { font-weight: 600; color: var(--navy); margin-top: 14px; }
.onboard input, .onboard textarea { font: inherit; color: var(--navy); padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--white); width: 100%; }
.onboard input:focus-visible, .onboard textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.onboard .btn { justify-self: start; margin-top: 8px; }
.form-note { font-size: 0.9375rem; margin: 14px 0 4px; }
.form-done { padding: 18px 20px 4px; border: 1px solid var(--line); background: var(--white); }
