/* ============================================================
   RADICL PAID LANDING - Marketing surface
   Tokens copied from radicl-brand-guide/tokens/colors_and_type.css
   Surface: Marketing (#2C3538 dark + 4% grain). Pink is not used here.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;800;900&family=Inter:wght@400;500;600;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  /* Brand colors */
  --radicl-deep-teal:   #337578;
  --radicl-teal:        #50AE99;
  --radicl-dark:        #2C3538;
  --radicl-dark-2:      #141A1C;
  --radicl-cream:       #F3F3EE;
  --radicl-white:       #FFFFFF;
  --radicl-amber:       #D38542;   /* form error state only. Pink is not used here. */

  /* Gradients */
  --gradient-cta:       linear-gradient(90deg, var(--radicl-teal), var(--radicl-deep-teal));
  --gradient-cta-glow:  0 8px 30px rgba(80,174,153,0.35);

  /* Typography */
  --radicl-font-display: 'Outfit', Arial, sans-serif;
  --radicl-font-body:    'Inter', Arial, sans-serif;
  --radicl-font-mono:    'DM Sans', Arial, sans-serif;

  /* Font size scale */
  --fs-overline: 11px;
  --fs-sm:       14px;
  --fs-base:     16px;
  --fs-md:       18px;
  --fs-lg:       20px;
  --fs-2xl:      32px;
  --fs-3xl:      44px;
  --fs-4xl:      60px;
  --fs-5xl:      80px;
  --fs-ghost:    224px;

  /* Tracking */
  --tracking-tightest: -0.04em;
  --tracking-tight:    -0.02em;
  --tracking-wide:      0.08em;
  --tracking-wider:     0.2em;
  --tracking-widest:    0.3em;

  /* Spacing scale (4px base) */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* Border radius */
  --radius-card:  16px;
  --radius-pill:  9999px;

  /* Easing */
  --ease-radicl: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-strong: cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Z-index */
  --z-base:  0;
  --z-above: 10;
  --z-nav:   100;
  --z-grain: 400;
}

/* ── Base reset ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--radicl-dark);
  color: var(--radicl-cream);
  font-family: var(--radicl-font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Grain overlay (4%, page wide) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: var(--z-grain);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--radicl-teal); text-decoration: none; transition: color 200ms var(--ease-radicl); }
a:hover { color: var(--radicl-cream); }

/* ── Focus rings (teal, always visible) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--radicl-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--radicl-teal);
  color: #1a2224;
  padding: 12px 20px;
  font-family: var(--radicl-font-display);
  font-weight: 700;
  z-index: 500;
}
.skip-link:focus { left: var(--s-4); top: var(--s-4); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Layout ── */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--s-5);
  padding-right: var(--s-5);
}

section { position: relative; overflow: hidden; }

.sec {
  padding-top: var(--s-9);
  padding-bottom: var(--s-9);
}

.sec + .sec { border-top: 1px solid rgba(255,255,255,0.10); }

/* Content sits above the ghost numeral watermark. */
.sec > .wrap { position: relative; z-index: var(--z-above); }

.measure { max-width: 68ch; }
.measure-tight { max-width: 56ch; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--radicl-font-display);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

h1 {
  font-weight: 800;
  font-size: clamp(34px, 7.2vw, 76px);
  line-height: 1.04;
  letter-spacing: var(--tracking-tightest);
  max-width: 18ch;
}

h2 {
  font-weight: 800;
  font-size: clamp(30px, 5vw, var(--fs-4xl));
  line-height: 1.08;
  letter-spacing: var(--tracking-tightest);
  max-width: 22ch;
}

h3 {
  font-weight: 700;
  font-size: clamp(22px, 3vw, var(--fs-2xl));
  line-height: 1.18;
}

.accent {
  color: var(--radicl-teal);
}

.overline {
  display: block;
  font-family: var(--radicl-font-display);
  font-weight: 700;
  font-size: var(--fs-overline);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--radicl-teal);
  margin: 0 0 var(--s-5);
}

.section-tag {
  display: inline-block;
  font-family: var(--radicl-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--radicl-teal);
  border: 1px solid rgba(80,174,153,0.30);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin: 0 0 var(--s-6);
}

.lede {
  font-size: clamp(var(--fs-md), 2vw, var(--fs-lg));
  color: rgba(243,243,238,0.82);
  line-height: 1.6;
  max-width: 640px;
  margin: var(--s-5) 0 var(--s-6);
}

.body-text {
  color: rgba(243,243,238,0.82);
  font-size: var(--fs-base);
  line-height: 1.7;
  margin: 0 0 var(--s-5);
}

.body-text:last-child { margin-bottom: 0; }

.micro {
  font-size: 13px;
  color: rgba(243,243,238,0.60);
  line-height: 1.6;
}

