/* Single source of truth for brand green: --brand-primary. This is the
   customer-interface app's own accent (app/globals.css --accent in the main
   product) — not a color picked for this marketing site — so the logo file
   (assets/logo/) was recolored to this exact hex to match it, rather than
   the other way around. Every other green on this page routes through
   --accent, which is just this variable. */
:root {
  --brand-primary: #0f6b64;
  --accent: var(--brand-primary);
  --accent-ink: #ffffff; /* text on top of --accent — white, since brand-primary is a dark fill, not a light one */
  /* brand-primary lightened, for the rare spot where it has to read as a
     mark *on* the site's own dark-ink sections (the pro plan card, the step
     numbers) — flat brand-primary on --ink is ~2.6:1, this is 7.5:1. Same
     relationship as the product app's own dark-mode accent, computed the
     same way, not a separately-chosen shade. */
  --brand-on-dark: #7baeaa;
  --ink: #0d1416;
  --ink-2: #1a2427;
  --text: #17201f;
  --muted: #56645f;
  --line: #dfe6e4;
  --bg: #ffffff;
  --bg-alt: #f5f8f7;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- top bar ---------- */
/* Solid white, matching the hero gradient's own starting color (below) so
   the seam between the two elements is invisible — and matching the logo
   file's own white ground, which was the point of this change. */
.top { background: #fff; color: var(--ink); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { height: 44px; display: block; }
@media (min-width: 900px) { .logo-img { height: 56px; } }
.top .btn { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; }

/* ---------- hero ---------- */
/* White at the top (flush with .top above it) easing into the brand accent
   by the bottom. brand-primary (#0f6b64) is dark enough that dark ink text
   fails contrast on it (2.6:1, needs 4.5:1) — unlike a lighter teal, this
   accent can't carry dark text at full strength. Rather than switch the
   whole hero to white text (which would then fail against the *white* top),
   the transition is pushed late (70%) so the actual text content — which
   sits in the upper-middle of the section — stays on white/near-white; only
   the lower padding and the tail of the CTA row reach the true accent
   color. Verified by rendering, not just computed. */
.hero {
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 70%, var(--accent) 100%);
  padding-block: 56px 72px;
}
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero h1 { max-width: 20ch; }
.hero .sub { margin-top: 20px; max-width: 46ch; font-size: 1.15rem; color: var(--muted); }
.hero .cta { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero .cta small { color: var(--muted); font-size: 0.9rem; }

/* A solid white card (was translucent-on-dark) — needed now that the hero
   background it sits on is light itself; the shadow keeps it legible even
   over the whitest part of the gradient. */
.proof {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 48px -30px rgba(13, 20, 22, 0.28);
}
.proof .tag { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-primary); font-weight: 700; }
.proof dl { margin: 18px 0 0; display: grid; gap: 18px; }
.proof dt { color: var(--muted); font-size: 0.95rem; order: 2; }
.proof dd { margin: 0; color: var(--text); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.proof .stat { display: flex; flex-direction: column; }
.proof .stat:last-child dd { color: var(--brand-primary); }
.proof .foot { margin-top: 18px; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

@media (min-width: 900px) {
  .hero { padding-block: 84px 96px; }
  .hero .wrap { grid-template-columns: 1.25fr 0.9fr; gap: 64px; }
  .hero .cta { flex-direction: row; align-items: center; gap: 18px; }
}

/* ---------- sections ---------- */
section { padding-block: 72px; }
.alt { background: var(--bg-alt); }
.lead { margin-top: 14px; max-width: 60ch; color: var(--muted); font-size: 1.1rem; }

/* how it works */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; padding-left: 56px; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--brand-on-dark); font-weight: 800;
}
.steps p { margin-top: 6px; color: var(--muted); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

figure { margin: 48px 0 0; }
.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px -30px rgba(13, 20, 22, 0.35); background: var(--bg-alt); }
figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

.video {
  margin: 40px auto 0;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border: 1.5px dashed #b4c2be;
  border-radius: var(--radius);
  display: grid; place-items: center; text-align: center;
  color: var(--muted); padding: 20px;
}
.video strong { display: block; color: var(--text); font-size: 1.05rem; }

/* benefits */
.benefits { margin-top: 36px; display: grid; gap: 0; }
.benefit { padding-block: 22px; border-top: 1px solid var(--line); }
.benefit p { margin-top: 6px; color: var(--muted); max-width: 52ch; }
@media (min-width: 900px) {
  .benefits { grid-template-columns: 1fr 1fr; column-gap: 64px; }
}

/* pricing */
.plans { margin-top: 40px; display: grid; gap: 20px; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--bg); display: flex; flex-direction: column; gap: 18px; }
.plan.pro { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.plan .price span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan.pro .price span, .plan.pro .who { color: #a9bab6; }
.plan .who { color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 6px; border-left: 2px solid var(--brand-on-dark); border-bottom: 2px solid var(--brand-on-dark); transform: rotate(-45deg); }
.plan:not(.pro) li::before { border-color: var(--brand-primary); }
.plan .btn { margin-top: auto; }
.guarantee { margin-top: 24px; color: var(--muted); }
.guarantee strong { color: var(--text); }
@media (min-width: 800px) { .plans { grid-template-columns: 1fr 1fr; } }

/* demo form */
.demo { background: var(--ink); color: #fff; }
.demo .lead { color: #b9c7c4; }
.demo .wrap { display: grid; gap: 36px; }
form.card { background: #fff; color: var(--text); border-radius: 18px; padding: 26px; display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
input[type="text"], input[type="email"] {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid #c5d0cd; border-radius: 10px;
  font: inherit; color: var(--text); background: #fff;
}
input:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--brand-primary); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.msg { min-height: 1.4em; font-weight: 600; }
.msg.ok { color: var(--brand-primary); }
.msg.err { color: #b3261e; }
@media (min-width: 900px) { .demo .wrap { grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; } }

/* faq */
.faq { margin-top: 32px; max-width: 780px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 20px 36px 20px 0; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 22px; color: var(--muted); max-width: 65ch; }

/* footer */
footer { background: var(--ink); color: #9fb0ac; padding-block: 36px; font-size: 0.92rem; border-top: 1px solid var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: #cbd7d4; }

/* simple text pages (privacy / thanks) */
.doc { padding-block: 56px 80px; max-width: 760px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 20px; }
.doc h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; }
.note { padding: 12px 16px; border-radius: 10px; background: #fff7e0; color: #6b5200; font-size: 0.92rem; margin-bottom: 24px; }
