:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-2: #f0f1ec;
  --line: #dfe1d8;
  --text: #17191a;
  --text-2: #4c5049;
  --brand: #17694e;
  --brand-ink: #ffffff;
  --brand-soft: #e3f0ea;
  --radius: 14px;
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101311;
    --surface: #181c19;
    --surface-2: #20251f;
    --line: #30362f;
    --text: #edefe9;
    --text-2: #b1b6ac;
    --brand: #5fd3a5;
    --brand-ink: #06140e;
    --brand-soft: #1b2c24;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.1rem; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.1rem var(--display); color: var(--text); text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--text-2); text-decoration: none; font-size: .94rem; font-weight: 500; }
.top nav a:hover { color: var(--text); }
@media (max-width: 640px) { .top nav a:not(.keep) { display: none; } }

.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 .95rem Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 85%, var(--text)); }

/* hero */
.hero { padding: 64px 0 28px; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); max-width: 17ch; }
.hero .lead { margin-top: 18px; max-width: 60ch; font-size: 1.14rem; color: var(--text-2); }
.hero .cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

section { padding: 56px 0; }
.intro { margin-top: 10px; max-width: 62ch; color: var(--text-2); }

/* demo */
.demo-frame { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #f4f2ee; box-shadow: 0 18px 50px rgba(0, 0, 0, .12); }
.demo-note { margin-top: 10px; font-size: .86rem; color: var(--text-2); }
.demo-controls { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; margin-top: 16px; }
.demo-caption { min-height: 88px; }
.demo-caption b { display: block; font: 700 1.2rem var(--display); }
.demo-caption span { color: var(--text-2); }
.demo-steps { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.demo-steps button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--text-2); font: 500 .86rem Inter, system-ui, sans-serif; cursor: pointer; }
.demo-steps button[aria-current="step"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* stage: a fixed-size mock of the browser, scaled to fit by demo.js */
.stage { position: relative; width: 1040px; height: 600px; transform-origin: 0 0; overflow: hidden; font: 13px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif; color: rgba(0, 0, 0, .9); background: #f4f2ee; }
.stage * { box-sizing: border-box; }
.s-bar { height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #e8e8e4; border-bottom: 1px solid #d5d5cf; }
.s-dots { display: flex; gap: 6px; }
.s-dots i { width: 10px; height: 10px; border-radius: 50%; background: #c6c6c0; }
.s-addr { flex: 1; padding: 4px 12px; border-radius: 99px; background: #fff; color: #555; font-size: 12px; white-space: nowrap; overflow: hidden; }
.s-view { position: absolute; inset: 40px 0 0; transition: opacity .3s; }
.s-view[hidden] { display: none; }

.s-nav { height: 40px; background: #fff; border-bottom: 1px solid #e0dfdb; display: flex; align-items: center; padding: 0 20px; gap: 10px; color: #666; font-size: 12px; }
.s-search { width: 340px; padding: 4px 12px; background: #eef3f8; border-radius: 6px; white-space: nowrap; overflow: hidden; color: #333; }
.s-feedbox { position: absolute; top: 48px; bottom: 0; left: 40px; width: 610px; overflow: hidden; }
.s-feed { transition: transform .9s cubic-bezier(.3, .8, .3, 1); }
.s-post { position: relative; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); margin-bottom: 10px; overflow: hidden; }
.s-post-in { padding: 12px 14px 14px; }
.s-actor { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.s-av { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.s-actor b { display: block; font-size: 14px; }
.s-actor span { color: #666; font-size: 12px; }
.s-post p { font-size: 13px; }
.s-pbar { display: none; align-items: center; gap: 6px; padding: 8px 14px; background: #edf3f8; font-weight: 600; }
.s-post.has-bar .s-pbar { display: flex; }
.s-pbar .m { margin-right: auto; }
.s-pb { padding: 3px 11px; border-radius: 99px; border: 1px solid #0a66c2; color: #0a66c2; font-size: 12px; font-weight: 600; background: transparent; }
.s-pb.main { background: #0a66c2; color: #fff; }
.s-msg { padding: 0 14px 6px; background: #edf3f8; font-size: 12px; color: #444; display: none; }
.s-msg.on { display: block; }
.s-post.glow { box-shadow: 0 0 0 2px #0a66c2, 0 0 18px 4px rgba(10, 102, 194, .45); }

.s-panel { position: absolute; top: 8px; bottom: 10px; right: 12px; width: 300px; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 6px 20px rgba(0, 0, 0, .08); display: flex; flex-direction: column; overflow: hidden; z-index: 2; }
.s-phead { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #e8e6e1; font-weight: 650; font-size: 14px; }
.s-phead .t { flex: 1; }
.s-count { background: #f3f2ef; border-radius: 99px; padding: 0 8px; font-size: 12px; font-weight: 600; }
.s-sec { padding: 8px 12px; border-bottom: 1px solid #e8e6e1; display: flex; flex-direction: column; gap: 5px; }
.s-lbl { font-size: 11.5px; font-weight: 600; color: rgba(0, 0, 0, .6); display: flex; justify-content: space-between; }
.s-bar-p { height: 4px; border-radius: 99px; background: #e8e6e1; overflow: hidden; }
.s-bar-p i { display: block; height: 100%; width: 0; background: #0a66c2; transition: width .4s; }
.s-in { padding: 4px 9px; border: 1px solid #c9c7c2; border-radius: 6px; font-size: 12px; min-height: 26px; white-space: nowrap; overflow: hidden; }
.s-in.ph { color: #999; }
.s-row { display: flex; gap: 6px; }
.s-btn { flex: 1; padding: 4px 8px; text-align: center; border: 1px solid #c9c7c2; border-radius: 6px; font-size: 12px; font-weight: 600; }
.s-btn.pri { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.s-list { flex: 1; overflow: hidden; }
.s-item { display: flex; gap: 8px; padding: 7px 12px; border-bottom: 1px solid #e8e6e1; animation: s-in .35s ease; }
@keyframes s-in { from { opacity: 0; transform: translateY(6px); } }
.s-item input { margin: 3px 0 0; pointer-events: none; }
.s-item b { display: block; font-size: 12.5px; }
.s-item span { display: block; font-size: 11.5px; color: rgba(0, 0, 0, .6); }
.s-item span.sent { color: #057642; font-weight: 600; }
.s-empty { padding: 14px 12px; color: rgba(0, 0, 0, .6); font-size: 12px; }

.s-gm { position: absolute; right: 340px; bottom: 0; width: 400px; background: #fff; border-radius: 8px 8px 0 0; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); transform: translateY(110%); transition: transform .4s; z-index: 3; }
.s-gm.on { transform: none; }
.s-gm-h { padding: 8px 12px; background: #f2f6fc; border-radius: 8px 8px 0 0; font-weight: 600; }
.s-gm-f { padding: 6px 12px; border-bottom: 1px solid #eee; min-height: 30px; }
.s-gm-f em { color: #777; font-style: normal; margin-right: 6px; }
.s-gm-b { padding: 8px 12px; height: 118px; white-space: pre-wrap; }
.s-gm-a { padding: 4px 12px; font-size: 12px; color: #0a66c2; min-height: 24px; }
.s-gm-s { margin: 4px 12px 10px; display: inline-block; padding: 5px 18px; border-radius: 99px; background: #0b57d0; color: #fff; font-weight: 600; }

.s-dash { display: flex; height: 100%; background: #f1f1ec; }
.s-side { width: 180px; padding: 16px 12px; background: #e7e8e2; }
.s-side b { display: block; font-size: 15px; }
.s-side small { color: #555; }
.s-side div { margin-top: 12px; padding: 6px 10px; border-radius: 8px; }
.s-side div.on { background: #cfdccf; font-weight: 600; }
.s-main { flex: 1; padding: 20px 24px; min-width: 0; }
.s-main h4 { margin: 0; font-size: 22px; }
.s-main p { margin: 2px 0 14px; color: #555; }
.s-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; font-size: 12px; }
.s-table th { text-align: left; padding: 8px 10px; color: #555; background: #f7f7f3; font-weight: 600; }
.s-table td { padding: 10px; border-top: 1px solid #ecebe6; }
.s-table a { color: #0a66c2; }
.s-table .new { background: #eef6f1; }

.s-cur { position: absolute; left: 0; top: 0; width: 20px; height: 24px; z-index: 9; transition: transform .7s cubic-bezier(.3, .8, .3, 1); pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.s-cur.pressed { scale: .85; }
.instant, .instant * { transition: none !important; animation: none !important; }

/* content blocks */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 26px; padding: 0; list-style: none; counter-reset: s; }
.steps li, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .9rem; margin-bottom: 10px; }
.steps p, .card p { margin-top: 6px; color: var(--text-2); font-size: .95rem; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.alt .card, .alt .steps li { background: var(--bg); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin-top: 26px; }

.compare-wrap { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { border-top: 0; font: 700 1.15rem var(--display); }
.compare thead th.pro { color: var(--brand); }
.compare .p { display: block; margin-top: 4px; font-size: 1.6rem; color: var(--text); }
.compare .p small { font: 500 .88rem Inter, system-ui, sans-serif; color: var(--text-2); }
.compare tbody th { font-weight: 500; }
.row-note { display: block; font-size: .85rem; font-weight: 400; color: var(--text-2); }
.compare td { color: var(--text-2); }
.compare td.yes { color: var(--text); font-weight: 600; }
.compare td.no { color: var(--text-2); opacity: .75; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 560px) { .compare { font-size: .86rem; } .compare th, .compare td { padding: 10px; } .compare .p { font-size: 1.25rem; } }
.fine { margin-top: 14px; font-size: .9rem; color: var(--text-2); }

/* legal pages */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 2.3rem; }
.legal h2 { font-size: 1.3rem; margin-top: 30px; }
.legal p, .legal ul { margin-top: 10px; color: var(--text-2); }

footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; color: var(--text-2); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer .disc { flex-basis: 100%; font-size: .84rem; }
