/* Layout: left-aligned editorial page. Hero pairs a headline with a live-looking lead follow-up timeline; sections alternate dense lists and open space. */
:root {
  --bg: #EEF2F5;
  --surface: #FFFFFF;
  --ink: #0D1B2A;
  --muted: #4B5C6B;
  --line: #CFD8E0;
  --accent: #1F45F0;
  --accent-ink: #FFFFFF;
  --spark: #FFC83D;
  --spark-ink: #0D1B2A;
  --ok: #12805C;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B141D; --surface: #121F2B; --ink: #E8EEF3; --muted: #9AACBB; --line: #243646;
    --accent: #6E8CFF; --accent-ink: #0B141D; --spark: #FFC83D; --spark-ink: #0D1B2A; --ok: #4CC9A0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B141D; --surface: #121F2B; --ink: #E8EEF3; --muted: #9AACBB; --line: #243646;
  --accent: #6E8CFF; --accent-ink: #0B141D; --spark: #FFC83D; --spark-ink: #0D1B2A; --ok: #4CC9A0;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
}
.wrap { max-width: 1120px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.9rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; }
nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 0.95rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; padding: 14px 22px; border-radius: 6px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
nav .btn { padding: 10px 16px; color: var(--accent-ink); }
nav .btn:hover { color: var(--accent-ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; padding-block: 56px 80px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--spark) 62%, var(--spark) 92%, transparent 92%); padding-inline: 2px; }
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-top: 24px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-meta { margin-top: 28px; display: flex; gap: 8px 22px; flex-wrap: wrap; }
.hero-meta span::before { content: "\2713\00a0"; color: var(--ok); font-weight: 700; }
.hero-meta span { font-size: 0.92rem; color: var(--muted); }