.attrib {
  font-family: var(--radicl-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(243,243,238,0.62);
  margin: var(--s-4) 0 0;
}

/* ── Ghost numeral ── */
.ghost-numeral {
  font-family: var(--radicl-font-display);
  font-weight: 900;
  font-size: clamp(96px, 16vw, var(--fs-ghost));
  line-height: 1;
  color: rgba(255,255,255,0.035);
  letter-spacing: var(--tracking-tightest);
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  pointer-events: none;
  user-select: none;
  z-index: var(--z-base);
}
.cream-section .ghost-numeral { color: rgba(44,53,56,0.045); }

@media (max-width: 767px) {
  .ghost-numeral { display: none; }

  /* Full width CTAs on phones. The navbar pill (.sm) stays inline. */
  .btn-primary:not(.sm) { width: 100%; }

  /* page.js writes min-height:760px inline on the iframe, per the GHL embed
     recipe. On phones 700px is the right floor, and beating an inline style
     is the only way to set it. */
  .cal-wrap iframe { min-height: 700px !important; }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cta);
  color: #1a2224;
  font-family: var(--radicl-font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: 0.06em;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: box-shadow 200ms var(--ease-radicl), transform 200ms var(--ease-radicl);
}
.btn-primary:hover {
  color: #1a2224;
  box-shadow: var(--gradient-cta-glow);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: 0.65; cursor: progress; transform: none; box-shadow: none; }

.btn-primary.lg { padding: 18px 36px; font-size: var(--fs-base); }
.btn-primary.sm { padding: 10px 20px; font-size: 12px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--radicl-cream);
  font-family: var(--radicl-font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(243,243,238,0.35);
  cursor: pointer;
  transition: border-color 200ms, color 200ms;
}
.btn-outline:hover { border-color: var(--radicl-teal); color: var(--radicl-teal); }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  z-index: var(--z-nav);
  transition: background 200ms, border-color 200ms, backdrop-filter 200ms;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(44,53,56,0.90);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255,255,255,0.10);
}
.navbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.navbar .brand { display: inline-flex; align-items: center; }
.navbar .brand img { height: 26px; width: auto; }

/* ── Hero ── */
.hero {
  padding-top: 128px;
  padding-bottom: var(--s-8);
  position: relative;
  isolation: isolate;
}
.hero-inner { position: relative; z-index: var(--z-above); }

.hero-media { position: relative; margin-top: var(--s-8); }
.hero-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--radius-card);
}
.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,26,28,0.55);
  border-radius: var(--radius-card);
  pointer-events: none;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  border-radius: var(--radius-card);
  pointer-events: none;
}

.hero .cta-row { margin-bottom: var(--s-4); }

.under-cta {
  font-size: 13px;
  color: rgba(243,243,238,0.65);
  max-width: 46ch;
  margin: var(--s-4) 0 0;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  list-style: none;
  margin: var(--s-7) 0 0;
  padding: var(--s-5) 0 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.proof-strip li {
  font-family: var(--radicl-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(243,243,238,0.72);
}
.proof-strip li .v { color: var(--radicl-teal); }

/* ── Cards ── */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: var(--s-5);
  transition: background 200ms var(--ease-radicl), border-color 200ms var(--ease-radicl), transform 200ms var(--ease-radicl);
}
.card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(80,174,153,0.30);
}

/* ── Mechanism steps ── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin: var(--s-7) 0 0;
}
.step .step-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.icon-tile {
  background: rgba(80,174,153,0.10);
  border: 1px solid rgba(80,174,153,0.20);
  padding: var(--s-2);
  border-radius: var(--radius-card);
  color: var(--radicl-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.step .num {
  font-family: var(--radicl-font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.3;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--radicl-teal);
  margin: 0;
}
.step p { margin: 0; color: rgba(243,243,238,0.82); line-height: 1.7; }

.closer-line {
  margin: var(--s-7) 0 var(--s-6);
  font-family: var(--radicl-font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.35;
  max-width: 34ch;
  color: var(--radicl-cream);
}

/* ── Quote block ── */
blockquote.quote {
  font-family: var(--radicl-font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 3vw, var(--fs-2xl));
  line-height: 1.2;
  border-left: 2px solid var(--radicl-teal);
  padding-left: var(--s-5);
  border-radius: 0;
  margin: 0;
  max-width: 30ch;
}
.quote-wrap { margin-top: var(--s-7); }
.quote-grid > * + * { margin-top: var(--s-7); }
.cream-section blockquote.quote { color: var(--radicl-dark); }
.cream-section .attrib { color: rgba(44,53,56,0.60); }

/* ── Cream stats band (the one inversion) ── */
.cream-section {
  background: var(--radicl-cream);
  color: var(--radicl-dark);
}
.cream-section .overline { color: var(--radicl-deep-teal); }
.cream-section .body-text { color: rgba(44,53,56,0.78); }
.cream-section .micro { color: rgba(44,53,56,0.62); }
.cream-section h2 { color: var(--radicl-dark); }
.cream-section a { color: var(--radicl-deep-teal); }
.cream-section a:hover { color: var(--radicl-dark); }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.stat-card {
  background: var(--radicl-white);
  padding: var(--s-6);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
  border-radius: var(--radius-card);
  transition: transform 300ms var(--ease-radicl);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card .value {
  font-family: var(--radicl-font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--radicl-deep-teal);
  line-height: 1;
  display: block;
}
.stat-card .label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--radicl-dark);
  margin-top: var(--s-4);
}
.stat-card .support {
  display: block;
  font-size: 13px;
  color: rgba(44,53,56,0.62);
  margin-top: var(--s-2);
}

