:root {
  --ink: #17251f;
  --muted: #607069;
  --paper: #fbfaf5;
  --white: #fff;
  --green: #176b50;
  --green-dark: #0f4d3a;
  --mint: #dff3e9;
  --lime: #d9ef78;
  --orange: #f37a48;
  --line: #dce4df;
  --danger: #b83030;
  --shadow: 0 22px 55px rgba(23, 37, 31, .12);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 "DM Sans", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: radial-gradient(circle at 8% 8%, rgba(217,239,120,.23), transparent 24rem), radial-gradient(circle at 93% 23%, rgba(243,122,72,.10), transparent 27rem); }
h1,h2,h3 { margin: 0 0 .75rem; font-family: "Manrope", sans-serif; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.55rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; }
.shell { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(220,228,223,.8); background: rgba(251,250,245,.88); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font: 800 1.3rem/1 "Manrope", sans-serif; text-decoration: none; }
.brand > span:last-child > span { color: var(--green); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px 12px 12px 3px; color: var(--ink); background: var(--lime); font-size: 1.1rem; box-shadow: inset 0 0 0 1px rgba(23,37,31,.08); }
.main-nav { display: flex; align-items: center; gap: 1.15rem; }
.nav-logout { margin: 0; }
.main-nav > a:not(.button) { color: var(--ink); font-weight: 600; text-decoration: none; }
.main-nav > a:hover { color: var(--green); }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; }
.button { display: inline-flex; min-height: 50px; padding: .8rem 1.2rem; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 12px; color: #fff; background: var(--green); box-shadow: 0 10px 24px rgba(23,107,80,.19); font: 700 1rem/1 "DM Sans", sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); background: var(--green-dark); box-shadow: 0 14px 30px rgba(23,107,80,.25); }
.button-secondary { color: var(--ink); background: var(--lime); box-shadow: none; }
.button-secondary:hover { background: #cfe567; }
.button-ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); box-shadow: none; }
.button-danger { background: var(--danger); }
.button-small { min-height: 40px; padding: .6rem .85rem; font-size: .91rem; }
.button-wide { width: 100%; }
.eyebrow { display: inline-flex; margin-bottom: 1.25rem; padding: .45rem .75rem; align-items: center; border-radius: 999px; color: var(--green-dark); background: var(--mint); font-size: .84rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.muted { color: var(--muted); }
.hero { padding: clamp(4rem, 9vw, 8rem) 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.hero h1 span { position: relative; color: var(--green); }
.hero h1 span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.02em; height: .1em; border-radius: 1em; background: var(--lime); transform: rotate(-1deg); z-index: -1; }
.hero-copy > p { max-width: 670px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.7rem 0; }
.micro-proof { display: flex; flex-wrap: wrap; gap: .65rem 1.1rem; color: var(--muted); font-size: .9rem; }
.micro-proof span::before { content: "✓"; margin-right: .35rem; color: var(--green); font-weight: 800; }
.demo-card { position: relative; padding: 1.15rem; border: 1px solid rgba(23,37,31,.08); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.demo-card::before { content: ""; position: absolute; inset: -18px 28px auto -22px; height: 70%; z-index: -1; border-radius: 30px; background: var(--lime); transform: rotate(-3deg); }
.demo-top { display: flex; justify-content: space-between; align-items: center; padding: .4rem .4rem 1rem; }
.platform-pill,.status-pill,.plan-pill { display: inline-flex; padding: .38rem .65rem; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-size: .8rem; font-weight: 800; }
.score { font-weight: 800; }
.demo-listing { padding: 1.2rem; border: 1px solid var(--line); border-radius: 17px; background: #fffefa; }
.demo-listing h3 { font-size: 1.4rem; }
.demo-listing ul { padding-left: 1.2rem; color: var(--muted); }
.demo-choice { margin-top: .8rem; padding: .85rem 1rem; border-radius: 13px; background: #f5f7f2; }
.logo-strip { padding: 1.2rem 0; border-block: 1px solid var(--line); background: rgba(255,255,255,.5); }
.logo-strip .shell { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 6vw, 5rem); flex-wrap: wrap; color: var(--muted); font-weight: 800; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.8); box-shadow: 0 12px 35px rgba(23,37,31,.05); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1rem; border-radius: 14px; background: var(--mint); color: var(--green); font-weight: 800; }
.dark-section { color: #f7fff9; background: var(--ink); }
.dark-section .section-head p,.dark-section .muted { color: #adc0b7; }
.steps { counter-reset: steps; }
.step { position: relative; padding-top: 4rem; }
.step::before { counter-increment: steps; content: "0" counter(steps); position: absolute; top: 0; color: var(--lime); font: 800 2rem/1 "Manrope", sans-serif; }
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); align-items: center; border-radius: 30px; background: var(--lime); }
.cta-band h2 { max-width: 720px; }
.page-hero { padding: 4rem 0 2rem; text-align: center; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero p { max-width: 680px; margin-inline: auto; color: var(--muted); font-size: 1.14rem; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; padding-bottom: 5rem; }
.form-card { padding: clamp(1.2rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label,.field-label { display: block; margin-bottom: .42rem; font-weight: 700; }
.field small { display: block; margin-top: .38rem; color: var(--muted); }
input,select,textarea { width: 100%; min-height: 50px; padding: .78rem .9rem; border: 1px solid #cbd6d0; border-radius: 11px; color: var(--ink); background: #fff; font: inherit; outline: 0; transition: border .15s, box-shadow .15s; }
textarea { min-height: 190px; resize: vertical; }
input:focus,select:focus,textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(23,107,80,.1); }
.form-status { min-height: 1.5rem; margin-top: .8rem; color: var(--muted); }
.form-status.error { color: var(--danger); }
.side-card { padding: 1.35rem; border-radius: 18px; background: var(--mint); }
.side-card + .side-card { margin-top: 1rem; }
.side-card ul { margin: .75rem 0 0; padding-left: 1.2rem; }
.limit-badge { display: inline-flex; margin-bottom: 1rem; padding: .45rem .65rem; border-radius: 9px; color: var(--green-dark); background: var(--mint); font-size: .85rem; font-weight: 800; }
.result-grid { display: grid; gap: 1rem; padding-bottom: 5rem; }
.result-card { padding: clamp(1.15rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.result-card.is-selected { border: 2px solid var(--green); box-shadow: var(--shadow); }
.result-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .8rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.tag { padding: .32rem .55rem; border-radius: 8px; color: var(--green-dark); background: var(--mint); font-size: .8rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 5rem; }
.price-card { position: relative; display: flex; min-height: 470px; padding: 1.7rem; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.price-card.featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.popular { position: absolute; top: -14px; right: 20px; padding: .38rem .7rem; border-radius: 99px; color: var(--ink); background: var(--lime); font-size: .78rem; font-weight: 800; }
.price { margin: .5rem 0; font: 800 2.6rem/1 "Manrope", sans-serif; }
.price span { color: var(--muted); font: 500 .9rem/1 "DM Sans", sans-serif; }
.check-list { margin: 1.2rem 0 1.6rem; padding: 0; list-style: none; }
.check-list li { margin: .65rem 0; }
.check-list li::before { content: "✓"; margin-right: .55rem; color: var(--green); font-weight: 800; }
.price-card .button { margin-top: auto; }
.auth-wrap { padding: 4rem 0 6rem; }
.auth-card { width: min(510px, calc(100% - 2rem)); margin: auto; padding: clamp(1.4rem, 5vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2.3rem; }
.notice,.flash { padding: .85rem 1rem; border-radius: 11px; }
.notice { margin-bottom: 1rem; background: var(--mint); }
.notice-error,.flash-error { color: #7a1f1f; background: #ffe5e2; }
.flash-success { color: #14503c; background: var(--mint); }
.flash-info { background: #e9f2fb; }
.flash-stack { padding-top: 1rem; }
.flash + .flash { margin-top: .5rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { padding: 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.stat-card strong { display: block; font: 800 2rem/1 "Manrope",sans-serif; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table { width: 100%; border-collapse: collapse; }
th,td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: #f5f7f3; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.inline-form { display: flex; gap: .5rem; align-items: center; }
.inline-form select,.inline-form input { min-width: 120px; min-height: 40px; padding: .45rem .6rem; }
.empty-state { padding: 3rem; border: 1px dashed #bdcac3; border-radius: var(--radius); text-align: center; }
.site-footer { margin-top: 2rem; padding: 3rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.footer-links { display: flex; gap: 1rem; }
.footer-copy { grid-column: 1/-1; margin: 0; font-size: .86rem; }
.brand-footer { margin-bottom: .65rem; }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; padding: .75rem 1rem; border-radius: 10px; color: #fff; background: var(--ink); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (max-width: 900px) {
  .hero-grid,.form-layout,.cta-band { grid-template-columns: 1fr; }
  .card-grid,.pricing-grid { grid-template-columns: 1fr; }
  .demo-card { max-width: 620px; }
  .dashboard-grid { grid-template-columns: repeat(2,1fr); }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 68px; left: 1rem; right: 1rem; padding: 1rem; align-items: stretch; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
}
@media (max-width: 600px) {
  .field-grid,.footer-grid,.dashboard-grid { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .result-head { flex-direction: column; }
  h1 { font-size: 2.7rem; }
  .page-hero { padding-top: 2.8rem; }
}
