/* Brand tokens. Colours measured from the logo exports in /logo. */
:root {
  --charcoal: #26272a;
  --gold: #d9a528;        /* gold on dark */
  --gold-ink: #b8860b;    /* gold on light: frames and icons only, never text */
  --cream: #f3eadb;
  --ground: #f3f1eb;
  --white: #fff;
  --ink: #26272a;
  --muted: #55565b;
  --field-line: #8b8c90;
  --error: #a12a1c;

  --r-card: 20px;
  --r-field: 12px;
  --r-btn: 999px;
  --shadow: 0 12px 32px rgba(38, 39, 42, 0.14);

  --display: "Josefin Sans", "Josefin Fallback", "Century Gothic", "Trebuchet MS", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/josefin-sans-latin.woff2") format("woff2");
}
/* Metric-matched fallback so the swap to Josefin Sans does not shift the layout. */
@font-face {
  font-family: "Josefin Fallback";
  src: local("Arial");
  size-adjust: 94%;
  ascent-override: 80%;
  descent-override: 27%;
  line-gap-override: 0%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
p, h1, h2, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
.defs { position: absolute; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 768px; }

h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -0.005em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 6.4vw, 2.25rem); }
em { font-style: normal; color: var(--gold); }

.eyebrow {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold-ink); flex: none; }

/* Logo */
.mark-arrow { fill: var(--gold); }
.lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); }
.lockup-mark { width: 30px; height: 30.4px; flex: none; }
.lockup-text { display: flex; flex-direction: column; font-family: var(--display); text-transform: uppercase; line-height: 1; }
.lockup-a { font-weight: 300; font-size: 10.5px; letter-spacing: 0.3em; margin-right: -0.3em; }
.lockup-b { font-weight: 600; font-size: 18px; letter-spacing: 0.115em; margin-right: -0.115em; color: var(--gold); margin-top: 4px; }

