/* The landing page and the Worker's pages (sign-in, account, device). The palette matches the apps (the Instrument look): dark everywhere, flat, amber only on what you act on. */
:root {
  --graphite: #111110;
  --raised: #1A1A19;
  --rule: #2A2A28;
  --edge: #3A3A37;
  --ink: #ECEAE4;
  --muted: #8D8A83;
  --amber: #FFB000;
  --amber-ink: #111111;
  --direct: #5BC27F;
  --accent: var(--amber);
  --alert: #f87171;
  --radius: 4px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* The hero's progress bars count up through this property, so the bar and the percentage stay in step. */
@property --p { syntax: "<integer>"; inherits: true; initial-value: 0; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 12px; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.035em; }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }
code { font-family: var(--mono); }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; margin: 0 auto; padding: 0 24px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 1120px; margin: 0 auto; padding: 13px 24px; }
.brand { display: flex; align-items: center; min-height: 44px; gap: 10px; font-weight: 750; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.bar nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.bar nav a:not(.button) { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 0.15s; }
.bar nav a:not(.button):hover { color: var(--ink); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 18px; border-radius: var(--radius); border: 1px solid var(--edge);
  background: transparent; color: var(--ink); font: 600 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.button:hover { border-color: var(--muted); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--amber-ink); }
.button.primary:hover { background: #ffc233; border-color: #ffc233; }
.button.danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.button.ghost { background: transparent; border-color: var(--edge); color: var(--ink); }
.button.ghost:hover { border-color: var(--muted); }
.button.big { padding: 15px 26px; font-size: 14px; }
.button.small-button { padding: 8px 14px; font-size: 12px; }
.button:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible, .story button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }

/* Landing sections */
.section { padding: 104px 0; }
.kicker { font: 700 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.head { max-width: 720px; margin-bottom: 48px; }
.head.center { max-width: 800px; margin-inline: auto; text-align: center; }
.head p:not(.kicker) { color: var(--muted); font-size: 18px; }
.story, .lane ul, .menu ul, .plan ul { margin: 0; padding: 0; list-style: none; }

/* Scroll reveal: the page's script adds .in when a block comes into view */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease var(--d, 0s), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s), translate 0.15s, border-color 0.2s; }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero */
.hero { background: var(--graphite); color: var(--ink); border-bottom: 1px solid var(--rule); }

.hero-copy { max-width: 860px; margin: 0 auto; padding: 52px 24px 0; text-align: center; }
.hero-copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.3s; }
.offer { display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--rule); background: var(--raised); color: var(--muted); font: 13px var(--mono); letter-spacing: 0.04em; margin-bottom: 26px; }
.offer i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

.hero h1 { font-size: clamp(38px, 7.6vw, 82px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--muted); }

.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 36em; margin: 0 auto; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 16px; }
.platforms { color: var(--muted); font-size: 14px; margin: 0; }

/* Hero animation: one instrument panel plays a send in five steps.
   The script adds .at-1 to .at-5 as each step starts (they stay until the loop restarts) and sets data-step to the step now playing. */
