/* ==========================================================================
   Eric Philip Martin - lead magnet page
   Single-column, distraction-free. No nav, no outbound links above the form.

   Bright theme: pale sky background, deep navy text, amber button.
   Two colours are injected per page from the backoffice:
     --accent / --accent-dark  the button
     --highlight               the small heading line, tick marks and links

   They are separate on purpose. Amber is bright enough to carry dark text on
   a button, but far too light to read as text on a pale background.
   ========================================================================== */

:root {
  --accent: #f59e0b;        /* sunshine amber - button top */
  --accent-dark: #d97706;   /* button bottom */
  --highlight: #0369a1;     /* sky blue - readable as text */
  --highlight-soft: #0284c7;

  --bg: #eff6ff;
  --bg-tint: #e0edfd;
  --card: #ffffff;
  --card-line: #cddef2;
  --card-line-soft: #e3eefb;
  --field: #ffffff;

  --text: #14263d;
  --text-soft: #43566f;
  --text-dim: #556880;   /* dark enough to clear 4.5:1 on the pale background */

  --danger: #b3261e;
  --danger-bg: #fdecea;
  --ok: #15803d;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 38, 61, .10);
  --shadow-lift: 0 18px 44px rgba(20, 38, 61, .14);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(900px 480px at 50% -120px, #ffffff, transparent 70%),
    radial-gradient(600px 400px at 100% 110%, rgba(245, 158, 11, .10), transparent 65%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; }

a { color: var(--highlight); }

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 20px 60px;
}

.wrap-narrow { max-width: 660px; }

/* ------------------------------------------------------------------- hero */

.hero { text-align: center; margin-bottom: 30px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--highlight);
}

.headline {
  margin: 0 0 16px;
  font-size: clamp(30px, 6.2vw, 46px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.subhead {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(16px, 2.4vw, 18px);
  color: var(--text-soft);
  text-wrap: pretty;
}

.tick { color: var(--ok); margin-bottom: 10px; }

/* ------------------------------------------------------------------ video */

.video-section { margin: 0 0 32px; }

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #dbe9fa;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

@supports not (aspect-ratio: 16 / 9) {
  .video-shell { height: 0; padding-bottom: 56.25%; }
}

.video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 20px;
  color: var(--text-dim);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .55) 0 12px, transparent 12px 24px);
}

.video-empty span { font-weight: 700; color: var(--text-soft); }
.video-empty small { font-size: 13px; }

.video-caption {
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
}

/* ------------------------------------------------------------------- card */

.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-lift);
}

.card-quiet {
  box-shadow: var(--shadow);
  background: var(--card);
  margin-bottom: 28px;
}

.card-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.card-sub {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--text-soft);
}

/* ------------------------------------------------------------------ alert */

.alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--danger-bg);
  border: 1px solid #f3c2be;
  color: var(--danger);
  font-size: 14.5px;
}

.alert p { margin: 0 0 4px; }
.alert p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ form */

.field { margin: 0 0 18px; border: 0; padding: 0; }

.field > label,
.field > legend {
  display: block;
  margin-bottom: 7px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.req { color: var(--danger); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;              /* 16px stops iOS zooming on focus */
  color: var(--text);
  background: var(--field);
  border: 1.5px solid var(--card-line);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}

input::placeholder { color: #93a3b8; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--highlight-soft);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .18);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2343566f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* honeypot - hidden from people, visible to bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------- checkbox rows */

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.45;
}

.check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--highlight-soft);
  cursor: pointer;
}

