/* =========================================================================
   Presto Labs - marketing site
   Committed-green identity (Ryan's #16A34A brand green carries the page),
   green-tinted neutrals, solid color (no decorative gradients / gradient
   text / dot-grid). Cabinet Grotesk display + General Sans body.
   ========================================================================= */

:root {
  --green: oklch(0.62 0.16 150);        /* ~#16a34a brand green */
  --green-deep: oklch(0.52 0.14 150);   /* ~#15803d */
  --green-bright: oklch(0.72 0.18 150); /* ~#22c55e, used sparingly */
  --green-tint: oklch(0.62 0.16 150 / 0.10);

  --forest: oklch(0.24 0.03 155);       /* dark band ground, green-tinted */
  --forest-2: oklch(0.29 0.035 155);    /* dark card */

  --ground: oklch(0.975 0.006 150);     /* off-white, faint green tint */
  --ground-2: oklch(0.955 0.008 150);
  --surface: oklch(0.995 0.003 150);    /* card white, not pure #fff */

  --ink: oklch(0.26 0.03 155);          /* headings */
  --text: oklch(0.42 0.02 155);         /* body */
  --muted: oklch(0.55 0.018 155);
  --faint: oklch(0.54 0.02 155);
  --line: oklch(0.26 0.03 155 / 0.13);
  --line-strong: oklch(0.26 0.03 155 / 0.26);

  --font-display: "Cabinet Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 60px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.006em;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Single kicker treatment - used once (hero), not as section grammar. */
.kicker {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600; color: var(--green-deep);
  display: inline-flex; align-items: center; gap: 9px;
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--green); }

/* ---- Buttons ---- */
.btn {
  --b: var(--ink); --t: var(--surface);
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  letter-spacing: -0.006em;
  padding: 13px 22px; border-radius: 11px;
  background: var(--b); color: var(--t); border: 1.5px solid var(--b);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2,0.7,0.2,1), background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { --b: var(--green); --t: oklch(0.99 0.01 150); }
.btn--accent:hover { --b: var(--green-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--green-tint); }
.btn .arw { transition: transform 0.18s ease; }
.btn:hover .arw { transform: translateX(3px); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in oklch, var(--ground) 93%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  letter-spacing: -0.03em; color: var(--ink);
}
.brand .dot {
  width: 25px; height: 25px; border-radius: 7px; background: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  color: oklch(0.99 0.01 150); font-size: 14px; font-weight: 700;
}
.brand small {
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.navlink { font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.15s ease; }
.nav a.navlink:hover { color: var(--ink); }
.nav .btn { padding: 10px 18px; }
@media (max-width: 720px) { .nav a.navlink { display: none; } }

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 clamp(44px, 7vw, 88px); }
.hero__grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(30px, 5vw, 64px); align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(44px, 7.6vw, 86px); font-weight: 800; margin: 20px 0 0; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--green-deep); }
.hero__sub { margin: 24px 0 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 34ch; }
.hero__cta { margin-top: 30px; display: flex; gap: 13px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.hero__note b { color: var(--green-deep); font-weight: 700; white-space: nowrap; }

/* ---- Screenshot frames ---- */
.shot {
  position: relative; margin: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -36px oklch(0.24 0.03 155 / 0.5);
}
.shot__bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: var(--ground-2); border-bottom: 1px solid var(--line);
}
.shot__bar span { width: 10px; height: 10px; border-radius: 100px; background: var(--line-strong); }
.shot img { width: 100%; height: auto; display: block; }
.shot--hero img { aspect-ratio: 7 / 5; object-fit: cover; object-position: center top; }
.shot__badge {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--green); color: oklch(0.99 0.01 150);
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px;
}
.shot--wide { margin-bottom: 22px; }
.shot--wide img { aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; }
.showcase__two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
/* Both frames identical size: same aspect ratio, cover-crop the images. */
.showcase__two .shot img { aspect-ratio: 16 / 10; object-fit: cover; height: auto; }
.cap { margin: 0; }
.cap figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 720px) { .showcase__two { grid-template-columns: 1fr; } }

/* ---- Capability strip ---- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; padding-top: 20px; padding-bottom: 20px; align-items: center; }
.trust .item { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--text); font-weight: 500; }
.trust .item svg { color: var(--green); flex: 0 0 auto; }

/* ---- Sections ---- */
section.band { padding: clamp(58px, 8vw, 108px) 0; }
.section-head { max-width: 660px; margin-bottom: clamp(30px, 5vw, 52px); }
.section-head h2, .section-head h1 { font-size: clamp(30px, 5vw, 50px); letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; max-width: 60ch; }

