/* Top Tick, v1 (renamed v4.3). Hand-written CSS, no framework.
   Mobile first. Breakpoints: 720px (tablet), 1040px (desktop). */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --navy: #12224a;      /* text, buttons, dark blocks */
  --navy-2: #43506d;    /* secondary text, 7.6:1 on --bg */
  --bg: #f8f8f4;        /* off-white, cool side, not cream */
  --paper: #ffffff;
  /* Accent (yellow, confirmed by Michael). Fills and strokes only:
     accent is never used as text colour, and text on an accent fill is always navy. */
  --accent: #ffc629;        /* yellow. Navy on it: 9.9:1 */
  --accent-soft: #fff1c2;
  --accent-ink: var(--navy);
  --rule: #d6d9e0;
  --cross: #b4232f;     /* only used for the cross mark in the report, with text beside it */

  --display: "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 36rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--text);
  font-size: 1.0625rem;           /* 17px */
  line-height: 1.6;
}
@media (min-width: 720px) { body { font-size: 1.125rem; } }

img, svg { display: block; max-width: 100%; }

a { color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 3px; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 0.35em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-2);
  margin: 0 0 1rem;
}

.ph {   /* placeholders Michael has to fill. Deliberately loud. */
  background: var(--accent-soft);
  outline: 1px dashed #8a6d00;
  padding: 0 0.25em;
  font-weight: 700;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }

.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark .t { position: relative; display: inline-block; }
.wordmark .tick {
  position: absolute;
  width: 0.62em; height: 0.62em;
  right: -0.3em; top: -0.26em;
}
.wordmark .sub { font-weight: 700; font-size: 0.62em; letter-spacing: 0; color: var(--navy-2); }

