@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('/fonts/spline-sans-mono.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --sail: #edf2f6;
  --paper: #ffffff;
  --ink: #0e1b2c;
  --slate: #475a70;
  --line: #c9d5df;
  --blue: #123f9c;
  --red: #d3241c;
  --yellow: #f6c500;
  --green: #2e9e5b;
  --go: #7fd6a0;
  --deck: #1b2b40;
  --term-text: #dfe7ef;
  --term-dim: #93a4b6;
  --sev1-dark: #ff8a80;
  /* Flag colours never change with the theme, so the flags stay true to the signal code. */
  --flag-white: #ffffff;
  --flag-black: #0e1b2c;
  /* Panels stay dark in both themes: the terminal, the command, the footer. */
  --panel: #0e1b2c;
  --on-panel: #ffffff;
  --link: #123f9c;
  --btn-bg: #0e1b2c;
  --btn-text: #ffffff;
  --gutter: clamp(16px, 4vw, 56px);
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--sail);
  color: var(--ink);
  font: 400 1.0625rem/1.55 'Archivo', system-ui, sans-serif;
}
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
h1, h2, h3, p, ul, ol, dl, dd, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, pre, kbd { font-family: 'Spline Sans Mono', ui-monospace, monospace; }

/* Masthead: stays at the top, glassy, with a hairline once the page scrolls. */
.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--sail) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, box-shadow 200ms;
}
.mast.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(14, 27, 44, 0.5); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-stretch: 120%;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.brand svg { width: 30px; height: 27px; display: block; margin-top: -6px; }
.mast nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 22px; font-size: 0.95rem; }
.mast nav a { color: var(--ink); text-decoration: none; }
.mast nav a:hover { text-decoration: underline; }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform 300ms, border-color 200ms;
}
.theme-toggle:hover { border-color: var(--ink); transform: rotate(18deg); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .moon { fill: currentColor; stroke: none; }
.theme-toggle .sun, :root.dark .theme-toggle .moon { display: none; }
:root.dark .theme-toggle .sun { display: block; }

/* The hoist: seven real signal flags on one line */
.hoist-wrap { padding: 0 var(--gutter); overflow: hidden; }
.hoist {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(4px, 0.9vw, 14px);
  padding-top: 12px;
}
.hoist li { position: relative; }
.hoist li::after {
  content: '';
  position: absolute;
  top: -12px;
  left: -100vw;
  right: -100vw;
  height: 2px;
  background: var(--ink);
}
.hoist li::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 12%;
  right: 12%;
  height: 12px;
  border-inline: 2px solid var(--ink);
}
.hoist button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 0;
  animation: sway 3.6s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.55s);
}
@keyframes sway {
  from { transform: rotate(-1.4deg) skewY(0.8deg); }
  to { transform: rotate(1.4deg) skewY(-0.8deg); }
}
.hoist svg { display: block; width: 100%; height: auto; }
.hoist li {
  animation: hoist 1100ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  animation-delay: calc((6 - var(--i)) * 70ms);
}
@keyframes hoist {
  from { transform: translateX(calc(-112% * (var(--i) + 1))); }
  to { transform: none; }
}
.signal {
  min-height: 1.6em;
  margin-top: 10px;
  color: var(--slate);
  font-size: 0.95rem;
}
.signal b { color: var(--ink); font-weight: 600; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(36px, 7vw, 92px) var(--gutter) clamp(40px, 6vw, 72px); }
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 4%;
  right: -14%;
  width: min(760px, 80vw);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 35% 35%, rgba(18, 63, 156, 0.2), transparent 58%),
    radial-gradient(circle at 70% 65%, rgba(246, 197, 0, 0.22), transparent 55%),
    radial-gradient(circle at 60% 25%, rgba(211, 36, 28, 0.1), transparent 50%);
  filter: blur(18px);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg) scale(1); }
  to { transform: translate(-6%, 8%) rotate(24deg) scale(1.08); }
}
.hero h1 {
  max-width: 13em;
  font-size: clamp(2.7rem, 8.2vw, 7rem);
  font-weight: 700;
  font-stretch: 125%;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero .lede {
  max-width: 46ch;
  margin-top: clamp(20px, 3vw, 34px);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.4;
}
.run { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-top: 28px; }
.cmd {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 14px 14px 20px;
  background: var(--panel);
  color: var(--on-panel);
  border-radius: 4px;
  font-family: 'Spline Sans Mono', monospace;
  font-size: 1.1rem;
}
.cmd button {
  padding: 6px 12px;
  border: 1px solid #5d6f85;
  border-radius: 3px;
  background: transparent;
  color: var(--on-panel);
  font: 500 0.85rem 'Archivo', sans-serif;
  cursor: pointer;
}
.cmd button:hover { background: var(--on-panel); color: var(--panel); }
.run small { align-self: center; color: var(--slate); font-size: 0.95rem; }

/* Verdict: the two ways a run can end */
.verdict { display: flex; align-items: flex-start; gap: 14px 18px; margin-top: 34px; }
.verdict li:not(.to) { display: grid; gap: 8px; flex: 0 1 auto; min-width: 0; max-width: 15rem; }
.verdict b {
  justify-self: start;
  padding: 7px 14px 6px;
  border-radius: 4px;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 750;
  font-stretch: 125%;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.verdict .no b { background: var(--red); color: var(--on-panel); }
.verdict .go b { background: var(--green); color: var(--flag-black); }
.verdict span { color: var(--slate); font-size: 0.92rem; line-height: 1.35; }
.verdict .to { padding-top: 6px; color: var(--slate); font-size: 1.4rem; line-height: 1; }
.verdict .go { animation: light 900ms ease-out 1.6s both; }
@keyframes light {
  from { opacity: 0.3; filter: grayscale(1); }
  to { opacity: 1; filter: none; }
}

/* Sections */
section { padding: clamp(40px, 6vw, 80px) var(--gutter); }
section > h2, .split h2 {
  max-width: 20em;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 650;
  font-stretch: 115%;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.note { max-width: var(--measure); margin-top: 14px; color: var(--slate); }

/* Terminal: one window, before and after fixes */
.console { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 var(--gutter); }
.console-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  background: var(--deck);
  border-radius: 6px 6px 0 0;
}
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.lights i:nth-child(2) { background: var(--yellow); }
.lights i:nth-child(3) { background: var(--green); }
[role="tablist"] { display: flex; gap: 4px; }
[role="tab"] {
  padding: 6px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--term-dim);
  font: 500 0.9rem 'Archivo', sans-serif;
  cursor: pointer;
}
[role="tab"]:hover { color: var(--on-panel); }
[role="tab"][aria-selected="true"] { background: var(--panel); color: var(--on-panel); }
[role="tab"]:focus-visible { outline-color: var(--yellow); }
.term {
  grid-area: 2 / 1;
  padding: clamp(18px, 3vw, 34px);
  overflow-x: auto;
  background: var(--panel);
  color: var(--term-text);
  border-radius: 0 0 6px 6px;
  font-size: clamp(0.76rem, 1.25vw, 0.92rem);
  line-height: 1.55;
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* Both runs share one cell so switching tabs never moves the page. */
.term[hidden] { display: block; visibility: hidden; }
.term:focus-visible { outline-color: var(--yellow); outline-offset: -3px; }
.term.done:not([hidden]) { display: grid; align-content: center; font-size: clamp(0.9rem, 1.7vw, 1.2rem); }
.term .s1 { color: var(--sev1-dark); font-weight: 600; }
.term .s2 { color: var(--yellow); font-weight: 600; }
.term .go { color: var(--go); font-weight: 600; }
.term .s3, .term .dim { color: var(--term-dim); }
.term b { color: var(--on-panel); font-weight: 600; }
.term-note { margin-top: 12px; color: var(--slate); font-size: 0.95rem; }

/* Why a flag */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(24px, 6vw, 88px);
  align-items: center;
  background: var(--yellow);
  color: var(--flag-black);
}
.split a { color: var(--flag-black); }
.split p { max-width: 54ch; margin-top: 16px; }
.signals { display: grid; gap: 6px; max-width: 460px; }
.sig {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.sig svg { flex: none; display: block; width: 72px; height: 48px; }
.sig code {
  flex: none;
  width: 72px;
  padding: 14px 0;
  background: var(--panel);
  color: var(--on-panel);
  border-radius: 3px;
  font-size: 0.78rem;
  text-align: center;
}
.split .sig p { margin: 0; line-height: 1.35; }
.sig b { display: block; color: var(--slate); font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.sig.out { background: var(--panel); color: var(--on-panel); }
.sig.out strong { flex: none; font-size: 1.35rem; font-weight: 750; font-stretch: 125%; }
.sig.out p { color: var(--term-text); }
.op { justify-self: center; font-size: 1.5rem; font-weight: 700; line-height: 1; }

/* Where it runs */
.ways { margin-top: 28px; border-top: 2px solid var(--ink); }
.ways > div {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 3fr);
  gap: 8px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.ways dt { font-weight: 650; font-size: 1.15rem; }
.ways dd p { max-width: var(--measure); }
.ways code {
  display: inline-block;
  max-width: 100%;
  margin-top: 8px;
  padding: 3px 8px;
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* Checks */
.sevs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 28px; }
.sevs h3 span {
  display: inline-block;
  padding: 4px 10px 3px;
  border-radius: 3px;
  background: var(--bar);
  color: var(--chip);
  font-size: 0.95rem;
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: 0.04em;
}
.sevs p { margin-top: 10px; color: var(--slate); font-size: 0.97rem; }
.sevs ul { display: grid; gap: 10px; margin-top: 16px; }
.sevs li a {
  display: block;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--bar);
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 150ms, transform 150ms;
}
.sevs li a:hover { border-color: var(--ink); border-left-color: var(--bar); transform: translateY(-2px); }
.sevs li b { display: block; font-weight: 600; line-height: 1.3; }
.sevs li span { display: block; margin-top: 4px; color: var(--slate); font-size: 0.92rem; line-height: 1.4; }
.sev1 { --bar: var(--red); --chip: var(--on-panel); }
.sev2 { --bar: var(--yellow); --chip: var(--flag-black); }
.sev3 { --bar: var(--slate); --chip: var(--sail); }

/* Limits */
.limits { background: var(--paper); }
.limits ul { max-width: var(--measure); margin-top: 18px; }
.limits li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr auto;
  column-gap: clamp(14px, 2vw, 24px);
  margin-top: 28px;
}
.plan {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.plan.now { box-shadow: 0 22px 50px -26px rgba(18, 63, 156, 0.55); }
.plan h3 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 1.15rem; font-weight: 650; }
.tag { padding: 3px 8px; border-radius: 3px; background: var(--sail); color: var(--slate); font-size: 0.78rem; font-weight: 600; }
.now .tag { background: var(--green); color: var(--flag-black); }
.plan .price { margin-top: 4px; font-size: 2.1rem; font-stretch: 112%; font-weight: 650; line-height: 1.15; }
.plan .per { color: var(--slate); font-size: 0.95rem; font-weight: 400; }
.plan ul { margin: 14px 0 20px; }
.plan li { padding: 7px 0; border-top: 1px solid var(--line); }
.plan .btn { justify-self: start; }
.btn {
  display: inline-block;
  padding: 10px 16px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { background: var(--blue); color: var(--on-panel); }
.btn.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.alt:hover { background: var(--ink); color: var(--paper); }
.pilot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  margin-top: 32px;
  padding: 24px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.pilot svg { display: block; width: 90px; height: 60px; }
.pilot h3 { font-size: 1.25rem; font-weight: 650; font-stretch: 112%; }
.pilot p { max-width: 56ch; margin-top: 6px; }
.pilot-buy { display: grid; gap: 10px; justify-items: start; }
.pilot .price { margin: 0; font-size: 1.6rem; font-weight: 650; font-stretch: 112%; line-height: 1.1; }

/* Footer: dark in both themes, with the hoist and a big wordmark sinking off the bottom. */
.site-foot {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) var(--gutter) 0;
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(18, 63, 156, 0.35), transparent 65%),
    var(--panel);
  color: #aebdcc;
  font-size: 0.95rem;
}
.site-foot a { color: var(--on-panel); text-decoration: none; }
.site-foot a:hover { color: var(--yellow); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 40px clamp(32px, 6vw, 96px); }
.site-foot .brand { color: var(--on-panel); font-size: 1.15rem; }
.foot-brand p { max-width: 34ch; margin-top: 14px; line-height: 1.5; }
.foot-cmd {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px solid #24406b;
  border-radius: 4px;
  color: var(--on-panel);
  font-size: 0.92rem;
}
.foot-cmd::before { content: '$ '; color: var(--yellow); }
.foot-flags { display: flex; gap: 6px; margin-top: 22px; padding-top: 8px; border-top: 2px solid rgba(255, 255, 255, 0.85); }
.foot-flags svg { width: 30px; height: 20px; display: block; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.foot-cols div { display: grid; align-content: start; gap: 10px; }
.foot-h { color: #7f93a8; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.foot-status { display: inline-flex; align-items: center; gap: 10px; }
.foot-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46, 158, 91, 0.6); animation: ping 2.4s ease-out infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(46, 158, 91, 0.6); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(46, 158, 91, 0); }
}
.made-by { display: inline-flex; align-items: center; gap: 10px; color: #aebdcc; text-decoration: none; }
.site-foot .made-by:hover { color: var(--on-panel); }
.made-by img { display: block; height: 26px; width: auto; }
.foot-word {
  margin: 4px 0 -0.22em;
  font-size: clamp(3.6rem, 14.5vw, 13rem);
  font-weight: 750;
  font-stretch: 125%;
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(127, 176, 255, 0.16), transparent 75%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

/* Header: brand, links, actions. Below 960px the links move into a menu. */
.nav { margin-left: auto; }
.mast-actions { display: flex; align-items: center; gap: 10px; margin-left: 22px; }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; border-radius: 8px; }
.btn.block { display: block; width: 100%; text-align: center; }
.menu-btn {
  display: none;
  place-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
}
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 220ms; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 6px var(--gutter) 22px;
  background: var(--sail);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(14, 27, 44, 0.45);
  animation: menu-in 200ms ease-out;
}
.menu[hidden] { display: none; }
.mast .menu nav { display: grid; justify-content: stretch; gap: 0; font-size: 1.1rem; }
.mast .menu nav a { padding: 15px 2px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mast .menu nav a:hover { text-decoration: none; color: var(--link); }
.menu .btn { margin-top: 18px; padding: 14px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .mast .nav { display: none; }
  .menu-btn { display: grid; }
  .mast-actions { margin-left: auto; gap: 8px; }
}
@media (max-width: 440px) {
  .mast-actions .btn-sm { display: none; }
}

/* Hero pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 600;
}
.pill-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ping 2.4s ease-out infinite; }
.pill b { color: var(--slate); font-weight: 400; opacity: 0.5; }

/* Pricing */
.tracks {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  margin-top: 30px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.tracks [role="tab"] {
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  font: 650 0.98rem 'Archivo', system-ui, sans-serif;
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.tracks [role="tab"] small { margin-left: 8px; font-size: 0.8rem; font-weight: 500; opacity: 0.75; }
.tracks [role="tab"]:hover { color: var(--ink); }
.tracks [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--sail); }
.tracks [role="tab"]:focus-visible { outline-color: var(--link); }
.track-blurb { max-width: var(--measure); margin: 16px 0 20px; color: var(--slate); }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pcard { display: flex; flex-direction: column; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.pcard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard-head h3 { font-size: 1.3rem; font-weight: 700; font-stretch: 112%; }
.pcard.live .tag { background: var(--green); color: var(--flag-black); }
.pcard-tagline { min-height: 2.9em; margin-top: 8px; color: var(--slate); font-size: 0.95rem; line-height: 1.45; }
.pcard-price { margin-top: 16px; }
.pcard-price .amount { font-size: 2.8rem; font-weight: 750; font-stretch: 115%; letter-spacing: -0.02em; line-height: 1; }
.pcard-price .per { color: var(--slate); font-size: 0.95rem; }
.pcard-note { min-height: 2.8em; margin-top: 8px; color: var(--slate); font-size: 0.85rem; line-height: 1.4; }
.pcard-cta { display: grid; gap: 10px; margin: 14px 0 22px; }
.pcard-alt { justify-self: center; color: var(--slate); font-size: 0.9rem; }
.pcard-lead { margin-bottom: 12px; color: var(--slate); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.pcard ul { display: grid; gap: 10px; }
.pcard li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; line-height: 1.4; }
.ic-check { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pcard-foot { margin-top: auto; padding-top: 18px; color: var(--slate); font-size: 0.82rem; }
.pcard ul + .pcard-foot { margin-top: 22px; border-top: 1px dashed var(--line); }

.compare { margin-top: 28px; }
.compare summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.compare summary::-webkit-details-marker { display: none; }
.compare summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 200ms; }
.compare[open] summary svg { transform: rotate(180deg); }
.compare-scroll { position: relative; margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.compare table { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; font-size: 0.92rem; }
.compare thead th, .compare thead td { padding: 14px 10px; text-align: center; font-weight: 700; }
.compare thead tr:first-child th { color: var(--link); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.compare thead small { display: block; margin-top: 2px; color: var(--slate); font-size: 0.8rem; font-weight: 500; }
.compare th.feat { position: sticky; left: 0; z-index: 1; width: 300px; min-width: 220px; padding: 12px 16px; background: var(--paper); text-align: left; font-weight: 400; box-shadow: 1px 0 0 var(--line); }
.compare thead th.feat { font-weight: 700; }
.fname { display: block; font-weight: 650; }
.fhelp { display: block; margin-top: 3px; color: var(--slate); font-size: 0.8rem; line-height: 1.35; }
.compare td { padding: 12px 10px; border-top: 1px solid var(--line); text-align: center; color: var(--ink); font-size: 0.86rem; }
.compare tbody th.feat { border-top: 1px solid var(--line); }
.compare tr.group th { padding: 22px 16px 8px; text-align: left; color: var(--link); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.compare td .ic-check { display: inline-block; margin: 0; }
.ic-dash { color: var(--line); font-size: 1.1rem; }
.compare-note { margin-top: 12px; color: var(--slate); font-size: 0.88rem; }

.assure { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 40px 0 8px; }
.assure li { display: grid; gap: 6px; align-content: start; }
.assure svg { width: 28px; height: 28px; margin-bottom: 4px; fill: none; stroke: var(--link); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.assure span { color: var(--slate); font-size: 0.92rem; line-height: 1.45; }

/* Self-hosted or Cloud */
.explain-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.explain-cards article { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.explain-cards svg { width: 36px; height: 36px; fill: none; stroke: var(--link); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.explain-cards h3 { margin-top: 14px; font-size: 1.35rem; font-weight: 700; font-stretch: 112%; line-height: 1.2; }
.explain-cards p { margin-top: 10px; color: var(--slate); line-height: 1.55; }
.explain-cards .explain-best { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.vs { position: relative; margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.vs table { width: 100%; min-width: 520px; border-collapse: collapse; }
.vs th, .vs td { padding: 14px 18px; text-align: left; vertical-align: top; }
.vs thead th { font-weight: 700; }
.vs tbody th { width: 28%; color: var(--slate); font-weight: 600; }
.vs tbody tr { border-top: 1px solid var(--line); }

.finder {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px 32px;
  margin-top: 18px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.finder h3 { grid-column: 1 / -1; font-size: 1.3rem; font-weight: 700; font-stretch: 112%; }
.finder fieldset { grid-column: 1; margin: 0; padding: 0; border: 0; }
.finder legend { margin-bottom: 10px; font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--sail); font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: background 150ms, color 150ms, border-color 150ms; }
.seg input:checked + span { background: var(--ink); color: var(--sail); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 2px; }
.finder-result { grid-column: 2; grid-row: 2 / span 3; align-self: stretch; display: grid; align-content: center; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--sail); }
.finder-kicker { color: var(--slate); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.finder-plan { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 750; font-stretch: 115%; line-height: 1.1; }
.finder-why { color: var(--slate); line-height: 1.5; }
.finder-result .btn { justify-self: start; margin-top: 8px; }
.finder-result.flash { animation: pop 380ms cubic-bezier(0.2, 1.4, 0.4, 1); }

/* FAQ */
.faq-list { max-width: 860px; margin-top: 26px; border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 1.06rem; font-weight: 650; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: none; color: var(--link); font-size: 1.4rem; line-height: 1; transition: transform 200ms; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { max-width: 70ch; padding-bottom: 20px; color: var(--slate); line-height: 1.6; }

/* Particles sit behind the hero text and fade out towards the bottom. */
.particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}

/* How it works: a live-looking scan of a demo repo. */
.scan { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-top: 32px; }
.scan-files { position: relative; overflow: hidden; border-radius: 10px; background: var(--panel); color: var(--term-text); box-shadow: 0 30px 80px -40px rgba(14, 27, 44, 0.6); }
.scan-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--deck); font-size: 0.85rem; }
.scan-name { color: var(--term-dim); }
.scan-phase { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: rgba(127, 176, 255, 0.14); color: #b9d3ff; font-family: 'Spline Sans Mono', monospace; font-size: 0.75rem; }
.scan-files ul { padding: 10px 0 14px; }
.scan-files li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 300ms;
}
.scan-files code { font-size: 0.86rem; color: var(--term-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-files li b { flex: none; font-family: 'Spline Sans Mono', monospace; font-size: 0.72rem; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity 300ms, transform 300ms; }
.scan-files li[class] b { opacity: 1; transform: none; }
.scan-files li.ok b { color: var(--go); }
.scan-files li.hit1 { background: rgba(211, 36, 28, 0.14); }
.scan-files li.hit1 b { color: var(--sev1-dark); }
.scan-files li.hit2 { background: rgba(246, 197, 0, 0.1); }
.scan-files li.hit2 b { color: var(--yellow); }
.scan-files li.fixed { background: rgba(46, 158, 91, 0.12); }
.scan-files li b i { font-style: normal; }
.beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 46px;
  height: 46px;
  background: linear-gradient(180deg, transparent, rgba(127, 176, 255, 0.22), transparent);
  border-bottom: 1px solid rgba(127, 176, 255, 0.7);
  box-shadow: 0 8px 24px -6px rgba(127, 176, 255, 0.6);
  opacity: 0;
  pointer-events: none;
}
.scan.scanning .beam { opacity: 1; animation: beam 3120ms linear forwards; animation-delay: 300ms; }
@keyframes beam { from { transform: translateY(0); } to { transform: translateY(calc(6 * 43px)); } }
.scan-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 12px; }
.scan-stat { padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.scan-stat span { display: block; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 750; font-stretch: 115%; line-height: 1; font-variant-numeric: tabular-nums; }
.scan-stat small { display: block; margin-top: 6px; color: var(--slate); font-size: 0.8rem; }
.scan-verdict {
  grid-column: 1 / -1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 170px;
  padding: 20px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
  transition: background 400ms, border-color 400ms, box-shadow 400ms;
}
.scan-verdict b { padding: 8px 18px 7px; border-radius: 6px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750; font-stretch: 125%; letter-spacing: 0.02em; line-height: 1; }
.scan-verdict small { color: var(--slate); font-size: 0.9rem; }
.scan-verdict[data-state="wait"] b { color: var(--slate); }
.scan-verdict[data-state="no"] { border-color: var(--red); box-shadow: 0 20px 60px -30px rgba(211, 36, 28, 0.7); }
.scan-verdict[data-state="no"] b { background: var(--red); color: var(--on-panel); animation: pop 420ms cubic-bezier(0.2, 1.6, 0.4, 1); }
.scan-verdict[data-state="go"] { border-color: var(--green); box-shadow: 0 20px 60px -30px rgba(46, 158, 91, 0.8); }
.scan-verdict[data-state="go"] b { background: var(--green); color: var(--flag-black); animation: pop 420ms cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.how-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.how-steps li { padding-top: 14px; border-top: 2px solid var(--line); color: var(--slate); line-height: 1.45; }
.how-steps span { display: block; margin-bottom: 8px; font-family: 'Spline Sans Mono', monospace; font-size: 0.8rem; color: var(--link); }
.how-steps b { color: var(--ink); }

/* Ticker: every check, sliding past like a departures board. */
.ticker {
  overflow: hidden;
  margin: 0 0 clamp(28px, 4vw, 44px);
  padding: 12px 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; gap: 40px; animation: tick 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--slate); font-size: 0.92rem; }
.ticker b { padding: 2px 7px 1px; border-radius: 3px; font-family: 'Spline Sans Mono', monospace; font-size: 0.72rem; font-weight: 600; }
.ticker .t1 { background: var(--red); color: var(--on-panel); }
.ticker .t2 { background: var(--yellow); color: var(--flag-black); }
.ticker .t3 { background: var(--slate); color: var(--sail); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Numbers band */
.stats dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-block: 1px solid var(--line); }
.stats dl > div { padding: 26px clamp(14px, 2vw, 24px); border-left: 1px solid var(--line); }
.stats dl > div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font-size: clamp(1.6rem, 2.7vw, 2.4rem); font-weight: 750; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.05; white-space: nowrap; }
.stats dd { margin: 10px 0 0; color: var(--slate); font-size: 0.95rem; line-height: 1.4; }

/* Cloud */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--link); font-size: 0.82rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: ping-y 2.4s ease-out infinite; }
@keyframes ping-y {
  0% { box-shadow: 0 0 0 0 rgba(246, 197, 0, 0.7); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(246, 197, 0, 0); }
}
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; counter-reset: none; }
.steps li {
  position: relative;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.step-n { font-family: 'Spline Sans Mono', monospace; color: var(--link); font-size: 0.85rem; }
.steps h3 { margin-top: 10px; font-size: 1.35rem; font-weight: 700; font-stretch: 115%; }
.steps p { margin-top: 8px; color: var(--slate); line-height: 1.5; }
.tools { margin-top: 32px; }
.tools p { color: var(--slate); font-size: 0.92rem; }
.tools ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tools li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 0.92rem; font-weight: 600; }
.tools small { display: block; margin-top: 10px; color: var(--slate); font-size: 0.8rem; }
.cloud-privacy { max-width: var(--measure); margin-top: 22px; padding-left: 14px; border-left: 3px solid var(--green); color: var(--ink); }

/* Waitlist */
.waitlist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px clamp(32px, 6vw, 88px); align-items: start; }
.wl-copy h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 650; font-stretch: 115%; line-height: 1.08; letter-spacing: -0.02em; }
.wl-copy p:not(.eyebrow) { max-width: 44ch; margin-top: 14px; color: var(--slate); }
.wl-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--paper);
  border-radius: 10px;
}
.wl-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.wl-form label em { color: var(--slate); font-style: normal; font-weight: 400; }
.wl-form label:first-of-type { grid-column: 1 / -1; }
.wl-form input, .wl-form select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sail);
  color: var(--ink);
  font: 400 1rem 'Archivo', system-ui, sans-serif;
}
.wl-form input:focus-visible, .wl-form select:focus-visible { outline: 3px solid var(--link); outline-offset: 0; border-color: transparent; }
.wl-form .btn { grid-column: 1 / -1; justify-self: start; border: 0; cursor: pointer; font: 600 1rem 'Archivo', system-ui, sans-serif; }
.wl-form .btn:disabled { opacity: 0.6; cursor: wait; }
.wl-status { grid-column: 1 / -1; min-height: 1.4em; font-weight: 600; }
.wl-status[data-state="ok"] { color: var(--green); }
.wl-status[data-state="error"] { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* A slow signal-coloured border runs round the featured plan and the waitlist form. */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.pcard.featured, .wl-form {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    conic-gradient(from var(--spin), var(--blue), var(--yellow), var(--red), var(--green), var(--blue)) border-box;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { --spin: 360deg; } }

/* Spotlight under the pointer on cards. */
.pcard, .sevs li a, .steps li, .wl-form, .explain-cards article { position: relative; }
.pcard::after, .sevs li a::after, .steps li::after, .wl-form::after, .explain-cards article::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgba(127, 176, 255, 0.14), transparent 70%);
  pointer-events: none;
}

