/* FormsPilot website: same palette and type as the extension (src/assets/tailwind.css). */
:root {
  --paper: #f5f3ee; --surface: #fffefb; --sunken: #efece5; --ink: #1b1a17; --ink-2: #45423c; --muted: #7a766c;
  --line: #e2ddd2; --line-strong: #c9c3b6; --accent: #b8431d; --ok: #2e7d4f; --ok-soft: #e3f1e8;
  --warn: #a4620f; --warn-soft: #fbf0dc; --bad: #c0362c; --bad-soft: #fbe6e3; --focus: rgb(27 26 23 / 0.12);
  --plan-monthly: #2f5f98; --plan-yearly: #2e7d4f; --plan-lifetime: #b8431d;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131311; --surface: #1a1917; --sunken: #0f0f0d; --ink: #ede9e0; --ink-2: #c4bfb3; --muted: #8f8a7f;
    --line: #2c2a26; --line-strong: #403d37; --accent: #e0774f; --ok: #5dba83; --ok-soft: #1c2a21;
    --warn: #e0a33f; --warn-soft: #2d2415; --bad: #ef6b5f; --bad-soft: #2e1a18; --focus: rgb(237 233 224 / 0.14);
    --plan-monthly: #7fa8dc; --plan-yearly: #5dba83; --plan-lifetime: #e0774f;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
header.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 14px; padding-bottom: 14px; }
header.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); margin-left: auto; }
header.site nav a { text-decoration: none; }
header.site nav a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  header.site { position: static; }
  header.site nav { order: 3; width: 100%; margin-left: 0; }
  header.site .cta.small { margin-left: auto; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 22px var(--serif); text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
h1 { font: 400 clamp(34px, 6vw, 56px)/1.05 var(--serif); letter-spacing: -0.015em; margin: 36px 0 14px; }
h2 { font: 400 26px/1.2 var(--serif); margin: 0 0 10px; }
h3 { font-size: 15px; margin: 22px 0 6px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 60ch; margin: 0; }
.eyebrow { font: 12px var(--mono); color: var(--accent); letter-spacing: .04em; }
.grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; margin: 40px 0 56px; align-items: start; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.features { list-style: none; margin: 0; padding: 0; }
.features li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.features li:last-child { border-bottom: 0; }
.features li::before { content: "✓"; color: var(--ok); position: absolute; left: 0; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 2px; }
.price b { font: 400 52px/1 var(--serif); }
.price s { color: var(--muted); font-size: 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.meter { height: 6px; background: var(--sunken); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.meter i { display: block; height: 100%; background: var(--accent); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 18px 0 6px; }
input[type=email], input[type=text] {
  width: 100%; height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink);
  padding: 0 12px; font: 16px var(--sans);
}
input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus); }
.code { font: 22px var(--mono); letter-spacing: .3em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; margin-top: 16px;
  border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 15px var(--sans); cursor: pointer;
}
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.row .btn { width: auto; }
.notice { border-radius: 8px; padding: 12px 14px; margin: 16px 0 0; font-size: 14px; background: var(--sunken); color: var(--ink); }
.notice.ok { background: var(--ok-soft); } .notice.warn { background: var(--warn-soft); } .notice.bad { background: var(--bad-soft); }
.notice strong { display: block; margin-bottom: 2px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 84px; }
.prose { max-width: 70ch; margin: 24px 0 64px; color: var(--ink-2); }
.prose h1 { color: var(--ink); }
.prose h2 { margin-top: 32px; color: var(--ink); font-size: 22px; }
.prose li { margin: 4px 0; }
.placeholder { background: var(--warn-soft); padding: 0 4px; border-radius: 3px; }
footer.site { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 40px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 16px; }
footer.site a { color: var(--muted); }
.test-pay { border: 2px dashed var(--warn); border-radius: 10px; padding: 14px; margin-top: 16px; }

/* ---------- landing page ---------- */
.center { text-align: center; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 10px;
  background: var(--ink); color: var(--paper); font: 600 15px var(--sans); text-decoration: none; border: 1px solid var(--ink); white-space: nowrap;
}
.cta:hover { opacity: .88; }
.cta.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.cta.ghost:hover { opacity: 1; border-color: var(--ink); }
.cta.small { height: 36px; padding: 0 14px; font-size: 13px; }
.cta.wide { width: 100%; margin-top: 18px; }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.hero { padding-top: 56px; padding-bottom: 28px; }
.hero h1 { font-size: clamp(42px, 7.5vw, 84px); margin: 14px 0 18px; max-width: 14ch; }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-2); }
.trust li::before { content: "✓ "; color: var(--ok); }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0d0d0c; border: 1px solid var(--line); box-shadow: 0 30px 60px rgb(27 26 23 / 0.12); margin-top: 24px; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.film { background: var(--paper); }
#video { padding-top: 56px; }
.video-title { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; margin: 10px 0 0; }

.section { padding-top: 88px; }
.section > h2, .band h2, .closing h2 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; letter-spacing: -0.012em; margin: 12px 0 14px; max-width: 22ch; }
.section > .lede { margin-bottom: 8px; }