.phone-toggle {
  margin: 4px 0 0;
  padding: 14px;
  border: 1.5px dashed var(--card-line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.phone-toggle .check span { color: var(--text); font-weight: 600; }

.phone-block {
  margin-top: 16px;
  padding: 20px 18px 6px;
  border: 1px solid var(--card-line);
  border-left: 4px solid var(--highlight-soft);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.phone-block[hidden] { display: none; }

.phone-intro {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-soft);
}

.consent {
  margin: 4px 0 20px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #fff8e8;
  border: 1px solid #f5dda6;
  font-size: 14px;
  color: var(--text);
}

/* ------------------------------------------------------------------ chips */

.chips { display: flex; flex-wrap: wrap; gap: 9px; }

.chip { position: relative; cursor: pointer; }

.chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 15px;
  border: 1.5px solid var(--card-line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  transition: border-color .15s, background .15s, color .15s;
}

.chip strong { font-size: 14.5px; font-weight: 600; }
.chip em { font-style: normal; font-size: 12px; color: var(--text-dim); }

.chip input:checked + span {
  border-color: var(--highlight-soft);
  background: var(--highlight);
  color: #ffffff;
}

.chip input:checked + span em { color: #cfe8f8; }

.chip input:focus-visible + span {
  outline: 2px solid var(--highlight-soft);
  outline-offset: 2px;
}

.chip-sm span { padding: 9px 0; min-width: 52px; text-align: center; align-items: center; }
.chips-day { gap: 7px; }

/* ----------------------------------------------------------------- button */

.btn {
  display: block;
  width: 100%;
  padding: 17px 22px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  /* Dark text on amber. White on this yellow fails contrast badly. */
  color: #14263d;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, filter .15s, box-shadow .15s;
  box-shadow: 0 8px 20px rgba(217, 119, 6, .30);
}

.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; }

.btn-ghost {
  background: transparent;
  border: 2px solid var(--highlight);
  color: var(--highlight);
  box-shadow: none;
}

.btn-ghost:hover { background: rgba(2, 132, 199, .08); filter: none; }

.privacy {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* --------------------------------------------------------------- sections */

.section-title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.bullets { margin: 46px 0 0; }

.bullets ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.bullets li {
  position: relative;
  padding: 15px 16px 15px 48px;
  background: var(--card);
  border: 1px solid var(--card-line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 15.5px;
  color: var(--text-soft);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 13px;
  height: 8px;
  border-left: 3px solid var(--highlight-soft);
  border-bottom: 3px solid var(--highlight-soft);
  transform: rotate(-45deg);
}

.proof { margin: 46px 0 0; }
.proof-grid { display: grid; gap: 14px; }

.quote {
  margin: 0;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--card-line-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.quote blockquote {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--text);
  font-style: italic;
}

.quote figcaption { font-size: 14px; color: var(--text-dim); }
.quote figcaption strong { color: var(--text); display: block; font-style: normal; }

.prefs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.prefs li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: space-between;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--card-line-soft);
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.prefs span { color: var(--text-dim); }
.prefs strong { color: var(--text); font-weight: 600; text-align: right; }

.next {
  margin: 40px 0 0;
  text-align: center;
  color: var(--text-soft);
}

.closing { margin: 40px 0 0; }

/* ----------------------------------------------------------------- footer */

.foot {
  margin: 56px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--card-line);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
}

.foot p { margin: 0 0 7px; }
.foot-name { color: var(--text); font-weight: 700; font-size: 15px; }
.foot-tag { font-style: italic; }
.disclaimer { max-width: 560px; margin: 14px auto 0; font-size: 12.5px; line-height: 1.55; }
.copy { margin-top: 14px; font-size: 12.5px; }

/* ------------------------------------------------------- inline form errors */

.inline-error {
  margin: 7px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--danger);
}

input[aria-invalid="true"] { border-color: var(--danger); }

/* ------------------------------------------------------------ wide screens */

@media (min-width: 720px) {
  .card { padding: 34px 32px; }
  .wrap { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   The self assessment
   ========================================================================== */

.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;
}

.assess { margin: 0 0 40px; }

.assess-intro {
  margin: 0 auto 26px;
  max-width: 600px;
  text-align: center;
  font-size: 15.5px;
  color: var(--text-soft);
}

.statements {
  list-style: none;
  counter-reset: statement;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.statement {
  counter-increment: statement;
  position: relative;
  padding: 20px 20px 18px 56px;
  background: var(--card);
  border: 1px solid var(--card-line-soft);
  border-left: 4px solid var(--card-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: border-color .18s;
}

.statement::before {
  content: counter(statement);
  position: absolute;
  left: 18px;
  top: 21px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.statement.is-answered { border-left-color: var(--highlight-soft); }

.statement.is-answered::before {
  background: var(--highlight);
  color: #fff;
}

.statement-text {
  margin: 0 0 16px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.scale {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.scale-end {
  font-size: 12.5px;
  color: var(--text-dim);
  flex: 0 0 auto;
}

.scale-dots {
  display: flex;
  gap: 8px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 200px;
}

.dot { position: relative; cursor: pointer; }

.dot input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.dot span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--card-line);
  border-radius: 50%;
  background: var(--card);
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}

.dot input:checked + span {
  background: var(--highlight);
  border-color: var(--highlight);
  color: #fff;
  transform: scale(1.06);
}

.dot input:focus-visible + span {
  outline: 3px solid var(--highlight-soft);
  outline-offset: 2px;
}

.assess-progress {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}

/* ------------------------------------------------------------ the result */

.result {
  margin: 26px 0 0;
  padding: 28px 24px;
  background: var(--card);
  border: 2px solid var(--highlight-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  text-align: center;
}

.result[hidden] { display: none; }

.result-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--highlight);
}

.result-name {
  margin: 0 0 14px;
  font-size: clamp(24px, 4.5vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}

.result-intro {
  margin: 0 auto 16px;
  max-width: 540px;
  font-size: 14.5px;
  color: var(--text-dim);
}

.result-body {
  margin: 0 auto 20px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
  text-align: left;
}

.result-cta {
  margin: 0 auto 18px;
  max-width: 540px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.btn-result { max-width: 420px; margin: 0 auto; }

/* --------------------------------------------------- who it is not for */

.section-title-sub { margin-top: 34px; }

.bullets-not li { color: var(--text-dim); }

.bullets-not li::before {
  /* A cross rather than a tick, drawn from the same two borders. */
  border-left-color: var(--text-dim);
  border-bottom-color: var(--text-dim);
  width: 12px;
  height: 12px;
  top: 21px;
  transform: rotate(-45deg) scale(.8);
  border-left-width: 0;
  border-bottom-width: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------- what happens next */

.steps-section { margin: 46px 0 0; }

.steps-intro {
  margin: 0 0 20px;
  text-align: center;
  font-size: 15px;
  color: var(--text-soft);
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--card-line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 15.5px;
  color: var(--text-soft);
}

.step-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #14263d;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps-note {
  margin: 20px 0 0;
  padding: 18px 20px;
  background: #fff8e8;
  border: 1px solid #f5dda6;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

@media (max-width: 520px) {
  .statement { padding: 18px 16px 16px 50px; }
  .dot span { width: 40px; height: 40px; }
  .scale-dots { gap: 6px; }
  .scale-end { flex: 1 1 100%; text-align: center; }
}

/* --------------------------------------- their own scores, thank-you page */

.ty-scores { display: grid; gap: 9px; }

.ty-score {
  display: grid;
  grid-template-columns: minmax(110px, 1.3fr) 2fr auto;
  gap: 12px;
  align-items: center;
  font-size: 14.5px;
}

.ty-score-name { color: var(--text-soft); }

.ty-score-name em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--highlight);
}

.ty-score-bar {
  height: 10px;
  background: var(--bg-tint);
  border-radius: 5px;
  overflow: hidden;
}

.ty-score-bar span {
  display: block;
  height: 100%;
  background: #a9c4f7;
  border-radius: 5px;
}

.ty-score-num {
  font-weight: 700;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.ty-score-num small { font-weight: 500; color: var(--text-dim); }

.ty-score.is-edge .ty-score-name { color: var(--text); font-weight: 700; }
.ty-score.is-edge .ty-score-bar span { background: var(--highlight); }
.ty-score.is-edge .ty-score-num { color: var(--highlight); }

@media (max-width: 480px) {
  .ty-score { grid-template-columns: 1fr auto; }
  .ty-score-bar { grid-column: 1 / -1; order: 3; }
}

/* ------------------------------------------------------------ the free hour */

.offer {
  margin: 0 0 28px;
  padding: 30px 26px;
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.offer-title {
  margin: 0 0 14px;
  font-size: clamp(21px, 3.6vw, 26px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  text-align: center;
}

.offer-body {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
}

.offer-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
  counter-reset: offeritem;
}

.offer-list li {
  counter-increment: offeritem;
  position: relative;
  padding: 12px 14px 12px 46px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-soft);
}

.offer-list li::before {
  content: counter(offeritem);
  position: absolute;
  left: 13px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #14263d;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-asked {
  margin: 0;
  padding: 16px 18px;
  background: #fff8e8;
  border: 1px solid #f5dda6;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
}

.offer-alt {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
}

.offer-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
  text-align: center;
}

.offer-why {
  margin: 0 0 20px;
  padding: 15px 17px;
  background: var(--bg);
  border-left: 4px solid var(--highlight-soft);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}
