/* TallyMCP marketing site — single stylesheet, no build step, no external deps */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-card: #ffffff;
  --ink: #161a2b;
  --ink-soft: #515873;
  --line: #e4e7f0;
  --brand: #1d6b4f;
  --brand-ink: #154d39;
  --brand-soft: #eef6f1;
  --ok: #0f9d58;
  --radius: 14px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .05s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 16px 30px; font-size: 1.06rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links .btn { color: #fff; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* Hero */
.hero { padding: 76px 0 56px; background: linear-gradient(180deg, var(--brand-soft), #fff 70%); }
.hero h1 { max-width: 14ch; margin-inline: auto; }
.hero .sub { font-size: 1.22rem; color: var(--ink-soft); max-width: 60ch; margin: 0 auto 1.6em; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.req { margin-top: 18px; font-size: .92rem; color: var(--ink-soft); }

/* Proof strip */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.proof .wrap { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; padding: 20px 22px; }
.proof b { color: var(--ink); }
.proof span { color: var(--ink-soft); font-size: .96rem; }

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 60ch; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 1.16rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.card .ico {
  width: 38px; height: 38px; border-radius: 9px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 14px; color: var(--brand);
  font-weight: 700; font-size: 1.1rem;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background:#fff; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* Pricing */
.price-wrap { background: var(--bg-soft); }
.price-card {
  max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 34px; text-align: center; box-shadow: 0 8px 30px rgba(20,26,43,.06);
}
.price-card .amt { font-size: 3.2rem; font-weight: 700; letter-spacing: -.03em; }
.price-card .amt span { font-size: 1.1rem; font-weight: 500; color: var(--ink-soft); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0; text-align: left; }
.price-card li { padding: 8px 0 8px 28px; position: relative; color: var(--ink); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.price-card .btn { width: 100%; }
.price-note { margin-top: 14px; font-size: .9rem; color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; background:#fff; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: 0 0 14px; }

/* CTA band */
.band { background: var(--brand); color: #fff; text-align: center; }
.band h2 { color: #fff; }
.band p { color: #dfe5fb; max-width: 50ch; margin: 0 auto 1.4em; }
.band .btn-primary { background: #fff; color: var(--brand-ink); }
.band .btn-primary:hover { background: #f0f2ff; color: var(--brand-ink); }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 40px 0; font-size: .94rem; }
.footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--ink); }
.footer .cols { display: flex; gap: 40px; flex-wrap: wrap; }
.footer .col b { display: block; color: var(--ink); margin-bottom: 8px; font-size: .9rem; }
.footer .col a { display: block; margin-bottom: 6px; }
.footer .legalrow { color: var(--ink-soft); }

/* Legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 50px 22px 70px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2em; }
.legal a.back { font-weight: 600; }
