/* Dark editorial layer. Loaded last, so it restyles what the earlier files define:
   serif headlines with one accented word, mono labels, hairline rules, left-aligned layout,
   textured heroes, ruled lists and product status chips. Tokens live in styles.css. */

:root {
    }

:root { --noise: none; --shard: none; --wash: none; }
:root[data-theme="slate"] {
  /* Fine grain, drawn once as an inline SVG so no image file is needed */
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.055'/></svg>");
  /* A faceted shard, drawn as low-contrast white lines and tints */
  --shard: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'><g fill='white' stroke='white' stroke-linejoin='round' stroke-width='1'><polygon points='300,20 520,140 330,250' fill-opacity='.03' stroke-opacity='.07'/><polygon points='520,140 560,330 330,250' fill-opacity='.02' stroke-opacity='.055'/><polygon points='560,330 430,520 330,250' fill-opacity='.022' stroke-opacity='.055'/><polygon points='430,520 220,560 330,250' fill-opacity='.015' stroke-opacity='.055'/><polygon points='220,560 70,400 330,250' fill-opacity='.028' stroke-opacity='.055'/><polygon points='70,400 90,190 330,250' fill-opacity='.02' stroke-opacity='.055'/><polygon points='90,190 300,20 330,250' fill-opacity='.02' stroke-opacity='.055'/></g></svg>");
  --wash: radial-gradient(900px 520px at 82% -8%, rgba(255, 255, 255, 0.07), transparent 65%);
}

/* ---------- Type ---------- */
body { font-weight: 400; }
.display, .h2, .plan-head h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; line-height: 1.08; text-wrap: balance; }
.display { letter-spacing: -0.02em; line-height: 1.04; }
.display em, .h2 em, .plan-head h2 em { font-style: normal; color: var(--accent-t); }
.cta.dark em { color: var(--accent-t); }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 54ch; }
.brand { font-family: var(--serif); font-weight: 400; font-size: 25px; letter-spacing: -0.01em; }

/* Mono labels with a leading dot */
.eyebrow, .pill, .cat, .jump a, .strip li, .price .badge {
  font-family: var(--mono); text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; color: var(--ink-2); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-t); flex: none; }
.pill { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); padding: 6px 12px; }
.pill::before { background: var(--accent-t); }
.pill.mono { letter-spacing: 0.1em; }

/* ---------- Buttons and links ---------- */
.btn { font-size: 15px; font-weight: 500; padding: 12px 24px; letter-spacing: 0.005em; }
.btn-small { font-size: 13px; padding: 8px 16px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); filter: none; }
.nav-cta { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.nav-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); filter: none; }
body[data-product] .btn:not(.btn-ghost):not(.nav-cta) { color: #fff; }
a.link-arrow { color: var(--ink) !important; font-size: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); }
a.link-arrow:hover { text-decoration-color: var(--accent-t); }
.link-arrow::after { content: "\2197"; font-size: 1em; }
.link-arrow:hover::after { transform: translate(2px, -2px); }
.tile .link-arrow, .tile-dark .link-arrow, .cta.dark .link-arrow, .plan-head .link-arrow { color: var(--ink) !important; }

/* ---------- Layout: left-aligned, separated by hairlines ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.center { text-align: left; }
.center .lead { margin-inline: 0; }
.center .actions { justify-content: flex-start; }
.section-head.center { margin-inline: 0; }
.fineprint { text-align: left; }
.jump { justify-content: flex-start; }
.jump a { background: transparent; border: 1px solid var(--line-strong); font-size: 12px; letter-spacing: 0.1em; padding: 8px 14px; border-radius: 980px; }
.jump a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.jump a[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.hero, .p-hero, .collage-section { text-align: left; }
.hero .display { margin-inline: 0; max-width: 16ch; }
.hero .lead, .p-hero .lead { margin-left: 0; margin-right: 0; }
.hero .actions, .p-hero .actions, .cta .actions { justify-content: flex-start !important; }
.p-hero .logo { margin-left: 0; }
.p-hero .tagline { margin-left: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.005em; }
.cta { text-align: left; background: var(--bg-alt); border-top: 1px solid var(--line); }
.cta .h2, .cta .lead { margin-left: 0; }
.cta.dark { background: var(--bg); color: var(--ink); }
.cta.dark .lead { color: var(--ink-2); }
.faq { margin-inline: 0; }

/* Textured heroes */
.hero, .p-hero { position: relative; background-color: var(--bg); }
.hero {
  background-image: var(--shard), var(--wash), var(--noise);
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: right -260px top -180px, 0 0, 0 0;
  background-size: 820px, auto, 220px;
}
.p-hero {
  background-image: var(--shard), linear-gradient(to bottom, color-mix(in srgb, var(--accent) 11%, var(--bg)), var(--bg) 78%), var(--noise);
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: right -160px top -140px, 0 0, 0 0;
  background-size: 700px, auto, 220px;
}

/* ---------- Product tiles ---------- */
.tile { background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius); text-align: left; padding: 40px 36px 0; min-height: 580px; }
.tile:hover { transform: none; box-shadow: none; border-color: var(--line-strong); border-top-color: var(--accent); }
.tile h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 46px); letter-spacing: -0.01em; }
.tile p { margin: 12px 0 18px; max-width: 34ch; font-size: 17px; }
.tile .actions { justify-content: flex-start; }
.tile-dark { background: var(--card); color: var(--ink); }
.tile-dark p { color: var(--ink-2); }
.tile .eyebrow { margin-bottom: 14px; color: var(--ink-2) !important; }
.tile h3 { margin-bottom: 14px; }
.tile .status { margin: 0 0 6px; align-self: flex-start; }
.tile-visual { justify-content: flex-start; padding-left: 0; }

