:root{
  --bg:#f8fafc; --fg:#0f172a; --muted:#475569; --line:#e2e8f0;
  --brand:#2563eb; --brand-ink:#0b3aa4; --ok:#16a34a; --warn:#f59e0b;
  --card:#ffffff; --shadow:0 6px 28px rgba(2,6,23,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--fg); background:var(--bg); line-height:1.45}

.container{max-width:1120px; margin:0 auto; padding:0 20px}

/* Nav */
.nav{position:sticky; top:0; z-index:50; background:rgba(248,250,252,.8); backdrop-filter:saturate(180%) blur(10px); border-bottom:1px solid var(--line)}
.nav-row{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.brand{display:flex; gap:10px; align-items:center; font-weight:800; letter-spacing:.2px}
.nav a{color:var(--muted); text-decoration:none; margin-left:18px}
.nav a.link{color:var(--brand); font-weight:700}
.nav a:hover{color:var(--fg)}

/* Hero */
.hero{padding:56px 0 24px}
.hero-grid{display:grid; grid-template-columns:1.2fr .8fr; gap:28px}
.hero-copy h1{font-size:40px; line-height:1.1; margin:0 0 12px}
.sub{font-size:18px; color:var(--muted); margin:0 0 8px}
.ticks{margin:12px 0 0; padding:0; list-style:none; color:var(--fg)}
.ticks li{margin:6px 0; padding-left:22px; position:relative}
.ticks li::before{content:"✔"; color:var(--ok); position:absolute; left:0}
.cta-row{display:flex; align-items:center; gap:14px; margin-top:18px}
.risk{color:var(--muted); font-size:13px}

/* Hero Form */
.hero-form .form-card{
  background:linear-gradient(180deg,#ffffff 0%,#f5f7fb 100%);
  border:1px solid var(--line); border-radius:14px; padding:18px; box-shadow:var(--shadow)
}
.hero-form h3{font-size:18px; margin:0 0 12px; text-align:center}
.hero-form .form-grid{display:grid; grid-template-columns:1fr; gap:10px}
.hero-form label{font-size:12px; color:var(--muted); display:block}
.hero-form input{width:100%; margin-top:4px; padding:10px; border-radius:8px; border:1px solid var(--line); background:#fff; color:var(--fg); font-size:14px}
.hero-form input:focus{outline:2px solid var(--brand); outline-offset:2px}
.hero-form .agree{margin:10px 0; display:flex; gap:6px; align-items:flex-start}
.hero-form .agree input[type="checkbox"]{width:auto; margin:0}
.hero-form .agree label{margin:0; font-size:12px; line-height:1.3}
.hero-form .btn{width:100%; margin:8px 0}
.hero-form .msg{margin:6px 0; padding:6px 10px; border-radius:6px; font-size:12px}
.hero-form .post-success{text-align:center; margin-top:8px}
.hero-form .login-inline{text-align:center; margin-top:8px; font-size:12px; color:var(--muted)}
.hint{display:block; font-size:11px; color:var(--muted); margin-top:2px; line-height:1.3}
.hero-trial-msg{display:none} /* Hide until trial_end is set */

/* Legacy glass styles for compatibility */
.hero-card .glass{
  background:linear-gradient(180deg,#ffffff 0%,#f5f7fb 100%);
  border:1px solid var(--line); border-radius:14px; padding:18px; box-shadow:var(--shadow)
}
.glass-row{display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px dashed var(--line)}
.glass-row:last-child{border-bottom:0}
.pill{padding:4px 8px; border-radius:999px; font-size:12px; background:#eef2ff; color:#3730a3}
.pill.ok{background:#ecfdf5; color:#166534}
.pill.warn{background:#fff7ed; color:#9a3412}
.mini-note{font-size:12px; color:var(--muted); margin-top:8px}

/* Accountant strip */
.accountant-strip{padding:12px 0; background:linear-gradient(90deg,#ecfdf5 0%,#f0fdf4 100%); border:1px solid #bbf7d0; border-left:0; border-right:0}
.strip{display:flex; justify-content:center; align-items:center; gap:8px; text-align:center}
.strip-text{font-weight:700; color:#166534; font-size:14px}
.strip-sub{color:#15803d; font-size:12px}

/* Proof row */
.proof{padding:18px 0 0}
.proof-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
.trust{display:flex; gap:12px; align-items:center; background:var(--card); padding:14px; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow)}
.trust .shield{font-size:18px}
.trust-title{font-weight:800}
.trust-sub{font-size:13px; color:var(--muted)}

/* Features */
.features{padding:48px 0 8px}
.features h2, .how h2, .signup h2, .pricing h2, .faq h2 {font-size:28px; margin:0 0 16px}
.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
.card{background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; box-shadow:var(--shadow)}
.card h3{margin:0 0 6px}

/* How */
.how{padding:8px 0 8px}
.steps{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
.step{background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; box-shadow:var(--shadow); display:flex; gap:12px}
.num{width:28px; height:28px; border-radius:50%; background:var(--brand); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:800}

/* Signup */
.signup{padding:28px 0 28px}
.signup-card{background:var(--card); border:1px solid var(--line); border-radius:16px; padding:20px; box-shadow:var(--shadow)}
.signup .grid{display:grid; grid-template-columns:repeat(2,1fr); gap:12px}
.signup label{font-size:12px; color:var(--muted); display:block}
.signup input{width:100%; margin-top:6px; padding:12px 12px; border-radius:10px; border:1px solid var(--line); background:#fff; color:var(--fg)}
.signup input:focus{outline:2px solid var(--brand); outline-offset:2px}
.signup .agree{margin:12px 0; display:flex; gap:8px; align-items:flex-start}
.signup .agree input[type="checkbox"]{width:auto; margin:0}
.signup .agree label{margin:0; font-size:13px; line-height:1.4}
.msg{margin:8px 0; padding:8px 12px; border-radius:8px; font-size:13px}
.msg.error{background:#fef2f2; color:#991b1b; border:1px solid #fecaca}
.msg.success{background:#f0fdf4; color:#166534; border:1px solid #bbf7d0}
.post-success{text-align:center; margin-top:12px}
.tiny{font-size:12px; color:var(--muted); margin-top:6px}
.login-inline{text-align:center; margin-top:12px; font-size:13px; color:var(--muted)}

/* Pricing */
.pricing{padding:8px 0 28px}
.price-card{background:var(--card); border:1px solid var(--line); border-radius:16px; padding:20px; text-align:center; box-shadow:var(--shadow); max-width:360px; margin:0 auto}
.p-h{font-size:18px; font-weight:800; margin:0 0 8px}
.p-price{font-size:36px; font-weight:800; color:var(--brand); margin:0 0 12px}
.p-price small{font-size:16px; color:var(--muted)}
.price-card ul{list-style:none; padding:0; margin:0 0 16px; text-align:left}
.price-card li{padding:6px 0; padding-left:20px; position:relative}
.price-card li::before{content:"✓"; color:var(--ok); position:absolute; left:0}
.p-fine{font-size:12px; color:var(--muted); margin-top:8px}

/* FAQ */
.faq{padding:8px 0 28px}
.faq details{background:var(--card); border:1px solid var(--line); border-radius:12px; margin:6px 0; overflow:hidden; box-shadow:var(--shadow)}
.faq summary{padding:16px; font-weight:700; cursor:pointer; background:linear-gradient(90deg,#ffffff 0%,#f8fafc 100%)}
.faq summary:hover{background:var(--bg)}
.faq details[open] summary{border-bottom:1px solid var(--line)}
.faq details p{margin:0; padding:16px; background:#fff}

/* Footer */
.foot{padding:28px 0; border-top:1px solid var(--line); background:var(--card)}
.foot-row{display:flex; justify-content:space-between; align-items:center; font-size:13px; color:var(--muted)}
.foot nav{display:flex; gap:16px}
.foot a{color:var(--muted); text-decoration:none}
.foot a:hover{color:var(--fg)}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid{grid-template-columns:1fr; gap:20px}
  .hero-copy h1{font-size:32px}
  .proof-grid{grid-template-columns:1fr; gap:12px}
  .cards{grid-template-columns:1fr; gap:12px}
  .steps{grid-template-columns:1fr; gap:12px}
  .signup .grid{grid-template-columns:1fr}
  .foot-row{flex-direction:column; gap:12px}
}