/* Provia public site: "operator's manual / blueprint" design language.
   White paper, deep-navy ink, #2B7FE0 accent, drafting hairlines, mono labels.
   House rules: no Syne font, no warm tan backgrounds, no em dashes in copy. */

:root {
  --ink: #0d1b2e;
  --ink-2: #24354f;
  --muted: #5a6b85;
  --faint: #93a2b8;
  --line: #dfe6ef;
  --line-strong: #b9c5d6;
  --accent: #2b7fe0;
  --accent-press: #1a5fb8;
  --accent-soft: rgba(43, 127, 224, 0.07);
  --green: #1f9d61;
  --amber: #b97a1c;
  --bg: #ffffff;
  --console: #0d1b2e;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-press); }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* mono utility labels: the connective tissue of the whole site */
.mono { font-family: var(--mono); }
.tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--accent); text-transform: uppercase;
}
.chip {
  display: inline-block; font-family: var(--mono); font-size: 11.5px;
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px 8px;
  color: var(--ink-2); letter-spacing: 0.04em;
}
.chip.ok { color: var(--green); border-color: rgba(31, 157, 97, 0.4); }

/* drafting crosshairs on framed blocks */
.frame { position: relative; }
/* the crosshair carrier must not take a slot in grid/flex frames */
.frame > .x { position: absolute; inset: 0; pointer-events: none; }
.frame::before, .frame::after,
.frame > .x::before, .frame > .x::after {
  content: "+"; position: absolute; font-family: var(--mono);
  font-size: 14px; color: var(--line-strong); line-height: 1;
}
.frame::before { top: -7px; left: -4px; }
.frame::after { top: -7px; right: -4px; }
.frame > .x::before { bottom: -8px; left: -4px; }
.frame > .x::after { bottom: -8px; right: -4px; }

