/* Layout: one 1120px column on "chart paper"; hero and product pages pair copy with a phone thread showing exactly what the customer receives. */
:root {
  --chart: #f3f6fb;      /* page ground: pale cool grey */
  --paper: #ffffff;      /* raised surfaces */
  --ink: #10284a;        /* Upcove navy text */
  --muted: #4a5a72;      /* secondary text */
  --line: #d4dce8;       /* hairlines */
  --sea: #1f5fd6;        /* Upcove blue: links, outgoing texts */
  --sea-soft: #e0eafc;
  --signal: #1f6feb;     /* bright blue: calls to action only */
  --signal-ink: #ffffff;
  --bubble-in: #e5eaf2;
  --deep: #0d2240;       /* dark navy bands */
  --deep-fg: #eef3fb;
  --deep-muted: #a6b5cc;
  --ok: #2f7d4f;
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4rem);
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --chart: #0a1628; --paper: #11223b; --ink: #e8eef8; --muted: #a0b0c8; --line: #253a5c;
    --sea: #78a9ff; --sea-soft: #16305a; --signal: #4c8dff; --signal-ink: #06122a; --bubble-in: #1a2d4a;
    --deep: #060f1e; --deep-fg: #e8eef8; --deep-muted: #93a5c2; --ok: #6cc28f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --chart: #0a1628; --paper: #11223b; --ink: #e8eef8; --muted: #a0b0c8; --line: #253a5c;
    --sea: #78a9ff; --sea-soft: #16305a; --signal: #4c8dff; --signal-ink: #06122a; --bubble-in: #1a2d4a;
    --deep: #060f1e; --deep-fg: #e8eef8; --deep-muted: #93a5c2; --ok: #6cc28f; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--chart); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112%; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sea); font-weight: 500; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 50; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--chart); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--chart) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-stretch: 118%; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sea); }
.nav .btn { margin-left: 4px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 12px 0 0; text-align: center; border-bottom: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--font-body); line-height: 1.2; }
.btn-primary { background: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { color: var(--signal-ink); filter: brightness(1.06); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--chart); }
.btn-small { padding: 9px 16px; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Sections */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 14px; max-width: 46em; margin-bottom: 40px; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.band-deep { background: var(--deep); color: var(--deep-fg); }
.band-deep .eyebrow { color: #8fb6ff; }
.band-deep .muted, .band-deep .lede { color: var(--deep-muted); }
.band-deep a { color: var(--deep-fg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); }
.hero canvas.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.55; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy h1 em { font-style: normal; color: var(--signal); }
.hero-note { font-size: var(--step--1); color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--ok); font-weight: 700; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Phone + text thread */
.phone { justify-self: center; width: min(100%, 340px); background: var(--paper); border: 1px solid var(--line); border-radius: 34px; padding: 14px; box-shadow: 0 30px 60px -30px rgba(16, 40, 74, 0.45); }
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.phone-top b { font-size: 0.95rem; }
.phone-top small { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.thread { display: grid; gap: 10px; padding: 4px 4px 8px; }
.msg { max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: 0.93rem; line-height: 1.42; animation: rise 0.5s ease both; animation-delay: calc(var(--i, 0) * 0.35s); }
.msg.in { background: var(--bubble-in); color: var(--ink); border-bottom-left-radius: 6px; justify-self: start; }
.msg.out { background: var(--sea); color: #fff; border-bottom-right-radius: 6px; justify-self: end; }
.msg.event { justify-self: center; max-width: 100%; background: transparent; color: var(--muted); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; padding: 2px 0; text-align: center; }
.msg.alert { justify-self: stretch; max-width: 100%; background: color-mix(in srgb, var(--signal) 14%, var(--paper)); border: 1px solid color-mix(in srgb, var(--signal) 45%, transparent); color: var(--ink); border-radius: 12px; font-size: 0.86rem; }
.msg.alert b { color: var(--signal); }
.msg .link { text-decoration: underline; }
.stamp { display: block; font-family: var(--font-mono); font-size: 0.68rem; opacity: 0.7; margin-top: 3px; }
@keyframes rise { from { transform: translateY(8px); } to { transform: none; } }

/* Trust strip */
.strip { border-block: 1px solid var(--line); background: var(--paper); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.strip div { padding: 22px 18px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.strip div:first-child { border-left: 0; padding-left: 0; }
.strip b { font-family: var(--font-display); font-stretch: 112%; font-size: 1.05rem; }
.strip span { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 760px) { .strip .wrap { grid-template-columns: 1fr 1fr; } .strip div:nth-child(3) { border-left: 0; padding-left: 0; } .strip div { border-top: 1px solid var(--line); } .strip div:nth-child(-n+2) { border-top: 0; } }

/* Product grid */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.products.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .products, .products.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .products, .products.four { grid-template-columns: 1fr; } }
.product { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s; }
.product:hover { border-color: var(--sea); transform: translateY(-2px); color: var(--ink); }
.product .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product .icon { width: 40px; height: 40px; border-radius: 11px; background: var(--sea-soft); color: var(--sea); display: grid; place-items: center; }
.product .icon svg { width: 22px; height: 22px; }
.product p { color: var(--muted); font-size: 0.97rem; }
.price { font-family: var(--font-mono); font-size: 0.9rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.price b { font-size: 1.05rem; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--sea-soft); color: var(--sea); }
.tag.soon { background: color-mix(in srgb, var(--signal) 14%, var(--paper)); color: var(--signal); }
.more { font-weight: 700; color: var(--sea); font-size: 0.95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; gap: 10px; padding-top: 18px; border-top: 2px solid var(--ink); counter-increment: step; }
.steps li::before { content: "Step " counter(step); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); }
.band-deep .steps li { border-top-color: var(--deep-fg); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Split rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 9px; border-left: 3px solid var(--sea); border-bottom: 3px solid var(--sea); transform: rotate(-45deg); }

/* Demo form */
.demo { background: var(--paper); color: var(--ink); border-radius: 22px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; border: 1px solid var(--line); }
.demo h3 { font-size: var(--step-2); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--chart); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sea); outline: none; box-shadow: 0 0 0 3px var(--sea-soft); }
.personas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; }
.personas legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; padding: 0; }
.personas label { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: 0.93rem; }
.personas input { accent-color: var(--sea); }
.personas label:has(input:checked) { border-color: var(--sea); background: var(--sea-soft); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--sea); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 0.95rem; padding: 12px 14px; border-radius: 10px; background: var(--sea-soft); }
.form-msg.err { background: color-mix(in srgb, var(--signal) 14%, var(--paper)); }

/* Pricing */
.price-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.price-table th, .price-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--chart); }
.price-table td.amt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 1.05rem; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table a { font-weight: 700; color: var(--ink); }
.bundles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .bundles { grid-template-columns: 1fr; } }
.bundle { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; }
.bundle.feature { border: 2px solid var(--sea); }
.bundle .sum { font-family: var(--font-mono); font-size: 2rem; font-variant-numeric: tabular-nums; font-weight: 500; }
.bundle .sum small { font-size: 0.9rem; color: var(--muted); }
.bundle ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 54em; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--sea); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 46em; }

/* Product page */
.crumbs { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.product-hero { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 88px); }
.product-hero .split { align-items: start; }
.product-hero .copy { display: grid; gap: 20px; }
.buybox { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.buybox .price b { font-size: 1.6rem; font-weight: 500; }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }
.browser { width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -32px rgba(16, 40, 74, 0.45); }
.browser .bar { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--chart); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.browser .bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); background: var(--paper); padding: 4px 10px; border-radius: 6px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser .page { padding: 24px; display: grid; gap: 12px; }
.browser .page .mock-h { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.5rem; line-height: 1.1; }
.browser .page .mock-b { height: 10px; background: var(--line); border-radius: 6px; }
.browser .page .mock-btn { justify-self: start; background: var(--signal); color: var(--signal-ink); font-weight: 700; font-size: 0.85rem; padding: 8px 14px; border-radius: 999px; }
.browser .page .mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.browser .page .mock-grid div { height: 54px; border-radius: 8px; background: var(--sea-soft); }
.callcard { width: min(100%, 360px); justify-self: center; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 12px; box-shadow: 0 30px 60px -32px rgba(16, 40, 74, 0.45); }
.callcard .row { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.callcard h4 { margin: 0; font-size: 1.05rem; }
.callcard .wave { height: 34px; }

/* CTA band */
.cta { text-align: left; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } }
.cta .btn-ghost { border-color: var(--deep-fg); color: var(--deep-fg); }
.cta .btn-ghost:hover { background: var(--deep-fg); color: var(--deep); }

/* Prose pages */
.prose { max-width: 46em; display: grid; gap: 16px; }
.prose h2 { font-size: var(--step-2); margin-top: 20px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.draft { border: 2px dashed var(--signal); border-radius: 12px; padding: 14px 16px; background: color-mix(in srgb, var(--signal) 8%, var(--paper)); font-size: 0.95rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; }
.copyline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--font-mono); font-size: 1.02rem; }
.copy-btn { font: inherit; font-family: var(--font-body); font-size: 0.8rem; border: 1px solid var(--line); background: var(--chart); color: var(--ink); border-radius: 8px; padding: 4px 10px; cursor: pointer; }

/* Footer */
.site-foot { background: var(--deep); color: var(--deep-muted); padding-block: 56px 40px; font-size: 0.93rem; }
.site-foot .wrap { display: grid; gap: 36px; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-cols > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 820px) { .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-cols > :first-child { grid-column: 1 / -1; } }
.site-foot .brand { color: var(--deep-fg); }
.site-foot h4 { color: var(--deep-fg); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--deep-muted); text-decoration: none; }
.site-foot a:hover { color: var(--deep-fg); }
.foot-base { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; }
/* Example websites */
.product.example { grid-template-rows: auto auto auto 1fr auto; padding: 14px 14px 20px; }
.product.example img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; display: block; background: var(--sea-soft); }
.product.example .top, .product.example h3, .product.example p, .product.example .more { padding-inline: 8px; }