/* Ferthos — site styles. Breakpoint: 720px (mobile ≤720, desktop ≥721). */

@font-face {
  font-family: "Funnel Display";
  src: url("fonts/funnel-display.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Funnel Sans";
  src: url("fonts/funnel-sans.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --ink: #1A1F1C;
  --text: #3D4540;
  --muted: #59615C;
  --green: #1F4D3A;
  --green-dark: #163829;
  --band: #ECF1ED;
  --line: #D7DDD9;
  --line-strong: #C9D3CC;
  --line-soft: #E4E9E5;
  --white: #FFFFFF;
  --arrow: #8A938D;

  --font-display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Funnel Sans", "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --header-h: 76px;
  --gutter: clamp(20px, 5vw, 56px);
}

/* ---------- Base ---------- */

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

/* Nothing may override the hidden attribute (mobile menu, tab panels). */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }
a:visited { color: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

section[id] { scroll-margin-top: var(--header-h); }
#main { outline: none; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ---------- Layout ---------- */

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-body {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
  padding-block: clamp(56px, 6vw, 88px);
}
.section-body--wide-gap { gap: clamp(32px, 4vw, 48px); }
/* Pricing: tighter so the whole offer and its CTA fit on one laptop screen. */
.section-body--compact {
  gap: 24px;
  padding-block: clamp(40px, 4vw, 56px);
}

.band { background: var(--band); }

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- Type ---------- */

.h1, .h2, .h3, .wordmark, .price {
  font-family: var(--font-display);
  font-weight: 700;
}

.h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.h2 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
.h2--xl {
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1;
}

.h3 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.h3--sm { font-size: 24px; letter-spacing: 0; }

.accent { color: var(--green); }

.lead {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--text);
  max-width: 40em;
  text-wrap: pretty;
}

.eyebrow {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

.small {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.text-link {
  color: var(--green);
  font-weight: 600;
  text-underline-offset: 2px;
}
.text-link:visited { color: var(--green); }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: clamp(10px, 3vw, 18px);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  font-size: clamp(15px, 1.3vw, 16px);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s;
}
.btn:visited { color: var(--white); }
.btn:hover { background: var(--green-dark); }

.btn--lg {
  min-height: 56px;
  padding-inline: 26px;
  font-size: 18px;
  white-space: normal;
}

/* ---------- Icons ---------- */

.icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--green);
}
.icon--muted { color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 24px);
  padding-block: 16px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Logo mark placeholder: swap for an <img> or inline SVG when the logo exists. */
.brand-mark {
  display: block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.wordmark {
  font-size: clamp(19px, 5vw, 23px);
  letter-spacing: -0.015em;
}

.nav-main {
  display: flex;
  flex: 1 1 0;
  justify-content: flex-end;
  gap: 28px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}
.nav-main a {
  text-decoration: none;
  white-space: nowrap;
}
.nav-main a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.menu-button {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}
.menu-button:hover { background: var(--band); }
.menu-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 4px var(--gutter) 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line-strong);
}
.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--green); }

@media (max-width: 720px) {
  .nav-main { display: none; }
  .menu-button { display: flex; }
}
@media (min-width: 721px) {
  .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
  padding-block: clamp(40px, 5vw, 72px) clamp(56px, 6vw, 88px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero-copy .lead {
  max-width: 32em;
  line-height: 1.5;
  font-size: clamp(18px, 1.5vw, 20px);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.byline {
  display: flex;
  align-self: flex-start;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}
.byline:hover strong { color: var(--green); }
.byline-photo {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--line);
  object-fit: cover;
}
.byline-role { color: var(--muted); }

.hero-video { display: none; }

/* Video flag: set data-video="on" on #top once the video exists. */
[data-video="on"] .hero {
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
}
@media (min-width: 961px) {
  [data-video="on"] .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
[data-video="on"] .hero-video {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
[data-video="on"] .byline { display: none; }

.video-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--band);
}
.video-frame img,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.play-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  cursor: pointer;
  transition: background-color 0.15s;
}
.play-button:hover { background: var(--green-dark); }
.play-button svg { width: 26px; height: 26px; fill: var(--white); }

/* ---------- Who it's for ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  align-items: stretch;
  gap: 20px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.card--outline {
  border-color: var(--line-strong);
  background: none;
}

.card-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}
.card--outline .card-title { color: var(--muted); }

/* Lists with a tick or cross icon */
.ticks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 18px;
  line-height: 1.45;
}

