/* The public homepage. Uses the app's tokens (noise.css), so it is light or dark with the system.
   One system throughout: centred section heads, 16px cards with hairline borders and soft
   shadows, icon tiles, and the brand's square buttons. */

:root { interpolate-size: allow-keywords; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { :root { scroll-behavior: smooth; } }
.site { --wrap: 1200px; --radius: 16px; --pad: 32px; }
.site main { overflow-x: clip; }
.site a { text-decoration: none; }
.site h2 { font: 700 clamp(32px, 3.8vw, 52px)/1.02 var(--display); font-stretch: 114%; letter-spacing: -.028em; margin: 0; text-wrap: balance; }
.site h3 { font: 600 16px/1.3 var(--sans); margin: 0 0 6px; letter-spacing: -.01em; }
.site p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.btn.big { padding: 13px 22px; font-size: 16px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.site .illustration-note { color: var(--muted); font-size: 12px; margin-top: 20px; text-align: center; }

/* Header: sticky and translucent; a hairline appears once the page scrolls. */
.site-bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 78%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-bar.scrolled { border-bottom-color: var(--line); }
.site-head { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.site-logo { display: block; height: 22px; }   /* one size in the header and the footer */
.site-head nav { display: flex; align-items: center; gap: 4px; }
.site-head nav > a:not(.btn) { color: var(--muted); padding: 8px 10px; font-size: 14px; font-weight: 500; transition: color .2s; }
.site-head nav > a:not(.btn):hover { color: var(--ink); }
.site-head .btn { padding: 8px 14px; font-size: 14px; margin-left: 6px; }
/* Light or dark: one quiet round button; the moon shows in light mode, the sun in dark. */
.theme-switch { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 6px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, transform .3s var(--ease); }
.theme-switch:hover { color: var(--ink); border-color: var(--faint); }
.theme-switch:active { transform: rotate(-20deg) scale(.94); }
.theme-switch svg { width: 15px; height: 15px; grid-area: 1 / 1; }
.theme-switch .sun { display: none; }
:root[data-resolved-theme="dark"] .theme-switch .sun { display: block; }
:root[data-resolved-theme="dark"] .theme-switch .moon { display: none; }

/* The dot field: a canvas behind the hero, reaching up under the translucent header. */
.hero-wrap { position: relative; isolation: isolate; }
.hero-field { position: absolute; left: 0; top: -68px; width: 100%; height: calc(100% + 68px + 80px); z-index: -1; pointer-events: none; display: block; }

/* Hero: one centred column with room to breathe. The headline sits on one line, sized from the
   hero's own width so it never wraps; the dot field clears a quiet zone behind the text (field.js). */
.site-hero { container-type: inline-size; max-width: var(--wrap); margin: 0 auto; padding: clamp(104px, 17vh, 176px) var(--pad) clamp(96px, 13vh, 144px); text-align: center; }
.site-hero h1 { font: 700 min(12.4cqi, 152px)/.92 var(--display); font-stretch: 118%; letter-spacing: -.045em; margin: 0 0 clamp(32px, 4.4vh, 48px); white-space: nowrap; }
.hero-row { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.site-hero .lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink); max-width: 38ch; margin: 0; text-wrap: balance; }
.site-hero .sub { margin: 14px 0 0; color: var(--muted); max-width: 46ch; font-size: 15px; text-wrap: balance; }
.site-hero .ctas { justify-content: center; }

/* Sections */
.section { max-width: var(--wrap); margin: 0 auto; padding: 136px var(--pad) 0; }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.site .section-head h2 { margin: 0 auto 16px; max-width: 20ch; }
.site .section-head p { margin: 0 auto; max-width: 56ch; font-size: 18px; color: var(--muted); }
.showcase .section-head { margin: 96px auto 0; }
.section-head .more { color: var(--ink); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.section-head .more:hover { text-decoration-color: var(--ink); }
.section-head.left { margin: 0; text-align: left; }
.site .section-head.left h2, .site .section-head.left p { margin-left: 0; }
.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }

/* A bordered row of tiles with hairline dividers. */
.tiles-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tiles-row.two { grid-template-columns: repeat(2, 1fr); }
.tiles-row.three { grid-template-columns: repeat(3, 1fr); }
.tiles-row.four { grid-template-columns: repeat(4, 1fr); }
.tiles-row li { position: relative; padding: 28px 28px 32px; background: var(--paper); }
.showcase .tiles-row { margin-top: 56px; }
.site .tiles-row p { font-size: 14.5px; color: var(--muted); }
.feature-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--raised); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.step-n { position: absolute; top: 30px; right: 28px; font: 500 12px/1 var(--mono); color: var(--faint); }
.chip-unknown { display: inline-block; padding: 2px 6px; border: 1px dashed var(--field); border-radius: 4px; font: 500 11px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }

/* Cards */
.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); box-shadow: 0 1px 1px rgba(0, 0, 0, .02), 0 12px 32px -22px rgba(0, 0, 0, .16); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--ink) 14%, var(--line)); box-shadow: 0 1px 1px rgba(0, 0, 0, .02), 0 22px 44px -24px rgba(0, 0, 0, .24); }
.site .card p { font-size: 14.5px; color: var(--muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 22px 0 0; }
.tags li { padding: 4px 10px; border-radius: 999px; background: var(--wash); font-size: 12px; color: var(--ink-2); }
.site .tiers .card h3 { font: 700 22px/1.1 var(--display); font-stretch: 110%; letter-spacing: -.015em; margin-bottom: 8px; }
.ticks { list-style: none; display: grid; gap: 10px; width: 100%; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 5px; top: 3px; width: 5px; height: 10px; border: solid var(--c, var(--accent)); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Ask in plain words */
.chat { display: grid; gap: 14px; padding: 28px; border-radius: 22px; }
.site .chat .me { justify-self: end; max-width: 40ch; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--ink); color: var(--paper); font-size: 15px; line-height: 1.5; }
.chat .it { display: flex; gap: 10px; align-items: flex-end; max-width: 46ch; }
.avatar { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #0a0a0a; color: var(--accent); font: 800 15px/1 var(--display); }
.site .chat .it p { padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: var(--wash); color: var(--ink); font-size: 15px; line-height: 1.5; }
.approval { display: flex; align-items: center; gap: 12px; margin-left: 38px; padding: 10px 10px 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.approval .feature-icon { margin: 0; width: 30px; height: 30px; color: var(--accent); }
.approval > span:nth-child(2) { display: grid; gap: 2px; font-size: 14px; }
.approval small { color: var(--muted); font-size: 12px; }
.approval .btn { margin-left: auto; pointer-events: none; }

/* Questions: an accordion that opens smoothly where the browser can animate it. */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; list-style: none; cursor: pointer; font-size: 16px; font-weight: 500; transition: background .2s; }
.faq summary:hover { background: color-mix(in srgb, var(--wash) 70%, transparent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-top: -4px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .3s var(--ease), margin .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.site .faq details p { padding: 0 24px 22px; max-width: 64ch; font-size: 15px; color: var(--muted); }

/* Closing */
.closing { max-width: var(--wrap); margin: 0 auto; padding: 136px var(--pad) 0; }
.closing-card { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; gap: 18px; padding: 104px 32px; border-radius: 24px; background: #0a0a0a; border: 1px solid rgba(242, 242, 240, .08); text-align: center; }
/* A soft glow from below in the logo's four colours. */
.closing-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(30% 55% at 18% 120%, color-mix(in srgb, var(--blue) 55%, transparent), transparent 70%),
  radial-gradient(30% 55% at 40% 125%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 70%),
  radial-gradient(30% 55% at 62% 125%, color-mix(in srgb, var(--yellow) 40%, transparent), transparent 70%),
  radial-gradient(30% 55% at 84% 120%, color-mix(in srgb, var(--green) 48%, transparent), transparent 70%); }
.site .closing-card h2 { color: #f2f2f0; max-width: 14ch; font-size: clamp(40px, 5.4vw, 80px); line-height: .96; font-stretch: 118%; }
.site .closing-card p { color: rgba(242, 242, 240, .66); font-size: 18px; }
.closing .ctas { justify-content: center; margin-top: 14px; }
.closing .btn.invert { background: #f2f2f0; color: #0a0a0a; border-color: #f2f2f0; }
.closing .btn.ghost-invert { background: transparent; color: #f2f2f0; border-color: rgba(242, 242, 240, .3); }
.closing .btn.ghost-invert:hover { border-color: #f2f2f0; }

/* Be heard everywhere: the world as a pin-art toy (site/pinmap.js), wider than the page's column.
   The canvas keeps its shape before the script runs, so nothing below it moves. */
.world { padding: 136px 0 0; }
.world .section-head { padding: 0 var(--pad); }
.site .world .section-head p { text-wrap: balance; }
.pinmap { max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); }
.pinmap canvas { display: block; width: 100%; aspect-ratio: 2 / 1; -webkit-tap-highlight-color: transparent; }
.world .illustration-note { margin-top: 12px; padding: 0 var(--pad); }
@media (max-width: 700px) { .world { padding-top: 96px; } .world .section-head { margin-bottom: 28px; } }
@media (max-width: 640px) { .pinmap { padding: 0 6px; } }

.site-foot { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--pad) 64px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-foot nav { display: flex; gap: 22px; }
.site-foot nav a { color: var(--muted); font-size: 13px; transition: color .2s; }
.site-foot nav a:hover { color: var(--ink); }

/* Showcase: one campaign, four markets, two layouts each. Glass cards around the globe. */
.showcase { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--pad) 0; }
.stage { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px) minmax(0, 1fr); align-items: center; gap: 0 16px; min-height: 640px; }
.stage-col { position: relative; z-index: 2; display: grid; align-content: center; gap: 112px; }
.stage-col.left { justify-items: end; }
.stage-col.right { justify-items: start; }
.stage-col.left .node { transform: translateX(40px); }
.stage-col.right .node { transform: translateX(-40px); }
.stage-center { position: relative; }
.stage-arcs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.stage-arcs .arc { fill: none; stroke-width: 1; }
.stage-arcs .fade0 { stop-color: var(--ink); stop-opacity: 0; }
.stage-arcs .fade1 { stop-color: var(--ink); stop-opacity: .06; }
.stage-arcs .fade2 { stop-color: var(--mc, var(--ink)); stop-opacity: .5; }
.stage-arcs .trail { fill: none; stroke: var(--mc, var(--accent)); stroke-width: 1.5; stroke-linecap: round; opacity: 0; }
.stage-arcs .head { fill: var(--mc, var(--accent)); opacity: 0; }
.stage-arcs .anchor { fill: var(--paper); stroke: var(--mc, var(--accent)); stroke-width: 1.25; transform-box: fill-box; transform-origin: center; }

.glass { background: color-mix(in srgb, var(--raised) 78%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); border: 1px solid var(--line); box-shadow: 0 1px 1px rgba(0, 0, 0, .03), 0 8px 20px -6px rgba(0, 0, 0, .08), 0 28px 56px -28px rgba(0, 0, 0, .2); }
.hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 999px; font-size: 13px; line-height: 1; white-space: nowrap; pointer-events: none; }
.hub b { font-weight: 600; letter-spacing: -.01em; }
.hub-sub { color: var(--muted); }
.hub-sub::before { content: "·"; margin-right: 8px; color: var(--faint); }
.hub-dot { position: relative; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }
.hub-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 3px; border: 1px solid var(--accent); animation: hub 2.6s var(--ease) infinite; }
@keyframes hub { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }

.node { width: 264px; padding: 6px; border-radius: var(--radius); transition: border-color .6s var(--ease); }
.node.just { border-color: color-mix(in srgb, var(--mc, var(--accent)) 60%, var(--line)); }
.node header { display: flex; align-items: center; gap: 6px; padding: 5px 4px 10px 8px; font-size: 13px; line-height: 1; white-space: nowrap; }
.node header b { font-weight: 600; letter-spacing: -.01em; }
.node-lang { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
/* A/B as a segmented control: the thumb slides to the layout this visitor sees. */
.seg { position: relative; margin-left: auto; display: inline-flex; padding: 2px; border-radius: 999px; background: var(--wash); font: 600 11px/1 var(--sans); flex: none; }
.seg i { position: absolute; top: 2px; bottom: 2px; left: 2px; width: 24px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 0 0 .5px rgba(0, 0, 0, .05); transition: transform .45s cubic-bezier(.3, .7, .2, 1); }
.seg[data-v="B"] i { transform: translateX(24px); }
.seg span { position: relative; width: 24px; padding: 4px 0; text-align: center; color: var(--muted); transition: color .3s; }
.seg span.on { color: #0a0a0a; }
.screens { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.node-foot { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 6px 0 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.node-foot .bar { flex: 1; height: 4px; border-radius: 99px; background: var(--wash); position: relative; overflow: hidden; }
.node-foot .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--ink); transition: width .6s var(--ease); }
.node-foot .pct { min-width: 3.5ch; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.verdict { display: flex; align-items: center; gap: 8px; width: 100%; }
.verdict b { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 8px; border-radius: 999px; background: color-mix(in srgb, var(--mc, var(--accent)) 14%, transparent); color: color-mix(in srgb, var(--mc, var(--accent)) 55%, var(--ink)); font-weight: 600; font-size: 11.5px; line-height: 1; }
.verdict b::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--mc, var(--accent)); }
.verdict.even b { background: var(--wash); color: var(--ink-2); }
.verdict.even b::before { background: var(--faint); }
.verdict > span { margin-left: auto; font-variant-numeric: tabular-nums; }

/* The mock pages inside each card: sized from the card's width (cqi), each with its own look. */
.pg { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 5cqi 6cqi; opacity: 0; transform: translateY(3%); transition: opacity .3s ease-in, transform .3s ease-in; --r: 0px; }
.pg.is-on { opacity: 1; transform: none; transition-duration: .7s; transition-delay: .12s; }
.pg.light { background: #fff; color: #111; --btn: #111; --btn-ink: #fff; --img: #f0f0ee; --prod: #1c1c1c; }
.pg.warm { background: #f3efe8; color: #1f1b16; --btn: #1f1b16; --btn-ink: #f3efe8; --img: #e6ded1; --prod: #2a241d; }
.pg.dark { background: #121212; color: #f3f3f1; --btn: #f3f3f1; --btn-ink: #121212; --img: #1f1f1e; --prod: #d9d9d5; }
.pg.round { --r: 999px; }
.pg-nav { display: flex; align-items: center; gap: 3cqi; height: 5cqi; flex: none; }
.pg-logo { width: 4cqi; height: 4cqi; border-radius: 50%; background: currentColor; }
.pg-nav i { height: 1.1cqi; width: 7cqi; background: currentColor; opacity: .22; }
.pg-nav i:first-of-type { margin-left: auto; }
.pg-body { flex: 1; min-height: 0; display: grid; gap: 4cqi; margin-top: 3.5cqi; }
.pg-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; }
.site .pg-h { font: 650 6.4cqi/1.05 var(--sans); letter-spacing: -.03em; margin: 0; color: inherit; word-break: keep-all; }
.pg-p { display: grid; gap: 1.5cqi; width: 100%; margin: 2.6cqi 0 3.4cqi; }
.pg-p i { height: 1.1cqi; background: currentColor; opacity: .16; }
.pg-p i:nth-child(2) { width: 72%; }
.pg-p i:nth-child(3) { width: 52%; }
.pg-btn { display: inline-block; align-self: flex-start; font: 600 3.1cqi/1 var(--sans); padding: 2.1cqi 3.6cqi; background: var(--btn); color: var(--btn-ink); border-radius: var(--r); white-space: nowrap; }
.pg-img { background: var(--img); color: var(--prod); display: grid; place-items: center; min-height: 0; min-width: 0; overflow: hidden; border-radius: min(var(--r), 2.4cqi); }
.pg-img svg { width: 62%; height: auto; max-height: 84%; }
.l-split .pg-body, .l-proof .pg-body, .l-form .pg-body { grid-template-columns: 1.1fr 1fr; }
.l-splitR .pg-body, .l-price .pg-body { grid-template-columns: 1fr 1.1fr; }
.pg-img.round, .pg-img.disc { border-radius: 50%; aspect-ratio: 1; align-self: center; width: 100%; }
.l-top .pg-body { grid-template-rows: 1fr auto; gap: 3.4cqi; }
.pg-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 4cqi; }
.l-top .pg-h { font-size: 5.4cqi; max-width: 62%; }
.l-center .pg-body { justify-items: center; text-align: center; grid-template-rows: auto auto 1fr; gap: 3cqi; }
.l-center .pg-h { max-width: 78%; }
.pg-img.peek { width: 58%; margin-bottom: -6cqi; border-radius: min(var(--r), 2.4cqi) min(var(--r), 2.4cqi) 0 0; }
.pg-form { display: grid; gap: 2.4cqi; align-content: center; padding: 4cqi; background: color-mix(in srgb, currentColor 6%, transparent); border-radius: min(var(--r), 2.4cqi); }
.pg-in { display: block; height: 5.4cqi; border: .3cqi solid currentColor; opacity: .3; border-radius: var(--r); }
.pg-form .pg-btn { align-self: stretch; text-align: center; }
.l-bold .pg-body { align-content: space-between; }
.site .l-bold .pg-h { font-size: 10.5cqi; line-height: .95; letter-spacing: -.045em; max-width: 92%; }
.l-bold .pg-row { align-items: flex-end; }
.pg-img.mini { width: 24cqi; height: 17cqi; background: transparent; }
.site .pg-price { font: 700 8cqi/1 var(--sans); letter-spacing: -.03em; margin: 2.2cqi 0 3.2cqi; color: inherit; }
.site .pg-stars { font-size: 3cqi; line-height: 1; margin: 2.4cqi 0 3.4cqi; color: inherit; letter-spacing: .2cqi; }
.pg-stars b { font-weight: 600; letter-spacing: 0; }
.pg.l-full { padding: 0; }
.l-full .pg-nav { position: absolute; top: 5cqi; left: 6cqi; right: 6cqi; z-index: 2; }
.l-full .pg-body { margin: 0; position: relative; }
.pg-img.bleed { position: absolute; inset: 0; border-radius: 0; background: radial-gradient(circle at 72% 50%, #2c2c2b, #0e0e0e 70%); }
.pg-img.bleed svg { width: 40%; transform: translateX(46%); }
.site .l-full .pg-h { font-size: 5.6cqi; }
.pg-over { position: absolute; left: 6cqi; bottom: 6cqi; max-width: 44%; display: grid; gap: 3cqi; justify-items: start; z-index: 1; }

/* A page improving on its own (the homepage demo, site/auto.js) */
.auto { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 32px; align-items: start; }
.auto-panel { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--raised); box-shadow: 0 1px 1px rgba(0, 0, 0, .03), 0 24px 60px -36px rgba(0, 0, 0, .25); display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; height: 580px; }
.auto-switch { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.auto-switch b { display: block; font-size: 16px; }
.auto-switch span { color: var(--muted); font-size: 13px; }
/* A pin that lights up while Noise is working on the page. */
.auto-live { flex: none; width: 12px; height: 11px; border-radius: 3px; background: var(--field); transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.auto.is-on .auto-live { background: var(--green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 18%, transparent), 1.5px 1.5px 0 color-mix(in srgb, var(--green) 58%, #000); }
.auto-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.auto-stat { display: grid; gap: 4px; padding: 14px 20px; }
.auto-stat + .auto-stat { border-left: 1px solid var(--line); }
.auto-stat span { color: var(--muted); font-size: 11.5px; }
.auto-stat b { font: 600 20px/1.1 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.auto-ticker { font-variant-numeric: tabular-nums; display: flex; align-items: center; min-height: 40px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.tick-row { overflow: hidden; text-overflow: ellipsis; animation: rise .35s var(--ease); }
.tick-row b { color: var(--ink); font-weight: 500; }
.tick-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--good); margin-right: 8px; vertical-align: 1px; }
.auto-log { list-style: none; margin: 0; padding: 8px 0; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.auto-log li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 20px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); animation: drop .5s var(--ease); }
.auto-log li b { color: var(--ink); font-weight: 600; }
.log-ic { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.k-on .log-ic { color: var(--green); }
.k-found .log-ic { color: #b88f00; }
.k-test .log-ic { color: var(--blue); }
.k-proven .log-ic { color: var(--good); }
.k-applied .log-ic { background: var(--green); border-color: var(--green); color: #fff; }
.log-prog { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; margin-top: 8px; }
.log-prog .bar { height: 4px; border-radius: 99px; background: var(--wash); position: relative; overflow: hidden; }
.log-prog .bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: var(--ink); }
.log-counts { font: 500 11px/1 var(--mono); color: var(--muted); }
.log-note { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); }
.auto-replay { justify-self: start; margin: 0 20px 16px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auto-replay:hover { color: var(--ink); }
.auto-replay[hidden] { display: none; }
.bump { animation: bump 1.8s ease-out; }
@keyframes bump { 0%, 35% { color: var(--accent); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

.auto-side { min-width: 0; }
.ap-frame { position: relative; display: flex; flex-direction: column; height: 580px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 24px 60px -32px rgba(0, 0, 0, .3); }
.ap-frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(transparent, var(--raised)); pointer-events: none; }
.ap-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex: none; }
.ap-bar > i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.ap-ver { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.ap-ver b { color: var(--ink); }
.live-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--good); margin-right: 4px; }
.ap-page { display: grid; padding: 0 28px; }
.ap-s { position: relative; margin: 0 -28px; padding: 26px 28px; border-bottom: 1px solid var(--line); }
.ap-s.changed { animation: changed 2s var(--ease); }
@keyframes changed { 0%, 30% { box-shadow: inset 3px 0 0 var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); } }
.ap-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; padding-top: 34px; }
.ap-hero-copy { min-width: 0; }
.site .ap-h { font: 700 30px/1.02 var(--display); font-stretch: 110%; letter-spacing: -.03em; color: var(--ink); margin: 0 0 10px; max-width: 13ch; }
.site .ap-p { font-size: 14px; max-width: 34ch; margin: 0 0 16px; }
.ap-btn { display: inline-block; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 13px; padding: 10px 16px; }
.ap-house { color: var(--ink); }
.ap-house svg { display: block; width: 100%; max-width: 170px; margin-left: auto; }
.ap-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; font-size: 13px; color: var(--ink-2); }
.ap-benefits div { display: flex; align-items: center; gap: 8px; }
.site .ap-stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; margin: 0 0 6px; }
.site .ap-quote { font-size: 15px; color: var(--ink); max-width: 46ch; }
.site .ap-who { font-size: 12px; color: var(--muted); margin-top: 4px; }
.site .ap-h3 { font: 600 17px/1.2 var(--sans); color: var(--ink); margin: 0 0 12px; }
.ap-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; max-width: 460px; margin-bottom: 14px; }
.ap-f { display: grid; gap: 4px; overflow: hidden; font-size: 11.5px; color: var(--muted); transition: opacity .4s var(--ease); }
.ap-f i { display: block; height: 30px; border: 1px solid var(--field); background: var(--paper); }
.ap-f.cut { opacity: .38; }
.ap-f.cut i { border-style: dashed; }
.ap-ghost { margin: 14px 0; padding: 12px 14px; border: 1px dashed var(--accent); border-radius: 10px; background: color-mix(in srgb, var(--accent) 5%, transparent); color: var(--accent); font-size: 12.5px; font-weight: 500; text-align: center; animation: drop .5s var(--ease); }
.site .ap-ghost { color: var(--accent); }
.ap-ghost.small { margin: 4px 0 12px; padding: 8px 10px; text-align: left; max-width: 40ch; }
.reach { position: absolute; top: 10px; right: 28px; display: none; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.reach.shown { display: inline-flex; animation: rise .4s var(--ease); }
.reach-bar { position: relative; width: 42px; height: 4px; border-radius: 99px; background: var(--wash); overflow: hidden; }
.reach-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); transition: width .9s var(--ease); }
.reach b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ap-form.flag .reach b { color: var(--accent); }
.ap-form.flag .reach-bar i { background: var(--accent); }

@media (max-width: 1079px) {
  .stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-height: 0; }
  .stage-center { grid-column: 1 / -1; grid-row: 1; width: 100%; max-width: 440px; justify-self: center; margin-bottom: 8px; }
  .stage-col { display: contents; }
  .stage-col .node, .stage-col.left .node, .stage-col.right .node { width: auto; transform: none; }
  .stage-arcs { display: none; }
  .cards.four, .tiles-row.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero-row { gap: 30px; }
  .duo { grid-template-columns: 1fr; gap: 36px; }
  .auto { grid-template-columns: 1fr; }
  .auto-panel { height: auto; }
  .auto-log { max-height: 170px; }
  .cards.three, .tiles-row.three { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .stage { gap: 10px; }
  .node { padding: 4px; }
  .node header { padding: 4px 2px 8px 6px; font-size: 12px; }
  .node-lang { display: none; }
  .section, .closing { padding-top: 96px; }
  .section-head { margin-bottom: 40px; }
  .showcase .section-head { margin-top: 64px; }
  .cards.four, .tiles-row.four, .tiles-row.two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site { --pad: 20px; }
  .site-head nav > a:not(.btn), .site-head nav .ghost { display: none; }
  .site-hero { padding: 72px var(--pad) 72px; }
  .site-hero h1 { margin-bottom: 26px; }
  .closing-card { padding: 72px 24px; border-radius: 20px; }
  .approval { margin-left: 0; }
  .site-foot { flex-direction: column; align-items: flex-start; }
  .ap-page { padding: 0 18px; }
  .ap-s { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
  .ap-hero { grid-template-columns: 1fr; }
  .ap-house { display: none; }
  .ap-benefits, .ap-fields { grid-template-columns: 1fr; }
  .reach { right: 18px; }
  .auto-stat { padding: 12px 14px; }
  .ap-frame { height: 500px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .seg i { background: #3a3a38; box-shadow: none; }
  :root:not([data-theme="light"]) .seg span.on { color: #f2f2f0; }
  :root:not([data-theme="light"]) .tiles-row li { background: var(--paper); }
}
@media (prefers-reduced-motion: reduce) {
  .hub-dot::after { animation: none; }
  .pg { transition: none; }
  .card, .card:hover { transition: none; transform: none; }
}

/* Before Noise opens to new accounts, the sign-up buttons read "Coming soon" and do nothing. */
.site .btn.soon { cursor: default; pointer-events: none; }

/* Legal pages: one readable column. */
.legal { max-width: 760px; margin: 0 auto; padding: 72px var(--pad) 40px; font-size: 16px; line-height: 1.65; }
.legal h1 { font: 700 clamp(40px, 6vw, 64px)/1 var(--display); font-stretch: 112%; letter-spacing: -.03em; margin: 0; }
.legal .updated { color: var(--muted); margin: 14px 0 32px; font-size: 14px; }
.legal .lead { font-size: 19px; line-height: 1.55; }
.legal h2 { font: 700 24px/1.2 var(--display); font-stretch: 108%; letter-spacing: -.015em; margin: 52px 0 12px; scroll-margin-top: 90px; }
.legal h3 { font-size: 16px; margin: 24px 0 6px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal code { font: 13px var(--mono); background: var(--wash); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 28px 0 8px; font-size: 14px; }
.legal .toc a { color: var(--muted); text-decoration: none; }
.legal .toc a:hover { color: var(--ink); }
.site-head nav a:not(.btn) { color: var(--muted); }
.site-foot nav { flex-wrap: wrap; }

/* ---- The logo's colours as a signature: small, square-ish, one meaning each ------------------ */
/* Four dots, the logo's dot shape: blue, red, yellow, green. */
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 12px; height: 11px; border-radius: 3px; background: var(--c); }
.dots i:nth-child(1) { --c: var(--blue); }
.dots i:nth-child(2) { --c: var(--accent); }
.dots i:nth-child(3) { --c: var(--yellow); }
.dots i:nth-child(4) { --c: var(--green); }
.closing-card .dots { margin-bottom: 6px; }
.closing-card .dots i { width: 16px; height: 14px; border-radius: 4px; }
/* Steps and cards cycle through the colours. */
.tiles-row.four > li:nth-child(4n + 1), .cards > .card:nth-child(4n + 1) { --c: var(--blue); }
.tiles-row.four > li:nth-child(4n + 2), .cards > .card:nth-child(4n + 2) { --c: var(--yellow); }
.tiles-row.four > li:nth-child(4n + 3), .cards > .card:nth-child(4n + 3) { --c: var(--green); }
.tiles-row.four > li:nth-child(4n + 4), .cards > .card:nth-child(4n + 4) { --c: var(--accent); }
.step-n { display: inline-flex; align-items: center; gap: 8px; }
.step-n::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--c, var(--ink)); box-shadow: 1.5px 1.5px 0 color-mix(in srgb, var(--c, var(--ink)) 58%, #000); }
/* A short tab on each card's top edge. */
.cards > .card { position: relative; }
/* A row of four pins on each card's top edge; pointed at, they step up like a volume meter. */
.cards > .card::before { content: ""; position: absolute; top: -4px; left: 28px; width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--ink)); box-shadow: 10px 0 var(--c, var(--ink)), 20px 0 var(--c, var(--ink)), 30px 0 var(--c, var(--ink)); transition: box-shadow .45s cubic-bezier(.3, 1.6, .5, 1); }
.cards > .card:hover::before { box-shadow: 10px -3px var(--c, var(--ink)), 20px -6px var(--c, var(--ink)), 30px -9px var(--c, var(--ink)); }

/* Louder moments. Steps and example cards: the icon tile filled with its colour. */
/* Their icons are raised pins: a darker side below and to the right, rising toward you on hover. */
.tiles-row.four > li .feature-icon, .cards > .card .feature-icon { width: 38px; height: 38px; border-color: transparent; border-radius: 10px; background: var(--c); color: #fff; box-shadow: 3px 3px 0 color-mix(in srgb, var(--c) 58%, #000); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tiles-row.four > li:nth-child(4n + 2) .feature-icon, .cards > .card:nth-child(4n + 2) .feature-icon { color: #0a0a0a; }
.tiles-row.four > li:hover .feature-icon, .cards > .card:hover .feature-icon { transform: translate(-2px, -3px); box-shadow: 5px 6px 0 color-mix(in srgb, var(--c) 58%, #000); }
/* Moulded plastic: a soft highlight from above, a darker base, a bright rim on the top edge, the
   pin's extruded side, and the colour glowing onto the surface beneath it. */
.tiles-row.four > li .feature-icon, .cards > .card .feature-icon {
  background:
    radial-gradient(120% 75% at 32% 12%, rgba(255, 255, 255, .62), rgba(255, 255, 255, .12) 42%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(165deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c) 48%, color-mix(in srgb, var(--c) 82%, #000));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 -2px 4px color-mix(in srgb, var(--c) 55%, #000),
    3px 3px 0 color-mix(in srgb, var(--c) 58%, #000),
    0 10px 22px -6px color-mix(in srgb, var(--c) 60%, transparent);
}
.tiles-row.four > li:hover .feature-icon, .cards > .card:hover .feature-icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -2px 4px color-mix(in srgb, var(--c) 55%, #000),
    5px 6px 0 color-mix(in srgb, var(--c) 58%, #000),
    0 18px 34px -8px color-mix(in srgb, var(--c) 75%, transparent);
}
.tiles-row.four > li .feature-icon svg, .cards > .card .feature-icon svg { filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--c) 50%, #000)); }
:root[data-resolved-theme="dark"] .tiles-row.four > li .feature-icon, :root[data-resolved-theme="dark"] .cards > .card .feature-icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 4px color-mix(in srgb, var(--c) 50%, #000),
    3px 3px 0 color-mix(in srgb, var(--c) 50%, #000),
    0 0 26px -2px color-mix(in srgb, var(--c) 70%, transparent);
}
.step-n::before {
  background: radial-gradient(110% 80% at 30% 15%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 60%), var(--c, var(--ink));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 1.5px 1.5px 0 color-mix(in srgb, var(--c, var(--ink)) 58%, #000), 0 3px 7px -2px color-mix(in srgb, var(--c, var(--ink)) 60%, transparent);
}

/* The closing card is the playground: clusters of pins in the logo's four colours in its corners
   (closing.js), clear of the words, popping now and then and more often when you come near. */
.closing-pins { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; }
.closing-card::after { display: none; }

/* ---- Pricing: professional numbers, playful pins (pricing.js) ------------------------------ */
.pricing { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.price-hero { position: relative; text-align: center; padding: 96px 0 64px; isolation: isolate; }
.price-hero h1 { font: 700 clamp(56px, 9vw, 128px)/.92 var(--display); font-stretch: 118%; letter-spacing: -.045em; margin: 0; }
.price-hero .lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 40ch; margin: 28px auto 0; text-wrap: balance; }
.price-hero .early { display: inline-flex; align-items: center; gap: 12px; margin: 26px auto 0; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-2); background: var(--raised); text-wrap: balance; }
.price-hero .early .dots { flex: none; gap: 4px; }
.price-hero .early .dots i { width: 8px; height: 7px; border-radius: 2px; }
/* The pin field behind the heading: the page's full column, reaching up under the header. It keeps
   clear of the text by itself. */
.price-field { position: absolute; z-index: -1; top: -68px; left: calc(-1 * var(--pad)); width: calc(100% + 2 * var(--pad)); height: calc(100% + 68px); display: block; pointer-events: none; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 0, 0, .08); }
.plan header h2 { margin: 14px 0 4px; font: 700 26px/1.1 var(--display); font-stretch: 110%; letter-spacing: -.02em; }
.plan header p { margin: 0; color: var(--muted); font-size: 14px; }
.plan .tab { display: block; width: 30px; height: 26px; border-radius: 8px; background: var(--c); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.plan:hover .tab { transform: rotate(-10deg) scale(1.12); }
/* Once pricing.js runs, the tab is a meter of pins: its grid sits where the tab was, with room above
   and to the left for the pins to rise into. */
.plan .tab.pins { width: 54px; height: 52px; margin: -16px 0 0 -18px; border-radius: 0; background: none; transform: none; }
.plan .tab.pins canvas { display: block; width: 100%; height: 100%; }
.plan-corner { position: absolute; z-index: -1; top: 0; right: 0; width: 110px; height: 110px; pointer-events: none; }
.plan .price { display: flex; align-items: baseline; gap: 8px; padding: 14px 0 4px; }
.plan .price b { font: 700 52px/1 var(--display); font-stretch: 112%; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .price b.word { font-size: 42px; }
.plan .plus { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.plan .ticks { flex: 1; margin: 0; }
.plan .btn { justify-content: center; border-radius: 10px; padding: 12px 16px; }
.plan .btn.soon { pointer-events: none; }
.plan .btn.secondary.soon { color: var(--muted); }
.plan.featured .btn { background: #f2f2f0; color: #0a0a0a; border-color: #f2f2f0; }
.plan.featured { background: #0a0a0a; color: #f2f2f0; border-color: #0a0a0a; overflow: hidden; isolation: isolate; }
.plan.featured header p, .plan.featured .price span { color: rgba(242, 242, 240, .62); }
.plan.featured .price { border-color: rgba(255, 255, 255, .14); }
.plan.featured .plus, .plan.featured .ticks li { color: rgba(242, 242, 240, .86); }
.plan.featured .badge { position: absolute; top: 34px; left: 66px; font: 600 11px/1 var(--sans); letter-spacing: .02em; padding: 6px 10px; border-radius: 999px; background: var(--yellow); color: #0a0a0a; }
.price-faq { padding-top: 112px; }
@media (max-width: 1079px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .plan, .plan .tab { transition: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan.featured { border-color: color-mix(in srgb, var(--yellow) 45%, transparent); background: #111110; } }
:root[data-theme="dark"] .plan.featured { border-color: color-mix(in srgb, var(--yellow) 45%, transparent); background: #111110; }
@media (prefers-reduced-motion: reduce) { .cards > .card::before, .tiles-row.four > li .feature-icon, .cards > .card .feature-icon { transition: none; } }
