/* Lefthand's website. Mobile first; no web fonts (system serif for headings, system sans for text), so it is fast. */
:root {
  --bg: #f7f4ec;
  --bg-alt: #efeadd;
  --surface: #ffffff;
  --text: #1b2620;
  --muted: #56625b;
  --line: #ddd6c6;
  --brand: #1f6f4a;
  --brand-strong: #17573a;
  --brand-soft: #e1efe6;
  --on-brand: #ffffff;
  --accent: #c8862a;
  --accent-text: #8a5712;
  --dark: #13241b;
  --on-dark: #eef3ee;
  --on-dark-muted: #b7c7bc;
  --error: #a3261b;
  --ok: #17573a;
  --shadow: 0 1px 2px rgb(20 30 25 / 6%), 0 12px 32px rgb(20 30 25 / 10%);
  --radius: 18px;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111814;
    --bg-alt: #17211b;
    --surface: #1c2721;
    --text: #e8eee9;
    --muted: #a9b8ae;
    --line: #2e3c34;
    --brand: #4fb583;
    --brand-strong: #6cc898;
    --brand-soft: #1d3428;
    --on-brand: #0d1a13;
    --accent: #e0a24c;
    --accent-text: #e0a24c;
    --dark: #0b120e;
    --error: #ff8a7d;
    --ok: #6cc898;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

*, *::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 { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.small-title { font-size: clamp(1.3rem, 3vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 780px; }
.wrap.wide { max-width: 780px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 88px 0; } }
.band { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--text); text-decoration: none; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-family: var(--sans); font-size: 1.1rem; font-weight: 800; }
.logo.small { width: 28px; height: 28px; font-size: 0.95rem; border-radius: 8px; }
.small-brand { font-size: 1.15rem; margin-bottom: 8px; }
.menu-button { font: inherit; font-weight: 600; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; min-height: 44px; cursor: pointer; }
.nav { display: none; flex-basis: 100%; flex-direction: column; gap: 4px; padding: 8px 0 16px; }
.nav.open { display: flex; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 10px 4px; }
.nav a.button { color: var(--on-brand); text-align: center; margin-top: 6px; }
@media (min-width: 960px) {
  .menu-button { display: none; }
  .nav { display: flex; flex-basis: auto; flex-direction: row; align-items: center; gap: 22px; padding: 0; }
  .nav a { padding: 6px 0; font-size: 0.97rem; }
  .nav a.button { margin: 0; padding: 9px 18px; }
  .nav .lang { color: var(--muted); }
}

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid var(--brand); background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.button:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); transform: translateY(-1px); }
.button:disabled { opacity: 0.6; cursor: progress; transform: none; }
.button.small { min-height: 40px; padding: 8px 18px; }
.button.ghost { background: transparent; color: var(--brand-strong); }
.button.ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }
.button.light { background: #ffffff; border-color: #ffffff; color: #13241b; }
.button.light:hover { background: #e6efe9; border-color: #e6efe9; color: #13241b; }
.button.ghost-light { background: transparent; border-color: rgb(255 255 255 / 60%); color: #ffffff; }
.button.ghost-light:hover { background: rgb(255 255 255 / 10%); color: #ffffff; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.cta .button { flex: 1 1 200px; }
@media (min-width: 600px) { .cta .button { flex: 0 0 auto; } }
.center-cta { justify-content: center; }

/* Hero */
.hero { padding-top: 40px; overflow: hidden; background: radial-gradient(1200px 500px at 80% 0%, var(--brand-soft), transparent 70%), var(--bg); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 96px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.95rem; }
.trust li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 6px; }
.hero-visual { position: relative; margin: 0; }
.plan-art { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.quote-card { position: relative; margin: -56px 12px 0 auto; width: min(330px, 88%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; font-size: 0.92rem; }
@media (min-width: 960px) { .hero-visual { padding-bottom: 72px; } .quote-card { position: absolute; margin: 0; right: -24px; bottom: 8px; } }
.quote-card p { margin: 0; }
.qc-label { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-strong); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.qc-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; margin: 6px 0 8px !important; }
.qc-lines { list-style: none; padding: 0; margin: 0 0 8px; }
.qc-lines li, .qc-total { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.qc-lines li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.qc-total { border-bottom: 0; font-weight: 600; }
.qc-total strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.qc-checks { color: var(--brand-strong); font-size: 0.82rem; font-weight: 600; }

/* Who */
.who { padding: 40px 0; border-bottom: 1px solid var(--line); }
.who-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .who-list { grid-template-columns: repeat(3, 1fr); } }
.who-list li { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.who-icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); font-size: 1.4rem; }
.who-list span:last-child { color: var(--muted); font-size: 0.95rem; }

/* Steps and timeline */
.steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li, .feature, .agent, .plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p, .feature p { color: var(--muted); margin: 0; }
.step-number { display: inline-block; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding-bottom: 28px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .step-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-size: 1rem; }
.timeline h2 { font-size: 1.35rem; margin-bottom: 0.3em; }
.timeline p { color: var(--muted); }

/* Grids */
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: repeat(2, 1fr); gap: 20px; } .grid.three { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1020px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.feature h2, .feature h3 { margin-bottom: 0.4em; }

/* Screens */
.screens-grid { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .screens-grid { grid-template-columns: 1fr 260px; gap: 40px; } }
.shot { margin: 0; }
.shot img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.phone-shot { max-width: 260px; margin: 0 auto; }
.phone-shot img { border-radius: 30px; border: 8px solid #1b2620; }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 0.95rem; text-align: center; }

/* Agents (dark band) */
.dark-band { background: var(--dark); color: var(--on-dark); }
.dark-band .eyebrow { color: #8fd3ad; }
.dark-band .section-head p { color: var(--on-dark-muted); }
.agent { background: rgb(255 255 255 / 4%); border-color: rgb(255 255 255 / 12%); }
.agent h3 { color: #ffffff; }
.agent p { color: var(--on-dark-muted); margin: 0; }
.soon-tag { display: inline-block; vertical-align: middle; font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgb(224 162 76 / 20%); color: #f0c27f; }
.price-rule { margin: 32px auto 0; max-width: 760px; text-align: center; padding: 16px 20px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 14px; color: var(--on-dark); }
.price-rule::before { content: "🔒 "; }

/* Pricing */
.plans { margin-bottom: 24px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; } }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.35rem; }
.price { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; margin: 0 0 8px; }
.price span { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 1.1em; margin: 8px 0 20px; color: var(--muted); }
.plan li { margin-bottom: 6px; }
.plan .button { margin-top: auto; }
.trial-pill { display: inline-block; background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; padding: 8px 16px; border-radius: 999px; }
.addons { list-style: none; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .addons { grid-template-columns: repeat(2, 1fr); } }
.addons li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.addons p { margin: 4px 0 0; }
.soon { color: var(--accent-text); font-weight: 600; }

/* Forms */
.demo-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.card-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; }
@media (min-width: 600px) { .card-form { grid-template-columns: 1fr 1fr; padding: 28px; } .wide-field, .card-form fieldset { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; margin: 0; }
fieldset.field { border: 0; padding: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
fieldset.field legend { margin-bottom: 6px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 2px solid color-mix(in srgb, var(--brand) 30%, transparent); outline-offset: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.95rem; padding: 4px 0; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: 0 0 auto; accent-color: var(--brand); }
fieldset .check { display: inline-flex; margin-right: 16px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 12px 0 0; font-weight: 600; min-height: 1.2em; }
.status.error { color: var(--error); }
.status.ok { color: var(--ok); }
.mini-steps { padding-left: 1.3em; color: var(--muted); }
.mini-steps li { margin-bottom: 8px; }
.contact-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.contact-list strong { display: inline-block; min-width: 5.5em; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.08rem; padding: 14px 32px 14px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--brand); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); }

/* Page hero, prose */
.page-hero { padding: 48px 0 24px; background: radial-gradient(900px 360px at 50% 0%, var(--brand-soft), transparent 70%); }
.page-hero .center .lead { margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .page-hero { padding: 80px 0 40px; } }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose p { color: var(--muted); }
.page { padding: 48px 0; }

/* Final call to action */
.final-cta { background: linear-gradient(135deg, #1f6f4a, #13402b); color: #ffffff; text-align: center; }
.final-inner { max-width: 820px; }
.final-cta p { color: #d5e6db; font-size: 1.1rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 120px; }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.2fr 2fr; } }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: start; }
.foot-links a { color: var(--text); text-decoration: none; padding: 6px 0; }
.foot-links a:hover { color: var(--brand); text-decoration: underline; }
.foot-note { grid-column: 1 / -1; margin: 0; }

/* Lefthand assistant */
.assistant { position: fixed; right: 16px; bottom: 16px; z-index: 40; }
.assistant-open { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 700; box-shadow: var(--shadow); cursor: pointer; }
.assistant-open span { color: #9ff0c3; font-size: 0.8rem; }
.assistant.is-open .assistant-open { display: none; }
.assistant-panel { position: fixed; inset: auto 0 0 0; height: min(78vh, 620px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px 20px 0 0; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 600px) { .assistant-panel { inset: auto 16px 16px auto; width: 390px; border-radius: 20px; } }
.assistant-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--brand); color: var(--on-brand); }
.assistant-head h2 { font-size: 1.1rem; margin: 0; color: inherit; }
.assistant-close { background: transparent; border: 0; color: inherit; font: inherit; font-size: 1.5rem; line-height: 1; min-width: 44px; min-height: 44px; cursor: pointer; }
.assistant-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.97rem; }
.bubble.them { align-self: flex-start; background: var(--bg-alt); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 4px; }
.bubble.person { align-self: flex-start; background: var(--brand-soft); border: 1px solid var(--brand); border-bottom-left-radius: 4px; }
.bubble-who { display: block; font-size: 0.75rem; font-weight: 700; color: var(--brand-strong); margin-bottom: 2px; }
.bubble.typing { color: var(--muted); font-style: italic; }
.assistant-consent { margin: 0; padding: 8px 16px 0; font-size: 0.78rem; color: var(--muted); }
.assistant-form { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.assistant-form input { flex: 1; }
.assistant-form .button { min-height: 46px; padding: 8px 16px; }
.assistant-person { align-self: flex-start; background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--brand-strong); font: inherit; font-size: 0.9rem; font-weight: 600; padding: 6px 14px; min-height: 36px; cursor: pointer; }
