/* ==========================================================================
   Architronica funnel — styles.css
   Mobile-first (390px). Black / white / warm stone palette.
   ========================================================================== */

:root {
  --ink: #111111;
  --ink-hover: #000000;
  --ink-soft: #3a3a3a;
  --muted: #6b6760;
  --paper: #ffffff;
  --stone: #f3f0ea;
  --line: #e2ddd4;
  --light-btn: #ffffff;
  --light-btn-hover: #e6e6e6;
  --star: #f2b01e;

  --font: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad-x: 24px;
  --pad-y: 60px;
  --max: 1200px;
  --measure: 640px;
  --sticky-h: 0px;
}

@media (min-width: 768px) {
  :root { --pad-x: 40px; --pad-y: 100px; }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  padding-bottom: var(--sticky-h);
}
@media (min-width: 768px) { body { font-size: 18px; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--star); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.wrap--narrow { max-width: 820px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.82); }

.section-title {
  font-size: 28px;
  font-weight: 700;
  max-width: 18ch;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .section-title { font-size: 40px; } }
.section-title--light { color: #fff; }

.lead { font-size: 18px; color: var(--ink-soft); max-width: var(--measure); }
.lead--light { color: rgba(255, 255, 255, 0.85); }

/* ---------- Buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 16px 28px;
  border: 0;
  border-radius: 4px;
  font: 700 17px/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
@media (min-width: 768px) { .btn { display: inline-flex; width: auto; } }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-hover); }
.btn--light { background: var(--light-btn); color: var(--ink); }
.btn--light:hover { background: var(--light-btn-hover); }

.stars { color: var(--star); letter-spacing: 1px; }

/* ---------- Top bar (logo + phone only, no navigation) ---------- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  color: #fff;
}
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.topbar__phone {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.topbar__phone-label { display: none; font-weight: 400; }
@media (min-width: 768px) { .topbar__phone-label { display: inline; } }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  min-height: 80vh;
  min-height: 80svh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  background: #222;
}
@media (min-width: 768px) { .hero { min-height: 92vh; } }
.hero__bg, .hero__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero__bg img { object-fit: cover; object-position: center; }
.hero__overlay {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.58);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  padding: 96px var(--pad-x) 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
@media (min-width: 768px) { .hero__title { font-size: 56px; } }
.hero__sub {
  font-size: 18px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}
.hero__friction {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.trust {
  list-style: none;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- 10. Quote form (under hero) ---------- */
.quote {
  background: var(--stone);
  display: grid;
}
@media (min-width: 1024px) {
  .quote { grid-template-columns: 1fr 1fr; }
}
.quote__media { display: none; }
@media (min-width: 1024px) {
  .quote__media { display: block; position: relative; min-height: 400px; }
  .quote__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}
.quote__panel {
  padding: var(--pad-y) var(--pad-x);
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.form-embed {
  margin-top: 28px;
  min-height: 786px; /* reserves space = no layout shift */
  background: #fff;
  border-radius: 8px;
}
.form-embed iframe { display: block; min-height: 786px; }
.quote__call { margin-top: 20px; font-size: 16px; color: var(--ink-soft); }
.quote__call a { font-weight: 700; color: var(--ink); }

/* ---------- 2. Social proof strip ---------- */
.proofstrip { background: var(--ink); color: #fff; }
.proofstrip__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 16px;
  align-items: end;
}
@media (min-width: 900px) {
  .proofstrip__inner { grid-template-columns: auto auto auto 1fr; gap: 48px; padding-top: 48px; padding-bottom: 48px; }
}
.proofstrip__num { display: block; font-size: 34px; font-weight: 800; line-height: 1; }
@media (min-width: 768px) { .proofstrip__num { font-size: 44px; } }
.proofstrip__label { display: block; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.proofstrip__quote {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 18px;
}
@media (min-width: 900px) {
  .proofstrip__quote { grid-column: auto; padding: 0 0 0 32px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.2); }
}
.proofstrip__quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 14px; color: rgba(255, 255, 255, 0.7); }

/* ---------- Generic sections ---------- */
.section { padding: var(--pad-y) 0; }
.section--stone { background: var(--stone); }

/* ---------- 3. Problem ---------- */
.pains {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  counter-reset: pain;
  display: grid;
  gap: 0;
}
@media (min-width: 768px) { .pains { grid-template-columns: 1fr 1fr; column-gap: 64px; } }
.pain {
  counter-increment: pain;
  padding: 22px 0 22px 48px;
  border-top: 1px solid var(--line);
  position: relative;
  max-width: var(--measure);
}
.pain::before {
  content: counter(pain, decimal-leading-zero);
  position: absolute; left: 0; top: 24px;
  font-weight: 800; font-size: 14px; color: var(--muted);
}
.pain__title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.pain p { color: var(--ink-soft); }

/* ---------- 4. Mechanism ---------- */
.mechanism { background: var(--ink); color: #fff; padding-top: var(--pad-y); }
.mechanism__head { padding-bottom: 40px; }
.mechanism__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .mechanism__grid {
    grid-template-columns: 1.3fr 1fr;
    grid-template-areas: "a b" "c d";
  }
  .mechanism__grid .tile:nth-child(1) { grid-area: a; }
  .mechanism__grid .tile:nth-child(2) { grid-area: b; }
  .mechanism__grid .tile:nth-child(3) { grid-area: c; }
  .mechanism__grid .tile:nth-child(4) { grid-area: d; }
}
.tile { position: relative; margin: 0; min-height: 400px; overflow: hidden; }
@media (min-width: 768px) { .tile { min-height: 520px; } }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 80px var(--pad-x) 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0) 100%);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 100%;
}
.tile__cap strong { display: block; font-size: 22px; color: #fff; margin-bottom: 4px; }
.tile__num { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.65); margin-bottom: 8px; }