.nav { display: none; }
.nav a { text-decoration: none; font-weight: 700; padding: 0.75rem 0.25rem; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
@media (min-width: 900px) { .nav { display: flex; gap: 1.75rem; } }

.header-call { font-weight: 800; text-decoration: none; padding: 0.7rem 0; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 900px) { .header-call { display: none; } }


/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.0625rem;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { text-decoration: none; box-shadow: 4px 4px 0 var(--navy); transform: translate(-2px,-2px); }
.btn-plain { background: transparent; color: var(--navy); }
.btn-plain:hover { background: var(--accent-soft); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 3rem 0 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; }
.hero h1 { font-size: clamp(2.6rem, 11vw, 5.6rem); margin-bottom: 0.35em; }
.hero h1 .hl { box-shadow: inset 0 -0.12em 0 var(--bg), inset 0 -0.42em 0 var(--accent); padding: 0 0.04em; }
.hero .lede { font-size: 1.2rem; max-width: 33rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1rem; }
.hero .small { font-size: 0.95rem; color: var(--navy-2); max-width: 30rem; }

@media (min-width: 1040px) {
  .hero { padding: 5rem 0 6rem; }
  .hero-grid { grid-template-columns: 7fr 4fr; align-items: end; gap: 4rem; }
}

/* ---------- sections ---------- */
section { padding: 4rem 0; }
@media (min-width: 1040px) { section { padding: 6rem 0; } }
.rule-top { border-top: 1px solid var(--rule); }

/* problem: big statement left, body offset right */
.problem-grid { display: grid; gap: 1.5rem; }
.problem p { max-width: var(--measure); }
.problem .kicker { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.35; }
@media (min-width: 1040px) {
  .problem-grid { grid-template-columns: 5fr 1fr 6fr; }
  .problem-grid > :last-child { grid-column: 3; padding-top: 0.6rem; }
}
.aside {
  border-left: 4px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 2rem 0 0;
  font-size: 0.98rem;
  color: var(--navy-2);
  max-width: 32rem;
}
.aside strong { color: var(--navy); }

/* jobs list: sticky intro left, ruled list right */
.jobs-grid { display: grid; gap: 2rem; }
@media (min-width: 1040px) {
  .jobs-grid { grid-template-columns: 4fr 7fr; gap: 5rem; }
  .jobs-intro { position: sticky; top: 6rem; align-self: start; }
}
.jobs { list-style: none; margin: 0; padding: 0; counter-reset: job; }
.jobs li { border-top: 1px solid var(--rule); padding: 1.35rem 0 1.25rem; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.25rem 0.75rem; }
.jobs li:last-child { border-bottom: 1px solid var(--rule); }
.jobs li::before {
  counter-increment: job;
  content: counter(job, decimal-leading-zero);
  font-family: var(--display); font-weight: 800; font-size: 0.95rem; color: var(--navy-2);
  padding-top: 0.2rem;
}
.jobs li > * { grid-column: 2; }
.jobs h3 { grid-row: 1; }
.jobs p { margin: 0; max-width: 38rem; }
.src { font-size: 0.875rem; color: var(--navy-2); margin-top: 0.4rem !important; }
.src a { color: var(--navy-2); }

/* prices: one big card, one smaller offset card */
.prices { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.price-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 1040px) { .price-grid { grid-template-columns: 7fr 5fr; align-items: start; gap: 3rem; } .price-grid .terms { margin-top: 0; } }
.plan { border: 2px solid var(--navy); border-radius: var(--radius); padding: 1.75rem; background: var(--bg); }
.plan.main { box-shadow: 8px 8px 0 var(--navy); }
.plan h3 { font-size: 1.35rem; }
.amount { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1; margin: 0.6rem 0 0.25rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.amount .per { font-size: 0.4em; font-weight: 800; letter-spacing: 0; }
.setup { margin: 0 0 1.1rem; }
.allup { font-size: 0.95rem; background: var(--accent-soft); display: inline-block; padding: 0.2rem 0.5rem; border-radius: 3px; margin-bottom: 1.25rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0.4rem 0 0.4rem 2rem; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem; width: 1.25rem; height: 1.25rem;
  background: url("img/tick-navy.svg") no-repeat center / contain;
}
.fine { font-size: 0.95rem; color: var(--navy-2); }
.terms { margin-top: 2.25rem; max-width: 44rem; }
.note-michael { font-size: 0.85rem; margin-top: 1rem; }

/* the check: points list + form */
.check-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1040px) {
  .check-grid { grid-template-columns: 5fr 6fr; grid-template-areas: "intro form" "points form"; grid-template-rows: auto 1fr; gap: 0 4.5rem; }
  .check-intro { grid-area: intro; } .check-points { grid-area: points; } .check-form-col { grid-area: form; }
}
.points { margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: pt; }
.points li { counter-increment: pt; display: grid; grid-template-columns: 2rem 1fr; gap: 0.5rem; padding: 0.55rem 0; border-top: 1px dashed var(--rule); line-height: 1.45; }
.points li::before { content: counter(pt); font-family: var(--display); font-weight: 900; color: var(--navy); }

form.check-form { background: var(--paper); border: 2px solid var(--navy); border-radius: var(--radius); padding: 1.5rem; }
@media (min-width: 720px) { form.check-form { padding: 2rem; } }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 720px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 800; margin-bottom: 0.3rem; font-size: 1rem; }
.field .opt { font-weight: 400; color: var(--navy-2); }
.field input {
  width: 100%; min-height: 48px; padding: 0.6rem 0.75rem;
  font: inherit; font-size: max(1rem, 16px); color: var(--navy);
  border: 1.5px solid #8b93a7; border-radius: 4px; background: #fff;
}
.field input:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--navy); }
.field .hint { font-size: 0.875rem; color: var(--navy-2); margin: 0.3rem 0 0; }
fieldset { border: 0; padding: 0; margin: 0.5rem 0 1.25rem; }
legend { font-weight: 800; margin-bottom: 0.4rem; padding: 0; }
.optin { display: grid; grid-template-columns: 28px 1fr; gap: 0.6rem; align-items: start; padding: 0.45rem 0; min-height: 44px; }
.optin input { width: 24px; height: 24px; margin: 0.15rem 0 0; accent-color: var(--navy); }
.optin label { font-size: 0.98rem; line-height: 1.45; }
.form-foot { font-size: 0.875rem; color: var(--navy-2); margin: 1rem 0 0; }

