/* Conduit - AI SaaS template. All colours, fonts and the one radius live in :root.
   Colours: Night + amber. Fonts: Funnel Display (headings) + Funnel Sans (text) + Geist Mono (labels), all Google Fonts. */
:root {
  --bg: #0e0c0a;
  --ink: #f2ede6;
  --accent: #ffb547;
  --on-accent: #0e0c0a;
  --f-head: "Funnel Display", system-ui, sans-serif;
  --f-text: "Funnel Sans", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;
  --radius: 4px;
  --mute: color-mix(in srgb, var(--ink) 58%, var(--bg));
  --dim: color-mix(in srgb, var(--ink) 46%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 11%, var(--bg));
  --card: color-mix(in srgb, var(--ink) 3.5%, var(--bg));
  --card-2: color-mix(in srgb, var(--ink) 7%, var(--bg));
  --glow: 0 0 1px color-mix(in srgb, var(--bg) 90%, transparent), 0 0 18px color-mix(in srgb, var(--bg) 60%, transparent);
  --gut: clamp(16px, 4.5vw, 64px);
  --max: 1200px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg, canvas { display: block; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 100; left: 12px; top: -60px; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: var(--radius); }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto; }

/* type */
.h1, .h2 { font-family: var(--f-head); font-weight: 400; letter-spacing: -.04em; }
.h1 { font-size: clamp(42px, 6vw, 84px); line-height: 1.02; }
.h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.06; }
.ln { display: block; }
.ln.dim { color: var(--dim); }
.center { text-align: center; }
.lead { color: var(--mute); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; max-width: 34em; }
h3 { font: 500 19px/1.3 var(--f-head); letter-spacing: -.02em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid var(--line);
  border-radius: var(--radius); font: 500 15px/1 var(--f-text); white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
  transition: border-color .3s, color .3s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease); }