.flow { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: 0 18px 40px -24px rgba(13, 27, 42, 0.35); min-width: 0; }
.flow-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.flow-head strong { font-family: var(--font-display); font-size: 1.05rem; }
.flow ol { list-style: none; margin: 0; padding: 0; }
.flow li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.flow li:last-child { border-bottom: 0; padding-bottom: 0; }
.flow time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); padding-top: 3px; }
.flow .who { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.who.auto { color: var(--accent); }
.who.lead { color: var(--muted); }
.who.win { color: var(--ok); }
.flow .bubble { display: inline-block; background: var(--bg); border-radius: 10px; padding: 8px 12px; margin-top: 2px; }
.flow .booked { background: var(--spark); color: var(--spark-ink); font-weight: 600; border-radius: 8px; padding: 8px 12px; display: inline-block; margin-top: 2px; }

/* Sections */
section { padding-block: 84px; border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.sec-head p { color: var(--muted); max-width: 36em; }
.sec-head .label { display: block; margin-bottom: 14px; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.service { padding: 30px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); min-width: 0; }
.service:last-child { border-right: 0; }
.service .tag { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.service p { color: var(--muted); font-size: 0.98rem; }
.service ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 0.95rem; }
.service li { padding-left: 20px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.step { border-top: 3px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step .label { color: var(--accent); }
.step p { color: var(--muted); font-size: 0.97rem; }

.niches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.niche { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; min-width: 0; }
.niche strong { font-family: var(--font-display); font-size: 1.2rem; }
.niche span { color: var(--muted); font-size: 0.93rem; text-align: right; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 30px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.plan.main { border: 2px solid var(--accent); }
.plan .price { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.03em; line-height: 1.1; }
.plan .price small { font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; color: var(--muted); letter-spacing: 0; }
.plan .pill { align-self: flex-start; background: var(--spark); color: var(--spark-ink); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; font-weight: 500; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.97rem; flex: 1; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan p.note { color: var(--muted); font-size: 0.93rem; }
.fine { margin-top: 22px; color: var(--muted); font-size: 0.92rem; }

.faq { display: grid; gap: 0; max-width: 800px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-child { border-top: 1px solid var(--line); }
summary { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.4rem; color: var(--accent); flex: none; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); margin-top: 12px; max-width: 40em; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact h2 { margin-bottom: 18px; }
.contact .lede { color: var(--muted); margin-bottom: 22px; }
.mail { font-family: var(--font-mono); font-size: 0.95rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap; user-select: all; }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; gap: 18px; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.88rem; font-weight: 600; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 6px; padding: 12px 14px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
textarea { min-height: 96px; resize: vertical; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.err { color: #C0392B; font-size: 0.85rem; min-height: 1.1em; }
:root[data-theme="dark"] .err { color: #FF8A7A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #FF8A7A; } }
.result { background: var(--bg); border: 1px dashed var(--accent); border-radius: 8px; padding: 18px; display: grid; gap: 12px; }
.result pre { white-space: pre-wrap; word-break: break-word; margin: 0; font-family: var(--font-mono); font-size: 0.85rem; max-height: 220px; overflow: auto; }
.result .row { display: flex; gap: 10px; flex-wrap: wrap; }

.legacy-footer { border-top: 1px solid var(--line); padding-block: 36px 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 900px) {
  .hero, .contact, .sec-head { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .services, .plans { grid-template-columns: minmax(0, 1fr); }
  .service { border-right: 0; border-bottom: 1px solid var(--line); }
  .service:last-child { border-bottom: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .niches { grid-template-columns: minmax(0, 1fr); }
  section { padding-block: 60px; }
  .hero { padding-block: 32px 56px; }
}
@media (max-width: 520px) {
  .steps, .two { grid-template-columns: minmax(0, 1fr); }
  nav a:not(.btn) { display: none; }
  body { font-size: 16px; }
  .niche { flex-direction: column; gap: 2px; }
  .niche span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Theme additions ---- */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 16px; }
.site-header { position: relative; }
.menu-toggle { display: none; font: inherit; font-weight: 600; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 6px; padding: 8px 14px; cursor: pointer; }
.primary-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.primary-nav a.btn { color: var(--accent-ink); font-weight: 600; }
.btn.spark { background: var(--spark); color: var(--spark-ink); }
.btn.ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
main { display: block; }
.hero { padding-block: 56px 80px; }
.page-hero { padding-block: 40px 64px; max-width: 820px; display: grid; gap: 20px; justify-items: start; }
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); }
.page-hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.page-hero .cta-row { margin-top: 6px; }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); padding-top: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.services.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service h3 a { text-decoration: none; }
.service h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.service .more { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--accent); padding-top: 6px; }
.service .more:hover { text-decoration: underline; text-underline-offset: 4px; }
.cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.cell { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; min-width: 0; }
.cell p { color: var(--muted); font-size: 0.98rem; max-width: 36em; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: start; }
.split-title { margin: 14px 0 22px; }
.checks, .contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; gap: 14px; justify-items: start; }
.aside-card p { color: var(--muted); }
.band-section { border-top: 0; padding-block: 24px 80px; }
.cta-band { background: #0D1B2A; color: #fff; border-radius: 14px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.cta-band p { color: #C3D0DB; margin-top: 12px; max-width: 34em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.plans { margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; border-top: 0; padding-top: 0; }
.contact-grid .lede { color: var(--muted); margin-bottom: 26px; }
.mini { font-size: 1.05rem; margin: 28px 0 14px; }
.contact-list li { display: grid; gap: 2px; }
.audit-box { min-width: 0; }
.audit-form { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; gap: 18px; min-width: 0; }
.field .opt { color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 0.92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.notice { border-radius: 10px; padding: 16px 18px; margin-bottom: 18px; font-weight: 500; }
.notice.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); border: 1px solid var(--ok); }
.notice.bad { background: color-mix(in srgb, #C0392B 12%, var(--surface)); border: 1px solid #C0392B; }
.again { margin-top: 6px; }
.plain { max-width: 760px; padding-block: 40px 80px; }
.plain h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 24px; }
.prose h2 { font-size: 1.5rem; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 0 0 14px; }
.post-item { padding-block: 22px; border-bottom: 1px solid var(--line); }
.post-item h2 a { text-decoration: none; }
.meta { color: var(--muted); font-size: 0.9rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; color: var(--muted); font-size: 0.95rem; display: block; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid > div { min-width: 0; }
.foot-note { margin-top: 12px; max-width: 26em; }
.foot-contact { display: grid; gap: 4px; margin-top: 12px; }
.foot-links { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.copyright { margin-top: 36px; font-size: 0.85rem; }
.service-cards-note { color: var(--muted); }

@media (max-width: 900px) {
  .cells, .split, .contact-grid, .cta-band, .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cells { gap: 0; }
  .services.cols-2 { grid-template-columns: minmax(0, 1fr); }
  .cta-actions { justify-content: flex-start; }
  .hero { padding-block: 32px 56px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; right: 0; top: 100%; z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; flex-direction: column; align-items: stretch; gap: 14px; min-width: 220px; box-shadow: 0 18px 40px -20px rgba(13,27,42,.4); }
  .primary-nav[data-open="true"] { display: flex; }
  .primary-nav a:not(.btn) { display: block !important; padding: 4px 2px; }
  .primary-nav a.btn { justify-content: center; }
}
@media (max-width: 520px) {
  nav a:not(.btn) { display: block; }
}

/* ---- Launch additions: industries, about, blog, cookie notice ---- */
.icards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.icard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.icard .tag { font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.icard h3 a { text-decoration: none; }
.icard h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.icard p { color: var(--muted); font-size: 0.98rem; }
.icard .more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--accent); text-decoration: none; }
.icard .more:hover { text-decoration: underline; text-underline-offset: 4px; }
.checks.warn li::before { content: "\2715"; color: #C0392B; }
:root[data-theme="dark"] .checks.warn li::before { color: #FF8A7A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .checks.warn li::before { color: #FF8A7A; } }
.chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--font-mono); font-size: 0.8rem; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; }
.story p { font-size: 1.1rem; margin-bottom: 18px; color: var(--ink); }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.post-card h2 { font-size: 1.4rem; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-card p { color: var(--muted); }
.post-card .more { margin-top: auto; font-weight: 600; color: var(--accent); text-decoration: none; }
.blog-list { border-top: 0; padding-top: 0; }
.pager { margin-top: 32px; }
.pager .nav-links { display: flex; gap: 12px; flex-wrap: wrap; }
.article { padding-top: 24px; }
.article .prose { font-size: 1.08rem; }
.article .prose p, .article .prose li { color: var(--ink); }
.article .prose ul, .article .prose ol { padding-left: 1.3em; margin: 0 0 16px; display: grid; gap: 8px; }
.article .prose a { color: var(--accent); }
.article .prose h2 { margin-top: 36px; }
.cookie { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; max-width: 760px; margin-inline: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; justify-content: space-between; box-shadow: 0 18px 40px -16px rgba(13,27,42,.45); font-size: 0.93rem; }
.cookie p { flex: 1 1 260px; min-width: 0; }
.cookie-actions { display: flex; gap: 10px; }
.cookie .btn { padding: 9px 16px; font-size: 0.9rem; }
.foot-social { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.foot-social a { text-decoration: none; }
.foot-social a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.brand.custom img { max-height: 44px; width: auto; }
@media (max-width: 900px) {
  .icards, .posts { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
.cookie[hidden] { display: none; }
.hp[hidden], [hidden] { display: none !important; }