/* ---------- Frames, phones, cards ---------- */
.frame { border-radius: 8px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95); border-color: var(--line-strong); }
.frame-bar { background: var(--bg-alt); }
.frame-bar i, .frame-bar i:nth-child(2), .frame-bar i:nth-child(3) { background: #c4cad3; }
:root[data-theme="slate"] .frame-bar { background: #141a21; }
:root[data-theme="slate"] .frame-bar i, :root[data-theme="slate"] .frame-bar i:nth-child(2), :root[data-theme="slate"] .frame-bar i:nth-child(3) { background: #3a424d; }
.phone { background: #0a0a0b; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95), inset 0 0 0 1.5px #3a3a40; }
.section.alt .card, .section.alt .post-card, .section.alt .mini, .section.alt .step { border-color: var(--line); }
.mini:hover, .post-card:hover { box-shadow: none; border-color: var(--line-strong); }
.post-card:hover { transform: none; }

/* ---------- Journey: numbered columns divided by rules ---------- */
.journey { gap: 0 32px; }
.step { background: transparent; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; padding: 22px 0 0; }
.step::before { content: "0" counter(step); display: block; width: auto; height: auto; background: none; border-radius: 0; color: var(--c-t, var(--blue)); font: 500 13px var(--mono); letter-spacing: 0.12em; margin-bottom: 20px; }
.step h3 { font-size: 21px; }
.link-note { background: transparent; border: 1px solid var(--line); border-radius: var(--radius); text-align: left; color: var(--ink-2); font-size: 15px; }
.link-note strong { color: var(--ink); }

/* ---------- Pricing ---------- */
.price { border-radius: var(--radius); background: var(--card); }
.price .amt { font-family: var(--serif); font-weight: 400; font-size: 52px; letter-spacing: -0.01em; }
.price .badge { font-size: 11px; letter-spacing: 0.1em; border-radius: 2px; font-weight: 500; color: #fff; }
.quote-card { border-radius: var(--radius); }

/* ---------- Forms, footer, strip ---------- */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.field input, .field select, .field textarea { background: var(--bg-alt); border-radius: 4px; }
.site-footer { background: var(--bg); }
.strip { background: transparent; justify-content: flex-start; gap: 8px 16px; padding-inline: max(24px, calc((100% - var(--maxw)) / 2)); }
.strip li { font-size: 11px; letter-spacing: 0.05em; gap: 16px; }
.dd-menu { border-radius: 6px; }
.dd-menu a { border-radius: 4px; }

/* ---------- Ruled lists (name on the left, description on the right) ---------- */
.ruled { display: block; }
.ruled > .card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 48px; align-items: baseline; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0; }
.section.alt .ruled > .card { border-color: var(--line); }
.ruled > .card:last-child { border-bottom: 1px solid var(--line); }
.ruled > .card h3 { margin: 0; font-size: 20px; color: var(--accent-t); }
.ruled > .card p { font-size: 17px; }

/* ---------- Status chips ---------- */
.status { --st: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; padding: 6px 12px; border-radius: 980px; color: var(--st); border: 1px solid color-mix(in srgb, var(--st) 45%, transparent); background: color-mix(in srgb, var(--st) 8%, transparent); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.launching { --st: var(--hms-t); }
.status.early { --st: var(--saffq-t); }
.status.pilot { --st: var(--localdawai-t); }
.status.planned { --st: var(--ink-2); }

/* Status register (About) */
.register { margin: 0; padding: 0; list-style: none; }
.register li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 48px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.register li:last-child { border-bottom: 1px solid var(--line); }
.register .name { font-size: 20px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.register p { margin: 0; color: var(--ink-2); font-size: 17px; }
.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 28px; margin: 40px 0 0; padding: 0; list-style: none; }
.legend li { display: grid; gap: 10px; align-content: start; font-size: 15px; color: var(--ink-2); }
.legend .status { justify-self: start; }

@media (max-width: 980px) {
  .legend { grid-template-columns: repeat(2, 1fr); }
  .hero { background-size: 520px, auto, 220px; background-position: right -200px top -80px, 0 0, 0 0; }
}
@media (max-width: 720px) {
  .ruled > .card, .register li { grid-template-columns: 1fr; gap: 6px; }
  .legend { grid-template-columns: 1fr; }
  .tile { padding: 32px 22px 0; min-height: 520px; }
  .journey { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }

/* Buttons that sit on a product colour keep white text */
.scoped .btn:not(.btn-ghost), .quote-card .btn { color: #fff; }

/* Phones: keep the editorial left alignment */
@media (max-width: 980px) {
  .hero-split .hero-grid { text-align: left; }
  .hero-split .display, .hero-split .lead { margin-inline: 0; }
  .hero-split .actions { justify-content: flex-start; }
  .patient-link { text-align: left; }
}
@media (max-width: 720px) {
  .strip { gap: 6px 22px; }
  .strip li::after { display: none; }
}

/* Orbit nodes for the company-level hero */
.node-ico.is-mark { background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); }
.node-ico.is-mark svg { width: 54%; height: 54%; stroke: none; fill: none; }
.node-ico.is-dashed { background: transparent; box-shadow: none; border: 1.5px dashed var(--line-strong); }
.node-ico.is-dashed svg { stroke: var(--ink-2); }

/* Label above the healthcare products in the nav dropdown */
.dd-label { margin: 0; padding: 8px 14px 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
