/* UltraQuote landing — clean and airy, brand palette. Light marketing surface,
   dark on-brand product graphics, turf accent, the app's grid motif in the hero. */

:root {
  --ink: #14201a;
  --body: #3a463d;
  --muted: #6b776b;
  --faint: #98a398;
  --line: #e4e9e2;
  --bg: #ffffff;
  --bg-soft: #f4f7f2;
  --turf: #2f7a41;      /* readable on light */
  --turf-bright: #61c274;
  --moss: #101510;      /* product graphics */
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; margin: 0; }
:focus-visible { outline: 2px solid var(--turf); outline-offset: 2px; }

/* --- buttons --- */
.btn-primary, .btn-ghost, .btn-text {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: 9px; cursor: pointer;
  transition: transform .08s ease, background .12s ease, border-color .12s;
}
.btn-primary { background: var(--turf); color: #fff; border: 1px solid var(--turf); }
.btn-primary:hover { background: #276635; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--turf); color: var(--turf); }
.btn-text { padding: 9px 8px; color: var(--ink); }
.btn-text:hover { color: var(--turf); }
.lg { padding: 13px 24px; font-size: 15.5px; border-radius: 11px; }
.block { width: 100%; }

/* --- nav --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 5vw, 56px);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.wordmark span { color: var(--turf); }
.nav-links { display: flex; gap: 22px; margin-left: 8px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 6px; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* --- hero --- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 56px) 64px; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(47,122,65,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,122,65,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(120% 90% at 60% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 60% 0%, #000 30%, transparent 78%);
}
.hero-inner {
  position: relative; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
  color: var(--turf); background: rgba(47,122,65,0.08); border: 1px solid rgba(47,122,65,0.18);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; line-height: 1.02; }
.hero h1 .accent { color: var(--turf); }
.lede { margin: 20px 0 28px; font-size: clamp(16px, 1.9vw, 19px); color: var(--body); max-width: 34ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* hero product graphic */
.hero-art { position: relative; }
.art-panel {
  background: var(--moss); border: 1px solid #263026; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(20,32,26,0.4);
}
.art-toolbar { display: flex; gap: 6px; padding: 12px 14px; background: #171d17; border-bottom: 1px solid #232c23; }
.art-toolbar span { width: 9px; height: 9px; border-radius: 50%; background: #33403a; }
.art-canvas { position: relative; }
.art-svg { display: block; width: 100%; height: auto; }
.art-chip {
  position: absolute; font-family: var(--mono); font-size: 11px; color: #e7efe3;
  background: rgba(10,15,11,0.86); border: 1px solid rgba(231,239,227,0.2);
  padding: 5px 9px; border-radius: 6px; white-space: nowrap;
}
.art-chip b { color: var(--turf-bright); font-weight: 600; }
.art-chip-1 { left: 14%; top: 48%; }
.art-chip-2 { right: 8%; top: 16%; color: var(--turf-bright); }
.art-quote {
  position: absolute; right: -18px; bottom: -22px; width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 20px 40px -16px rgba(20,32,26,0.35);
  font-size: 12.5px;
}
.aq-row { display: flex; justify-content: space-between; color: var(--muted); padding: 3px 0; }
.aq-total { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.aq-total span:last-child { color: var(--turf); font-family: var(--mono); }
@media (max-width: 480px) { .art-quote { position: static; width: auto; margin-top: 22px; } }

.trustline {
  text-align: center; font-family: var(--mono); font-size: 12.5px; color: var(--faint);
  padding: 22px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

/* --- sections --- */
.section { padding: clamp(56px, 8vw, 104px) clamp(16px, 5vw, 56px); max-width: 1180px; margin: 0 auto; }
.section.alt { max-width: none; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.kicker { font-family: var(--mono); font-size: 12px; color: var(--turf); text-transform: none; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; margin-top: 10px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.step-art svg { width: 100%; height: auto; border-radius: 12px; display: block; }
.step h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 20px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 8px; background: rgba(47,122,65,0.1); color: var(--turf);
  font-family: var(--mono); font-size: 13px; font-weight: 600;
}

/* features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.feat-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(47,122,65,0.09); display: grid; place-items: center; margin-bottom: 14px; }
.feat-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.plan.featured { border-color: var(--turf); box-shadow: 0 20px 44px -22px rgba(47,122,65,0.4); }
.plan-badge { position: absolute; top: -11px; left: 28px; background: var(--turf); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-size: 15px; color: var(--muted); font-weight: 600; }
.price { margin: 8px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.amt { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.per { color: var(--muted); font-size: 15px; }
.plan-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li { position: relative; padding: 7px 0 7px 26px; font-size: 14.5px; color: var(--body); border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 12px; height: 7px; border-left: 2px solid var(--turf); border-bottom: 2px solid var(--turf); transform: rotate(-45deg); }
.plan li:first-child { border-top: none; }

/* cta band */
.cta-band { text-align: center; padding: clamp(56px, 8vw, 100px) 16px; background: var(--moss); color: #e7efe3; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.cta-band p { color: #9fb0a0; margin: 14px 0 28px; font-size: 17px; }

/* footer */
.footer { padding: 48px clamp(16px,5vw,56px); border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.footer .wordmark { display: inline-block; margin-bottom: 6px; }
.footer p { margin: 0 0 16px; font-size: 14px; }
.footer nav { display: flex; gap: 20px; justify-content: center; margin-bottom: 18px; font-size: 14px; }
.footer nav a:hover { color: var(--turf); }
.footer small { color: var(--faint); font-size: 12px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.rolls line { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.1s ease forwards; }
.rolls line:nth-child(2) { animation-delay: .12s; }
.rolls line:nth-child(3) { animation-delay: .24s; }
.rolls line:nth-child(4) { animation-delay: .36s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rolls line { animation: none; stroke-dashoffset: 0; }
  .btn-primary:hover { transform: none; }
}
