/* MerlinLead shared stylesheet. Every page links this file. */
:root {
  --bg: #ffffff;
  --surface: #f5f8f6;
  --surface-2: #ffffff;
  --line: #dfe7e3;
  --text: #102019;
  --muted: #4f625a;
  --primary: #0b7d5c;
  --primary-700: #08664b;
  --primary-soft: #e4f3ed;
  --on-primary: #ffffff;
  --amber: #9a5b00;
  --amber-fill: #f2a91f;
  --amber-soft: #fdf1da;
  --shadow: 0 1px 2px rgba(10, 40, 28, .06), 0 8px 24px -12px rgba(10, 40, 28, .2);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1411; --surface: #101d18; --surface-2: #14241e; --line: #233a31;
    --text: #e6f1ec; --muted: #9db3aa; --primary: #3fcf9f; --primary-700: #6adcb5;
    --primary-soft: #133328; --on-primary: #04241a; --amber: #f2b84b; --amber-fill: #f2b84b;
    --amber-soft: #2e2410; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1411; --surface: #101d18; --surface-2: #14241e; --line: #233a31;
  --text: #e6f1ec; --muted: #9db3aa; --primary: #3fcf9f; --primary-700: #6adcb5;
  --primary-soft: #133328; --on-primary: #04241a; --amber: #f2b84b; --amber-fill: #f2b84b;
  --amber-soft: #2e2410; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--amber-fill); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 680; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 660; }
h3 { font-size: 1.06rem; font-weight: 640; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--primary); color: var(--on-primary); padding: 10px 14px; border-radius: 8px; z-index: 30; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: var(--radius-sm); font: 600 .95rem/1.2 var(--font); border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-700); color: var(--on-primary); text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface-2); }
.btn-ghost:hover { border-color: var(--primary); text-decoration: none; }

/* header and nav */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 680; letter-spacing: -0.02em; color: var(--text); font-size: 1.08rem; }
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--muted); font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-toggle { display: none; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); width: 44px; height: 40px; padding: 0; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .bar-signin { margin-left: auto; padding: 9px 14px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 62px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 14px; }
  .nav .nav-signin { display: none; }
}
@media (min-width: 861px) { .bar > .btn-primary.bar-signin { display: none; } }

/* hero */
.hero { padding-top: 64px; padding-bottom: 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr 1.2fr; gap: 44px; } }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 62ch; margin-top: 18px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.text-link { font-weight: 600; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber-fill); }

/* inner-page hero */
.page-hero { padding-top: 56px; padding-bottom: 40px; }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }

/* sections */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--surface); }
.section-head { max-width: 68ch; }
.section-head .lead { margin-top: 12px; font-size: 1.06rem; }
.split { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; margin-top: 8px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* grids and cards */
.grid-2, .grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); min-width: 0; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3 svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.card p { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: .94rem; }
.card li { margin: 4px 0; }
.card .more { display: inline-block; margin-top: 12px; font-size: .92rem; font-weight: 600; }

/* feature list with check marks */
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7d5c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fcf9f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); } }
:root[data-theme="dark"] .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fcf9f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.checks-2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .checks-2 { grid-template-columns: 1fr 1fr; gap: 10px 28px; } }

/* journey steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: .85rem; margin-bottom: 10px; }
.steps h3 { font-size: 1rem; }
.steps p { color: var(--muted); font-size: .93rem; margin-top: 6px; }

/* note callout (sandbox / "when you add your account" wording) */
.note { display: flex; gap: 14px; padding: 16px 18px; margin-top: 28px; border: 1px solid var(--line); border-left: 3px solid var(--amber-fill); border-radius: 12px; background: var(--amber-soft); }
.note svg { width: 20px; height: 20px; color: var(--amber); flex: none; margin-top: 3px; }
.note p { font-size: .94rem; color: var(--text); }

/* comparison / spec table */
.table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.spec { width: 100%; border-collapse: collapse; font-size: .94rem; }
.spec th, .spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { background: var(--surface); font-weight: 640; font-size: .86rem; color: var(--muted); }
.spec tbody th { font-weight: 600; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec td { color: var(--muted); }

/* CTA band */
.cta-band { padding: 56px 0; border-top: 1px solid var(--line); }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 28px; border-radius: var(--radius); background: var(--primary-soft); border: 1px solid var(--line); }
.cta-box h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
.cta-box p { color: var(--muted); margin-top: 8px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: .92rem; }
.foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.foot .logo { font-size: .98rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.foot nav a { color: var(--muted); }
.foot nav a:hover { color: var(--text); }
.foot small { margin-left: auto; font-size: .88rem; }
@media (max-width: 640px) { .foot small { margin-left: 0; width: 100%; } }

/* product mock-ups (CSS only, aria-hidden, generic data) */
.mock { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow); font-size: .8rem; line-height: 1.4; min-width: 0; }
.mock-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.mock-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-top span { margin-left: 6px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 650; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.col h4 { margin: 0 0 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: flex; justify-content: space-between; }
.tile { padding: 8px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; }
.tile b { display: block; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile small { display: block; color: var(--muted); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .pill { margin-top: 6px; }
.tile.won { border-color: var(--primary); }
@media (max-width: 520px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.doc { padding: 16px; }
.doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.doc-head b { font-size: .95rem; display: block; }
.doc-head small { color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.doc td, .doc th { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; }
.doc th { color: var(--muted); font-weight: 600; font-size: .72rem; }
.doc .r { text-align: right; }
.doc tr.total td { font-weight: 700; border-bottom: 0; font-size: .9rem; padding-top: 10px; }
.doc tr.tax td { color: var(--muted); }
.phone { width: 260px; max-width: 100%; margin: 0 auto; padding: 10px; border-radius: 34px; background: #14211c; border: 1px solid var(--line); box-shadow: var(--shadow); }
.screen { border-radius: 26px; background: var(--bg); overflow: hidden; padding: 14px 14px 18px; font-size: .78rem; }
.notch { width: 80px; height: 18px; margin: -4px auto 10px; border-radius: 10px; background: #14211c; }
.screen h4 { margin: 0 0 2px; font-size: .95rem; }
.screen .muted { color: var(--muted); }
.row-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sign { margin-top: 12px; height: 54px; border: 1px dashed var(--line); border-radius: 8px; position: relative; }
.sign svg { position: absolute; inset: 6px 10px; width: calc(100% - 20px); height: 40px; color: var(--text); }
.sign small { position: absolute; left: 10px; bottom: -18px; color: var(--muted); font-size: .68rem; }
.screen .btn { width: 100%; margin-top: 28px; padding: 9px; font-size: .8rem; }
.toggles .row-item { padding: 11px 16px; font-size: .86rem; }
.switch { width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface-2); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch.on { background: var(--primary); }
.switch.on::after { left: 17px; }
@media (min-width: 900px) { .split > .media-left { order: -1; } }