.stage-wrap { max-width: 1080px; margin: 60px auto 0; padding: 0 24px; scroll-margin-top: 24px; }
.stage { display: grid; grid-template-columns: 1fr 1fr; background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--muted); text-align: left; }
.route, .st, .dz, .meta, .tk, .huge, .stats { font-family: var(--mono); }
.route, .st, .dz, .stats dt { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.route { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 18px 28px; border-bottom: 1px solid var(--rule); }
.end { color: var(--ink); }
.path { display: grid; justify-items: center; gap: 8px; font-size: 12px; }
.cloud { font-size: 12px; }
.lock { grid-row: 1; color: var(--ink); }
.wire { position: relative; width: 100%; height: 2px; background: var(--rule); }
.wire::before { content: ""; position: absolute; inset: 0; background: var(--direct); transform: scaleX(0); transform-origin: left; }
.wire i { position: absolute; top: -2px; left: 0; width: 6px; height: 6px; background: var(--ink); opacity: 0; }
.wire i:nth-child(2) { animation-delay: 0.3s !important; }
.wire i:nth-child(3) { animation-delay: 0.6s !important; }
.side { display: grid; align-content: start; gap: 18px; padding: 24px 28px 28px; }
.side + .side { border-left: 1px solid var(--rule); }
.st { display: grid; margin: 0; }
.st > span { grid-area: 1 / 1; opacity: 0; }
.st b { color: var(--ink); font-weight: 600; }
.stage .ok { color: var(--direct); }
.slot { display: grid; min-height: 84px; }
.slot > * { grid-area: 1 / 1; margin: 0; }
.dz { display: grid; place-items: center; border: 1px dashed var(--edge); border-radius: var(--radius); }
.item { align-self: center; }
.ttl { margin: 0 0 6px; color: var(--ink); font-size: 28px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.meta { margin: 0; font-size: 13px; }
.tk { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--graphite); }
.tk code { color: var(--ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-btn { flex: none; padding: 7px 12px; border-radius: var(--radius); background: var(--accent); color: var(--amber-ink); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.huge { margin: 0; color: var(--amber); font-size: 64px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.pct::after { counter-reset: p var(--p); content: counter(p) "%"; }
/* The meter's gaps are painted in the panel colour over a plain bar, which keeps it flat. */
.segs { position: relative; height: 14px; background: var(--rule); }
.segs div { height: 100%; width: calc(var(--p) * 1%); background: var(--amber); }
.segs::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='1'%3E%3Crect x='6.5' width='2.5' height='1' fill='%231A1A19'/%3E%3C/svg%3E") 0 0 / 9px 100% repeat-x; }
.trace { display: block; width: 100%; height: 64px; border-bottom: 1px solid var(--rule); clip-path: inset(0 100% 0 0); }
.trace polyline { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; border: 1px solid var(--rule); background: var(--rule); }
.stats div { padding: 10px 12px; background: var(--graphite); }
.stats dt { font-size: 12px; }
.stats dd { margin: 4px 0 0; color: var(--ink); font-size: 17px; font-weight: 500; opacity: 0; }

/* .at-N holds each step's finished state, so a step jumped past shows done; only the step playing (data-step) animates into it. */
.stage :is(.item, .tk, .lock, .cloud) { opacity: 0; }
.at-1 .dz { opacity: 0; }
.at-1 :is(.item, .v1 dd), .at-2 .tk, .at-3 :is(.lock, .cloud, .v3 dd), .at-4 .v4 dd { opacity: 1; }
.at-3 .wire::before { transform: none; }
.at-4 .readout { --p: 100; }
.at-4 .trace { clip-path: inset(0); }
[data-step="1"] .s1, [data-step="2"] .s2, [data-step="3"] .s3, [data-step="4"] .s4, [data-step="5"] .s5 { animation: pop 0.35s both; }
[data-step="1"] .dz { animation: out 0.3s 0.6s both; }
[data-step="1"] :is(.item, .v1 dd) { animation: pop 0.45s 0.7s both; }
[data-step="2"] .tk { animation: pop 0.45s 0.2s both; }
[data-step="3"] .wire::before { animation: draw 0.7s ease-out both; }
[data-step="3"] .lock { animation: rise 0.5s 0.45s both; }
[data-step="3"] :is(.cloud, .v3 dd) { animation: rise 0.5s 0.75s both; }
[data-step="4"] .readout { animation: fill 3.2s 0.2s linear both; }
[data-step="4"] .trace { animation: trace 3.2s 0.2s linear both; }
[data-step="4"] .v4 dd { animation: pop 0.4s 0.3s both; }
[data-step="4"] .wire i { animation: across 0.9s linear infinite; }

@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes out { from { opacity: 1; } to { opacity: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fill { from { --p: 0; } to { --p: 100; } }
@keyframes trace { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes across { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }

.story { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 30px; }
.story button { position: relative; width: 100%; height: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 12px 16px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; line-height: 1.3; text-align: left; cursor: pointer; transition: color 0.2s, background 0.2s; }
.story button:hover { background: var(--raised); color: var(--ink); }
.story .n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--edge); font: 700 12px var(--mono); transition: background 0.2s, border-color 0.2s; }
.story i { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 1px; background: var(--rule); overflow: hidden; }
.story i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.story .past i::after { transform: scaleX(1); }
.story [aria-current] { color: var(--ink); }
.story [aria-current] .n, .story .past .n { background: var(--accent); border-color: var(--accent); color: var(--amber-ink); }
.story [aria-current] i::after { animation: draw var(--t, 2.5s) linear both; }
.story-now { display: none; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1120px; margin: 72px auto 0; padding: 0 24px; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 28px 20px 32px 0; }
.facts .ic { grid-row: span 2; color: var(--muted); margin-top: 2px; }
.facts b { font-weight: 650; }
.facts span { color: var(--muted); font-size: 14px; }

/* Cloud link vs SupaTransfer: a race that runs once when it scrolls into view */
.compare { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.compare .head { margin: 0; }
.lanes { display: grid; gap: 18px; }
.lane { padding: 22px 24px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--raised); }
.lane-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lane h3 { font-size: 16px; margin: 0; }
.lane h3 span { margin-left: 8px; color: var(--muted); font: 500 13px var(--mono); letter-spacing: 0; }
.lane h3 span b { color: var(--ink); font-size: 16px; font-weight: 600; }
.arrive { display: flex; align-items: center; gap: 6px; color: var(--direct); font-size: 13px; font-weight: 650; }
.arrive .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.js .arrive { opacity: 0; }
.lanes.in .arrive { animation: pop 0.4s 3.9s both; }
.lanes.in .us .arrive { animation-delay: 2.1s; }
.track { display: flex; gap: 4px; margin: 16px 0 6px; }
.seg { position: relative; flex: 1; height: 12px; border-radius: 2px; background: var(--graphite); overflow: hidden; }
.seg::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--muted); }
.seg.direct::before { background: var(--direct); }
.seg.none { background: transparent; }
.seg.none::before { display: none; }
.js .seg::before { transform: scaleX(0); transform-origin: left; }
.lanes.in .seg.up::before, .lanes.in .seg.direct::before { animation: draw 1.8s 0.3s linear both; }
.lanes.in .seg.down::before { animation: draw 1.8s 2.1s linear both; }
.seg-labels { display: flex; gap: 4px; margin-bottom: 14px; color: var(--muted); font-size: 12.5px; }
.seg-labels span { flex: 1; }
.lane ul { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.lane li { display: flex; gap: 8px; align-items: center; }
.lane li .ic { width: 16px; height: 16px; }
.lane:not(.us) li .ic { color: var(--muted); }
.lane.us li .ic { color: var(--amber); }

/* Features */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { display: flex; flex-direction: column; padding: 26px; background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius); }
.tile:hover { border-color: var(--edge); }
.tile.span2 { grid-column: span 2; }
.tile.span3 { grid-column: span 3; }
.tile p { color: var(--muted); margin: 0; }
.tile .kicker { margin-bottom: 12px; }
.tile .show { margin-top: auto; padding-top: 22px; }
.netmap { width: 100%; height: auto; display: block; }
.netmap .direct { stroke: var(--direct); stroke-width: 3; stroke-dasharray: 10 8; fill: none; animation: flow 1s linear infinite; }
.netmap .relay { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 3 7; fill: none; opacity: 0.6; stroke-linecap: round; }
.netmap circle.node { fill: var(--raised); stroke: var(--direct); stroke-width: 2.5; }
.netmap circle.relay-node { fill: var(--raised); stroke: var(--muted); stroke-width: 2; }
.netmap circle.ping { fill: none; stroke: var(--direct); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
.netmap circle.ping.late { animation-delay: 1.2s; }
.netmap text { fill: var(--ink); font: 600 14px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.netmap text.note { fill: var(--muted); font-weight: 500; font-size: 12.5px; }
@keyframes flow { to { stroke-dashoffset: -18; } }
@keyframes ring { from { opacity: 0.8; scale: 1; } to { opacity: 0; scale: 2.6; } }
.cipher { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.cipher code { display: block; padding: 12px 14px; border-radius: 4px; background: var(--graphite); font-size: 12.5px; line-height: 1.6; color: var(--muted); word-break: break-all; height: calc(4.8em + 24px); overflow: hidden; }
.cipher code span { display: block; animation: scroll-up 8s linear infinite; }
@keyframes scroll-up { to { transform: translateY(-50%); } }
.hashes { display: grid; gap: 4px; font: 12.5px/1.5 var(--mono); padding: 14px; border-radius: 4px; background: var(--graphite); }
.hashes span { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.hashes span b { color: var(--direct); font-weight: 600; }
.hashes span:last-child { color: var(--ink); border-top: 1px solid var(--rule); padding-top: 6px; margin-top: 2px; }
.js .hashes span { opacity: 0; }
.in .hashes span { animation: pop 0.4s both; }
.in .hashes span:nth-child(1) { animation-delay: 0.4s; }
.in .hashes span:nth-child(2) { animation-delay: 0.8s; }
.in .hashes span:nth-child(3) { animation-delay: 1.2s; }
.resume .meter { height: 10px; border-radius: 2px; margin: 0; }
.resume .meter div { width: 100%; background: var(--direct); }
.in .resume .meter div { animation: resume 5.5s 0.3s ease-in-out infinite; }
@keyframes resume {
  0% { width: 0; background: var(--accent); }
  34% { width: 42%; background: var(--accent); }
  36%, 54% { width: 42%; background: var(--amber); }
  58% { width: 44%; background: var(--accent); }
  86% { background: var(--accent); }
  88%, 100% { width: 100%; background: var(--direct); }
}
.resume small { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.resume small i { width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
.menu { border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; font-size: 13px; background: var(--raised); }
.menu-bar { display: flex; justify-content: flex-end; align-items: center; gap: 6px; padding: 6px 10px; background: var(--graphite); border-bottom: 1px solid var(--rule); font: 600 12px var(--mono); color: var(--muted); }
.menu li { padding: 7px 12px; }
.menu li:first-child { display: grid; border-bottom: 1px solid var(--rule); }
.menu li:first-child small { color: var(--muted); font-size: 12px; }
.menu li:nth-child(2) { background: var(--accent); color: var(--amber-ink); }
.cli { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.cli p { color: var(--muted); }

.term { margin: 0; padding: 20px 22px; border-radius: 4px; background: var(--graphite); border: 1px solid var(--rule); font: 13.5px/1.9 var(--mono); color: var(--ink); overflow-x: auto; }
.term .ln { display: block; }
.term .p { color: var(--muted); user-select: none; }
.term .c { color: var(--muted); }
.term .cursor { display: inline-block; width: 8px; height: 16px; vertical-align: -3px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.js .term .ln { opacity: 0; }
.in .term .ln { animation: type 0.5s both; }
.in .term .ln:nth-child(2) { animation-delay: 0.6s; }
.in .term .ln:nth-child(3) { animation-delay: 1.2s; }
.in .term .ln:nth-child(4) { animation-delay: 1.8s; }
@keyframes type { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 22px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius); }
.plan .for { color: var(--muted); }
.price { font-family: var(--mono); font-size: 52px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 18px 0 6px; }
.price span { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan ul { flex: 1; display: grid; gap: 10px; align-content: start; margin: 22px 0 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .ic { color: var(--amber); width: 18px; height: 18px; margin-top: 3px; }
.plan.pro { border-color: var(--edge); }
.plan h3 { display: flex; align-items: center; justify-content: space-between; font-size: 20px; }
.plan h3 em { font: 700 12px var(--mono); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; background: var(--amber); color: var(--amber-ink); }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl { display: grid; gap: 4px; padding: 26px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--raised); color: var(--ink); text-decoration: none; }
.dl:hover { border-color: var(--accent); }
.dl strong { font-size: 22px; letter-spacing: -0.02em; }
.dl small { color: var(--muted); }
.dl .get { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--accent); font-weight: 600; font-size: 15px; }
.dl .get .ic { width: 18px; height: 18px; transition: transform 0.2s; }
.dl:hover .get .ic { transform: translateY(3px); }
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.more div { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border: 1px dashed var(--rule); border-radius: var(--radius); color: var(--muted); font-size: 15px; }
.more b { color: var(--ink); }
.more .ic { color: var(--muted); }
.more code { font-size: 14px; color: var(--ink); }
.more .sums { grid-column: 1 / -1; }
.soon { margin-left: auto; padding: 3px 10px; border-radius: 4px; background: var(--raised); color: var(--muted); font: 700 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq .head { margin: 0; }
details { border-bottom: 1px solid var(--rule); padding: 10px 0; }
details:first-child { padding-top: 0; }
details p { color: var(--muted); margin: 12px 0 0; }
details[open] p { animation: rise 0.35s both; }
summary { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; cursor: pointer; font-weight: 650; font-size: 17px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; font-weight: 400; transition: transform 0.25s; }
details[open] summary::after { transform: rotate(45deg); }

/* Closing call to action and footer */
.closing-wrap { max-width: 1168px; margin: 0 auto 72px; padding: 0 24px; }
.closing { padding: 80px 24px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--raised); color: var(--ink); text-align: center; }

.closing h2 { font-size: clamp(30px, 5vw, 52px); }
.closing p { color: var(--muted); font-size: 18px; }
.closing .actions { margin-bottom: 0; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 28px 24px 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--rule); }
.foot .brand { font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot nav a { padding: 12px 0; }
.foot a:hover { color: var(--ink); }

/* Usage and progress bars */
.meter { height: 8px; border-radius: 2px; background: var(--rule); overflow: hidden; margin: 6px 0 10px; }
.meter div { height: 100%; border-radius: 2px; background: var(--accent); }

/* Sign-in, account and device pages */
.panel { padding: 32px; margin: 32px 0 64px; background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius); }
.panel h1 { font-size: 28px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input[type="email"], input[type="text"], input:not([type]) {
  width: 100%; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--rule);
  background: var(--graphite); color: var(--ink); font: inherit;
}
form .button { width: 100%; margin-top: 14px; }
.google, .apple { width: 100%; margin-top: 8px; }
/* Apple's button colors on a dark page: white with black text. */
.apple { background: #fff; border-color: #fff; color: #000; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.code-input { font: 600 24px ui-monospace, Menlo, monospace !important; letter-spacing: 0.25em; text-align: center; text-transform: uppercase; }
.device-code { font: 700 34px ui-monospace, Menlo, monospace; letter-spacing: 0.15em; text-align: center; padding: 18px; border-radius: 4px; border: 1px solid var(--rule); background: var(--graphite); margin: 18px 0 4px; }
.alert { color: var(--alert); background: color-mix(in srgb, var(--alert) 10%, transparent); border-radius: 4px; padding: 10px 14px; }
.note { background: var(--raised); border: 1px solid var(--rule); border-radius: 4px; padding: 10px 14px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 4px; background: var(--raised); font: 700 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; margin-right: 8px; }
.pill.pro { background: var(--accent); color: var(--amber-ink); }

/* Terms and privacy */
.legal { padding: 24px 24px 64px; }
.legal h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-top: 28px; }
.legal p, .legal li { color: var(--muted); }
.legal .term { margin: 16px 0; }
/* Comparison tables on guide pages; they scroll sideways on narrow screens rather than squeeze. */
.table-wrap { overflow-x: auto; margin: 16px 0; }
.legal table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; }
/* The tool names stay in view while the rest scrolls. */
.legal tbody th, .legal thead th:first-child { position: sticky; left: 0; background: var(--graphite); }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.legal td { color: var(--muted); }
.legal thead th { font: 700 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.legal tr.us th, .legal tr.us td { color: var(--ink); background: var(--raised); }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.span2, .tile.span3 { grid-column: span 2; }
  .compare, .faq { grid-template-columns: 1fr; gap: 40px; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .story { grid-template-columns: repeat(5, auto); justify-content: center; gap: 4px; margin-top: 24px; }
  .story .t { display: none; }
  .story button { padding: 10px 10px 14px; }
  .story-now { display: block; min-height: 3em; margin: 6px 0 0; text-align: center; color: var(--ink); font-weight: 600; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  /* The links move to their own row under the name and Sign in, taller for fingers. */
  .bar { flex-wrap: wrap; row-gap: 4px; }
  .bar nav { order: 1; flex: 1 0 100%; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; }
  .bar nav a:not(.button) { font-size: 14px; padding: 12px 0; }
  .button.small-button { min-height: 44px; }
  .hero-copy { padding-top: 32px; }
  .stage-wrap { margin-top: 44px; }
  .stage { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 18px; }
  .end:last-child { text-align: right; }
  .path { grid-column: 1 / -1; grid-row: 2; }
  .side { padding: 20px 18px 22px; }
  .side + .side { border-left: 0; border-top: 1px solid var(--rule); }
  .huge { font-size: 52px; }
  .facts { margin-top: 48px; }
  .downloads, .more, .bento, .plans { grid-template-columns: 1fr; }
  .tile.span2, .tile.span3 { grid-column: auto; }
  .cli { grid-template-columns: 1fr; gap: 20px; }
  .closing-wrap { padding: 0 12px; }
  .closing { padding: 56px 20px; }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts div { padding: 18px 0; }
  .offer { font-size: 12px; letter-spacing: 0; max-width: 100%; border-radius: 4px; }
  .term .c { display: none; }
  .actions .button { width: 100%; }
  .netmap text { font-size: 24px; }
  .netmap text.note { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
