/* ClickBiscuit — styles
   Palette: Paper #FFFDF8 · Ink (pine) #1E3B2F · Biscuit #E9B64B · Crust #B97E22 · Leaf #4E7A5E · Line #DDD6C6
   Type: Fraunces (display) + Public Sans (text) */

:root {
  --paper: #FFFDF8;
  --paper-2: #F6F1E4;
  --ink: #1E3B2F;
  --ink-soft: #3E5A4C;
  --muted: #6C7F74;
  --biscuit: #E9B64B;
  --biscuit-deep: #D39A2A;
  --crust: #B97E22;
  --leaf: #4E7A5E;
  --line: #DDD6C6;
  --danger: #B3401E;
  --ok: #2F7A4A;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Fraunces", Georgia, serif;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--biscuit); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  font-variation-settings: "SOFT" 60, "opsz" 72;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; font-variation-settings: "SOFT" 40, "opsz" 24; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { border-top: 1px solid var(--line); }
.tight { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600;
  cursor: pointer; line-height: 1; white-space: nowrap;
}
.btn:hover { background: #163026; border-color: #163026; }
.btn.biscuit { background: var(--biscuit); border-color: var(--biscuit); color: var(--ink); }
.btn.biscuit:hover { background: var(--biscuit-deep); border-color: var(--biscuit-deep); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,253,248,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand svg { width: 36px; height: 36px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav .btn { padding: 10px 16px; margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; gap: 4px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* Hero */
.hero { padding: clamp(28px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--text); font-size: .8rem; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); text-wrap: balance; }
.hero-eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--biscuit); }
@media (max-width: 480px) { .hero-eyebrow { font-size: .74rem; letter-spacing: .08em; gap: 8px; margin-bottom: 10px; } }
.hero h1 { margin-bottom: .5em; }
.hero h1 em { font-style: italic; font-variation-settings: "SOFT" 100, "opsz" 72, "WONK" 1; }
.hero .lead { margin-bottom: 1.6em; }
.hero-note { font-size: .95rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The flip: before / after phone */
.flip { position: relative; }
.flip-toggle { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 18px; }
.flip-toggle button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 600; color: var(--muted); cursor: pointer; }
.flip-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.phone { width: min(320px, 100%); margin: 0 auto; aspect-ratio: 9 / 18; border-radius: 36px; background: #111; padding: 12px; box-shadow: 0 30px 60px -30px rgba(30,59,47,.45); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #fff; }
.screen > div { position: absolute; inset: 0; transition: opacity .35s ease; }
.screen .after { opacity: 0; }
.flip[data-state="after"] .screen .after { opacity: 1; }
.flip[data-state="after"] .screen .before { opacity: 0; }
/* fake "before" site: a 2014 hand-built page */
.before { background: #FFFFCC; font-family: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive; color: #000; padding: 0 0 10px; font-size: 11px; text-align: center; overflow: hidden; }
.before .b-banner { background: #CC0000; color: #FFFF00; font-family: "Times New Roman", serif; font-weight: bold; font-size: 15px; padding: 7px 4px; border-bottom: 3px ridge #FFCC00; letter-spacing: .5px; }
.before .b-marquee { background: #000080; color: #00FF00; font-family: "Courier New", monospace; font-weight: bold; font-size: 10px; padding: 3px 0; white-space: nowrap; overflow: hidden; }
.before .b-marquee span { display: inline-block; padding-left: 100%; animation: b-scroll 9s linear infinite; }
@keyframes b-scroll { to { transform: translateX(-100%); } }
.before .b-title { font-size: 17px; color: #0000EE; text-decoration: underline; margin: 10px 4px 8px; font-weight: bold; }
.before .b-photo { width: 78%; height: auto; margin: 0 auto; border: 4px outset #999; filter: saturate(.75) contrast(1.05); transform: rotate(-1.5deg); }
.before .b-caption { font-size: 9px; font-style: italic; color: #555; margin: 3px 0 8px; }
.before .b-text { font-size: 12px; color: #800080; line-height: 1.3; margin: 0 10px 8px; }
.before .b-links { font-family: "Times New Roman", serif; font-size: 10px; color: #0000EE; margin-bottom: 10px; }
.before .b-flag { display: inline-block; background: #FFFF00; color: #CC0000; border: 2px dashed #CC0000; font-family: Arial, sans-serif; font-weight: bold; font-size: 9px; padding: 3px 6px; margin-bottom: 10px; }
.before .b-email { font-family: "Times New Roman", serif; font-size: 11px; color: #000; margin: 0 0 10px; }
.before .b-email u { color: #0000EE; }
.before .b-myspace { display: inline-block; background: linear-gradient(#6699FF, #003399); color: #fff; font-family: Arial, sans-serif; font-weight: bold; font-size: 10px; padding: 4px 10px; border: 2px outset #99BBFF; margin-bottom: 10px; }
.before .b-hours { font-size: 13px; color: #CC0000; font-weight: bold; margin-bottom: 12px; }
.before .b-photo { width: 84%; }
.before .b-counter { font-family: "Times New Roman", serif; font-size: 9px; color: #333; }
.before .b-counter span { background: #000; color: #00FF00; font-family: "Courier New", monospace; padding: 0 3px; letter-spacing: 1px; }/* fake "after" site */
.after { background: #fff; font-family: var(--text); color: #1b1b1b; display: flex; flex-direction: column; }
.after .a-nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 10px; font-weight: 700; }
.after .a-nav span:last-child { background: #1E3B2F; color: #fff; padding: 4px 8px; border-radius: 999px; }
.after .a-hero { position: relative; height: 214px; overflow: hidden; color: #fff; }
.after .a-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.after .a-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,24,0) 30%, rgba(20,30,24,.78) 100%); }
.after .a-hero-text { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; }
.after .a-hero b { display: block; font-family: var(--display); font-size: 18px; line-height: 1.08; margin-bottom: 3px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.after .a-hero small { display: block; font-size: 9px; opacity: .92; }
.after .a-cta { display: inline-block; margin-top: 7px; background: #E9B64B; color: #1E3B2F; font-weight: 700; font-size: 9px; padding: 5px 10px; border-radius: 999px; }
.after .a-promo { margin: 4px 12px 0; display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; background: #F6F1E4; border-radius: 10px; padding: 6px; }
.after .a-promo img { width: 64px; height: 64px; border-radius: 7px; object-fit: cover; }
.after .a-promo b { display: block; font-family: var(--display); font-size: 12px; line-height: 1.1; }
.after .a-promo small { font-size: 9px; color: #555; }.after .a-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 12px; }
.after .a-card { background: #F6F1E4; border-radius: 8px; height: 46px; display: grid; align-items: end; padding: 6px 8px; font-size: 9px; font-weight: 700; }
.after .a-rev { padding: 0 12px 6px; font-size: 9px; color: #444; }
.after .a-map { margin: 6px 12px 0; background: #E4ECE6; border-radius: 8px; height: 56px; display: grid; place-items: center; font-size: 9px; color: #1E3B2F; font-weight: 600; }
.after .a-rev b { color: #D39A2A; letter-spacing: 1px; }
.after .a-bar { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 12px 12px; }
.after .a-bar span { text-align: center; font-size: 9px; font-weight: 700; padding: 7px; border-radius: 999px; background: #E9B64B; }
.after .a-bar span:last-child { background: #eee; }

/* Proof strip */
.strip { background: var(--ink); color: var(--paper); padding: 22px 0; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 36px; justify-content: space-between; font-weight: 500; }
.strip span { display: inline-flex; align-items: center; gap: 10px; }
.strip svg { width: 18px; height: 18px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 3px solid var(--biscuit); }
.step::before { counter-increment: step; content: counter(step); font-family: var(--display); font-size: 2.2rem; color: var(--crust); line-height: 1; display: block; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 20px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: #fff; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--ink); box-shadow: 0 24px 50px -36px rgba(30,59,47,.5); }
.plan h3 { margin-bottom: 4px; }
.price { font-family: var(--display); font-size: 2.6rem; line-height: 1; margin: 10px 0 2px; font-variation-settings: "SOFT" 30, "opsz" 48; }
.price small { font-family: var(--text); font-size: 1rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.plan .who { color: var(--muted); margin-bottom: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; }
.plan li { padding: 7px 0 7px 26px; position: relative; border-top: 1px dashed var(--line); color: var(--ink-soft); }
.plan li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 14px; border-radius: 50%; background: var(--biscuit); }
.plan .btn { margin-top: auto; justify-content: center; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; background: var(--biscuit); color: var(--ink); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.founding { margin-top: 36px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); padding: 26px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.founding h3 { margin-bottom: 6px; }
.founding p { margin: 0; color: var(--ink-soft); }
.spots { font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--crust); white-space: nowrap; }
.spots small { display: block; font-family: var(--text); font-size: .9rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 700px) { .founding { grid-template-columns: 1fr; } }

/* Included list / two-col */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
.checks li { break-inside: avoid; padding: 8px 0 8px 30px; position: relative; color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--biscuit); }
.checks li::after { content: ""; position: absolute; left: 5px; top: 17px; width: 8px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
@media (max-width: 600px) { .checks { columns: 1; } }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: .98rem; }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-weight: 600; color: var(--muted); font-size: .9rem; }
.compare td:first-child { font-weight: 600; }
.compare .us { background: #FBF4E1; }
@media (max-width: 640px) { .compare { display: block; overflow-x: auto; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--crust); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: 14px; }

/* Examples */
.examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 28px; }
.example { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.example .pair { display: grid; grid-template-columns: 1fr 1fr; }
.example .pair > div { aspect-ratio: 4 / 3; display: grid; place-items: center; font-weight: 600; font-size: .95rem; }
.example .was { background: #e9e9e9; color: #555; font-family: "Times New Roman", serif; }
.example .now { background: linear-gradient(160deg, var(--paper-2), var(--biscuit)); }
.example .shot { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.example .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.example .cap { padding: 16px 18px; }
.example .cap p { margin-bottom: 0; }
.example .cap p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.example.open { border-style: dashed; display: grid; place-items: center; min-height: 240px; text-align: center; padding: 28px; background: var(--paper-2); }
@media (max-width: 760px) { .examples { grid-template-columns: 1fr; } }

/* About */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.person { border-top: 3px solid var(--biscuit); padding-top: 16px; }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--muted); margin-bottom: 10px; }
@media (max-width: 700px) { .people { grid-template-columns: 1fr; } }

/* CTA band */
.band { background: var(--biscuit); }
.band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.band h2 { margin-bottom: 6px; }
.band p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; } }

/* Forms (rendered by cb-forms.js) */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); position: relative; }
.form-card.skeleton { min-height: 420px; display: grid; place-items: center; color: var(--muted); }
.field { margin-bottom: 18px; }
.field label, .field .legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--crust); margin-left: 2px; }
.field .help { font-size: .9rem; color: var(--muted); margin: -2px 0 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"], .field input[type="date"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(233,182,75,.45); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .9rem; margin-top: 6px; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; }
.choice input { margin-top: 4px; accent-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.form-error { background: #FBEAE3; color: var(--danger); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.thanks { text-align: center; padding: 30px 10px; }
.thanks svg { width: 72px; height: 72px; margin: 0 auto 14px; }
.thanks h3 { font-size: 1.7rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.site-footer a { color: var(--ink-soft); text-decoration: none; margin-right: 16px; }
.site-footer a:hover { text-decoration: underline; }

/* Page intro */
.intro { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 40px); }
.intro h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* Mascot big */
.mascot-xl { width: min(240px, 60vw); }