.ticks--ruled { gap: 0; }
.ticks--ruled li {
  padding-block: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.ticks--ruled li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.card--outline .ticks li {
  border-color: var(--line-strong);
  color: var(--text);
}

.ticks--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 12px 40px;
}
.ticks--grid li { font-size: 16px; color: var(--text); }
.ticks--grid .icon { margin-top: 2px; }
.ticks--grid strong { font-weight: 700; color: var(--ink); }

/* ---------- How it works ---------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  align-items: start;
  gap: clamp(20px, 6vw, 80px);
}

.how-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding-inline: clamp(9px, 1.4vw, 16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.tab:hover { border-color: var(--green); }
.tab[aria-selected="true"] {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.flow {
  display: flex;
  flex-direction: column;
}

.flow-in {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(14px, 1.8vw, 20px) clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.flow-source { font-size: 14px; color: var(--muted); }
.flow-source strong { color: var(--green); }
.flow-title { font-size: 17px; font-weight: 700; }
.flow-body { font-size: 15px; line-height: 1.5; color: var(--text); }

.flow-agent {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(14px, 1.8vw, 20px) clamp(16px, 2vw, 22px);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
}
.flow-agent-label { font-size: 14px; font-weight: 700; color: #D5E3DA; }
.flow-agent p:last-child { font-size: 15px; line-height: 1.5; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 4px 8px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  font-size: clamp(13px, 1.1vw, 14px);
}

/* Connector arrows, drawn in CSS */
.flow-arrow,
.flow-split {
  position: relative;
}
.flow-arrow { height: 22px; }
.flow-arrow::before,
.flow-split span {
  content: "";
  position: absolute;
  width: 2px;
  margin-left: -1px;
  background: var(--arrow);
}
.flow-arrow::before { left: 50%; top: 0; height: 15px; }
.flow-arrow::after,
.flow-split span::after {
  content: "";
  position: absolute;
  border: 5px solid transparent;
  border-top: 7px solid var(--arrow);
  border-bottom: 0;
}
.flow-arrow::after { left: calc(50% - 5px); top: 14px; }

.flow-split { height: 26px; }
.flow-split::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 12px;
  margin-left: -1px;
  background: var(--arrow);
}
.flow-split::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: 11px;
  height: 2px;
  background: var(--arrow);
}
.flow-split span { top: 12px; height: 7px; }
.flow-split span:first-child { left: 25%; }
.flow-split span:last-child { left: 75%; }
.flow-split span::after { left: -4px; top: 6px; }

.outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.outcome {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(12px, 1.5vw, 16px) clamp(14px, 1.6vw, 18px);
  border-radius: var(--radius);
}
.outcome--sure { background: var(--band); }
.outcome--unsure {
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--green);
}
.outcome-title { font-size: 16px; font-weight: 700; }
.outcome p:last-child {
  font-size: clamp(13px, 1.1vw, 14px);
  line-height: 1.4;
  color: var(--text);
}

.flow-caption { margin-top: 14px; }