/* dotted blueprint patches */
.dotted {
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand img { height: 80px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-family: var(--mono); font-size: 13px; color: var(--ink-2); letter-spacing: 0.02em; }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav .cta {
  font-family: var(--font); font-size: 14px; font-weight: 700;
  background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 6px;
  white-space: nowrap;
}
.nav .cta:hover { background: var(--accent); color: #fff; }
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 0 10px;
  background: none; border: 1.5px solid var(--line-strong); border-radius: 6px; cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 1px; }

/* ---------- hero: headline left, fabric topology right ---------- */
.hero { padding: 84px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 {
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 0.98; letter-spacing: -0.045em; font-weight: 860;
  text-transform: uppercase; max-width: 12ch;
}
/* The rule is a positioned strip, not a border: a border sits at the bottom of the inline box,
   which the 0.98 line-height jams against the cap of the line below. Every wrapped fragment
   lifts by the same amount, so each line keeps the same gap under it. */
.hero h1 .under {
  box-shadow: inset 0 -0.18em var(--accent-soft), inset 0 -0.2em 0 0 transparent;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 4px;
  background-position: 0 calc(100% - 0.11em);
}
.hero h1 .outline {
  color: transparent; -webkit-text-stroke: 2px var(--ink);
}
.hero .lede { margin: 26px 0 30px; font-size: 18px; color: var(--muted); max-width: 52ch; }
.hero .lede b { color: var(--ink); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 6px;
  font-weight: 700; font-size: 15px; font-family: var(--font);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-press); color: #fff; }
.btn-ink { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ink:hover { background: var(--ink); color: #fff; }

/* the console panel (the fabric page's node-boot transcript) */
.term {
  background: var(--console); color: #dbe7f6; border-radius: 10px;
  font-family: var(--mono); font-size: 13px; line-height: 1.75;
  box-shadow: 0 24px 60px rgba(13, 27, 46, 0.25);
  overflow: hidden;
}
.term .bar {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.06); padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px; color: #8fa3bd; letter-spacing: 0.05em;
}
.term .bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #31507e; }
.term pre { padding: 18px 20px 22px; white-space: pre-wrap; margin: 0; }
.term .k { color: #7db4f0; }
.term .s { color: #b7c9df; }
.term .g { color: #4fc48b; }
.term .cm { color: #5f7492; }
.term .cursor { display: inline-block; width: 8px; height: 15px; background: #7db4f0; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term .cursor { animation: none; } }

/* the fleet: regions self-registering into the routing fabric, drawn on the paper */
.fleet { padding: 4px 0; }
.fleet svg { display: block; width: 100%; height: auto; overflow: visible; }
/* reclaim the gutter so the topology reads at full size beside the headline */
@media (min-width: 961px) { .fleet { margin-right: calc(var(--gutter) * -1); } }

/* regions */
.fab-node .core { fill: var(--accent); transition: fill 0.35s ease; }
.fab-node .ring {
  fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0;
  transform-box: fill-box; transform-origin: center;
}
/* the halo knocks the spokes out from behind the label, so both stay readable */
.fab-node .lab {
  font-family: var(--mono); font-size: 10px; fill: var(--faint); letter-spacing: 0.04em;
  paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round;
}
.fab-node.live .ring { animation: fab-ping 2.6s ease-out infinite; }
.fab-node.dark .core { fill: var(--ink); }
@keyframes fab-ping {
  0% { opacity: 0.5; transform: scale(0.55); }
  70% { opacity: 0; transform: scale(1.7); }
  100% { opacity: 0; transform: scale(1.7); }
}

/* fabric links, and the traffic riding them */
.fab-link { fill: none; stroke: var(--line-strong); stroke-width: 1.1; }
/* the drafting boundary around the fabric plane */
.fab-outline { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 5; }
.fab-packet { fill: var(--accent); }
.fab-grid { fill: var(--line); }
@media (prefers-reduced-motion: reduce) { .fab-node .ring { animation: none; } }


/* ---------- numbered sections ---------- */
section.num { padding: 84px 0; }
.sec-rule {
  display: flex; align-items: baseline; gap: 18px; margin-bottom: 44px;
  border-top: 2px solid var(--ink); padding-top: 16px;
}
.sec-rule h2 {
  font-size: clamp(28px, 3.8vw, 44px); letter-spacing: -0.03em; line-height: 1.05;
  font-weight: 830; text-transform: uppercase;
}

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; } }
.split h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.split p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }

/* pipeline: the engine as stations */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }
@media (max-width: 900px) { .pipeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr; } }
.station { padding: 28px 24px 32px; border-right: 1px solid var(--line); position: relative; }
.station:last-child { border-right: none; }
@media (max-width: 900px) { .station { border-bottom: 1px solid var(--line); } }
.station h3 { font-size: 19px; text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 10px; font-weight: 800; }
.station p { font-size: 14.5px; color: var(--muted); }
.station:hover { background: var(--accent-soft); }

/* ledger rows (facts styled like the decision ledger) */
.ledger { border-top: 1px solid var(--ink); }
.ledger .row {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px;
  padding: 20px 4px; border-bottom: 1px solid var(--line); align-items: baseline;
}
@media (max-width: 760px) { .ledger .row { grid-template-columns: 1fr; } }
.ledger .fact { font-size: clamp(20px, 2.6vw, 30px); font-weight: 830; letter-spacing: -0.02em; }
.ledger .detail { color: var(--muted); font-size: 15px; }

/* mantra console band */
.mantra { background: var(--console); color: #fff; padding: 84px 0; }
.mantra h2 {
  font-size: clamp(30px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.03em;
  font-weight: 850; text-transform: uppercase; max-width: 900px;
}
.mantra h2 .dim { color: #44597a; }
.mantra h2 .hi { color: #7db4f0; }
.mantra p.sub { color: #8fa3bd; margin-top: 20px; max-width: 62ch; font-size: 16px; }

/* three numbers */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
@media (max-width: 800px) { .numbers { grid-template-columns: 1fr; } }
.numbers .n { padding: 28px 24px 32px; border-right: 1px solid var(--line); }
.numbers .n:last-child { border-right: none; }
@media (max-width: 800px) { .numbers .n { border-right: none; border-bottom: 1px solid var(--line); } }
.numbers .label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }
.numbers .value { font-size: 34px; font-weight: 850; letter-spacing: -0.02em; margin: 10px 0 6px; }
.numbers p { color: var(--muted); font-size: 14.5px; }

/* ---------- platform feature specs ---------- */
.spec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; padding: 52px 0; border-bottom: 1px solid var(--line); align-items: start; }
.spec:last-of-type { border-bottom: none; }
.spec.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.spec.rev .visual { order: -1; }
@media (max-width: 900px) { .spec, .spec.rev { grid-template-columns: 1fr; } .spec.rev .visual { order: 0; } }
.spec .tag { display: block; margin-bottom: 10px; }
.spec h3 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.025em; font-weight: 820; margin-bottom: 12px; text-transform: uppercase; }
.spec p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.spec ul { list-style: none; }
.spec li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; color: var(--ink-2); }
.spec li::before { content: "->"; font-family: var(--mono); position: absolute; left: 0; color: var(--accent); font-size: 12px; top: 9px; }

.visual {
  background: #fff; border: 1px solid var(--ink); border-radius: 8px;
  font-family: var(--mono); font-size: 12.8px; line-height: 1.75;
  color: var(--ink-2); overflow-x: auto; white-space: pre; padding: 20px 22px;
  box-shadow: 8px 8px 0 var(--accent-soft);
}
.visual .c { color: var(--faint); }
.visual .k { color: var(--accent); }
.visual .g { color: var(--green); }
.visual .hd {
  display: block; border-bottom: 1px solid var(--line); margin: -20px -22px 14px;
  padding: 8px 22px; font-size: 11px; letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase;
}

/* ---------- pricing: plans as profiles ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 26px 22px 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.plan:last-child { border-right: none; }
@media (max-width: 1000px) { .plan { border-bottom: 1px solid var(--line); } }
.plan .profile { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.plan .profile b { color: var(--accent); font-weight: 600; }
.plan h3 { font-size: 20px; text-transform: uppercase; font-weight: 820; margin: 6px 0 14px; }
.plan .price { font-size: 40px; font-weight: 860; letter-spacing: -0.03em; line-height: 1; }
.plan .price small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .tagline { color: var(--muted); font-size: 13.5px; margin: 10px 0 18px; min-height: 60px; }
.plan ul { list-style: none; flex: 1; margin-bottom: 22px; }
.plan li { font-size: 13.8px; color: var(--ink-2); padding: 5px 0 5px 22px; position: relative; }
.plan li::before { content: "+"; font-family: var(--mono); position: absolute; left: 2px; color: var(--green); font-weight: 700; }
.plan .btn { text-align: center; }
.plan.featured { background: var(--accent-soft); }
.plan.featured::after {
  content: "MOST TEAMS START HERE"; position: absolute; top: 0; right: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  background: var(--accent); color: #fff; padding: 4px 10px;
}

.compare { width: 100%; border-collapse: collapse; border: 1px solid var(--ink); }
.compare th, .compare td { padding: 14px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.compare th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.compare tr:last-child td { border-bottom: none; }
.compare td:first-child { font-weight: 700; }
.table-scroll { overflow-x: auto; }

details.faq { border-bottom: 1px solid var(--line); padding: 20px 4px; }
details.faq:first-of-type { border-top: 1px solid var(--ink); }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; gap: 14px; align-items: baseline; }
details.faq summary::before { content: "Q"; font-family: var(--mono); color: var(--accent); font-size: 13px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq p { color: var(--muted); margin-top: 12px; font-size: 15px; padding-left: 27px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { border: 1px solid var(--ink); padding: 30px; box-shadow: 8px 8px 0 var(--accent-soft); background: #fff; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 6px;
  font-size: 15px; font-family: var(--font); color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 14px; }
#form-sent { display: none; font-family: var(--mono); font-size: 13px; color: var(--green); margin-top: 12px; }

.channel { border-top: 1px solid var(--ink); padding: 18px 4px; }
.channel + .channel { border-top: 1px solid var(--line); }
.channel h3 { font-size: 18px; margin: 4px 0; }
.channel p { color: var(--muted); font-size: 14.5px; }

/* ---------- footer ---------- */
.site-footer { border-top: 2px solid var(--ink); padding: 40px 0 34px; margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer .brand img { height: 44px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .foot-bottom {
  width: 100%; margin-top: 14px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.site-footer .legal { font-family: var(--mono); color: var(--faint); font-size: 11.5px; }
.site-footer .made { text-align: right; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 720px) {
  /* Phone header: logo left, hamburger right, nothing else. Every link —
     including the CTA — lives in the fold-out panel. */
  .site-header .wrap { height: 64px; justify-content: space-between; }
  .brand img { height: 53px; }
  .nav { gap: 0; }
  .nav a { display: none; }
  .menu-toggle { display: inline-flex; flex-shrink: 0; }
  .site-header.open .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 6px 24px 18px; gap: 0;
    box-shadow: 0 16px 30px rgba(13, 27, 46, 0.08);
  }
  .site-header.open .nav a:not(.cta) {
    display: block; padding: 13px 0; font-size: 14px;
    border-bottom: 1px solid var(--line);
  }
  .site-header.open .nav .cta {
    display: block; margin-top: 16px; text-align: center;
    font-size: 14px; padding: 12px 16px;
  }
  .hero { padding-top: 40px; }
}
