/* ==========================================================================
   Blueprint for Scale — site styles
   Brand tokens live in :root. Change a colour or font here and it updates
   everywhere.
   ========================================================================== */

@font-face { font-family: "Alliance No.1"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/alliance-no1-regular.woff2") format("woff2"); }
@font-face { font-family: "Alliance No.1"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/alliance-no1-medium.woff2") format("woff2"); }
@font-face { font-family: "Alliance No.1"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/alliance-no1-semibold.woff2") format("woff2"); }
@font-face { font-family: "Alliance No.1"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/alliance-no1-bold.woff2") format("woff2"); }
@font-face { font-family: "Alliance No.2"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/alliance-no2-medium.woff2") format("woff2"); }
@font-face { font-family: "Alliance No.2"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/alliance-no2-semibold.woff2") format("woff2"); }
@font-face { font-family: "Alliance No.2"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/alliance-no2-bold.woff2") format("woff2"); }

:root {
  /* Brand */
  --navy: #102130;
  --navy-2: #1a2d3e;
  --navy-card: #233545;
  --navy-line: rgba(255, 255, 255, 0.14);
  --orange: #eb8c1e;
  --orange-hover: #f59d36;
  --orange-ink: #a85b06;   /* orange text on white: 5:1 contrast */
  --ink: #141c24;
  --ink-soft: #3d4a57;
  --paper: #ffffff;
  --dot: #d9dde1;
  --line: #c9cfd5;

  /* Type */
  --font-body: "Alliance No.1", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Alliance No.2", var(--font-body);

  /* Layout */
  --container: 1376px;
  --gutter: clamp(20px, 4vw, 32px);
  --radius: 10px;
  --radius-lg: 16px;
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 96px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body, h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 14px 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: 0; }
.section--navy { background: var(--navy); color: #e8edf2; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}
.section--navy .display { color: #fff; }

.lead { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); color: var(--ink-soft); max-width: 40em; text-wrap: pretty; }
.section--navy .lead { color: #c9d3dc; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--orange);
  margin-bottom: 10px;
}
.section:not(.section--navy) .eyebrow { color: var(--orange-ink); }

.badge {
  display: inline-block;
  background: var(--navy); color: var(--orange);
  font-weight: 600; font-size: 0.9375rem; line-height: 1;
  padding: 7px 14px; border-radius: 6px;
  margin-bottom: 18px;
}

mark { background: var(--orange); color: var(--navy); padding: 0 3px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px;
  border-radius: 8px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--navy { background: var(--navy); color: #fff; box-shadow: 0 6px 18px -8px rgba(16, 33, 48, .6); }
.btn--navy:hover { background: #1b3247; }
.btn--orange { background: var(--orange); color: var(--navy); font-weight: 600; }
.btn--orange:hover { background: var(--orange-hover); }
.btn--ghost { color: var(--navy); border-color: var(--line); background: rgba(255,255,255,.7); }
.btn--ghost:hover { border-color: var(--navy); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 0.9375rem; border-radius: 999px; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 20px var(--gutter) 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  max-width: 1280px; margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  background: var(--navy);
  border-radius: 999px;
  padding: 10px 12px 10px 18px;
  box-shadow: 0 10px 30px -14px rgba(16, 33, 48, .55);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled .nav { box-shadow: 0 14px 40px -12px rgba(16, 33, 48, .7); }
.nav__logo { flex: none; display: block; }
.nav__logo img { width: 128px; height: auto; }
.nav__links { flex: 1; display: flex; justify-content: center; gap: 6px; }
.nav__links a:not(.btn) {
  display: block; padding: 6px 12px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 500; font-size: 0.9375rem;
  transition: background-color .2s ease, color .2s ease;
}
.nav__links a:not(.btn):hover, .nav__links a[aria-current="true"] { background: rgba(255,255,255,.1); color: var(--orange); }
.nav__links-cta { display: none; }
.nav__cta { flex: none; }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .site-header { padding-top: 14px; }
  .nav { gap: 12px; padding: 8px 8px 8px 14px; flex-wrap: wrap; border-radius: 26px; }
  .nav__logo { margin-right: auto; }
  .nav__logo img { width: 112px; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 999px;
    background: rgba(255,255,255,.08); cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .nav[data-open] .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav[data-open] .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav[data-open] .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links {
    order: 3; flex-basis: 100%;
    flex-direction: column; gap: 2px;
    display: none; padding: 6px 0 8px;
  }
  .nav[data-open] .nav__links { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 14px; font-size: 1.0625rem; border-radius: 12px; }
  .nav__links-cta .btn { width: 100%; }
}
@media (max-width: 400px) {
  .nav { gap: 8px; padding-left: 12px; }
  .nav__logo img { width: 100px; }
  .nav__cta { min-height: 38px; padding: 8px 12px; font-size: 0.875rem; }
}
@media (max-width: 339px) {
  .nav__cta { display: none; }
  .nav__links-cta { display: block; padding: 8px 6px 4px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 6vw, 72px); }
.hero__grid { display: grid; gap: clamp(32px, 5vw, 48px); align-items: center; }
.hero h1.display { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.5rem); margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media img, .results__media img, .guarantee__media img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius);
}
.hero__media { aspect-ratio: 4 / 3; }
.hero__media img { object-position: 60% 40%; box-shadow: 0 30px 60px -30px rgba(16,33,48,.45); }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Testimonial band ---------- */
.proof {
  background: var(--navy); color: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 48px);
  display: grid; gap: 24px; align-items: center;
}
.proof__intro { font-weight: 600; font-size: 1.1875rem; line-height: 1.45; letter-spacing: 0.02em; }
.proof__quote blockquote p { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.65; color: #e3e9ef; }
.proof__quote figcaption {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px;
  margin-top: 18px;
}
.proof__quote strong { display: block; font-weight: 500; font-size: 1.0625rem; }
.proof__quote small { display: block; font-size: 0.8125rem; color: #c7d0d9; letter-spacing: 0; }
.stars { display: inline-flex; gap: 6px; }
.stars svg { width: 22px; height: 22px; fill: var(--orange); }

@media (min-width: 860px) {
  .proof { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ---------- Results ---------- */
.results__grid { display: grid; gap: clamp(40px, 5vw, 48px); align-items: center; }
.results__copy .display { margin-bottom: 18px; }
.stats { margin-top: 36px; border-top: 1px solid var(--line); }
.stat {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 20px; align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.stat__value {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.25rem, 1.8rem + 1.4vw, 2.75rem); line-height: 1; letter-spacing: -0.03em;
  color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.stat__unit { font-size: 0.6em; color: var(--orange-ink); margin-left: 1px; }
.stat__unit--pre { margin: 0 1px 0 0; }
.stat dd { color: var(--ink-soft); font-size: 0.9875rem; line-height: 1.5; }
.stat dd strong { display: block; color: var(--ink); font-weight: 600; font-size: 1.125rem; margin-bottom: 2px; }
.results__media { aspect-ratio: 4 / 3; }

@media (min-width: 960px) {
  .results__grid { grid-template-columns: 1fr 1fr; }
  .results__media { aspect-ratio: auto; height: 100%; min-height: 520px; }
}
@media (max-width: 359px) {
  .stat { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Approach / phases ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head .display { margin-bottom: 16px; }
.section-head .lead { margin-inline: auto; }

.phases { display: grid; gap: 20px; counter-reset: phase; }
.phase {
  position: relative;
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  padding: 28px clamp(22px, 3vw, 32px) 32px;
}
.phase__top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: 20px;
  border-bottom: 1px solid var(--navy-line);
}
.phase__top img { width: 32px; height: 32px; }
.phase__num {
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600;
  color: var(--orange);
}
.phase h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.4375rem); line-height: 1.25; letter-spacing: -0.015em;
  color: #fff; margin-bottom: 12px;
}
.phase p { color: #c9d3dc; font-size: 1rem; line-height: 1.7; }

@media (min-width: 760px) {
  .phases { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ---------- Guarantee ---------- */
.guarantee__grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; }
.guarantee__copy .display { margin-bottom: 18px; }
.guarantee__copy .lead { max-width: 26em; margin-bottom: 30px; }
.fine-print { margin-top: 16px; font-size: 0.875rem; color: var(--ink-soft); }
.fine-print a { color: var(--ink); text-underline-offset: 3px; }
.guarantee__media { aspect-ratio: 3 / 2; }

@media (min-width: 960px) {
  .guarantee__grid { grid-template-columns: 1.15fr 1fr; }
}

/* ---------- FAQ ---------- */
#faq { padding-top: 0; }
#faq .display { margin-bottom: clamp(32px, 4vw, 56px); }
.faq { border-top: 1px solid var(--navy); }
.faq__item {
  display: grid; gap: 10px;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--navy);
}
.faq__item h3 {
  font-weight: 600; font-size: 1.1875rem; line-height: 1.4; letter-spacing: 0.015em; color: var(--ink);
}
.faq__item p { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.7; }

@media (min-width: 860px) {
  .faq__item { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
}

/* ---------- Legal pages (privacy policy, terms) ---------- */
.legal__body { max-width: 760px; }
.legal .display { margin: 14px 0 8px; }
.legal__date { color: var(--ink-soft); font-size: 0.9375rem; margin-bottom: 36px; }
.legal h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.25;
  letter-spacing: -0.02em; margin: 44px 0 12px;
}
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 1.25em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { color: var(--orange); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #d9e1e8; padding: 64px 0 32px; text-align: center; }
.footer__label { font-weight: 500; font-size: 1.0625rem; }
.footer__email {
  display: inline-block; margin-top: 8px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.75rem, 1rem + 3.2vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.2;
  color: var(--orange); text-decoration: none; overflow-wrap: anywhere;
  transition: color .2s ease;
}
.footer__email:hover { color: var(--orange-hover); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; margin: 28px 0 32px; }
.footer__nav a, .footer__legal a { display: inline-block; padding: 10px 6px; }
.footer__nav a, .footer__legal a { text-decoration: none; transition: color .2s ease; }
.footer__nav a:hover, .footer__legal a:hover { color: var(--orange); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
  border-top: 1px solid var(--navy-line); padding-top: 28px;
  font-size: 0.9375rem; text-align: left;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 16px; }

@media (max-width: 760px) {
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal { justify-content: center; }
}

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