/* ==========================================================================
   Redline Revenue: premium & calm. Dark theme, one red accent.
   Mobile first (375px), 8px spacing scale.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so the swap to Inter doesn't shift the layout */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

:root {
  --bg: #0B0B0D;
  --surface: #131316;
  --surface-2: #1A1A1E;
  --border: #26262B;
  --border-strong: #3A3A41;
  --text: #F4F4F2;
  --muted: #A1A1AA;          /* 7.6:1 on --bg */
  --red: #E5262E;            /* button fill: white text 4.5:1 */
  --red-hover: #C81E25;
  --red-text: #FF5A60;       /* red used as text on dark: 6:1 */

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px; --s16: 128px;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1160px;
  --gutter: 16px;
  --header-h: 64px;

  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s2));
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 18px; } }

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 18px; height: 18px; }

.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  background: var(--text); color: var(--bg);
  padding: var(--s1) var(--s2); border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0 var(--s3);
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; text-align: center; line-height: 1.2;
  cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 var(--s2); font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, .86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--s2);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; letter-spacing: -0.02em;
}
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand-word { display: none; font-size: 17px; }
@media (min-width: 420px) { .brand-word { display: inline; } }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s1); }
.menu-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
}

/* Mobile nav: panel that drops below the header */
.nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--s1) var(--gutter) var(--s3);
}
.nav.is-open { display: block; }
.nav a {
  display: block; padding: 14px 0;
  font-size: 18px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav li:last-child a { border-bottom: 0; }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav {
    display: block; position: static; padding: 0; border: 0; background: none;
    margin-left: auto;
  }
  .nav ul { display: flex; gap: var(--s4); }
  .nav a {
    padding: var(--s1) 0; border: 0;
    font-size: 15px; color: var(--muted);
    transition: color .15s var(--ease);
  }
  .nav a:hover { color: var(--text); }
  .header-actions { margin-left: var(--s3); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--s10); }
.section-tight { padding-block: var(--s8); }
@media (min-width: 768px) {
  .section { padding-block: var(--s16); }
  .section-tight { padding-block: var(--s10); }
}
.section-title {
  font-size: clamp(30px, 7.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 20ch;
  margin-bottom: var(--s5);
  text-wrap: balance;
}
@media (min-width: 768px) { .section-title { margin-bottom: var(--s8); } }
.section-title-sm { font-size: clamp(24px, 5.4vw, 36px); max-width: none; margin-bottom: var(--s5); }
.section-title-center { margin-inline: auto; text-align: center; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--s6) var(--s10); overflow: hidden; }
.hero-grid { display: grid; gap: var(--s8); align-items: center; }
.hero h1 {
  font-size: clamp(42px, 11.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--red-text); }
.lead {
  margin-top: var(--s3);
  font-size: 18px; line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
}
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: var(--s4); }
.microcopy { margin-top: var(--s2); font-size: 15px; color: var(--muted); }

@media (min-width: 560px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  .hero { padding-block: var(--s12) var(--s16); }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: var(--s8); }
  .lead { font-size: 20px; }
}

/* Phone mock */
.phone-wrap { position: relative; display: grid; place-items: center; }
.phone-wrap::before {           /* one soft glow, kept faint */
  content: ""; position: absolute; inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(229, 38, 46, .16), transparent);
  filter: blur(20px);
  pointer-events: none;
}
.phone {
  position: relative;
  width: min(100%, 340px);
  padding: 10px;
  background: #18181B;
  border: 1px solid var(--border-strong);
  border-radius: 46px;
}
.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px; border-radius: 999px; background: #000; z-index: 2;
}
.phone-screen {
  background: #0E0E10;
  border-radius: 37px;
  padding: 56px 14px 22px;
  font-size: 15px; line-height: 1.4;
}
.phone-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 0 4px 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.phone-contact { color: var(--text); font-weight: 600; font-size: 15px; }
.phone-sub { font-size: 12.5px; }

.thread { display: flex; flex-direction: column; gap: 10px; }
.event {
  align-self: center;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--red-text); font-size: 13px; font-weight: 500;
}
.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
}
.bubble.in  { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 6px; }
.bubble .meta { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; }
.booked {
  display: flex; align-items: center; gap: 12px;
  margin-top: 6px; padding: 12px 14px;
  border: 1px solid var(--border-strong); border-radius: 14px;
  background: var(--surface);
}
.booked .icon { color: var(--red-text); }
.booked strong { display: block; font-size: 14px; }
.booked span { color: var(--muted); font-size: 13px; }

/* Gentle one-time play-in of the conversation */
@media (prefers-reduced-motion: no-preference) {
  .step { animation: step-in .5s var(--ease) both; animation-delay: calc(.2s + var(--d) * .45s); }
  @keyframes step-in { from { opacity: 0; transform: translateY(8px); } }
}

/* ---------- Core cards ---------- */
.core-grid { display: grid; gap: var(--s2); }
@media (min-width: 860px) { .core-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } }
.core-card { padding: var(--s4) var(--s3); }
@media (min-width: 860px) { .core-card { padding: var(--s5) var(--s4); } }
.icon-tile {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: var(--s3);
  border-radius: 12px; border: 1px solid var(--border-strong);
  color: var(--red-text);
}
.core-card h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; margin-bottom: var(--s1); }
.core-card p { color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-group {
  display: flex; flex: none; align-items: center;
  gap: var(--s6); padding-right: var(--s6);   /* trailing gap = inner gap → seamless loop */
}
.marquee-group li {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: color .2s var(--ease);
}
.marquee-group img {
  width: 24px; height: 24px;
  filter: invert(1); opacity: .62;           /* monochrome: Simple Icons are single-colour */
  transition: opacity .2s var(--ease);
}
.marquee-group li:hover { color: var(--text); }
.marquee-group li:hover img { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .marquee.is-ready .marquee-track { animation: marquee 50s linear infinite; }
  .marquee:hover .marquee-track,
  .marquee.is-paused .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}
/* Reduced motion: static, wrapped grid, single copy */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
  .marquee-group { flex-wrap: wrap; justify-content: center; gap: var(--s3) var(--s5); padding-right: 0; flex: 1; }
  .marquee-group[aria-hidden="true"], .marquee-toggle { display: none; }
}