.btn:hover { border-color: var(--accent); color: var(--on-accent); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-light { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* header */
.head { position: fixed; z-index: 50; inset: 0 0 auto; display: flex; align-items: center; gap: 32px; padding: 14px var(--gut);
  transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.head.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 500 19px/1 var(--f-head); letter-spacing: -.03em; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--mute); transition: color .25s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.head-cta { min-height: 40px; padding: 0 16px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: none;
  position: relative; cursor: pointer; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn span:first-child { top: 17px; } .menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; z-index: 45; inset: 0; background: var(--bg); padding: 96px var(--gut) 32px; display: flex; flex-direction: column; gap: 32px; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font: 400 36px/1.2 var(--f-head); letter-spacing: -.03em; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu .btn { align-self: flex-start; }

/* hero */
.hero { position: relative; height: 100svh; min-height: 620px; }
[data-hero-mode="signal"] .hero { height: 240vh; }
.hero-stage { position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; z-index: 2; padding-top: max(150px, 21vh); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-copy .h1, .hero-copy .lead { text-shadow: var(--glow); }
.hero-copy .lead { margin-top: 22px; max-width: 30em; color: color-mix(in srgb, var(--ink) 78%, var(--bg)); }
.btns { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.btns .btn:not(.btn-light) { background: color-mix(in srgb, var(--bg) 60%, transparent); }

/* sections */
.sec { padding: clamp(80px, 10vw, 140px) 0 0; }
.sec .h2 + * { margin-top: clamp(40px, 5vw, 64px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* little UI mock-ups (decorative) */
.ui { position: relative; z-index: 1; width: min(82%, 300px); padding: 14px; background: color-mix(in srgb, var(--bg) 88%, transparent); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 12px; box-shadow: 0 20px 50px -20px #000; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ui-h { font-weight: 500; font-size: 13px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.ui-h em { font: 400 11px/1 var(--f-mono); font-style: normal; color: var(--mute); border: 1px solid var(--line); padding: 3px 6px; border-radius: var(--radius); }
.ui-l { display: block; color: var(--mute); font-size: 11px; margin: 8px 0 4px; }
.ui-in { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.ui-tall { min-height: 56px; color: var(--mute); }
.ui-go { display: block; margin-top: 12px; padding: 9px; text-align: center; background: var(--ink); color: var(--bg); border-radius: var(--radius); font-weight: 500; }
.ui-list span { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ui-list b { font-weight: 400; }
.ui-list em { font: 400 11px/1 var(--f-mono); font-style: normal; color: var(--mute); padding: 4px 7px; border: 1px solid var(--line); border-radius: var(--radius); }
.ui-list em.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.ui-runs em.on::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* use cases */
.acc-it { border-bottom: 1px solid var(--line); }
.acc-it:last-child { border-bottom: 0; }
.acc button { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; cursor: pointer;
  font: 500 19px/1.3 var(--f-head); letter-spacing: -.02em; }
.acc button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.acc button svg { flex: none; color: var(--mute); transition: transform .5s var(--ease), color .3s; }
.acc button[aria-expanded="true"] svg { transform: rotate(90deg); color: var(--accent); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc-body > p { overflow: hidden; padding: 0 28px; color: var(--mute); clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease); }
.acc-it.open .acc-body { grid-template-rows: 1fr; }
.acc-it.open .acc-body > p { clip-path: inset(0); padding-bottom: 24px; }
.ui-app { width: 100%; max-width: none; display: grid; grid-template-columns: 44px 1fr; padding: 0; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.ui-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 16px 0; }
.ui-side i { width: 14px; height: 14px; border: 1.5px solid var(--line); border-radius: 3px; }
.ui-side i.on { border-color: var(--accent); }
.ui-main { padding: 16px 0 10px 16px; min-width: 0; }
.ui-row { display: grid; grid-template-columns: 2fr 1.3fr 1.2fr .8fr; gap: 10px; padding: 9px 12px 9px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.ui-row span { overflow: hidden; text-overflow: ellipsis; }
.ui-th { color: var(--mute); font: 400 11px/1.4 var(--f-mono); }
.ui-row .st { font: 400 11px/1.4 var(--f-mono); color: var(--mute); }
.ui-row.run .st { color: var(--accent); }

/* pricing */
.billing { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 15px; }
.billing em { font: 400 11px/1 var(--f-mono); font-style: normal; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding: 5px 8px; border-radius: var(--radius); }
.switch { width: 44px; height: 24px; padding: 2px; border: 1px solid var(--line); background: var(--card-2); border-radius: var(--radius); cursor: pointer; }
.switch i { display: block; width: 18px; height: 18px; border-radius: calc(var(--radius) - 1px); background: var(--ink); transition: transform .4s var(--ease); }
.switch[aria-checked="true"] i { transform: translateX(20px); background: var(--accent); }
.plan-top { display: flex; justify-content: space-between; align-items: center; min-height: 26px; }
.plan-top h3 { font-size: 22px; }
.flag:empty { display: none; }
.flag { font: 400 11px/1 var(--f-mono); font-style: normal; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding: 5px 8px; border-radius: var(--radius); }
.plan:has(.flag:not(:empty)) { background: var(--card-2); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.plan:has(.flag:not(:empty)) .plan-btn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.price { display: flex; align-items: baseline; gap: 4px; margin: 22px 0 10px; }
.price span { font-size: 22px; color: var(--mute); }
.price b { font: 400 54px/1 var(--f-head); letter-spacing: -.04em; display: inline-block; }
.price b.flip { animation: flip .6s var(--ease); }
@keyframes flip { 0% { clip-path: inset(0 0 0 0); } 45% { clip-path: inset(0 0 0 100%); } 55% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0); } }
.price small { color: var(--mute); font-size: 13px; margin-left: 6px; }
.plan-text { color: var(--mute); min-height: 3em; }
.plan-btn { width: 100%; margin: 24px 0; }
.plan li { display: flex; gap: 12px; align-items: center; padding: 7px 0; }
.plan li svg { color: var(--accent); flex: none; }

/* faq */
.acc-faq { border-top: 1px solid var(--line); }
.acc-faq .acc-it { border-bottom: 1px solid var(--line); }
.acc-faq button { padding: 22px 0; font-size: 18px; }
.acc-faq .acc-body > p { padding: 0; }
.acc-faq button[aria-expanded="true"] svg { transform: rotate(45deg); }

/* final CTA */
.final { position: relative; overflow: hidden; min-height: 460px; display: flex; align-items: center; }
.final canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.final-copy { position: relative; z-index: 1; padding: clamp(28px, 6vw, 72px); max-width: 780px; }
.final .h2, .final .lead { text-shadow: var(--glow); }
.final .lead { margin-top: 20px; color: color-mix(in srgb, var(--ink) 75%, var(--bg)); }
.final .btn { margin-top: 28px; }

/* footer */
.foot { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); background: var(--card); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 64px 0 48px; }
.foot-about p { color: var(--mute); margin-top: 18px; max-width: 24em; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h2 { font: 500 14px/1 var(--f-text); margin-bottom: 8px; }
.foot-col a { color: var(--mute); transition: color .25s; }
.foot-col a:hover { color: var(--ink); }
.foot-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }

/* back to top */
.to-top { position: fixed; z-index: 40; right: 20px; bottom: 20px; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  clip-path: inset(100% 0 0 0); transition: clip-path .5s var(--ease); }
.to-top.show { clip-path: inset(0); }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

/* logos: a still grid of eight cells, the sentence on the left */
.logos { padding-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 32px; align-items: center; }
.logos-title { color: var(--mute); font-size: 15px; max-width: 14em; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mark { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 84px; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font: 500 19px/1 var(--f-head); letter-spacing: -.03em; color: var(--mute); white-space: nowrap; transition: color .3s; }
.mark:hover { color: var(--ink); }
.mark i { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; }
.mark:nth-child(3n+2) i { border-radius: 2px; transform: rotate(45deg); width: 12px; height: 12px; }
.mark:nth-child(3n) i { border-radius: 2px; border-width: 1.5px 1.5px 5px; }

/* features: three wide rows, number / words / mock-up */
.frows { border-top: 1px solid var(--line); }
.frow { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(28px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--line); }
.frow-n { font: 400 13px/1 var(--f-mono); color: var(--accent); align-self: start; padding-top: 8px; }
.frow-copy h3 { font: 400 clamp(26px, 2.6vw, 36px)/1.15 var(--f-head); letter-spacing: -.035em; }
.frow-copy p { color: var(--mute); margin-top: 14px; max-width: 26em; }
.feat-art { position: relative; height: 300px; overflow: hidden; display: grid; place-items: center; background: var(--bg); }
.feat-art canvas, .stage canvas, .bento-art canvas, .final canvas, .band canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* use cases: tabs above one wide app, the chosen case floats over it */
.sec-head .h2 + * { margin-top: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 560px; }
.tabs button { font: 500 14px/1 var(--f-text); color: var(--mute); padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: none; cursor: pointer;
  transition: color .25s, border-color .25s, background .25s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.stage { position: relative; overflow: hidden; margin-top: clamp(32px, 4vw, 48px); padding: clamp(28px, 5vw, 64px) 0 clamp(120px, 12vw, 150px) clamp(28px, 7vw, 96px); }
.stage .ui-app { width: 100%; }
.stage .ui-row { transition: background .4s, color .4s; }
.stage .ui-row.hit { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.stage .ui-row.hit span:first-child { color: var(--accent); }
.stage-note { position: absolute; z-index: 2; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); width: min(420px, calc(100% - 32px)); padding: 18px 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stage-note p { color: var(--mute); }
.stage-note p:not([hidden]) { animation: wipe .7s var(--ease); }
.stage-note b { display: block; color: var(--ink); font: 500 17px/1.3 var(--f-head); margin-bottom: 6px; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

/* how it works: one thread with three knots */
.track { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); position: relative; padding-top: 36px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1.5px; background: var(--line); }
.track::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease) .2s; }
.track.on::after { transform: scaleX(1); }
.knot { position: relative; }
.knot-dot { position: absolute; left: 0; top: -36px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); transition: border-color .4s, background .4s; }
.track.on .knot-dot { border-color: var(--accent); background: var(--accent); transition-delay: calc(var(--k, 0) * .6s + .4s); }
.knot:nth-child(2) { --k: 1; } .knot:nth-child(3) { --k: 2; }
.step-n { font: 400 13px/1 var(--f-mono); color: var(--accent); }
.knot h3 { font: 400 clamp(24px, 2.2vw, 30px)/1.2 var(--f-head); letter-spacing: -.03em; margin-top: 18px; }
.knot-text { color: var(--mute); margin-top: 12px; max-width: 22em; }

/* benefits: bento, the title and a thread panel sit inside the grid */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-areas: "title art b1" "b2 art b3" "b4 b5 b6"; gap: 16px; }
.bento-title { grid-area: title; align-self: end; padding-bottom: 8px; }
.sec .bento-title + * { margin-top: 0; }
.bento-art { grid-area: art; position: relative; overflow: hidden; min-height: 420px; }
.bento .ben-it:nth-of-type(1) { grid-area: b1; } .bento .ben-it:nth-of-type(2) { grid-area: b2; } .bento .ben-it:nth-of-type(3) { grid-area: b3; }
.bento .ben-it:nth-of-type(4) { grid-area: b4; } .bento .ben-it:nth-of-type(5) { grid-area: b5; } .bento .ben-it:nth-of-type(6) { grid-area: b6; }
.ben-it { padding: 26px; min-height: 200px; display: flex; flex-direction: column; }
.ben-n { font: 400 13px/1 var(--f-mono); color: var(--accent); margin-bottom: auto; padding-bottom: 32px; }
.ben-it p { color: var(--mute); margin-top: 8px; }

/* comparison: one table, row against row */
.cmp-table { border-top: 1px solid var(--line); }
.cmp-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.cmp-row span { display: flex; gap: 12px; align-items: center; padding: 18px 20px; color: var(--mute); }
.cmp-row span svg { flex: none; }
.cmp-row .ours, .cmp-head span:last-child { color: var(--ink); background: color-mix(in srgb, var(--accent) 6%, transparent); border-left: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.cmp-row .ours svg { color: var(--accent); }
.cmp-head span { font: 500 20px/1.2 var(--f-head); letter-spacing: -.02em; color: var(--ink); padding-top: 22px; padding-bottom: 22px; }

/* testimonials: numbers stacked on the left, one big voice on the right */
.voices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.stats { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.stats dd { font: 400 clamp(36px, 4vw, 52px)/1 var(--f-head); letter-spacing: -.04em; }
.stats dt { color: var(--mute); font-size: 14px; text-align: right; }
.voice { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; min-height: 100%; }
.voice-q:not([hidden]) { animation: wipe .8s var(--ease); }
.quote-co { display: flex; gap: 10px; align-items: center; color: var(--mute); font: 500 16px/1 var(--f-head); }
.quote-co i { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; }
.voice blockquote { margin: 28px 0 32px; font: 400 clamp(24px, 2.6vw, 34px)/1.25 var(--f-head); letter-spacing: -.025em; }
.voice figcaption { display: flex; flex-direction: column; font-size: 14px; }
.voice figcaption span { color: var(--mute); }
.voice-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 32px; }
.voice-pick button { font: 500 13px/1 var(--f-text); color: var(--mute); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: none; cursor: pointer; transition: color .25s, border-color .25s; }
.voice-pick button:hover { color: var(--ink); }
.voice-pick button[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); }
.voice-btn { align-self: flex-start; margin-top: 20px; }

/* integrations: centred words, two belts of tiles moving opposite ways */
.integ-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.integ-copy .lead { margin-top: 22px; }
.integ-copy .btn { margin-top: 28px; }
.belts { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 10px; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.belt { overflow: hidden; }
.belt-track { display: flex; gap: 10px; width: max-content; animation: belt 46s linear infinite; }
.belt-rev .belt-track { animation-direction: reverse; animation-duration: 54s; }
.belt-track span { display: grid; place-items: center; width: 132px; height: 84px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  font: 400 12px/1 var(--f-mono); color: var(--mute); }
@keyframes belt { to { transform: translateX(calc(-50% - 5px)); } }

/* pricing: plans as wide rows */
.prows { display: grid; gap: 12px; margin-top: clamp(32px, 4vw, 48px); }
.prows .plan { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.4fr) auto; gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(22px, 3vw, 32px); }
.prows .price { margin: 0; }
.prows .plan-text { margin-top: 8px; min-height: 0; }
.prows ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.prows .plan li { font-size: 14px; padding: 5px 0; }
.prows .plan-btn { width: auto; margin: 0; }
.billing { justify-content: flex-start; }

/* faq: centred title, questions in two columns */
.faq-cols .acc-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); align-items: start; border-top: 0; }
.faq-cols .acc-faq .acc-it { border-top: 1px solid var(--line); border-bottom: 0; }

/* final call: a band across the whole width */
.band { position: relative; overflow: hidden; margin-top: clamp(80px, 10vw, 140px); min-height: 520px; display: grid; place-items: center; border-block: 1px solid var(--line); }
.band-copy { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; padding: 80px 0; }
.band .h2, .band .lead { text-shadow: var(--glow); }
.band .lead { margin-top: 20px; color: color-mix(in srgb, var(--ink) 78%, var(--bg)); }
.band .btn { margin-top: 28px; }
.band-copy::before { content: ""; position: absolute; z-index: -1; inset: -12% -18%; background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 94%, transparent) 55%, transparent); }
.band .ln.dim { color: color-mix(in srgb, var(--ink) 66%, var(--bg)); }
.home .foot { margin-top: 0; }

@media (max-width: 1000px) {
  .logos { grid-template-columns: 1fr; gap: 20px; }
  .frow { grid-template-columns: 48px 1fr; }
  .frow .feat-art { grid-column: 1 / -1; }
  .tabs { justify-content: flex-start; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "title title" "art art" "b1 b2" "b3 b4" "b5 b6"; }
  .bento-art { min-height: 240px; }
  .voices { grid-template-columns: 1fr; }
  .prows .plan { grid-template-columns: 1fr 1fr; }
  .prows ul { grid-column: 1 / -1; }
  .prows .plan-btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .mark { min-height: 68px; font-size: 17px; }
  .frow { grid-template-columns: 1fr; gap: 14px; }
  .frow-n { padding-top: 0; }
  .feat-art { height: 280px; }
  .stage { padding: 20px 0 0 20px; }
  .stage-note { position: relative; left: auto; bottom: auto; width: auto; margin: 16px 20px 20px 0; }
  .track { grid-template-columns: 1fr; padding-top: 0; padding-left: 36px; gap: 36px; }
  .track::before, .track::after { left: 7px; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; }
  .track::after { transform: scaleY(0); transform-origin: top; }
  .track.on::after { transform: scaleY(1); }
  .knot-dot { left: -36px; top: 0; }
  .knot h3 { margin-top: 12px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "title" "art" "b1" "b2" "b3" "b4" "b5" "b6"; }
  .ben-it { min-height: 0; }
  .cmp-row span { padding: 14px 12px; font-size: 14px; gap: 8px; }
  .cmp-head span { font-size: 16px; }
  .prows .plan { grid-template-columns: 1fr; }
  .prows ul { grid-template-columns: 1fr; }
  .faq-cols .acc-faq { grid-template-columns: 1fr; }
  .belt-track span { width: 108px; height: 70px; }
  .stats dt { max-width: 11em; }
}
@media (prefers-reduced-motion: reduce) {
  .belt-track { animation: none !important; }
  .track::after { transition: none; }
}

/* entrance: WEAVE. Every element is pulled in like a weft thread, alternately from the left and from the right. */
.js [data-w] { clip-path: inset(-2px 100% -2px 0); }
.js [data-w].w-r { clip-path: inset(-2px 0 -2px 100%); }
.js [data-w].in { clip-path: inset(-2px -40px -2px -40px); transition: clip-path 1s var(--ease) var(--d, 0s); }
.js .ln[data-w].in, .js .h1 .ln.in { clip-path: inset(-.2em -40px -.2em -40px); }


/* ---------- sub pages ---------- */
.head-sign { font-size: 15px; color: var(--mute); transition: color .25s; }
.head-sign:hover { color: var(--ink); }
.wrap-narrow { width: min(760px, 100% - 2 * var(--gut)); margin-inline: auto; }
.page-head { padding-top: clamp(140px, 18vh, 200px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.page-head .lead { margin-top: 18px; }
.meta { display: flex; gap: 16px; font: 400 12px/1.4 var(--f-mono); color: var(--mute); }
.meta span + span::before { content: ""; display: inline-block; width: 14px; height: 1px; background: var(--line); vertical-align: middle; margin-right: 16px; }

/* journal list */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 48px) 16px; margin-top: clamp(48px, 6vw, 80px); }
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-card h2, .post-card h3 { font: 400 clamp(22px, 2.2vw, 28px)/1.2 var(--f-head); letter-spacing: -.03em; max-width: 22em; }
.post-card h3 { font-size: 22px; }
.post-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.post-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1s var(--ease); }
.post-card:hover .post-art canvas { transform: scale(1.04); }
.post-num { position: absolute; left: 16px; bottom: 14px; z-index: 1; font: 400 12px/1 var(--f-mono); color: var(--ink); text-shadow: var(--glow); }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--mute); transition: color .25s, gap .4s var(--ease); }
.post-card:hover .more { color: var(--ink); gap: 12px; }
.posts-more { margin-top: clamp(40px, 5vw, 64px); }

/* article */
.art-head { padding-top: clamp(130px, 16vh, 180px); display: flex; flex-direction: column; gap: 18px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); font-size: 14px; align-self: flex-start; transition: color .25s; }
.back:hover { color: var(--ink); }
.art-cover { margin-top: clamp(40px, 5vw, 64px); }
.art-cover .post-art { aspect-ratio: 21 / 9; }
.prose { margin-top: clamp(40px, 5vw, 64px); font-size: 17px; line-height: 1.65; color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font: 400 clamp(24px, 2.4vw, 30px)/1.2 var(--f-head); letter-spacing: -.03em; color: var(--ink); margin-top: 48px; }
.prose h3 { font-size: 19px; color: var(--ink); margin-top: 32px; }
.prose ul li { position: relative; padding-left: 26px; margin-top: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1.5px; background: var(--accent); }
.prose .note { padding: 20px 22px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--radius); background: var(--card); color: var(--ink); }
.prose .table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); }
.prose thead th { border-top: 0; font: 400 12px/1.3 var(--f-mono); color: var(--mute); background: var(--card); }
.art-end { margin-top: 48px; }