/* ---------- 5. How it works ---------- */
.steps {
  list-style: none;
  margin: 36px 0 40px;
  padding: 0;
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.step { position: relative; padding-left: 64px; }
@media (min-width: 900px) {
  .step { padding: 64px 32px 0 0; border-top: 2px solid var(--ink); }
}
.step__num {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: 18px;
  border-radius: 50%;
}
@media (min-width: 900px) { .step__num { top: -23px; } }
.step__title { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--ink-soft); max-width: 34ch; }

/* ---------- 6. What you get (split) ---------- */
.split { display: grid; background: var(--ink); color: #fff; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split__media { position: relative; min-height: 400px; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body { padding: var(--pad-y) var(--pad-x); max-width: 640px; }
@media (min-width: 900px) { .split__body { padding-left: 64px; align-self: center; } }
.ticks { list-style: none; margin: 24px 0 36px; padding: 0; }
.ticks li {
  position: relative;
  padding: 14px 0 14px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}
.ticks li::before {
  content: "";
  position: absolute; left: 4px; top: 22px;
  width: 14px; height: 8px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- 7. Proof gallery ---------- */
.proof { padding-top: var(--pad-y); background: var(--paper); }
.proof__head { padding-bottom: 36px; }
.gallery { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item { position: relative; margin: 0; min-height: 420px; overflow: hidden; background: #ddd; }
@media (min-width: 1024px) { .gallery__item { min-height: 520px; } }
.gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 20px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  vertical-align: 2px;
}
.gallery__item--quote::after {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62);
}
.gallery__quote {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  margin: 0;
  padding: 28px 24px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}
.gallery__quote cite { display: block; margin-top: 12px; font-size: 14px; font-weight: 400; font-style: normal; color: rgba(255, 255, 255, 0.8); }

/* ---------- 9. FAQ ---------- */
.faq { margin-top: 28px; border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__q button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: 0;
  font: 700 18px/1.35 var(--font);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq__q button::after {
  content: "+";
  flex: none;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}
.faq__q button[aria-expanded="true"]::after { content: "\2212"; }
.faq__a { padding: 0 0 22px; max-width: var(--measure); color: var(--ink-soft); }

/* ---------- 11. Final CTA ---------- */
.final {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: #222;
}
.final__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final__overlay { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.66); }
.final__content {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 720px;
  padding: var(--pad-y) var(--pad-x);
  display: flex; flex-direction: column; align-items: center;
}
.final__content .section-title { max-width: 20ch; margin-bottom: 28px; }
.final__call { margin-top: 18px; font-size: 16px; }
.final__call a { font-weight: 700; }

/* ---------- 12. Footer ---------- */
.footer { background: #0a0a0a; color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 48px var(--pad-x); display: grid; gap: 10px; }
.footer__logo { color: #fff; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.footer__links { display: flex; gap: 24px; margin-top: 8px; }
.footer__links a { color: #fff; }

/* ---------- Sticky mobile CTA ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.2s ease;
}
.sticky.is-visible { transform: translateY(0); }
.sticky__btn { flex: 1; min-height: 52px; font-size: 16px; padding: 12px 16px; }
.sticky__call {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: var(--stone);
  color: var(--ink);
}
@media (min-width: 900px) { .sticky { display: none; } }

/* ==========================================================================
   Thank-you page
   ========================================================================== */
.ty-hero {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  overflow: hidden; background: #222;
}
.ty-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ty-hero__content { position: relative; z-index: 1; max-width: 820px; padding: 110px var(--pad-x) 60px; }
.ty-hero__title { font-size: 34px; font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
@media (min-width: 768px) { .ty-hero__title { font-size: 52px; } }

.next { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.next__item { position: relative; padding: 28px 0 28px 64px; border-top: 1px solid var(--line); }
.next__item:last-child { border-bottom: 1px solid var(--line); }
.next__item .step__num { top: 26px; }
.next__item h2 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.next__item p { color: var(--ink-soft); max-width: var(--measure); }

.notice {
  margin-top: 36px;
  padding: 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
}
.help { margin-top: 20px; color: var(--ink-soft); }
.help a { font-weight: 700; color: var(--ink); }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-top { background: var(--ink); color: #fff; }
.legal-top .topbar__inner { padding-top: 22px; padding-bottom: 22px; }
.legal { padding: var(--pad-y) 0; }
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; }
.legal p, .legal li { max-width: var(--measure); color: var(--ink-soft); }
.legal ul { padding-left: 20px; }
.legal .note { margin: 20px 0; padding: 14px 16px; background: var(--stone); border-left: 3px solid var(--ink); font-size: 15px; }