/* ---- Feature grid (2x2 cards; quiet green marker + strong type, no icon boxes) ---- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 28px 30px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface);
}
.feature__head { display: flex; align-items: baseline; gap: 12px; }
.feature__head::before {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 2px;
  background: var(--green); transform: translateY(-2px);
}
.feature h3 { font-size: 24px; letter-spacing: -0.02em; }
.feature p { margin: 10px 0 0 21px; color: var(--muted); max-width: 64ch; }

/* ---- How it works (dark forest band) ---- */
.steps { background: var(--forest); }
.steps .section-head h2 { color: oklch(0.96 0.01 150); }
.steps .section-head p { color: oklch(0.96 0.01 150 / 0.62); }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 780px) { .steps__grid { grid-template-columns: 1fr; } }
.step {
  border-radius: 16px; overflow: hidden; background: var(--forest-2);
  border: 1px solid oklch(0.96 0.01 150 / 0.1);
  display: flex; flex-direction: column;
}
.step__img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top;
  display: block; border-bottom: 1px solid oklch(0.96 0.01 150 / 0.12);
}
.step__body { padding: 22px 24px 26px; }
.step__k {
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--green-bright);
}
.step h3 { font-size: 25px; color: oklch(0.96 0.01 150); margin-top: 5px; }
.step p { color: oklch(0.96 0.01 150 / 0.62); font-size: 15px; margin: 10px 0 0; }

/* ---- Pricing ---- */
.price-card {
  max-width: 460px; margin: 0 auto; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 38px; box-shadow: 0 40px 80px -52px oklch(0.24 0.03 155 / 0.5);
}
.price-card .plan { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); }
.price-card .amt { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; }
.price-card .amt b { font-family: var(--font-display); font-size: 62px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
.price-card .amt span { color: var(--muted); font-size: 17px; }
.price-card .trial { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--green-deep); background: var(--green-tint); padding: 5px 12px; border-radius: 8px; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 11px; font-size: 15.5px; color: var(--text); }
.price-card li svg { flex: 0 0 auto; margin-top: 3px; color: var(--green); }
.price-card .btn { width: 100%; justify-content: center; }
.price-card .fineprint { text-align: center; margin: 14px 0 0; font-size: 12.5px; color: var(--faint); }

/* ---- FAQ ---- */
.faq details { border-top: 1px solid var(--line); padding: 6px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 15px; font-family: var(--font-body); font-weight: 400; font-size: 26px; color: var(--green); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; color: var(--muted); max-width: 68ch; }

/* ---- CTA band (committed green drench) ---- */
.cta { text-align: center; color: oklch(0.99 0.01 150); padding: clamp(62px, 9vw, 116px) 0; background: var(--green); }
.cta h2 { font-size: clamp(34px, 6vw, 66px); color: oklch(0.99 0.01 150); }
.cta p { color: oklch(0.99 0.02 150 / 0.85); font-size: 18px; margin: 14px 0 0; }
.cta .btn { margin-top: 26px; --b: oklch(0.99 0.01 150); --t: var(--green-deep); }
.cta .btn:hover { --b: oklch(0.96 0.02 150); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 50px 0 30px; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .brand { font-size: 21px; }
.site-footer p { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; max-width: 34ch; }
.footlinks { display: flex; gap: 40px; flex-wrap: wrap; }
.footlinks h5 { font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; font-weight: 600; }
.footlinks a { display: block; color: var(--muted); font-size: 15px; padding: 4px 0; transition: color 0.15s; }
.footlinks a:hover { color: var(--green-deep); }
.footbar { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }

/* ---- Legal / privacy ---- */
.legal { padding: clamp(44px, 7vw, 88px) 0 clamp(54px, 8vw, 100px); }
.legal__head { max-width: 720px; }
.legal__head h1 { font-size: clamp(36px, 6vw, 58px); margin-top: 8px; letter-spacing: -0.03em; }
.legal__meta { color: var(--faint); font-size: 14px; margin-top: 16px; }
.legal__body { max-width: 720px; margin-top: 42px; }
.legal__body h2 { font-size: 25px; margin: 42px 0 14px; }
.legal__body h3 { font-size: 18px; font-family: var(--font-body); font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
.legal__body p, .legal__body li { color: var(--text); font-size: 16.5px; }
.legal__body ul { padding-left: 22px; display: grid; gap: 8px; }
.legal__body a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal__body code { background: var(--ground-2); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; }
.legal__toc { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; background: var(--ground-2); margin-top: 32px; }
.legal__toc strong { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.legal__toc ol { margin: 12px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.legal__toc a { color: var(--muted); text-decoration: none; }
.legal__toc a:hover { color: var(--green-deep); }

/* ---- Support / contact form ---- */
.support__grid { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: clamp(28px, 5vw, 56px); align-items: start; margin-top: clamp(30px, 5vw, 52px); }
@media (max-width: 820px) { .support__grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--green-deep); }
.input {
  font-family: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 12px 14px; width: 100%; color-scheme: light;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
textarea.input { min-height: 150px; resize: vertical; }
.form .btn { justify-self: start; margin-top: 2px; }
.form__note { font-size: 13px; color: var(--faint); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.help { display: grid; gap: 18px; }
.help__card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--surface); }
.help__card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.help__card p { color: var(--muted); font-size: 15px; margin: 8px 0 0; line-height: 1.55; }
.help__card p a, .help__list a { color: var(--green-deep); }
.help__list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 9px; }
.help__list a { display: flex; gap: 8px; font-size: 15px; color: var(--text); }
.help__list a:hover { color: var(--green-deep); }
.help__eta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--green-deep); background: var(--green-tint); padding: 6px 12px; border-radius: 100px; }

/* ---- Load animation ---- */
[data-rise] { opacity: 0; transform: translateY(18px); animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { [data-rise] { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }
