/* Shared styles for ZoiVox sub-pages (industry pages, calculator).
   index.html keeps its own inline CSS; these tokens are copied from it so the
   two stay visually identical. If a token changes there, change it here too. */

:root{
  --bg: #f5f8f7;
  --bg2: #eef4f2;
  --bg3: #e6efec;
  --surface: #ffffff;
  --surface-2: #eaf4f1;
  --border: #dbe6e2;
  --ink: #10211d;
  --ink2: #46615b;
  --ink3: #56726a;
  --accent: #0e7d74;
  --accent-light: #129b8f;
  --accent-ink: #0b6058;
  --accent-glow: rgba(14,125,116,0.13);
  --on-accent: #ffffff;
  --blue: #2f5fdb;
  --green: #1c9a56;
  --amber: #a3610a;
  --red: #c0392b;
  --canada: #d52b1e;
  --shadow-sm: 0 1px 2px rgba(16,33,29,0.06);
  --shadow-md: 0 10px 30px rgba(16,33,29,0.08);
  --shadow-lg: 0 20px 60px rgba(16,33,29,0.12);
  --nav-bg: rgba(245,248,247,.86);
}

/* Dark mode. These values are copied from index.html's own dark block so the
   sub-pages and the home page are the same site at night — if a token changes
   there, change it here too, the same rule that governs the light tokens above.

   Structured exactly as the home page does it: the media query is guarded by
   :not([data-theme="light"]) so an explicit light choice still wins over the
   OS, and [data-theme="dark"] lets a page opt in regardless of the OS. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1613;
    --bg2: #121c19;
    --bg3: #16211d;
    --surface: #17211e;
    --surface-2: #1b2a25;
    --border: #26362f;
    --ink: #ecf5f2;
    --ink2: #a9beb7;
    --ink3: #6c847c;
    --accent: #2bb8ab;
    --accent-light: #4fd0c3;
    --accent-ink: #7fe3d8;
    --accent-glow: rgba(43,184,171,0.16);
    --on-accent: #07110e;
    --blue: #7d9bff;
    --green: #4ecb87;
    --amber: #e0a856;
    --red: #e2726c;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.35);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);
    --nav-bg: rgba(14,22,19,.88);
  }
}

:root[data-theme="dark"] {
  --bg: #0e1613; --bg2: #121c19; --bg3: #16211d;
  --surface: #17211e; --surface-2: #1b2a25; --border: #26362f;
  --ink: #ecf5f2; --ink2: #a9beb7; --ink3: #6c847c;
  --accent: #2bb8ab; --accent-light: #4fd0c3; --accent-ink: #7fe3d8;
  --accent-glow: rgba(43,184,171,0.16); --on-accent: #07110e;
  --blue: #7d9bff; --green: #4ecb87; --amber: #e0a856; --red: #e2726c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);
  --nav-bg: rgba(14,22,19,.88);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Bricolage Grotesque', sans-serif; line-height: 1.15; margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
/* .prose caps the column at 68ch for readability. Put both classes on one
   element and that cap beats .wrap's 1120px, leaving .wrap's auto margins to
   centre the narrow box — so the text sits indented while every neighbouring
   section starts at the page gutter. Keep the wrap's width here and let the
   children carry the reading measure, so `class="wrap prose"` does the
   obvious thing instead of quietly misaligning the page. */
.wrap.prose { max-width: 1120px; }
.wrap.prose > * { max-width: 68ch; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.5rem;
  background: var(--nav-bg); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: .5rem; }
/* The wordmark is one flex item on purpose: as two ("Zoi" plus a span) the
   flex gap meant for the mascot also opened up inside the word. */
.logo-mark { width: 32px; height: 32px; flex: none; border-radius: 8px; }
.nav-logo .logo-word > span { color: var(--accent); }
@media (max-width: 600px) {
  .nav-logo { font-size: 1.05rem; gap: .4rem; }
  .logo-mark { width: 26px; height: 26px; }
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink2); font-size: .88rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--accent-ink); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem; border-radius: 10px; border: 1px solid transparent;
  font-family: inherit; font-size: .9rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-lg { padding: .92rem 1.7rem; font-size: .98rem; }

/* PAGE HEADER */
.page-head { padding: 3.6rem 0 2.6rem; }
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--accent-ink); font-weight: 600; margin-bottom: .9rem; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.page-head h1 em { font-style: normal; color: var(--accent-ink); }
.lede { font-size: 1.05rem; color: var(--ink2); max-width: 62ch; line-height: 1.7; }
.head-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }

.breadcrumb { font-size: .8rem; color: var(--ink3); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--ink3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-ink); text-decoration: underline; }

/* SECTIONS */
section { padding: 3rem 0; }
section.alt { background: var(--bg2); border-block: 1px solid var(--border); }
.section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .6rem; }
.section-title em { font-style: normal; color: var(--accent-ink); }
.section-sub { color: var(--ink2); max-width: 60ch; margin-bottom: 2rem; }

/* CARDS + LISTS */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; box-shadow: var(--shadow-sm); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.ticks { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--ink2); font-size: .93rem; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .42em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

.numbered { list-style: none; counter-reset: n; display: flex; flex-direction: column; gap: 1rem; }
.numbered li { counter-increment: n; position: relative; padding-left: 2.6rem; color: var(--ink2); font-size: .93rem; }
.numbered li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: 'IBM Plex Mono', monospace; font-size: .8rem; font-weight: 600;
  color: var(--accent); background: var(--accent-glow);
  width: 1.9rem; height: 1.9rem; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

/* SAMPLE CONVERSATION */
.convo { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow-sm); }
.convo-label { font-family: 'IBM Plex Mono', monospace; font-size: .68rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink3); margin-bottom: 1rem; }
.bubble { padding: .8rem 1.05rem; border-radius: 14px; font-size: .88rem; margin-bottom: .7rem; max-width: 88%; line-height: 1.55; }
.bubble-caller { background: var(--bg3); color: var(--ink2); border-bottom-left-radius: 4px; }
.bubble-ai { background: var(--accent); color: var(--on-accent); margin-left: auto; border-bottom-right-radius: 4px; }

/* CTA STRIP */
.cta-strip { background: linear-gradient(150deg, var(--accent-ink), #0a4a44); color: #fff; text-align: center; padding: 3.2rem 1.5rem; }
.cta-strip h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: .8rem; }
.cta-strip p { color: rgba(255,255,255,.82); margin-bottom: 1.6rem; }
.cta-strip .btn-primary { background: #fff; color: var(--accent-ink); }
.cta-strip .btn-primary:hover { background: #eaf4f1; }
.cta-strip .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-strip .btn-outline:hover { border-color: #fff; color: #fff; }

/* FOOTER */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 2.6rem 1.5rem 1.6rem; }
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.footer-links a { color: var(--ink2); text-decoration: none; font-size: .85rem; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; border-top: 1px solid var(--border); color: var(--ink3); font-size: .8rem; }

/* RELATED */
.chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.chip { display: inline-block; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink2); text-decoration: none; font-size: .84rem; transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---- Forms (contact page) ------------------------------------------------ */
/* Honeypot. Positioned off-screen rather than display:none, which some bots
   skip. This rule lives in index.html's inline CSS too; without it here the
   field rendered as a visible empty box above the consent checkbox. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font: inherit;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.field .hint { font-size: .8rem; color: var(--ink3); margin-top: .4rem; }
.consent label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--ink2); }
.consent input { margin-top: .25rem; flex: none; }
.consent .fine { font-size: .78rem; color: var(--ink3); margin-top: .5rem; line-height: 1.55; }
.consent .fine a, .field .hint a { color: var(--accent-ink); }
.form-msg { display: none; margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; font-size: .9rem; }
.form-msg.show { display: block; }
.form-msg.ok { background: color-mix(in srgb, var(--green) 12%, transparent); border: 1px solid color-mix(in srgb, var(--green) 32%, transparent); color: var(--ink); }
.form-msg.bad { background: color-mix(in srgb, var(--red) 10%, transparent); border: 1px solid color-mix(in srgb, var(--red) 32%, transparent); color: var(--ink); }

/* ---- Prose (blog posts, comparison pages) -------------------------------- */
/* Body copy only. These pages reuse .wrap/.nav/section/footer from above; the
   rules here are just the things an article needs and a landing page does not.
   Measure is capped at 68ch — the .lede sits at 62ch, and long-form at the
   full 1120px .wrap width is unreadable. */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose p, .prose li { color: var(--ink2); font-size: 1rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-top: 2.6rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.8rem; }
.prose h2 em, .prose h3 em { font-style: normal; color: var(--accent-ink); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; display: flex; flex-direction: column; gap: .55rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin-left: 0; margin-right: 0; padding: .2rem 0 .2rem 1.2rem;
  border-left: 3px solid var(--accent); color: var(--ink2); font-size: 1.02rem;
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4rem 0; }
.prose code { font-family: 'IBM Plex Mono', monospace; font-size: .88em; background: var(--bg3); padding: .15em .4em; border-radius: 5px; color: var(--accent-ink); }

/* Callout — used for the "what this does not cover" admissions. Earns trust
   precisely because it is not a feature box. */
.callout {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm);
}
.callout .callout-label { font-family: 'IBM Plex Mono', monospace; font-size: .68rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-ink); font-weight: 600; margin-bottom: .5rem; }
.callout p { font-size: .93rem; }

/* POST META + INDEX CARDS */
.post-meta { font-size: .82rem; color: var(--ink3); display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-top: 1.4rem; }
.post-meta .dot { color: var(--border); }
.post-list { display: flex; flex-direction: column; gap: 1.1rem; }
.post-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm); text-decoration: none; transition: border-color .2s, transform .15s, box-shadow .2s; }
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-card h3 { font-size: 1.15rem; margin-bottom: .5rem; color: var(--ink); }
.post-card p { color: var(--ink2); font-size: .93rem; line-height: 1.65; }
.post-card .post-meta { margin-top: .9rem; }

/* COMPARISON TABLE — scrolls rather than squashing on a phone. */
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1.6rem; }
.cmp { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; font-size: .9rem; }
.cmp caption { caption-side: bottom; text-align: left; font-size: .8rem; color: var(--ink3); padding-top: .8rem; line-height: 1.6; }
.cmp th, .cmp td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp thead th { background: var(--surface-2); font-family: 'Bricolage Grotesque', sans-serif; font-size: .88rem; color: var(--ink); white-space: nowrap; }
.cmp tbody th { font-weight: 600; color: var(--ink); width: 11rem; }
.cmp td { color: var(--ink2); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .yes { color: var(--green); font-weight: 600; }
.cmp .no { color: var(--ink3); }

/* INTEGRATION ICONS — the app's own mark, so a card is recognisable before it
   is read. Brand colours are hardcoded on purpose: a Stripe logo that turns
   teal in dark mode is not a Stripe logo. They are saturated enough to hold
   up on both backgrounds, and sit on a neutral tile that does follow the
   theme. */
.int-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg3); border: 1px solid var(--border);
  flex: none;
}
.int-icon svg { width: 24px; height: 24px; display: block; }
.int-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .6rem; }
.card .int-icon { margin-bottom: .75rem; }