/* Header */
.top { background: var(--charcoal); padding: 14px 0 12px; }
.top .wrap { display: flex; }
a.lockup { text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 18px 32px 14px; /* Josefin Sans sits high; extra top padding centres it */
  border: 0;
  border-radius: var(--r-btn);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover, .btn-gold:active { background: #e6b53e; }
.btn-dark { background: var(--charcoal); color: var(--cream); }
.btn-dark:hover, .btn-dark:active { background: #3a3b40; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: default; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sec :focus-visible, .card :focus-visible { outline-color: var(--charcoal); }

/* Lead: hero + form card */
.lead { position: relative; }
.hero {
  color: var(--cream);
  padding: 40px 24px 88px;
  background-color: var(--charcoal);
  background-image: linear-gradient(180deg, rgba(38, 39, 42, 0.74), rgba(38, 39, 42, 0.86)), url("/img/hero-mobile.webp");
  background-size: cover;
  background-position: 60% 30%;
}
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { font-size: clamp(2rem, 8.6vw, 3.25rem); }
.hero h1 span { display: block; }
.hero-sub { margin-top: 16px; font-size: 1.0625rem; color: var(--cream); max-width: 30em; }
.hero .btn { margin-top: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--gold-ink);
  border-radius: var(--r-card);
}
.card-holder { padding: 0 16px; margin-top: -48px; position: relative; }
.form-card { padding: 32px 24px; box-shadow: var(--shadow); scroll-margin-top: 16px; max-width: 480px; margin: 0 auto; }
.form-card h2 { font-size: 1.6rem; }
.form-card form { margin-top: 24px; }

.field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 0.95rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1.5px solid var(--field-line);
  border-radius: var(--r-field);
  background: var(--white);
  color: var(--ink);
  font: inherit; /* 17px: stops iOS zooming on focus */
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus { border-color: var(--charcoal); outline: 3px solid rgba(184, 134, 11, 0.45); outline-offset: 0; }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.options label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 8px;
  border: 1.5px solid var(--field-line);
  border-radius: var(--r-field);
  background: var(--white);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.options input:checked + label { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }
.options input:focus-visible + label { outline: 3px solid var(--gold-ink); outline-offset: 2px; }
.behind { margin-bottom: 24px; }

.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-bottom: 16px; color: var(--error); font-weight: 600; }
.fine { margin-top: 16px; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }

/* Thank-you state: shown by site.js, or by the #thanks URL when the form posts without JavaScript */
.thanks { display: none; margin-top: 24px; outline: 0; }
.thanks:target, .thanks.show { display: block; }
.thanks:target + form, .thanks.show + form { display: none; }
.thanks-title { font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1.3; padding-left: 16px; border-left: 3px solid var(--gold-ink); }
.thanks .btn { margin-top: 24px; }

/* Sections */
.sec { padding: 64px 0; }
.sec-white { background: var(--white); }
.sec h2 { margin-bottom: 32px; }

.tiles { display: grid; gap: 16px; }
.tile { padding: 24px; display: flex; gap: 16px; align-items: flex-start; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
.icon { width: 32px; height: 32px; flex: none; fill: none; stroke: var(--gold-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.checks { display: grid; gap: 24px; }
.checks li { display: flex; gap: 16px; align-items: flex-start; }
.checks .icon { width: 28px; height: 28px; margin-top: -1px; }
.sec-white .card { background: var(--ground); }

.how { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.how-mark { width: 88px; height: 89px; flex: none; color: var(--charcoal); opacity: 0.9; display: none; }
.how-mark .mark-arrow, .how-mark { --gold: var(--gold-ink); }
.steps { counter-reset: step; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 7px 0 7px 56px;
  min-height: 40px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  padding-top: 3px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq { border-top: 1px solid #cfcabd; }
.faq details { border-bottom: 1px solid #cfcabd; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  min-height: 48px;
  position: relative;
  font-weight: 600;
  font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -8px;
  border: solid var(--charcoal);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 40px 24px 0; color: var(--ink); }

/* Closing band */
.closing { background: var(--charcoal); color: var(--cream); padding: 64px 0; text-align: center; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; }
.badge {
  width: 168px;
  height: 168px;
  border: 1px solid var(--gold);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  color: var(--cream);
}
.badge-mark { width: 62px; height: 63px; }
.badge .lockup-text { align-items: center; }
.closing .hero-sub { margin-top: 16px; }
.closing .btn { margin-top: 24px; }

/* Footer */
.foot { background: var(--charcoal); color: var(--cream); padding: 24px 0 40px; font-size: 0.9rem; text-align: center; }
.foot .wrap { border-top: 1px solid rgba(243, 234, 219, 0.2); padding-top: 24px; }
.foot p + p { margin-top: 4px; }
.foot a { display: inline-block; padding: 8px 0; }

/* Privacy page */
.doc { padding-top: 48px; padding-bottom: 64px; max-width: 768px; }
.doc h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
.doc h2 { font-size: 1.3rem; margin: 40px 0 8px; }
.doc p + p { margin-top: 16px; }
.doc ul { list-style: disc; padding-left: 24px; }
.doc li + li { margin-top: 8px; }
.doc ul + p { margin-top: 16px; }
.doc .meta { margin-top: 8px; color: var(--muted); }

@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .tile { flex-direction: column; padding: 32px 24px; }
  .how-mark { display: block; }
}

@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  .top { padding: 18px 0 16px; }
  .sec, .closing { padding: 96px 0; }

  /* Hero text left, form card right; the photo spans both and the card overlaps its bottom edge. */
  .lead::before {
    content: "";
    position: absolute;
    inset: 0 0 72px 0;
    background-color: var(--charcoal);
    background-image: linear-gradient(90deg, rgba(38, 39, 42, 0.9) 0%, rgba(38, 39, 42, 0.8) 45%, rgba(38, 39, 42, 0.6) 100%), url("/img/hero-desktop.webp");
    background-size: cover;
    background-position: 50% 30%;
  }
  .lead-grid {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 64px 32px 0;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 64px;
    align-items: start;
  }
  .hero { background: none; padding: 56px 0 0; }
  .hero h1 { font-size: 3.25rem; }
  .hero-sub { font-size: 1.2rem; }
  .hero .btn { display: none; } /* the form is already beside the headline */
  .card-holder { padding: 0; margin: 0; }
  .form-card { padding: 40px; max-width: none; }
  .lead + .sec { padding-top: 80px; }
  .checks { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .checks li { flex-direction: column; }
  .how-mark { width: 160px; height: 162px; margin-right: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