/* sample report: a sheet of paper */
figure { margin: 0; }
.sheet {
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 6px 6px 0 var(--accent);
  padding: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
@media (min-width: 720px) { .sheet { padding: 2.25rem 2.5rem; } }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; border-bottom: 3px solid var(--navy); padding-bottom: 0.75rem; margin-bottom: 1.25rem; }
.sheet-head .t { font-family: var(--display); font-weight: 900; font-size: 1.4rem; }
.sheet-head .m { color: var(--navy-2); font-size: 0.9rem; }
.score { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 1rem; }
.score b { font-family: var(--display); font-size: 3rem; line-height: 1; font-weight: 900; }
.sheet h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy-2); margin: 1.25rem 0 0.5rem; }
.tc { list-style: none; margin: 0; padding: 0; columns: 1; }
@media (min-width: 720px) { .tc { columns: 2; column-gap: 2rem; } }
.tc li { break-inside: avoid; display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.4rem; padding: 0.25rem 0; }
.tc svg { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; }
.nums { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.nums th, .nums td { text-align: left; padding: 0.4rem 0.5rem 0.4rem 0; border-bottom: 1px solid var(--rule); }
.nums th { font-weight: 700; color: var(--navy-2); font-size: 0.85rem; }
.nums td:not(:first-child), .nums th:not(:first-child) { text-align: right; }
.needs { background: var(--accent-soft); padding: 0.75rem 1rem; margin-top: 1.25rem; border-left: 4px solid var(--accent); }
figcaption { font-size: 0.9rem; color: var(--navy-2); margin-top: 0.9rem; font-style: italic; }

/* FAQ */
.faq-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1040px) { .faq-grid { grid-template-columns: 4fr 7fr; gap: 5rem; } }

/* about */
.about-grid { display: grid; gap: 2rem; }
.about-grid > div { max-width: var(--measure); }

