:root {
  --ink: #14202b;
  --muted: #5b6b7a;
  --line: #e3e9ef;
  --bg: #ffffff;
  --soft: #f5f8fb;
  --brand: #0f766e;
  --brand-d: #0c5f58;
  --accent: #2563eb;
  --down: #b42318;
  --up: #067647;
  --flat: #6b7280;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,32,43,.06), 0 8px 24px rgba(16,32,43,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
.muted { color: var(--muted); }
.r { text-align: right; }
.c { text-align: center; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand span { color: var(--brand); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--brand); }
.cta-mini { background: var(--brand); color: #fff !important; padding: 8px 14px; border-radius: 999px; }
.cta-mini:hover { background: var(--brand-d); }

/* buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-size: 1rem; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-d); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }

/* hero */
.hero { padding: 84px 0 60px; background: linear-gradient(180deg, var(--soft), #fff); border-bottom: 1px solid var(--line); }
.hero .wrap { max-width: 860px; text-align: center; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 auto 28px; max-width: 680px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trustline { margin-top: 22px; font-size: .9rem; color: var(--muted); }

/* sections */
section { padding: 64px 0; }
.section-sub { color: var(--muted); max-width: 720px; }

/* demo */
.demo { background: var(--soft); border-bottom: 1px solid var(--line); }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 18px; }
.field { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.field .opt { color: var(--muted); font-weight: 400; font-size: .8rem; }
.field input[type=file] { width: 100%; font-size: .85rem; }
.file-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.file-btn { display: inline-block; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--brand, #2563eb); border: 1px solid var(--brand, #2563eb); border-radius: 8px; padding: 7px 14px; user-select: none; }
.file-btn:hover { opacity: .85; }
.file-btn:focus-visible { outline: 2px solid var(--brand, #2563eb); outline-offset: 2px; }
.file-name { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.demo-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.status { color: var(--down); min-height: 1.2em; font-size: .9rem; }
.report { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.report h3 { margin-bottom: 2px; }
.report h4 { margin: 20px 0 8px; font-size: 1.02rem; }
.changes { margin: 0; padding-left: 18px; }
.changes li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { text-align: left; color: var(--muted); font-weight: 600; background: var(--soft); }
td.r, th.r { text-align: right; }
td.c, th.c { text-align: center; }
.down { color: var(--down); font-weight: 600; }
.up { color: var(--up); font-weight: 600; }
.flat { color: var(--flat); }
.badge { font-size: .78rem; padding: 2px 8px; border-radius: 999px; }
.badge.ok { background: #e7f6ef; color: var(--up); }
.badge.low { background: #fdf3e7; color: #b54708; }
.badge.out { background: #fdecec; color: var(--down); }
.footnote { margin-top: 16px; font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.report-cta { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--soft); padding: 16px; border-radius: 10px; }
.report-cta p { margin: 0; }

/* how */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.step .n { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px; }
.step h3 { font-size: 1.02rem; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* pricing */
.pricing { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tiers.single { grid-template-columns: minmax(0, 380px); justify-content: center; }
.tier.featured { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(15,118,110,.18), var(--shadow); }
.tier h3 { font-size: 1.08rem; }
.price { font-size: 2.2rem; font-weight: 800; margin: 8px 0 0; }
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.tag { font-size: .82rem; color: var(--muted); margin: 0 0 14px; }
.tier ul { margin: 0 0 20px; padding-left: 18px; flex: 1; }
.tier li { font-size: .92rem; margin-bottom: 8px; }

/* compliance */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; margin-top: 20px; }
.rules p { margin: 0; padding-left: 26px; position: relative; color: var(--muted); }
.rules p::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.rules strong { color: var(--ink); }

/* contact */
.contact { background: var(--ink); color: #fff; }
.contact h2 { color: #fff; }
.contact p { color: #cdd8e2; max-width: 620px; }
.contact-cta { margin-top: 8px; }
.contact .btn.primary { background: #fff; color: var(--ink); }
.contact .btn.primary:hover { background: #eafffb; color: var(--brand-d); }

/* legal / article pages */
.legal { padding: 56px 0 40px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: .2em; }
.legal h2 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.legal p, .legal li { color: #33424f; font-size: 1rem; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal code { background: var(--soft); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.article { padding: 48px 0 40px; }
.article .wrap { max-width: 760px; }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .3em; }
.article h2 { font-size: 1.35rem; margin: 1.5em 0 .4em; }
.article h3 { font-size: 1.12rem; margin: 1.2em 0 .3em; }
.article p { font-size: 1.05rem; color: #2c3a46; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; font-size: 1.03rem; color: #2c3a46; }
.article .byline { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.article .callout { background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; padding: 16px 18px; margin: 22px 0; }
.article .callout p { margin: 0; }
.article-cta { margin-top: 36px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.article-cta p { margin: 0; }

/* footer */
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.foot-links { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 20px; }
.foot-links h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin: 0 0 8px; }
.foot-links a { display: block; color: var(--muted); margin-bottom: 6px; }
.foot-links a:hover { color: var(--brand-d); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ai-disc { font-style: italic; }

/* responsive */
@media (max-width: 860px) {
  .demo-grid, .steps, .tiers { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .nav { display: none; }
  section { padding: 46px 0; }
  .hero { padding: 56px 0 40px; }
}
