/* MeshHand.com — shares the Mesh Connector palette (site.css on meshconnector.com) */
:root {
  --primary: #0a1a33;
  --primary-container: #14305e;
  --secondary: #1f5eff;
  --blue-bright: #4d8bff;
  --blue-deep: #0d2a5c;
  --red: #e0332b;
  --red-soft: #ff6b63;
  --ok: #158a5a;
  --ok-bg: #e6f4ec;
  --warn: #b7791f;
  --warn-bg: #fdf3df;
  --danger-bg: #fbe9e7;
  --surface: #f5f7fa;
  --surface-low: #eff3f8;
  --white: #ffffff;
  --ink: #141a24;
  --ink-mid: #55627a;
  --line: #dde3ec;
  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --grad-ink: linear-gradient(160deg, #0b1730 0%, #0d2a5c 60%, #14305e 100%);
  --grad-blue: linear-gradient(135deg, #1f5eff 0%, #4d8bff 100%);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font-body); color: var(--ink); background: var(--surface); }
a { color: var(--secondary); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); font-weight: 600; margin-bottom: .75rem; }
.muted { color: var(--ink-mid); }
.lead { font-size: 1.2rem; color: var(--ink-mid); max-width: 62ch; }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.brand img { width: 30px; height: 30px; }
nav.main { display: flex; gap: 22px; margin-left: auto; }
nav.main a { color: var(--ink-mid); text-decoration: none; font-weight: 500; font-size: .95rem; }
nav.main a:hover, nav.main a.active { color: var(--primary); }
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: .95rem; border: 1px solid transparent; transition: transform .1s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-light { background: #fff; color: var(--primary); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
nav.main .btn { padding: 9px 16px; }

/* Hero */
.hero { background: var(--grad-ink); color: #fff; padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero h1 span { color: var(--blue-bright); }
.hero .lead { color: #c9d6ee; }
.hero .eyebrow { color: var(--blue-bright); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .proof { margin-top: 32px; font-size: .85rem; color: #9db8ea; font-family: var(--font-mono); }
.hero-card { background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden; font-size: .82rem; }
.hero-card .bar { background: var(--surface-low); border-bottom: 1px solid var(--line); padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-mid); }
.hero-card .bar b { color: var(--primary); }
.hero-card table { width: 100%; border-collapse: collapse; }
.hero-card th { text-align: left; font-size: .65rem; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-mid); padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.hero-card td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hero-card tr:last-child td { border-bottom: 0; }
.hero-card .foot { padding: 10px 14px; background: var(--surface-low); font-size: .72rem; color: var(--ink-mid); display: flex; justify-content: space-between; }
.lane { display: inline-block; font-size: .65rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; letter-spacing: .4px; }
.lane.g { color: var(--ok); background: var(--ok-bg); }
.lane.y { color: var(--warn); background: var(--warn-bg); }
.lane.r { color: var(--red); background: var(--danger-bg); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--primary); color: #fff; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark .muted { color: #9db8ea; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card .n { font-family: var(--font-mono); color: var(--secondary); font-weight: 700; font-size: .8rem; margin-bottom: 8px; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--ink-mid); font-size: .95rem; }
.card .lands { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .85rem; }
.card .lands b { color: var(--primary); }

/* Walkthrough */
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 8px; }
.tl { position: relative; padding: 0 0 28px 28px; }
.tl::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--secondary); border: 2px solid #fff; }
.tl.done::before { background: var(--ok); }
.tl .t { font-family: var(--font-mono); font-size: .8rem; color: var(--secondary); font-weight: 600; }
.tl h3 { font-size: 1.05rem; margin: 4px 0 4px; }
.tl p { margin: 0; color: var(--ink-mid); }
.tl code { font-family: var(--font-mono); font-size: .85em; background: var(--surface-low); padding: 1px 6px; border-radius: 4px; }
.result { background: var(--primary); color: #fff; border-radius: 12px; padding: 28px; }
.result .big { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.result .big small { font-size: 1rem; font-weight: 500; color: #9db8ea; margin-left: 8px; }
.result p { color: #c9d6ee; margin: 8px 0 0; }

/* Guardrails */
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rules li { display: flex; gap: 14px; padding: 16px 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; }
.rules li .ico { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--secondary); display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.rules li .ico.no { background: var(--red); }
.rules li p { margin: 0; color: #d3e2ff; font-size: .95rem; }
.rules li b { color: #fff; }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; position: relative; }
.tier.lead-tier { border-color: var(--secondary); box-shadow: 0 16px 40px rgba(31,94,255,.12); }
.tier .flag { position: absolute; top: -12px; left: 24px; background: var(--secondary); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tier h3 { font-size: 1.4rem; margin-bottom: 2px; }
.tier .was { color: var(--ink-mid); font-size: .85rem; margin-bottom: 14px; }
.tier .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.tier .price small { font-size: .95rem; font-weight: 500; color: var(--ink-mid); }
.tier .setup { color: var(--ink-mid); font-size: .9rem; margin: 6px 0 18px; }
.tier ul { padding-left: 18px; margin: 0 0 20px; color: var(--ink-mid); font-size: .93rem; flex: 1; }
.tier ul li { margin-bottom: 6px; }
.tier .btn { text-align: center; }
.terms { margin-top: 28px; font-size: .9rem; color: var(--ink-mid); }
.terms li { margin-bottom: 6px; }
.callout { margin-top: 36px; background: #fff; border: 2px solid var(--red); border-radius: 14px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.callout h3 { margin-bottom: .3em; }
.callout p { margin: 0; color: var(--ink-mid); }

/* Proof strip */
.proof-strip { background: var(--surface-low); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.proof-strip .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: .95rem; }
.proof-strip b { color: var(--primary); }

/* Under the hood */
.plumb { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.plumb span { font-family: var(--font-mono); font-size: .78rem; padding: 6px 12px; border-radius: 999px; background: var(--surface-low); border: 1px solid var(--line); color: var(--ink-mid); }

/* CTA */
.cta { background: var(--grad-blue); color: #fff; text-align: center; padding: 72px 0; }
.cta h2 { color: #fff; }
.cta p { color: #e6eeff; max-width: 60ch; margin: 0 auto 24px; }

/* Footer */
footer.site { background: var(--primary); color: #9db8ea; padding: 40px 0; font-size: .88rem; }
footer.site .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
footer.site a { color: #d3e2ff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site .brand { color: #fff; margin-bottom: 8px; }

/* Page header */
.pagehead { padding: 56px 0 32px; }
.pagehead h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

/* Compare table */
table.cmp { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .93rem; }
table.cmp th, table.cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.cmp th { background: var(--surface-low); font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-mid); }
table.cmp tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* Form (same rules as meshconnector.com site.css, tokens mapped) */
.form-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 16px 40px rgba(10,26,51,.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9375rem; font-weight: 600; color: var(--primary); }
.field .req { color: var(--red); }
.field .hint { font-size: .85rem; font-weight: 400; color: var(--ink-mid); }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 1rem; color: var(--ink); background-color: var(--surface-low); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; min-height: 50px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #7d8797; opacity: 1; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231f5eff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }
.field select option { background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: #fff; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(31,94,255,.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(224,51,43,.12); }
.field .error { display: none; font-size: .78rem; font-weight: 600; color: #8f1a14; }
.field.invalid .error { display: flex; align-items: center; gap: 6px; }
.field.invalid .error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; background: var(--red); color: #fff; font-size: 10px; }
.form-status { margin-top: 20px; }
.form-status .alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; font-size: .9rem; border: 1px solid; border-radius: 10px; line-height: 1.6; }
.alert-error { background: #fde4e2; border-color: rgba(224,51,43,.3); color: #8f1a14; }
.alert-error a { color: #8f1a14; }
.form-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.form-actions .btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-panel { text-align: center; padding: 40px 16px; }
.success-panel .icon-lg { width: 64px; height: 64px; margin: 0 auto 20px; background: var(--ok); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(21,138,90,.12); }
.success-panel p { max-width: 52ch; margin-left: auto; margin-right: auto; }

/* Book-a-call page */
.book-hero { background: var(--grad-ink); color: #fff; padding: 64px 0 120px; position: relative; overflow: hidden; }
.book-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(700px 320px at 100% 0%, rgba(31,94,255,.28), transparent 65%), radial-gradient(420px 260px at 0% 100%, rgba(224,51,43,.16), transparent 65%); }
.book-hero .wrap { position: relative; max-width: 760px; margin-left: 0; }
.book-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .4em; }
.book-hero .lead { color: #c9d6ee; }
.readout { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: #9db8ea; margin-bottom: 22px; }
.readout b { color: #fff; }
.readout .lamp i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.25); margin-right: 6px; vertical-align: 1px; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(52,211,153,.25); } 50% { box-shadow: 0 0 0 6px rgba(52,211,153,.08); } }
.book-body { padding: 0 0 80px; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); gap: 28px; align-items: start; margin-top: -72px; position: relative; }
.book-grid .form-card { padding: 36px; border-radius: 18px; box-shadow: 0 30px 70px rgba(10,26,51,.22); }
.form-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-head h2 { font-size: 1.5rem; margin: 0; }
.form-head .eyebrow { margin-bottom: 4px; }
.plate-meta { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: var(--ink-mid); white-space: nowrap; }
.form-actions { align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-actions .privacy { font-size: .82rem; color: var(--ink-mid); max-width: 32ch; }
.form-actions .btn { padding: 14px 26px; }
.book-side { display: grid; gap: 16px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.side-card .eyebrow { margin-bottom: 12px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { position: relative; padding-left: 40px; font-size: .93rem; color: var(--ink-mid); line-height: 1.5; }
.steps li b { color: var(--primary); display: block; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--secondary); color: #fff; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; display: grid; place-items: center; }
.ready { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .93rem; color: var(--ink-mid); }
.ready li { padding-left: 22px; position: relative; }
.ready li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 3px; background: var(--blue-bright); opacity: .7; }
.small { font-size: .82rem; margin: 14px 0 0; }
.side-dark { background: var(--primary); border-color: var(--primary); color: #fff; display: grid; gap: 14px; }
.side-dark .stat { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; }
.side-dark .n { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; white-space: nowrap; color: var(--blue-bright); min-width: 5.2ch; }
.side-dark .l { font-size: .85rem; color: #c9d6ee; line-height: 1.35; }
.side-contact { padding: 4px 6px; display: grid; gap: 8px; font-size: .9rem; }
.side-contact .k { display: inline-block; width: 58px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: var(--ink-mid); }
.side-contact a { text-decoration: none; color: var(--primary); font-weight: 500; }
.side-contact a:hover { text-decoration: underline; }
.page-book footer.site { margin-top: 0; }

@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .book-grid { grid-template-columns: 1fr; margin-top: -56px; }
  .book-grid .form-card { padding: 24px; }
  .book-hero { padding: 44px 0 96px; }
  .form-actions .btn { width: 100%; text-align: center; }
  .hero .wrap, .grid-3, .grid-2, .tiers, .callout, .proof-strip .wrap, footer.site .wrap { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  nav.main a:not(.btn) { display: none; }
  section { padding: 52px 0; }
}