/* contact */
.contact { background: var(--navy); color: #fff; }
.contact a { color: #fff; }
.contact a:hover { text-decoration-color: var(--accent); }
.contact .label { color: #c9d0e0; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 1040px) { .contact-grid { grid-template-columns: 6fr 5fr; gap: 4rem; align-items: end; } }
.contact dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; font-size: 1.1rem; }
.contact dt { font-weight: 800; color: #c9d0e0; }
.contact dd { margin: 0; }
.contact .ph { color: var(--navy); }
.contact .btn-primary { border-color: var(--accent); color: var(--accent-ink); }
.contact .btn-primary:hover { box-shadow: 4px 4px 0 #fff; }

/* footer */
.site-footer { padding: 2.5rem 0 3rem; font-size: 0.9rem; color: var(--navy-2); }
.site-footer .wrap { display: grid; gap: 0.75rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--navy-2); }

/* simple inner pages */
.page { padding: 3rem 0 5rem; }
.page h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
.page .prose { max-width: 42rem; }
.page .prose h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.page .prose ul { padding-left: 1.2rem; }
.page .prose li { margin-bottom: 0.4rem; }

@media print {
  .site-header, .contact, .hero .actions { display: none; }
  body { background: #fff; }
}

/* ---------- v1 additions after Barry R1 ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

.wordmark .tick path { fill: none; stroke: var(--accent); stroke-width: 5.6; stroke-linecap: round; stroke-linejoin: round; }
.tc path { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.tc path.ok { stroke: var(--navy); }
.tc path.no { stroke: var(--cross); }

.hero .actions { align-items: center; gap: 0.75rem 1.5rem; }
.phone-line { margin: 0; font-weight: 700; }
.phone-line a { font-weight: 800; display: inline-block; padding: 0.6rem 0; margin: -0.6rem 0; }
.hero-report { max-width: 34rem; }
.hero-report .sheet { padding: 1.25rem 1.25rem 1.1rem; font-size: 0.9rem; }
@media (min-width: 720px) { .hero-report .sheet { padding: 1.75rem 2rem 1.5rem; } }
.hero-report .tc { columns: 1; }
.sheet-h { font-family: var(--display); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy-2); margin: 1rem 0 0.35rem; line-height: 1.3; }
.score span { color: var(--navy-2); }
.nums td { font-weight: 800; }
@media (min-width: 1040px) {
  .hero-grid { grid-template-columns: 6fr 5fr; align-items: start; }
  .hero-copy { padding-top: 2rem; }
  .hero-report { margin-top: 0.5rem; }
}

.after { margin-top: 2rem; padding: 1.25rem 0 0; border-top: 3px solid var(--navy); }
.after h3 { font-size: 1.15rem; }
.after ol { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.after li { margin-bottom: 0.55rem; padding-left: 0.25rem; }
.call-line { font-size: 0.98rem; margin: 0.75rem 0 0.5rem; }
.optin .opt { color: var(--navy-2); }
.optin { cursor: pointer; }

.faq-list p { max-width: 40rem; }

.free-note { font-size: 1.15rem; border-left: 4px solid var(--accent); padding-left: 1rem; }
.bio-draft { color: var(--navy-2); font-style: italic; border-left: 3px dashed #8b93a7; padding-left: 1rem; max-width: 36rem; }
.sig { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.about { padding-bottom: 5rem; }

/* sticky call-to-action on phones */
.mobile-bar {
  position: sticky; bottom: 0; z-index: 6;  /* last element in <body>, so it pins to the bottom while scrolling */
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--rule);
}
.mobile-bar .btn { min-height: 48px; padding: 0.6rem 0.75rem; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* inner pages */
.inner .site-header .header-call { display: inline-flex; }
@media (min-width: 900px) { .inner .site-header .header-call { display: none; } }
.inner { padding-bottom: 0; }
.page .big { font-size: 1.3rem; line-height: 1.5; }
.page .btn { margin-top: 0.5rem; }
.ph-block .ph { white-space: normal; display: inline; }
.page { min-height: 60vh; }
@media (min-width: 1040px) { .page { padding: 5rem 0 7rem; } }

/* ---------- v2 (Barry R2) ---------- */
/* S4: 44px+ tap targets */
.wordmark { padding-block: 4px; min-height: 44px; }
.contact a.pad { display: inline-block; padding: 0.6rem 0; margin: -0.6rem 0; }
.contact dl { row-gap: 1rem; }
/* M3: points list sits under the form on mobile */
.points-h { font-size: 1.15rem; margin-top: 0; }
.check-points { margin-top: 0.5rem; }
@media (min-width: 1040px) { .check-points { margin-top: 1.5rem; } }
/* M7: FAQ as <details> */
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  min-height: 44px; padding: 0.75rem 2rem 0.75rem 0; cursor: pointer; list-style: none; position: relative;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.35; display: flex; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 900; color: var(--navy); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.faq-list details p { margin: 0 0 1rem; }
.faq-list details p + p { margin-top: -0.25rem; }
.optin + .optin { margin-top: 0.6rem; }
.optin:last-of-type { margin-bottom: 1.25rem; }
.after p { margin: 0.5rem 0 0; }


/* v3 */
.based { font-weight: 700; font-size: 1.1rem; }
.sig-biz { font-weight: 700; font-size: 1rem; color: var(--navy-2); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* R3: sample report collapses on phones, open on wide screens */
.sheet-more { margin-top: 1rem; border-top: 1px solid var(--rule); }
.sheet-more > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: var(--navy); }
.sheet-more > summary::-webkit-details-marker { display: none; }
.sheet-more > summary::after { content: "+"; font-size: 1.4rem; font-weight: 900; }
.sheet-more[open] > summary::after { content: "\2212"; }
.sheet-more > summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
@media (min-width: 1040px) { .sheet-more { border-top: 0; margin-top: 0; } .sheet-more[open] > summary { display: none; } }

/* R3 S-7: whole label text is a 44px tap target */
.optin label { padding-block: 0.6rem; margin-block: -0.6rem; }

/* v4.2 (Brett): yellow "Free check" button in the desktop header, problem-section closing line */
.nav { align-items: center; }
.nav a.nav-cta { min-height: 44px; padding: 0.45rem 1.1rem; font-size: 1rem; }
.nav a.nav-cta:hover { text-decoration: none; }
.problem .closer { font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.4; margin-top: 1.5rem; }
.form-row.two { align-items: end; }
/* v4.2: the real email address is long; stack the contact list on small phones so nothing scrolls sideways */
.contact-grid > * { min-width: 0; }
@media (max-width: 479px) { .contact dl { grid-template-columns: 1fr; row-gap: 0.2rem; } .contact dd + dt { margin-top: 0.8rem; } }
.prose a[href^="mailto:"] { overflow-wrap: anywhere; }
/* v4.3: wordmark is "Top Tick" with the descriptor stacked underneath */
.wordmark { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; line-height: 1.05; }
.wordmark .sub { font-size: 0.75rem; font-weight: 700; letter-spacing: 0; line-height: 1.2; margin-top: 0.15rem; }
@media (max-width: 379px) { .wordmark .sub { font-size: 0.7rem; } .header-call { font-size: 0.95rem; } }
.header-call { gap: 0.3em; }
@media (max-width: 349px) { .site-header .wrap { gap: 0.5rem; } .header-call { font-size: 0.88rem; } }