/* changelog */
.log { margin-top: clamp(56px, 7vw, 96px); }
.log-it { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-bottom: clamp(56px, 7vw, 96px); }
.log-side { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 6px; }
.log-v { font: 400 13px/1 var(--f-mono); color: var(--accent); }
.log-tag { font: 500 19px/1.3 var(--f-head); letter-spacing: -.02em; }
.log-date { color: var(--mute); font-size: 14px; }
.log-main { min-width: 0; max-width: 720px; border-left: 1px solid var(--line); padding-left: 48px; }
.log-main .post-art { aspect-ratio: 3 / 2; }
.log-main h2 { font: 400 clamp(26px, 2.6vw, 32px)/1.2 var(--f-head); letter-spacing: -.03em; margin-top: 28px; }
.log-main .prose { margin-top: 16px; font-size: 16px; }

/* forms */
.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.form { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; position: relative; }
.field > span { color: var(--mute); }
.field b { color: var(--accent); font-weight: 400; }
.field input, .field textarea, .sel { font: 400 16px/1.4 var(--f-text); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; width: 100%; transition: border-color .25s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .sel:focus-visible { outline: none; border-color: var(--accent); }
.field input::placeholder { color: var(--dim); }
.field.bad input, .field.bad textarea, .field.bad .sel { border-color: #ff6b6b; }
.sel { display: flex; justify-content: space-between; align-items: center; cursor: pointer; text-align: left; }
.sel span { color: var(--dim); }
.set .sel span { color: var(--ink); }
.sel svg { transition: transform .4s var(--ease); }
.open .sel svg { transform: rotate(180deg); }
.opts { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 6px; padding: 6px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 40px -16px #000; }
.opts li { padding: 10px 12px; border-radius: calc(var(--radius) - 1px); cursor: pointer; font-size: 15px; }
.opts li:hover, .opts li:focus { outline: none; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.opts li[aria-selected="true"] { color: var(--accent); }
.form .btn[type="submit"] { align-self: flex-start; }
.form-legal { font-size: 13px; color: var(--mute); }
.form-legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-msg { font-size: 14px; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #ff8a8a; }
.contact-side h2 { font: 500 19px/1.3 var(--f-head); }
.contact-side dl { margin-top: 18px; }
.contact-side dl div { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-side dt { color: var(--mute); font-size: 13px; font-family: var(--f-mono); }
.contact-side dd { margin-top: 4px; }
.contact-side a:hover { color: var(--accent); }

/* one-card pages (waitlist, sign in, 404) */
.solo-wrap { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--gut) 60px; overflow: hidden; }
.solo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.solo { position: relative; z-index: 1; width: min(620px, 100%); padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.solo-sm { width: min(440px, 100%); }
.solo.center { align-items: center; text-align: center; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.solo.center .h2, .solo.center .lead { text-shadow: var(--glow); }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 6px; }
.inline-form .form-msg { grid-column: 1 / -1; }
.stack-form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.stack-form .btn { width: 100%; }
.solo-count { font-size: 14px; color: var(--mute); padding-top: 18px; border-top: 1px solid var(--line); }
.solo-count b { color: var(--ink); font-weight: 500; }
.solo-alt { font-size: 14px; color: var(--mute); }
.solo-alt a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.big404 { font: 400 clamp(110px, 20vw, 240px)/.9 var(--f-head); letter-spacing: -.06em; text-shadow: var(--glow); }
body.solo-page .foot { margin-top: 0; }

@media (max-width: 1000px) {
  .head-sign { display: none; }
  .log-it { grid-template-columns: 1fr; gap: 20px; }
  .log-side { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
  .log-main { border-left: 0; padding-left: 0; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .posts { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .art-cover .post-art { aspect-ratio: 4 / 3; }
}

/* responsive */
@media (max-width: 1000px) {
  .nav, .head-cta { display: none; }
  .menu-btn { display: block; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ui-row { grid-template-columns: 2fr 1.2fr 1fr; }
  .ui-row span:nth-child(3) { display: none; }
  .acc button { padding: 20px; font-size: 17px; }
  .acc-body > p { padding: 0 20px; }
  .btns .btn { flex: 1 1 100%; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-w] { clip-path: none !important; transition: none !important; }
}
