:root {
  --accent: #0f9d63;
  --accent-2: #34c184;
  --accent-soft: #d9f5e8;
  --accent-ink: #0a5f3d;
  --ink: #0f1a22;
  --body: #3a4552;
  --muted: #67757f;
  --bg: #ffffff;
  --surface: #f2f7f4;
  --surface-2: #e6f3ec;
  --border: #e2eae5;
  --border-strong: #cedcd4;
  --green: #16a34a;
  --sa-green: #007749;
  --sa-gold: #ffb612;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 34, .06), 0 1px 3px rgba(16, 18, 34, .04);
  --shadow-md: 0 10px 30px rgba(6, 95, 70, .10), 0 2px 8px rgba(16, 26, 34, .05);
  --shadow-lg: 0 24px 60px rgba(6, 95, 70, .16);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 650; cursor: pointer;
  padding: .72rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(15,157,99,.35); }
.btn-primary:hover { background: #0b7d4f; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15,157,99,.42); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: rgba(255,255,255,.26); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.28rem; color: var(--ink); letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; flex: none; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--body); font-weight: 600; padding: .5rem .8rem; border-radius: 10px; }
.nav-links a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 10px; width: 44px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 68px;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1rem 22px 1.4rem; display: none; box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: .8rem .9rem; }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: .4rem; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 15% 0%, rgba(52,193,132,.22), transparent 60%),
    radial-gradient(55% 50% at 100% 10%, rgba(0,119,73,.12), transparent 55%),
    linear-gradient(180deg, #f2fbf6, #ffffff 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--border-strong); color: var(--accent-ink);
  padding: .4rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 650; margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.hero h1 { max-width: 16ch; }
.hero-lead { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: var(--body); max-width: 46ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-note { font-size: .92rem; color: var(--muted); margin-top: 1rem; display: flex; align-items: center; gap: .4rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; } }
.hero + section { padding-top: clamp(1rem, 2.5vw, 1.6rem); }

/* Mock preview card */
.mock {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.mock-dots { display: flex; gap: .35rem; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mock-url { font-size: .78rem; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: .25rem .7rem; }
.mock-body { display: grid; grid-template-columns: 1fr 1.2fr; min-height: 240px; }
.mock-chat { border-right: 1px solid var(--border); padding: 1rem; background: #fbfaff; display: flex; flex-direction: column; gap: .6rem; }
.bubble { font-size: .82rem; padding: .55rem .75rem; border-radius: 12px; max-width: 92%; }
.bubble.me { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.ai { background: #fff; border: 1px solid var(--border); color: var(--body); border-bottom-left-radius: 4px; }
.mock-render { padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; }
.sk { border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), #fff, var(--surface-2)); background-size: 200% 100%; animation: shimmer 2.2s infinite; }
.sk.title { height: 20px; width: 65%; }
.sk.line { height: 11px; }
.sk.line.s { width: 80%; } .sk.line.m { width: 95%; }
.sk.block { height: 70px; margin-top: .3rem; }
.sk.btn { height: 30px; width: 40%; background: var(--accent-soft); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
@media (max-width: 880px) {
  .mock-chat { padding: 1rem .9rem; }
  .bubble { padding: .6rem 1rem; max-width: 100%; }
}

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .kicker { color: var(--accent-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.section-head p { color: var(--body); font-size: 1.06rem; }
.alt { background: var(--surface); border-block: 1px solid var(--border); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 1rem; }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; font-size: .96rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.6rem 1.4rem 1.4rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: .9rem; }
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; font-size: .96rem; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; padding-top: 14px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.8rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative;
}
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.plan.featured::before {
  content: "Start here — free"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .76rem; font-weight: 700; padding: .3rem .9rem; border-radius: 999px; white-space: nowrap;
}
.plan .pname { font-weight: 750; font-size: 1.2rem; color: var(--ink); }
.plan .ptag { color: var(--muted); font-size: .92rem; margin: .2rem 0 1rem; }
.plan .price { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.plan .price small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .plist { list-style: none; margin: 1.3rem 0; padding: 0; display: grid; gap: .6rem; }
.plan .plist li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; }
.plan .plist li svg { width: 19px; height: 19px; flex: none; margin-top: 2px; color: var(--green); }
.plan .plist li.off { color: var(--muted); }
.plan .plist li.off svg { color: var(--border-strong); }
.plan .btn { margin-top: auto; width: 100%; }

/* Comparison table */
.table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
table { border-collapse: collapse; width: 100%; background: #fff; font-size: .95rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface); color: var(--ink); font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }
.compare th:first-child, .compare td:first-child { font-weight: 600; color: var(--ink); }
.compare td[data-plan="Free"] { background: rgba(15,157,99,.06); }

/* Keep the four plan columns readable on narrow screens by letting the
   table overflow into a horizontal scroll instead of squeezing. */
.compare { min-width: 640px; }
.scroll-hint { display: none; }
@media (max-width: 700px) {
  .scroll-hint {
    display: block; text-align: center;
    margin: 0 0 .7rem; font-size: .85rem; color: var(--muted);
  }
  .scroll-hint::before { content: "↔ "; color: var(--accent-ink); font-weight: 700; }
  .compare th:first-child, .compare td:first-child {
    position: sticky; left: 0; z-index: 1;
    background: #fff;
    box-shadow: 1px 0 0 var(--border);
  }
  .compare thead th:first-child { background: var(--surface); }
}

/* FAQ */
.faq { display: grid; gap: .7rem; max-width: 780px; margin-inline: auto; }
details.q { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.2rem; box-shadow: var(--shadow-sm); }
details.q summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 650; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 400; line-height: 1; }
details.q[open] summary::after { content: "\2212"; }
details.q .a { padding: 0 0 1.1rem; color: var(--body); }
details.q .a p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #0a5f3d, #0f9d63 55%, #12b070); color: #fff; text-align: center; border-radius: var(--radius-lg); padding: clamp(2.4rem, 6vw, 3.6rem); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 48ch; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--accent-ink); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.cta-band .btn-primary:hover { background: #ecfbf3; }
.cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1222; color: #c8ccd8; padding: 3rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: #c8ccd8; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-about p { font-size: .95rem; color: #a4a9ba; max-width: 34ch; margin-top: .8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .9rem; color: #9096a8; }
.sa-flag { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Legal / long-form ---------- */
.doc-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 2.6rem 0 2rem; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-ink); }
.updated { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--border-strong); border-radius: 999px; padding: .35rem .8rem; font-size: .85rem; color: var(--body); margin-top: .6rem; }
.doc { max-width: 74ch; margin: 2.4rem auto 1rem; }
.doc h2 { font-size: 1.5rem; margin-top: 2.2rem; padding-top: .4rem; scroll-margin-top: 90px; }
.doc h3 { font-size: 1.12rem; margin-top: 1.6rem; }
.doc p, .doc li { line-height: 1.8; }
.doc ul, .doc ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.doc li { margin-bottom: .5rem; }
.doc table { margin: 1.2rem 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.doc blockquote { margin: 1.2rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--sa-gold); background: #fff9ec; border-radius: 0 10px 10px 0; color: #6b5a2a; }
.doc blockquote p:last-child { margin-bottom: 0; }
.ph { background: #fff3cd; border-bottom: 1px dashed #d9a400; color: #7a5b00; padding: 0 .2em; border-radius: 3px; font-style: normal; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 0 auto 1.4rem; max-width: 74ch; }
.toc h2 { font-size: 1rem; margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { columns: 2; column-gap: 2rem; margin: 0; padding-left: 1.2rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.toc a { font-size: .93rem; }

/* Legal index cards */
.legal-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.legal-item { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.legal-item:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.legal-item strong { color: var(--ink); font-size: 1.08rem; display: block; margin-bottom: .25rem; }
.legal-item span { color: var(--body); font-size: .93rem; }

/* Utility */
.badge-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.6rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.badge-row span { display: inline-flex; align-items: center; gap: .4rem; }
.check { color: var(--green); }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--body); }
.note-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1rem; }
.note-card h3 { margin-top: 0; }
.note-card p:last-child { margin-bottom: 0; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