.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li, .features-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.steps .num { font: 13px var(--mono); color: var(--accent); }
.steps h3, .features-grid h3 { font: 400 22px/1.2 var(--serif); margin: 10px 0 8px; }
.steps p, .features-grid p { margin: 0; color: var(--ink-2); font-size: 15px; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.features-grid h3 { margin-top: 0; }
@media (max-width: 860px) { .steps, .features-grid { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 860px) { .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 34px; align-items: start; }
@media (max-width: 860px) { .pro-grid { grid-template-columns: 1fr; } }
.demo { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.pair { display: flex; align-items: center; justify-content: center; gap: 14px; }
.shot { flex: 1; min-width: 0; text-align: center; }
.shot svg { display: block; width: 100%; height: auto; }
.shot.bad svg { max-width: 150px; margin: 0 auto; border-radius: 6px; }
.passport { max-width: 150px; margin: 0 auto; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgb(27 26 23 / 0.15); aspect-ratio: 200 / 230; display: flex; flex-direction: column; }
.passport svg { flex: 1; width: 100%; height: 80%; }
.passport .strip { height: 20%; background: #fff; color: #000; display: flex; flex-direction: column; justify-content: center; font-family: Arial, Helvetica, sans-serif; font-weight: 700; line-height: 1.25; }
.passport .strip b { font-size: 10px; } .passport .strip span { font-size: 9px; }
.shot p { margin: 12px 0 0; font-size: 13px; }
.shot p b, .shot p span, .shot p em { display: block; }
.shot p span { font: 12px var(--mono); color: var(--muted); }
.shot p em { font-style: normal; color: var(--bad); margin-top: 4px; }
.shot p em.ok { color: var(--ok); }
.arrow { font-size: 28px; color: var(--muted); }
.demo figcaption { margin-top: 14px; text-align: center; }
.pro-list strong { color: var(--ink); }
.portals { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 14px; }
.chips span { font: 400 26px var(--serif); padding: 8px 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); }
.portals p.muted { margin: 0; max-width: 75ch; }

.band { margin-top: 96px; background: var(--ink); color: var(--paper); padding: 72px 0; }
.band .eyebrow { color: #e0774f; }
.privacy-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.privacy-list li { padding-left: 26px; position: relative; color: #d8d3c7; }
.privacy-list li::before { content: "✓"; position: absolute; left: 0; color: #5dba83; }
@media (max-width: 760px) { .privacy-list { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .band { background: var(--sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } }

.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; margin-top: 30px; align-items: start; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.plan h3 { font: 400 24px var(--serif); margin: 0; }
.plan .features { margin-top: 16px; }
.plan .features li { padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
.plan.featured { border: 2px solid var(--ink); }
.pricing.plans4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 980px) { .pricing.plans4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pricing.plans4 { grid-template-columns: 1fr; } }
.plans4 .plan { position: relative; display: flex; flex-direction: column; }
.plans4 .price b { font-size: 44px; }
.plans4 .term { margin: 6px 0 0; }
.plans4 .features { flex: 1; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.plans4 .features li { padding: 5px 0 5px 22px; border: 0; font-size: 14px; line-height: 1.4; }
.plans4 .cta.wide { margin-top: 20px; }
.plan.pick { --tone: var(--ink); border: 2px solid color-mix(in srgb, var(--tone) 28%, var(--line)); background: color-mix(in srgb, var(--tone) 7%, var(--surface)); }
.plan.pick[data-plan=monthly] { --tone: var(--plan-monthly); }
.plan.pick[data-plan=yearly] { --tone: var(--plan-yearly); }
.plan.pick[data-plan=lifetime] { --tone: var(--plan-lifetime); }
.plan.pick.popular { border-color: var(--tone); }
.plan.pick h3, .plan.pick .price b, .plan.pick .features li::before { color: var(--tone); }
.plan.pick .features { border-top-color: color-mix(in srgb, var(--tone) 22%, var(--line)); }
.plan.pick .buy { background: var(--tone); border-color: var(--tone); color: var(--paper); cursor: pointer; }
.plan.pick .buy:focus-visible { outline-color: var(--tone); }
.plan .badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); white-space: nowrap;
  padding: 4px 12px; border-radius: 99px; background: var(--tone); color: var(--paper);
  font: 600 11px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase;
}
.restore-link { margin: 16px 0 0; }

/* Checkout popup, opened by a card's Buy button; site.js sets --tone to that plan's colour. */
.checkout {
  --tone: var(--ink); width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border: 2px solid var(--tone); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / 0.3);
}
.checkout::backdrop { background: rgb(20 19 17 / 0.55); backdrop-filter: blur(2px); }
.checkout-body { position: relative; padding: 28px 24px 22px; }
.checkout h3 { font: 400 26px var(--serif); margin: 0 40px 6px 0; }
.checkout h3 span, .checkout .price b { color: var(--tone); }
.checkout .price b { font-size: 40px; }
.checkout .btn.primary { background: var(--tone); border-color: var(--tone); }
.checkout .close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font: 26px/1 var(--sans); cursor: pointer;
}
.checkout .close:hover { background: var(--sunken); color: var(--ink); }
.checkout .close:focus-visible { outline: 2px solid var(--ink); }

.faq { margin-top: 26px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font: 400 20px/1.3 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 24px var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 70ch; }

.closing { text-align: center; padding: 96px 16px 72px; }
.closing h2 { margin: 0 auto 26px; }