.marquee-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  margin-top: var(--s5); font-size: 15px;
}
.marquee-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  font: inherit; font-size: 14px; cursor: pointer;
}
.marquee-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.marquee-toggle .icon { fill: currentColor; stroke: none; width: 14px; height: 14px; }

/* ---------- Automations grid ---------- */
.auto-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .auto-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s2); } }
@media (min-width: 1040px) { .auto-grid { grid-template-columns: repeat(4, 1fr); } }
.auto-card { padding: var(--s3); }
.auto-card .icon { color: var(--red-text); margin-bottom: var(--s2); }
.auto-card h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; margin-bottom: 6px; }
.auto-card p { color: var(--muted); font-size: 16px; line-height: 1.5; }

/* ---------- Pricing ---------- */
.price-card {
  max-width: 520px; margin-inline: auto;
  padding: var(--s5) var(--s3);
  text-align: center;
  border-color: var(--border-strong);
}
@media (min-width: 560px) { .price-card { padding: var(--s6) var(--s6); } }
.badge {
  display: inline-block; margin-bottom: var(--s3);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 90, 96, .4); color: var(--red-text);
  font-size: 14px; font-weight: 500;
}
.price { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.price-amount { font-size: clamp(64px, 18vw, 88px); line-height: 1; font-weight: 600; letter-spacing: -0.05em; }
.price-label { font-size: 18px; color: var(--muted); }
.price-then { margin-top: var(--s2); color: var(--muted); text-wrap: balance; }
.price-then strong { color: var(--text); font-weight: 600; }
.checklist {
  display: grid; gap: 12px;
  margin: var(--s4) 0; padding-top: var(--s4);
  border-top: 1px solid var(--border);
  text-align: left;
}
.checklist li { display: flex; align-items: center; gap: 12px; }
.checklist .icon { color: var(--red-text); stroke-width: 2.25; }
.fineprint { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- Book a call ---------- */
.book-grid { display: grid; gap: var(--s5); }
.book-copy .section-title, .contact-copy .section-title { margin-bottom: var(--s3); }
.lead-sm { color: var(--muted); max-width: 40ch; }
@media (min-width: 1000px) {
  .book-grid { grid-template-columns: .8fr 1.2fr; gap: var(--s8); align-items: start; }
  .book-copy { position: sticky; top: calc(var(--header-h) + var(--s5)); }
}
.booking-card {
  padding: var(--s1);
  border-color: var(--border-strong);
  overflow: hidden;
}
.booking-card iframe {
  display: block; width: 100%;
  border: 0; overflow: hidden; border-radius: var(--radius-sm);
  background: transparent;        /* height is set by the Redline Engine embed as the steps change */
}
.booking-fallback {
  padding: 12px var(--s2) var(--s1);
  font-size: 14px; color: var(--muted); text-align: center;
}
.booking-fallback a { color: var(--red-text); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s5); }
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: .8fr 1.2fr; gap: var(--s8); align-items: start; }
}
.contact-details { display: grid; gap: 12px; color: var(--muted); }
.contact-details li { display: flex; gap: 12px; align-items: flex-start; }
.contact-details .icon { margin-top: 4px; color: var(--red-text); }
.contact-details a { color: var(--text); }

.contact-form { padding: var(--s3); display: grid; gap: var(--s3); }
@media (min-width: 560px) { .contact-form { padding: var(--s5); } }
.field { display: grid; gap: var(--s1); }
.field-row { display: grid; gap: var(--s3); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit; font-size: 17px;   /* ≥16px stops iOS zooming on focus */
  transition: border-color .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' 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 14px center; background-size: 18px;
  padding-right: 44px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #55555E; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--red-text); outline-offset: 0; border-color: transparent;
}
.field [aria-invalid="true"] { border-color: var(--red-text); }
.ghl-form-card { padding: var(--s1); overflow: hidden; }
.ghl-form-card[hidden] { display: none; }
.ghl-form-card iframe {
  display: block; width: 100%; min-height: 720px;
  border: 0; border-radius: var(--radius-sm);
  background: transparent;
}
.form-status { font-size: 15px; color: var(--muted); min-height: 1.5em; }
.form-status.is-success { color: var(--text); }
.form-status.is-error { color: var(--red-text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--s8) var(--s5); }
.footer-grid { display: grid; gap: var(--s5); }
.footer-tagline { margin-top: var(--s2); max-width: 32ch; font-size: 16px; }
.footer-links { display: grid; gap: 4px; }
.footer-links a {
  display: inline-block; padding: 6px 0;
  color: var(--muted); text-decoration: none; font-size: 16px;
}
.footer-links a:hover { color: var(--text); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .footer-links { grid-auto-flow: column; gap: var(--s4); }
}
.footer-legal {
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3);
  margin-top: var(--s6); padding-top: var(--s3);
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--muted);
}
.footer-legal a { color: var(--muted); }

/* ---------- Scroll reveal (only when JS runs and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