/* Wide screens: intro beside the tabs, and the flow runs left to right. */
@media (min-width: 961px) {
  .how-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .how-intro {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
  }
  .how-intro .lead { flex: 1 1 auto; }
  .tabs { flex: 0 0 auto; margin-top: 0; }

  .flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.25fr) 44px minmax(0, 1fr);
    align-items: center;
  }
  .flow-in, .flow-agent { align-self: stretch; justify-content: center; }

  .flow-arrow { height: 12px; }
  .flow-arrow::before {
    left: 6px; right: 13px; top: 5px;
    width: auto; height: 2px; margin-left: 0;
  }
  .flow-arrow::after {
    left: auto; right: 6px; top: 1px;
    border: 5px solid transparent;
    border-left: 7px solid var(--arrow);
    border-right: 0;
  }

  .flow-split { align-self: stretch; height: auto; }
  .flow-split::before {
    left: 0; top: 50%;
    width: 50%; height: 2px; margin: -1px 0 0;
  }
  .flow-split::after {
    left: 50%; right: auto; top: 25%; bottom: 25%;
    width: 2px; height: auto; margin-left: -1px;
  }
  .flow-split span,
  .flow-split span:first-child,
  .flow-split span:last-child {
    left: 50%; width: calc(50% - 13px); height: 2px; margin: -1px 0 0;
  }
  .flow-split span:first-child { top: 25%; }
  .flow-split span:last-child { top: 75%; }
  .flow-split span::after {
    left: 100%; top: -4px;
    border: 5px solid transparent;
    border-left: 7px solid var(--arrow);
    border-right: 0;
  }

  .outcomes {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
  }
}

/* ---------- Pricing ---------- */

.ladder {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
}
.ladder ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-right: 0; }
.step--start { box-shadow: inset 0 0 0 2px var(--green); }

.step-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.step--start .step-label { color: var(--green); }
.step-name { font-size: 19px; font-weight: 600; }
.price {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.price small {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}
.step-desc { font-size: 16px; line-height: 1.45; color: var(--muted); }
.step-desc + .step-desc { margin-top: 8px; }

.guarantee {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  padding: 14px 26px;
  background: var(--green);
  color: var(--white);
}
.guarantee-title {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.guarantee p:last-child {
  flex: 1 1 360px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.included { gap: 14px; }

.section-body > .btn--lg { align-self: flex-start; }

/* ---------- About ---------- */

.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 min(6vw, 80px);
  padding-block: clamp(56px, 6vw, 88px);
}

/* Photo placeholders: replace with <img> (4:5) when the photo exists. */
.about-photo {
  flex: 0 0 auto;
  width: min(26vw, 320px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--band);
  object-fit: cover;
}
.about-photo--small {
  display: none;
  width: 76px;
}

.about-text {
  display: flex;
  flex: 1 1 360px;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.about-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.about-name {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about-text .lead { line-height: 1.55; }

@media (max-width: 720px) {
  .about-photo { display: none; }
  .about-photo--small { display: block; }
  .about-name { gap: 6px; }
}

/* ---------- FAQ ---------- */

.faq { border-bottom: 1px solid var(--line-strong); }
.faq details { border-top: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding-block: 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green); }
.faq summary .icon {
  width: 20px;
  height: 20px;
  margin: 0;
  transition: transform 0.2s;
}
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p {
  max-width: 46em;
  padding-bottom: 20px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .faq summary .icon { transition: none; }
}

/* ---------- Book ---------- */

.book-grid {
  display: grid;
  align-items: start;
  gap: clamp(32px, 4vw, 48px);
}
@media (min-width: 961px) {
  .book-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

.book-note { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.book-email { margin-top: 8px; font-size: 17px; line-height: 1.5; color: var(--text); }

/* Calendly booking embed; Calendly scrolls inside the frame once a day is picked. */
.booking {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.booking iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  padding-block: 32px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-links a { color: var(--ink); }
.footer-links a:hover { color: var(--green); }

/* ---------- Simple pages (privacy, 404) ---------- */

.prose {
  max-width: 46em;
  padding-block: clamp(48px, 7vw, 96px);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}
.prose .h1 { color: var(--ink); font-size: clamp(36px, 5vw, 56px); margin-bottom: 24px; }
.prose h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
}
.prose p, .prose ul { margin-bottom: 16px; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--green); font-weight: 600; }
.draft-note {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--band);
  font-size: 15px;
}