/* Reveal on scroll, only once site.js says motion is fine. */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--stagger, 0ms); }
.reveal-ready [data-reveal].in { opacity: 1; transform: none; }

/* The terminal prints line by line. */
.term.typing .line { opacity: 0; }
.term.typing.play .line { animation: line-in 260ms ease-out forwards; animation-delay: var(--d); }
@keyframes line-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* The GO badge breathes. */
.verdict .go b { animation: breathe 3.2s ease-in-out 2.6s infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px rgba(46, 158, 91, 0.18); } }

/* Plain pages */
.page { max-width: 74ch; padding: clamp(28px, 5vw, 64px) var(--gutter) 72px; }
.page h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 700; font-stretch: 118%; line-height: 1.04; letter-spacing: -0.02em; }
.page h2 { margin-top: 32px; font-size: 1.3rem; font-weight: 650; }
.page p, .page ul { margin-top: 12px; }
.page ul { padding-left: 1.2em; list-style: disc; }
.page .fix { padding: 16px; background: var(--paper); border-left: 4px solid var(--blue); }
.page .sev { color: var(--slate); }
.try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 14px;
  padding: 18px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.page .try p { flex: 1 1 22ch; margin: 0; }
code.cmd { display: inline-block; padding: 12px 16px; font-size: 1.05rem; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.pager a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.pager a:last-child { text-align: right; }
.pager a:hover { border-color: var(--ink); }
.pager span { display: block; margin-bottom: 4px; color: var(--slate); font-size: 0.85rem; font-weight: 400; }
.flag-u { display: block; width: 120px; height: 80px; margin-bottom: 24px; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 16px; margin-top: 16px; }
.logos figure { margin: 0; }
.logos .tile { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 18px; background: var(--flag-white); border: 1px solid var(--line); border-radius: 6px; }
.logos .tile.dark { background: var(--panel); border-color: var(--panel); }
.logos img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.logos img[src$=".svg"] { width: 45%; }
.logos figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-weight: 600; }
.logos figcaption a { font-weight: 400; }
.page ul.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: 12px; padding: 0; list-style: none; }
.swatches li { display: grid; gap: 2px; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.swatches span { height: 56px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 3px; }
.swatches small { color: var(--slate); }

@media (max-width: 1100px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; row-gap: 20px; }
  .plan { display: block; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .split, .sevs, .plans, .steps, .waitlist, .scan, .pgrid, .explain-cards, .finder { grid-template-columns: minmax(0, 1fr); }
  .finder-result { grid-column: 1; grid-row: auto; }
  .tracks { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tracks [role="tab"] { padding: 10px 8px; }
  .tracks [role="tab"] small { display: block; margin: 2px 0 0; }
  .pcard-tagline, .pcard-note { min-height: 0; }
  .compare table { min-width: 760px; }
  .compare th.feat { width: 168px; min-width: 168px; padding: 12px; }
  .fhelp { font-size: 0.76rem; }
  .vs table { min-width: 0; }
  .vs th, .vs td { padding: 12px; font-size: 0.92rem; }
  .vs tbody th { width: 30%; }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scan-files li b span { display: none; }
  .stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats dl > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats dl > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-form { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-rows: none; row-gap: 32px; }
  .plan { display: block; }
  .pilot { grid-template-columns: minmax(0, 1fr); }
  .pilot svg { width: 66px; height: 44px; }
  .ways > div { grid-template-columns: minmax(0, 1fr); }
  .mast nav .wide { display: none; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager a:last-child { text-align: left; }
}

/* Mission control: the dark theme. It follows the device setting until a visitor picks one with the toggle.
   The class is set before the page paints, by the script in each page's head. Flags keep their true colours. */
:root.dark {
  --sail: #060b14;
  --paper: #0d1726;
  --ink: #e8eef6;
  --slate: #93a4b6;
  --line: #1d2d44;
  --link: #7fb0ff;
  --panel: #0a1322;
  --deck: #13223a;
  --btn-bg: #f6c500;
  --btn-text: #0e1b2c;
  --glow: rgba(127, 176, 255, 0.55);
}
:root.dark body {
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(18, 63, 156, 0.42), transparent 62%),
    radial-gradient(800px 500px at -10% 40%, rgba(246, 197, 0, 0.06), transparent 60%),
    linear-gradient(rgba(127, 176, 255, 0.045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(127, 176, 255, 0.045) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--sail);
}
:root.dark .hoist li::after { box-shadow: 0 0 12px var(--glow); }
:root.dark .hoist li::before { border-color: var(--ink); filter: drop-shadow(0 0 4px var(--glow)); }
:root.dark .hoist svg { filter: drop-shadow(0 10px 28px rgba(127, 176, 255, 0.22)); }
:root.dark .hero h1 {
  background: linear-gradient(100deg, #ffffff 0%, #d7e6ff 45%, #7fb0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root.dark section > h2, :root.dark .split h2 { text-shadow: 0 0 40px rgba(127, 176, 255, 0.18); }
:root.dark .split h2 { text-shadow: none; }
:root.dark .cmd { box-shadow: inset 0 0 0 1px #24406b, 0 12px 44px -8px rgba(18, 63, 156, 0.7); }
:root.dark .verdict .no b { box-shadow: 0 0 26px rgba(211, 36, 28, 0.55); }
:root.dark .verdict .go b { box-shadow: 0 0 26px rgba(46, 158, 91, 0.6); }
:root.dark .console-bar { box-shadow: inset 0 0 0 1px var(--line); }
:root.dark .term { box-shadow: inset 0 0 0 1px var(--line), 0 24px 90px -36px rgba(18, 63, 156, 0.85); }
:root.dark .sig code { box-shadow: inset 0 0 0 1px var(--line); }
:root.dark .term { background-color: var(--panel); background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px); }
:root.dark .sevs li a, :root.dark .plan, :root.dark .pager a, :root.dark .swatches li { border-color: var(--line); }
:root.dark .sevs li a:hover { border-color: var(--bar); box-shadow: 0 14px 40px -16px var(--bar); }
:root.dark .pcard.featured, :root.dark .wl-form { box-shadow: 0 24px 70px -24px var(--glow); }
:root.dark .pilot { border-color: var(--line); box-shadow: inset 0 0 0 1px rgba(246, 197, 0, 0.35); }
:root.dark .btn:hover { background: #ffd83d; color: var(--btn-text); box-shadow: 0 0 24px rgba(246, 197, 0, 0.45); }
:root.dark .limits { background: var(--paper); }
:root.dark .site-foot { border-top: 1px solid var(--line); }
:root.dark .mast { background: color-mix(in srgb, var(--sail) 72%, transparent); }
:root.dark .mast.scrolled { box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.9); }
:root.dark .hero::before {
  background:
    radial-gradient(circle at 35% 35%, rgba(18, 63, 156, 0.55), transparent 58%),
    radial-gradient(circle at 70% 65%, rgba(246, 197, 0, 0.12), transparent 55%),
    radial-gradient(circle at 60% 25%, rgba(127, 176, 255, 0.18), transparent 50%);
}
:root.dark .steps li, :root.dark .tools li { border-color: var(--line); }
:root.dark .scan-files { box-shadow: inset 0 0 0 1px var(--line), 0 40px 100px -40px rgba(18, 63, 156, 0.9); }
:root.dark .steps li:hover { box-shadow: 0 18px 50px -24px var(--glow); }
:root.dark .stats dt { background: linear-gradient(100deg, #ffffff, #7fb0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }


/* Phones: SIG on one rope, SHIP on the next, so the flags stay big enough to read. */
@media (max-width: 560px) {
  .assure { grid-template-columns: minmax(0, 1fr); }
  .pill { font-size: 0.8rem; }
  .hoist { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 26px; }
  .hoist li:nth-child(4) { grid-column: 1; }
  .verdict { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hoist li, .hoist button, .verdict .go, .verdict .go b, .hero::before, .ticker-track, .pcard.featured, .wl-form, .pulse, .pill-dot, .finder-result, .foot-status i, .scan-verdict b { animation: none; }
  .particles, .beam { display: none; }
  .sevs li a, .theme-toggle { transition: none; }
  .sevs li a:hover, .theme-toggle:hover { transform: none; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