.homeowner-line {
  margin: var(--s-7) 0 0;
  padding-top: var(--s-5);
  border-top: 1px solid rgba(44,53,56,0.12);
  max-width: 64ch;
  color: rgba(44,53,56,0.78);
}

/* ── FAQ ── */
.faq { margin: var(--s-7) 0 0; border-top: 1px solid rgba(255,255,255,0.10); }
.faq details {
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--s-5) var(--s-8) var(--s-5) 0;
  font-family: var(--radicl-font-display);
  font-weight: 700;
  font-size: clamp(17px, 2vw, var(--fs-lg));
  line-height: 1.35;
  position: relative;
  color: var(--radicl-cream);
  transition: color 200ms var(--ease-radicl);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--radicl-teal); }
.faq summary .chev {
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -10px;
  color: var(--radicl-teal);
  transition: transform 200ms var(--ease-radicl);
}
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer {
  margin: 0;
  padding: 0 0 var(--s-5);
  max-width: 68ch;
  color: rgba(243,243,238,0.82);
  line-height: 1.7;
}

/* ── Form and calendar ── */
.form-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: var(--s-5);
  margin: var(--s-7) 0 0;
  max-width: 620px;
}
.field { margin-bottom: var(--s-4); }
.field label {
  display: block;
  font-family: var(--radicl-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(243,243,238,0.72);
  margin-bottom: var(--s-2);
}
.field input,
.field select {
  width: 100%;
  height: 48px;
  font-family: var(--radicl-font-body);
  font-size: 16px;
  color: var(--radicl-cream);
  background: rgba(20,26,28,0.55);
  border: 1px solid rgba(243,243,238,0.20);
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color 200ms var(--ease-radicl);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2350AE99' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.field input:hover, .field select:hover { border-color: rgba(80,174,153,0.55); }
.field input:focus, .field select:focus { border-color: var(--radicl-teal); }
.field input::placeholder { color: rgba(243,243,238,0.40); }
/* The :focus variants are listed so an invalid field keeps the amber border
   while it is focused. The teal focus outline still draws on top. */
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] input:focus,
.field[data-invalid="true"] select:focus { border-color: var(--radicl-amber); }

.field .error {
  display: none;
  font-size: 13px;
  line-height: 1.5;
  color: #E5A56B;
  margin-top: 6px;
}
.field[data-invalid="true"] .error { display: block; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-card .btn-primary { width: 100%; margin-top: var(--s-2); }

.under-form { margin: var(--s-4) 0 0; }
.ps {
  margin: var(--s-6) 0 0;
  max-width: 62ch;
  font-size: var(--fs-sm);
  color: rgba(243,243,238,0.65);
  line-height: 1.7;
}

.cal-wrap { margin: var(--s-7) 0 0; }
.cal-wrap[hidden] { display: none; }
.cal-wrap iframe {
  width: 100%;
  border: none;
  overflow: hidden;
  min-height: 700px;
  border-radius: var(--radius-card);
  background: rgba(255,255,255,0.04);
}

/* ── Footer ── */
.site-footer {
  background: var(--radicl-dark-2);
  padding: var(--s-8) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-5);
}
.site-footer img { height: 24px; width: auto; max-width: 120px; align-self: flex-start; flex: 0 0 auto; }
.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  font-size: 13px;
}
.site-footer .links a { color: rgba(243,243,238,0.70); }
.site-footer .links a:hover { color: var(--radicl-teal); }
.site-footer .legal {
  font-size: 12px;
  color: rgba(243,243,238,0.60);
  margin: 0;
  line-height: 1.6;
}

/* ── Thanks page ── */
.thanks-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 128px 0 var(--s-9);
}

/* ── Desktop ── */
@media (min-width: 768px) {
  .wrap { padding-left: var(--s-6); padding-right: var(--s-6); }
  .sec { padding-top: var(--s-10); padding-bottom: var(--s-10); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
  .steps .card { padding: var(--s-6); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
  .quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
  .quote-grid > * + * { margin-top: 0; }
  .site-footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
  .form-card { padding: var(--s-6); }
  .form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
  .form-card .btn-primary { width: auto; min-width: 280px; }
  .cal-wrap iframe { min-height: 760px; }

  .hero {
    padding-top: 176px;
    padding-bottom: var(--s-10);
    min-height: 88vh;
    display: flex;
    align-items: center;
  }
  .hero-media {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: var(--z-base);
  }
  .hero-media img {
    height: 100%;
    border-radius: 0;
    object-position: 50% 45%;
  }
  .hero-media::before,
  .hero-media::after { border-radius: 0; }
  .hero-media::before {
    background: linear-gradient(90deg, rgba(20,26,28,0.86) 0%, rgba(20,26,28,0.72) 55%, rgba(20,26,28,0.55) 100%);
  }
}

@media (min-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-card { padding: var(--s-7); }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: start; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn-primary:hover,
  .stat-card:hover,
  .card:hover { transform: none; }
  .faq details[open] summary .chev { transform: rotate(180deg); }
}
