/* Systems Creation — site styles
   Layout concept: an operations console. Calm paper pages, one dark "console" band per page
   where live-looking data (the Pulse) carries the message; mono labels mark system terms. */
:root {
  --paper: #F3F5F8;
  --surface: #FFFFFF;
  --ink: #101828;
  --ink-2: #475467;
  --line: #D8DEE8;
  --accent: #7AB51D;        /* brand green from the SC logo: fills, rules, bars */
  --accent-ink: #3F6E0C;    /* brand green text on light */
  --signal: #18805A;        /* good */
  --alert: #B93815;         /* critical */
  --band: #0E1626;          /* console band, dark in both themes */
  --band-2: #16213A;
  --band-ink: #E8EDF5;
  --band-ink-2: #A3B0C6;
  --band-line: #26334F;
  --focus: #2F6FED;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.95rem;
  --step-0: 1.125rem;   /* 18px body */
  --step-1: 1.35rem;
  --step-2: 1.75rem;
  --step-3: 2.4rem;
  --step-4: clamp(2.5rem, 5.2vw, 4.25rem);

  --wrap: 1180px;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A101C; --surface: #111A2B; --ink: #E8EDF5; --ink-2: #A3B0C6; --line: #243049;
    --accent: #8FCB2E; --accent-ink: #A2D64C; --signal: #4CC38A; --alert: #F07A55;
    --band: #060B15; --band-2: #101A2E; --band-line: #22304C; --focus: #7AA5FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A101C; --surface: #111A2B; --ink: #E8EDF5; --ink-2: #A3B0C6; --line: #243049;
  --accent: #8FCB2E; --accent-ink: #A2D64C; --signal: #4CC38A; --alert: #F07A55;
  --band: #060B15; --band-2: #101A2E; --band-line: #22304C; --focus: #7AA5FF;
  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(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-stretch: 112%; line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 750; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; font-stretch: 105%; }
p { margin: 0; }
ul { margin: 0; padding-left: 1.2em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 16px; }

/* layout */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; line-height: 1.5; }
.measure { max-width: 66ch; }
.muted { color: var(--ink-2); }
.eyebrow { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--f-display); font-stretch: 115%; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand span { text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.1rem; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.menu { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 700; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; position: absolute; right: 0; top: calc(100% + 10px); flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-width: 230px; box-shadow: 0 12px 32px rgb(0 0 0 / 0.14); }
  .menu-panel a { text-decoration: none; padding: 10px 12px; border-radius: 6px; font-weight: 600; }
  .menu-panel a:hover { background: var(--paper); }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 650 1.05rem/1 var(--f-body); padding: 15px 22px; border-radius: 8px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #0E1626; }
.btn-primary:hover { filter: brightness(1.05); text-decoration: none; }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.nav .btn { padding: 11px 18px; }

/* console band */
.band { background: var(--band); color: var(--band-ink); }
.band .muted, .band .lede { color: var(--band-ink-2); }
.band .eyebrow { color: var(--accent); }
.band a { color: var(--band-ink); }

/* hero */
.hero { padding-block: clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { color: var(--band-ink); }
.hero .lede { color: var(--band-ink-2); }

/* pulse console */
.pulse { background: var(--band-2); border: 1px solid var(--band-line); border-radius: 14px; padding: 22px; font-family: var(--f-mono); font-size: 0.95rem; color: var(--band-ink); box-shadow: 0 30px 60px rgb(0 0 0 / 0.35); min-width: 0; }
.pulse-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--band-line); color: var(--band-ink-2); flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--band-ink); }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 60%, transparent); animation: beat 2.4s infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: 16px; }
.tile { border: 1px solid var(--band-line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile .k { color: var(--band-ink-2); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.tile .v { font-family: var(--f-display); font-stretch: 110%; font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .s { color: var(--band-ink-2); font-size: 0.85rem; }
.bar { height: 8px; border-radius: 4px; background: var(--band-line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.feed { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--band-line); }
.feed-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 0.88rem; }
.feed-row time { color: var(--band-ink-2); font-variant-numeric: tabular-nums; }
.sev { font-size: 0.78rem; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.04em; }
.sev-crit { background: color-mix(in srgb, #F07A55 22%, transparent); color: #FFB59E; }
.sev-warn { background: color-mix(in srgb, #F0A04A 22%, transparent); color: #FFD199; }
.sev-ok { background: color-mix(in srgb, #4CC38A 22%, transparent); color: #A6EBC8; }
.caption { font-family: var(--f-mono); font-size: 0.85rem; color: var(--band-ink-2); margin-top: 12px; }

/* cards & lists */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card .tag { font-family: var(--f-mono); font-size: 0.85rem; color: var(--accent-ink); letter-spacing: 0.04em; text-transform: uppercase; }
.card .price { font-family: var(--f-display); font-stretch: 110%; font-size: var(--step-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.card ul { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.card.featured { border: 2px solid var(--accent); }
.card .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 1rem; }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 14px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }

/* problem strip */
.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.problems > div { padding: 26px 26px 0 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.problems > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
@media (max-width: 800px) { .problems { grid-template-columns: 1fr; } .problems > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .problems > div { padding-bottom: 20px; } }

/* method (a real sequence) */
.method { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; counter-reset: step; }
@media (max-width: 900px) { .method { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .method { grid-template-columns: 1fr; } }
.method li { counter-increment: step; border-top: 3px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.method li::before { content: "Step " counter(step); font-family: var(--f-mono); font-size: 0.88rem; color: var(--accent-ink); letter-spacing: 0.06em; text-transform: uppercase; }
.method li.addon { border-top-style: dashed; }
.method li:nth-child(-n+3) { border-top-color: var(--accent); }

/* architecture diagram */
.arch { overflow-x: auto; }
.arch svg { min-width: 1080px; width: 100%; display: block; }
.arch .box { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.arch .panel { fill: color-mix(in srgb, var(--accent) 6%, var(--paper)); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 5; }
.arch-wide { width: min(1440px, calc(100vw - 40px)); position: relative; left: 50%; transform: translateX(-50%); }
.arch .box-hi { fill: color-mix(in srgb, var(--accent) 14%, var(--surface)); stroke: var(--accent); stroke-width: 2; }
.arch .t { fill: var(--ink); font: 650 17px var(--f-body); }
.arch .t2 { fill: var(--ink-2); font: 400 14.5px var(--f-body); }
.arch .ln { stroke: var(--ink-2); stroke-width: 1.5; fill: none; }
.arch .ah { fill: var(--ink-2); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 1.02rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-mono); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
td code, .mono { font-family: var(--f-mono); font-size: 0.92em; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
.stats > div { padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stats > div + div { border-left: 1px solid var(--band-line); }
.stats .v { font-family: var(--f-display); font-stretch: 112%; font-size: 2.4rem; font-weight: 750; color: var(--band-ink); font-variant-numeric: tabular-nums; }
.stats .k { color: var(--band-ink-2); font-size: 1rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats > div:nth-child(3) { border-left: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid var(--band-line); } }

.stats.s2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats.s2 > div:nth-child(odd) { border-left: 0; }
.stats.s2 > div:nth-child(n+3) { border-top: 1px solid var(--band-line); }

/* split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* timeline (career) */
.career { list-style: none; padding: 0; display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.career li { position: relative; padding: 0 0 26px 26px; display: flex; flex-direction: column; gap: 4px; }
.career li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.career .when { font-family: var(--f-mono); font-size: 0.9rem; color: var(--accent-ink); }

/* placeholder text the owner must replace */
.ph { background: color-mix(in srgb, var(--accent) 16%, transparent); border-bottom: 2px dashed var(--accent); padding: 0 3px; border-radius: 2px; }

/* CTA band */
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: var(--band-ink); max-width: 20ch; }

/* forms */
form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
label { font-weight: 650; font-size: 1.02rem; }
input, select, textarea { font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 13px 14px; width: 100%; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 1rem; color: var(--ink-2); }
.status { padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.status.ok { background: color-mix(in srgb, var(--signal) 14%, transparent); color: var(--signal); }
.status.err { background: color-mix(in srgb, var(--alert) 14%, transparent); color: var(--alert); }
.contact-aside { display: flex; flex-direction: column; gap: 22px; }
.contact-aside .card { gap: 8px; }

/* footer */
.site-foot { background: var(--band); color: var(--band-ink-2); padding-block: 56px 40px; font-size: 1rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-foot h3 { color: var(--band-ink); font-size: 1rem; font-family: var(--f-mono); font-stretch: 100%; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-foot a { color: var(--band-ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--band-line); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.95rem; }
.site-foot .brand { color: var(--band-ink); margin-bottom: 12px; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* tier cards (matches the pitch deck packages slide) */
.tiers { display: grid; gap: 24px; align-items: stretch; }
.tiers.t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiers.t4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .tiers.t4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tiers.t3, .tiers.t4 { grid-template-columns: 1fr; } }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tier h3 { font-size: var(--step-2); }
.tier-price { font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: var(--step-2); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.tier ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 1.15rem; }
.tier.dark { background: var(--band); border-color: var(--band); color: var(--band-ink); }
.tier.dark .tier-price { color: var(--accent); }
.tier.dark ul { color: var(--band-ink-2); }
.tier-flag { font-family: var(--f-mono); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: -4px; }
.tier-note { margin-top: 24px; font-size: 1.05rem; }
.orgs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.orgs li { font-family: var(--f-display); font-stretch: 108%; font-weight: 650; font-size: 1.2rem; padding: 12px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
