:root {
  --navy: #1d3a5f;
  --navy-deep: #12263f;
  --teal: #0f7b6c;
  --teal-soft: #e6f4f1;
  --ink: #14202e;
  --muted: #5b6878;
  --line: #e2e6ec;
  --bg: #f6f7f9;
  --white: #fff;
  --gold: #c9a227;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 32, 46, .06), 0 8px 24px rgba(20, 32, 46, .08);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.eyebrow { display: inline-block; font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #0b6458; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 700 1.2rem var(--sans); letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:hover { color: var(--teal); }
.nav .signin { color: var(--navy); font-weight: 600; }
.nav .btn { color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(15, 123, 108, .35), transparent 60%), linear-gradient(160deg, var(--navy-deep), var(--navy)); color: #fff; padding: 88px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: #8fd8cb; }
.hero p.lead { color: rgba(255, 255, 255, .78); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.hero-note { font-size: .85rem; color: rgba(255, 255, 255, .6); }

/* Product illustration */
.mock { background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; font-size: 13px; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; background: #eef1f5; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d9e1; }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.mock-title { font-weight: 700; font-size: 15px; }
.mock-sub { color: var(--muted); font-size: 12px; margin-top: -8px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stat { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.mock-stat b { display: block; font-size: 15px; }
.mock-stat small { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 9.5px; }
.mock-step { border: 1px solid #b9e3da; background: var(--teal-soft); border-radius: 8px; padding: 10px 12px; }
.mock-step .cite { float: right; font-size: 10.5px; background: #fff; border: 1px solid #b9e3da; color: var(--teal); border-radius: 99px; padding: 1px 8px; }
.mock-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.mock-line:last-child { border: 0; }
.pill { font-size: 10.5px; padding: 2px 8px; border-radius: 99px; background: #fff4db; color: #8a6200; }
.pill.ok { background: #e3f6ec; color: #067647; }

/* Strip */
.strip { border-bottom: 1px solid var(--line); background: var(--bg); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; padding: 22px 20px; color: var(--muted); font-size: .92rem; }
.strip strong { color: var(--ink); }

/* Sections */
section { padding: 96px 0; }
.alt { background: var(--bg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); margin-bottom: 18px; }
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); font-size: .97rem; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .94rem; }
.card li { margin: 4px 0; }
.card .module { font: 600 .74rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; }
.checks li { position: relative; padding-left: 30px; margin: 12px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230f7b6c'%3E%3Cpath d='M8.1 13.6 4.7 10.2l1.2-1.2 2.2 2.2 5.9-5.9 1.2 1.2z'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks li span { color: var(--muted); display: block; font-size: .93rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); }
.timeline li:last-child { padding-bottom: 0; }
.timeline b { display: block; }
.timeline small { color: var(--muted); }
.timeline .days { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 600; color: var(--teal); background: var(--teal-soft); padding: 2px 10px; border-radius: 99px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.panel h3 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 20px; }

/* Ballot illustration */
.envelopes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.env { border-radius: 10px; padding: 18px; border: 1px dashed #b5c0ce; background: #fff; }
.env b { display: block; margin-bottom: 6px; }
.env small { color: var(--muted); display: block; }
.env.inner { border-style: solid; border-color: #b9e3da; background: var(--teal-soft); }
.env code { display: block; margin-top: 10px; font: 12px/1.5 ui-monospace, Menlo, monospace; color: var(--ink); background: rgba(255, 255, 255, .7); padding: 8px; border-radius: 6px; word-break: break-all; }

/* M365 */
.m365 { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: #fff; }
.m365 .lead { color: rgba(255, 255, 255, .75); }
.m365 .eyebrow { color: #8fd8cb; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 44px; }
.tile { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 22px; }
.tile b { display: block; font-size: 1.02rem; margin-bottom: 6px; }
.tile small { color: rgba(255, 255, 255, .7); font-size: .88rem; line-height: 1.5; display: block; }
.mode-note { margin-top: 30px; padding: 18px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); font-size: .95rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--teal); position: relative; }
.plan.featured::before { content: "Most firms start here"; position: absolute; top: -12px; left: 24px; background: var(--teal); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.plan .price { font: 600 1.5rem var(--serif); margin: 6px 0 14px; }
.plan ul { flex: 1; margin-bottom: 22px; }
.plan .btn { justify-content: center; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--teal); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Demo form */
.demo .split { align-items: start; }
form.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(15, 123, 108, .25); border-color: var(--teal); }
.interests { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; }
.interests label { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); font-size: .95rem; display: flex; gap: 6px; align-items: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); grid-column: 1 / -1; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .7); padding: 56px 0 30px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; font-size: .82rem; color: rgba(255, 255, 255, .5); }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }

/* Simple pages */
.page { padding: 72px 0; }
.page .wrap { max-width: 780px; }
.page h2 { font-size: 1.4rem; margin-top: 1.6em; }
.page p, .page li { color: #2c3a4a; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse > :first-child { order: 0; }
  .mock { transform: none; }
  .grid-3, .plans { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 18px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; border: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  section { padding: 68px 0; }
  .hero { padding: 60px 0 70px; }
  .tiles, .envelopes, form.demo-form, .site-footer .cols { grid-template-columns: 1fr; }
  .mock-stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
