/* THREADLINK landing — "Midnight": near-black, white type, light from a blue source behind the work.
   data-ui="light" is "Daylight": warm off-white paper, ink-black type, the same blue — never pure white. */
:root {
  --bg: #050507;
  --surface: #0b0b0f;
  --surface-2: #111116;
  --raise: #17171d;
  --raise-2: #23232c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f6;
  --muted: #9a9aa6;
  --faint: #858592;
  --blue: #4a6cff;
  --blue-hi: #8ea2ff;
  --glow: rgba(74, 108, 255, 0.5);
  --glow-soft: rgba(74, 108, 255, 0.16);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --cta-bg: #ffffff;
  --cta-ink: #050507;
  --ghost: rgba(255, 255, 255, 0.04);
  --ghost-hover: rgba(255, 255, 255, 0.08);
  --ghost-line: rgba(255, 255, 255, 0.28);
  --scrim: rgba(5, 5, 7, 0.72);
  --demo-top: rgba(23, 23, 29, 0.92);
  --demo-bottom: rgba(11, 11, 15, 0.96);
  --shadow: rgba(0, 0, 0, 0.55);
  --shadow-deep: rgba(0, 0, 0, 0.7);
  --chip-on: #ffffff;
  --num-stroke: rgba(142, 162, 255, 0.75);
  /* read by the canvases in landing.js */
  --field-dot: rgba(255, 255, 255, 0.07);
  --trail-ink: #8ea2ff;
  --title-ink: #f4f4f6;
  color-scheme: dark;
}
:root[data-ui="light"] {
  --bg: #ecebe6;
  --surface: #f4f3ef;
  --surface-2: #f8f7f3;
  --raise: #e4e2dc;
  --raise-2: #d9d7d0;
  --line: rgba(24, 24, 34, 0.09);
  --line-strong: rgba(24, 24, 34, 0.17);
  --text: #18181d;
  --muted: #55555e;
  --faint: #66666f;
  --blue: #3b57e8;
  --blue-hi: #3149d4;
  --glow: rgba(59, 87, 232, 0.26);
  --glow-soft: rgba(59, 87, 232, 0.1);
  --cta-bg: #18181d;
  --cta-ink: #f4f3ef;
  --ghost: rgba(24, 24, 34, 0.03);
  --ghost-hover: rgba(24, 24, 34, 0.06);
  --ghost-line: rgba(24, 24, 34, 0.3);
  --scrim: rgba(236, 235, 230, 0.8);
  --demo-top: rgba(248, 247, 243, 0.96);
  --demo-bottom: rgba(240, 239, 234, 0.98);
  --shadow: rgba(30, 30, 50, 0.14);
  --shadow-deep: rgba(30, 30, 50, 0.16);
  --chip-on: #18181d;
  --num-stroke: rgba(49, 73, 212, 0.7);
  --field-dot: rgba(24, 24, 34, 0.09);
  --trail-ink: #3b57e8;
  --title-ink: #18181d;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--blue); color: #fff; }
a { color: inherit; }
img, canvas { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap-narrow { max-width: 780px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(36px, 5.6vw, 76px); line-height: 0.98; letter-spacing: -0.045em; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(0.98); }
.btn-white { background: var(--cta-bg); color: var(--cta-ink); }
.btn-white:hover { box-shadow: 0 0 0 4px var(--glow-soft), 0 8px 34px var(--glow); }
.btn-ghost { background: var(--ghost); border-color: var(--line-strong); color: var(--text); font-weight: 500; }
.btn-ghost:hover { background: var(--ghost-hover); border-color: var(--ghost-line); }
.btn-s { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-wide { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--scrim);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 14px/1 var(--sans); letter-spacing: 0.04em; }
.logo svg { width: 40px; height: 15px; fill: var(--text); }
.logo .logo-block { fill: var(--blue); }
.nav-links { display: flex; gap: 26px; margin-left: 12px; flex: 1; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.16s var(--ease); }
.nav-links a:hover { color: var(--text); }

/* ---------- hero: editorial, left-aligned, three type sizes ---------- */
.hero { position: relative; padding: 112px 0 40px; overflow: hidden; isolation: isolate; }
.hero-dots {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask: linear-gradient(180deg, #000 0, #000 55%, transparent 92%); mask: linear-gradient(180deg, #000 0, #000 55%, transparent 92%);
}
.hero-grid { position: relative; }
.hero-title { margin: 0; display: block; letter-spacing: -0.055em; line-height: 0.86; text-wrap: initial; }
.hero-title .ht { display: block; }
.ht-1 { font-size: clamp(52px, 11.2vw, 172px); }
.ht-2 {
  margin: 0.32em 0 0.3em 34%;
  font: 500 clamp(22px, 2.6vw, 40px)/1.05 var(--display); letter-spacing: -0.02em; color: var(--muted);
}
.ht-3 { font-size: clamp(52px, 11.2vw, 172px); width: fit-content; max-width: 100%; margin-left: auto; padding-bottom: 0.06em; }
/* the last word printed as a halftone: dots grow from left to right */
.dots-text.is-ready {
  color: transparent;
  -webkit-background-clip: text; background-clip: text;
  background-image: var(--dots-img); background-size: auto 100%; background-repeat: repeat-x;
}
.hero-row { margin-top: 56px; padding-left: 34%; }
.hero-copy .lead { margin: 0; max-width: 600px; color: var(--text); font-size: clamp(19px, 1.9vw, 23px); line-height: 1.5; text-wrap: pretty; }
.hero-copy .cta-row { justify-content: flex-start; margin-top: 30px; }
.hero-copy .fine-print { margin-top: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine-print { margin: 16px 0 0; color: var(--faint); font-size: 14px; }
.lead { color: var(--muted); }

/* the demo window, lit from behind */
.demo {
  position: relative; margin: 72px auto 0; max-width: 1180px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--demo-top), var(--demo-bottom));
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(74, 108, 255, 0.12), 0 40px 120px var(--shadow-deep), 0 0 90px var(--glow-soft);
}
.demo::before {
  content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(142, 162, 255, 0.75), rgba(74, 108, 255, 0.12) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.demo-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--raise-2); }
.demo-title { color: var(--muted); font: 400 12px/1 var(--mono); }
.demo-tag { margin-left: auto; color: var(--blue-hi); font: 400 12px/1 var(--mono); }
.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; }

.compare {
  position: relative; display: grid; place-items: center;
  padding: 28px; min-width: 0;
  background: radial-gradient(70% 70% at 50% 50%, rgba(74, 108, 255, 0.12), transparent 70%);
  border-right: 1px solid var(--line);
  touch-action: pan-y; cursor: ew-resize; user-select: none;
  --split: 38%;
}
.cmp-art { position: relative; display: grid; max-width: 100%; }
.cmp-art canvas {
  grid-area: 1 / 1; display: block; width: auto; height: auto;
  max-height: 560px; max-width: 100%;
  border-radius: 4px; box-shadow: 0 20px 50px var(--shadow);
}
#cvOut { clip-path: inset(0 0 0 var(--split)); }
.compare-line {
  position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 16px var(--glow), 0 0 4px var(--glow); pointer-events: none;
}
.compare-knob {
  position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: #050507; box-shadow: 0 0 0 5px rgba(74, 108, 255, 0.25), 0 0 24px var(--glow);
}
.compare-knob svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.compare-range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.compare-range:focus-visible + * { outline: none; }
.compare:focus-within .compare-knob { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue), 0 0 24px var(--glow); }
.compare-tag {
  position: absolute; top: 12px; padding: 4px 9px; border-radius: 7px;
  background: var(--scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line); color: var(--text); font: 500 11px/1.3 var(--mono); pointer-events: none;
}
.compare-tag-l { left: 12px; } .compare-tag-r { right: 12px; }

.demo-side { display: flex; flex-direction: column; gap: 24px; padding: 24px 22px; }
.ctl { display: flex; flex-direction: column; gap: 10px; }
.ctl-top { display: flex; justify-content: space-between; align-items: baseline; }
.ctl-top output { font: 400 12px/1 var(--mono); color: var(--blue-hi); }
.ctl-label { font-size: 13px; color: var(--muted); }
.ctl-ends { display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; margin-top: -2px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chips button {
  height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--muted); font: 500 13px/1 var(--sans); cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease), box-shadow 0.2s var(--ease);
}
.chips button:hover { color: var(--text); border-color: var(--line-strong); }
.chips button[aria-pressed="true"] { color: var(--chip-on); background: rgba(74, 108, 255, 0.18); border-color: var(--blue); box-shadow: 0 0 18px rgba(74, 108, 255, 0.3); }
.inks { display: flex; gap: 10px; }
.inks button {
  width: 28px; height: 28px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--c); border: 1px solid var(--line-strong);
  transition: transform 0.16s var(--ease), box-shadow 0.2s var(--ease);
}
.inks button:hover { transform: scale(1.08); }
.inks button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--blue), 0 0 14px var(--glow); }
.demo-side .btn-wide { margin-top: auto; height: 42px; font-size: 14px; }

input[type="range"]#age, input[type="range"]#count {
  -webkit-appearance: none; appearance: none; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; --p: 45%;
}
#age::-webkit-slider-runnable-track, #count::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) 0, var(--blue-hi) var(--p), var(--raise-2) var(--p)); }
#age::-moz-range-track, #count::-moz-range-track { height: 5px; border-radius: 3px; background: var(--raise-2); }
#age::-moz-range-progress, #count::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--blue); }
#age::-webkit-slider-thumb, #count::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--glow-soft), 0 0 14px var(--glow); }
#age::-moz-range-thumb, #count::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }

.specs {
  list-style: none; margin: 56px auto 0; padding: 0; max-width: 1040px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.specs li { display: flex; flex-direction: column; gap: 4px; padding: 22px 4px 0; }
.specs b { font: 600 22px/1.1 var(--display); letter-spacing: -0.02em; }
.specs span { color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
.section { padding: 128px 0 0; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 22px;
  color: var(--blue-hi); font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238ea2ff' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Cpath d='M12 1v22M1 12h22'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 28px; border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { border-color: rgba(74, 108, 255, 0.4); box-shadow: 0 0 40px rgba(74, 108, 255, 0.12); }
.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.card-wide { grid-column: span 3; flex-direction: row; align-items: center; gap: 40px; }
.card-text { flex: 0 1 380px; display: flex; flex-direction: column; gap: 10px; }
.card-vis { height: 150px; margin-bottom: 14px; border-radius: 12px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; }

.modes { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.modes figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.modes canvas { width: 100%; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); }
.modes figcaption { color: var(--muted); font-size: 12px; text-align: center; }

.vis-age canvas { width: 100%; height: 100%; object-fit: cover; }
.vis-sep { display: flex; align-items: center; justify-content: center; gap: 0; }
.vis-sep span {
  width: 64px; height: 84px; margin-left: -26px; border-radius: 8px;
  background: var(--c); border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: -8px 8px 24px rgba(0, 0, 0, 0.5);
  transform: rotate(-8deg) translateY(4px);
}
.vis-sep span:first-child { margin-left: 0; }
.vis-sep span:nth-child(2) { transform: rotate(-3deg); }
.vis-sep span:nth-child(3) { transform: rotate(3deg) translateY(-2px); }
.vis-sep span:nth-child(4) { transform: rotate(8deg) translateY(4px); box-shadow: -8px 8px 24px rgba(0, 0, 0, 0.5), 0 0 30px rgba(74, 108, 255, 0.35); }
.vis-tee svg { width: 120px; height: 90px; fill: #1e2a6e; stroke: var(--blue-hi); stroke-width: 1; filter: drop-shadow(0 0 16px rgba(74, 108, 255, 0.6)); }
.lock { flex: 1; display: grid; place-items: center; min-height: 140px; }
.lock svg { width: 84px; height: 84px; fill: none; stroke: var(--blue-hi); stroke-width: 1.4; filter: drop-shadow(0 0 20px rgba(74, 108, 255, 0.8)); }

/* steps */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.step-n {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 10px;
  background: rgba(74, 108, 255, 0.14); border: 1px solid rgba(74, 108, 255, 0.45); color: var(--blue-hi);
  font: 500 14px/1 var(--mono); box-shadow: 0 0 20px rgba(74, 108, 255, 0.25);
}

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
}
.plan-pro {
  background: linear-gradient(180deg, rgba(74, 108, 255, 0.14), var(--surface) 55%);
  border-color: rgba(74, 108, 255, 0.55);
  box-shadow: 0 0 60px rgba(74, 108, 255, 0.22);
}
.plan-badge {
  position: absolute; top: 26px; right: 26px; padding: 4px 10px; border-radius: 999px;
  background: #3a59f2; color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 0 18px var(--glow);
}
.price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.price b { font: 600 40px/1 var(--display); letter-spacing: -0.03em; }
.price span { color: var(--muted); font-size: 15px; }
.plan-note { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; flex: 1; align-content: start; }
.plan li { position: relative; padding-left: 26px; font-size: 15px; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px;
  border-left: 1.6px solid var(--blue-hi); border-bottom: 1.6px solid var(--blue-hi); transform: rotate(-45deg);
}

/* faq: sticky heading on the left, numbered answers on the right */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.faq-head { position: sticky; top: 104px; }
.faq-lead { margin: 22px 0 0; max-width: 34ch; color: var(--muted); font-size: 18px; }
.faq-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  color: var(--text); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}
.faq-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.faq-link:hover { border-color: var(--blue-hi); gap: 12px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; align-items: baseline; gap: 12px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font: 500 clamp(19px, 1.7vw, 23px)/1.3 var(--display); letter-spacing: -0.015em;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-hi); }
.faq-n { color: var(--faint); font: 500 13px/1 var(--mono); }
.faq details[open] .faq-n { color: var(--blue-hi); }
.faq summary i { position: relative; width: 16px; height: 16px; align-self: center; }
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 0; top: 7.25px; width: 16px; height: 1.5px; background: currentColor; border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); opacity: 0; }
.faq-a { padding: 0 34px 28px 56px; }
.faq-a p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 62ch; }
.faq details[open] .faq-a { animation: faq-in 0.35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* final */
.final { position: relative; margin-top: 140px; padding: 120px 0; overflow: hidden; border-top: 1px solid var(--line); }
.final-glow {
  position: absolute; left: 50%; bottom: -380px; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(45% 45% at 50% 50%, rgba(74, 108, 255, 0.45), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.final-in { position: relative; text-align: center; }
.final .cta-row { justify-content: center; margin-top: 34px; }

.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; gap: 24px; height: 76px; color: var(--faint); font-size: 13px; }
.logo-sm { color: var(--text); font-size: 13px; }
.logo-sm svg { width: 34px; height: 13px; }
.foot-note:last-child { margin-left: auto; }

.dropzone {
  position: fixed; inset: 16px; z-index: 50; display: grid; place-items: center;
  border: 1.5px dashed var(--blue); border-radius: 24px;
  background: var(--scrim); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 120px rgba(74, 108, 255, 0.25);
}
.dropzone p { margin: 0; font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; }

/* reveal */
.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.will-reveal.is-in { opacity: 1; transform: none; }

/* language switch */
.lang { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--ghost); }
.lang a {
  display: inline-grid; place-items: center; height: 26px; padding: 0 9px; border-radius: 7px; text-decoration: none;
  color: var(--muted); font: 600 11px/1 var(--sans); letter-spacing: 0.04em;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { background: var(--raise-2); color: var(--text); }

/* demo: separation chip and found inks */
.chips .chip-wide { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 42px; font-weight: 600; }
.chip-dots { display: inline-flex; }
.chip-dots i { width: 12px; height: 12px; margin-left: -4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--surface-2); }
.chip-dots i:first-child { margin-left: 0; }
.found { display: flex; flex-wrap: wrap; gap: 8px; }
.found i { width: 28px; height: 28px; border-radius: 8px; background: var(--c); border: 1px solid var(--line-strong); }

/* separation section */
.sep { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.sep-text { display: flex; flex-direction: column; align-items: flex-start; }
.sep-lead { margin: 26px 0 0; color: var(--text); font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; max-width: 52ch; }
.sep-list { list-style: none; margin: 28px 0 34px; padding: 0; display: grid; gap: 14px; }
.sep-list li { position: relative; padding-left: 28px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.sep-list li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px;
  border-left: 1.6px solid var(--blue-hi); border-bottom: 1.6px solid var(--blue-hi); transform: rotate(-45deg);
}
.sep-list b { color: var(--text); font-weight: 600; }
.sep-vis {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start;
  padding: 22px; border-radius: 22px; border: 1px solid var(--line-strong);
  background: radial-gradient(70% 60% at 30% 40%, rgba(74, 108, 255, 0.16), transparent 70%), var(--surface);
  box-shadow: 0 0 70px rgba(74, 108, 255, 0.16);
}
.sep-result { display: flex; flex-direction: column; gap: 10px; }
.sep-result canvas { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 40px var(--shadow); }
.sep-cap { color: var(--muted); font-size: 12px; }
.films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.film { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.film canvas { width: 100%; height: auto; border-radius: 4px; background: #fff; }
.film-cap { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11px; color: var(--muted); }
.film-cap i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--line-strong); }
.film-cap b { color: var(--text); font-weight: 500; white-space: nowrap; }
.film-cap span { display: none; }

/* pantone list card */
.vis-pms { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; padding: 0 18px; }
.vis-pms span { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font: 500 12px/1 var(--mono); }
.vis-pms i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); }

/* capability line: everything the editor does, at a glance */
.caps {
  margin: 56px auto 0; max-width: 1040px; padding: 22px 0; border-block: 1px solid var(--line);
  text-align: center; text-wrap: balance;
  font: 500 clamp(17px, 2vw, 22px)/1.5 var(--display); letter-spacing: -0.01em; color: var(--muted);
}

/* why */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.why-card { display: flex; flex-direction: column; gap: 10px; padding: 30px 28px 32px; background: var(--bg); min-width: 0; }
.why-card svg { width: 26px; height: 26px; margin-bottom: 10px; fill: none; stroke: var(--blue-hi); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.why-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* who */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.who-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.who-n { margin-bottom: 26px; color: var(--blue-hi); font: 500 13px/1 var(--mono); }
.who-card p { margin: 0; color: var(--muted); font-size: 16px; }
.plans-note { margin: 22px 0 0; color: var(--faint); font-size: 13px; text-align: center; }

/* twelve inks */
.inkband { padding: 120px 0 0; }
.inkband-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; }
.ink-num {
  margin: 0; font: 600 clamp(160px, 26vw, 380px)/0.78 var(--display); letter-spacing: -0.07em;
  color: transparent; -webkit-text-stroke: 1.5px var(--num-stroke);
  text-shadow: 0 0 60px rgba(74, 108, 255, 0.25);
}
.ink-text h2 { margin-bottom: 20px; }
.ink-text p { margin: 0; max-width: 46ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
.ink-row { list-style: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin: 34px 0 0; padding: 0; }
.ink-row li {
  position: relative; aspect-ratio: 3 / 5; border-radius: 6px; background: var(--c);
  box-shadow: inset 0 0 0 1px var(--line-strong); cursor: default;
  transition: transform 0.25s var(--ease);
}
.ink-row li:hover, .ink-row li:focus-visible { transform: translateY(-10px); }
.ink-row li span {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); opacity: 0;
  padding: 4px 7px; border-radius: 6px; background: var(--raise-2); color: var(--text); white-space: nowrap;
  font: 500 11px/1 var(--mono); pointer-events: none; transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.ink-row li:hover span, .ink-row li:focus-visible span { opacity: 1; transform: translate(-50%, 0); }

/* separation: films are clickable */
.sep-hint { grid-column: 1 / -1; margin: 4px 0 0; color: var(--faint); font-size: 13px; }
.film { cursor: pointer; transition: opacity 0.2s var(--ease); }
.film canvas { transition: box-shadow 0.2s var(--ease), opacity 0.2s var(--ease); }
.film:hover canvas, .film:focus-visible canvas { box-shadow: 0 0 0 2px var(--blue), 0 0 22px var(--glow); }
.film.is-off { opacity: 0.35; }
.film:focus-visible { outline: none; }

/* example switch: thumbnails of the artwork */
.ex-switch { display: inline-flex; gap: 6px; }
.ex-switch button {
  width: 28px; height: 28px; padding: 0; border-radius: 7px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--raise); opacity: 0.55;
  transition: opacity 0.18s var(--ease), box-shadow 0.2s var(--ease), transform 0.18s var(--ease);
}
.ex-switch button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-switch button:hover { opacity: 0.9; }
.ex-switch button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--blue); }
.ex-switch-lg { gap: 10px; margin-top: 24px; }
.ex-switch-lg button { width: 64px; height: 64px; border-radius: 12px; }

/* modes gallery */
.gal-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: end; }
.gal-side p { margin: 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); max-width: 46ch; }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 14px; margin-top: 52px; align-items: start; }
.tile { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile canvas {
  width: 100%; height: auto; border-radius: 8px; background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s var(--ease);
}
.tile.is-busy canvas { opacity: 0.25; }
.tile:hover canvas { transform: translateY(-4px) scale(1.02); box-shadow: 0 0 0 1px var(--line-strong), 0 18px 40px var(--shadow); }
.tile figcaption { color: var(--muted); font-size: 13px; line-height: 1.35; }
.tile:first-child figcaption { color: var(--faint); }

/* idle demo: nothing processed yet, the artwork waits for a mode */
.demo-cta { display: none; }
.compare.is-idle { cursor: default; }
.compare.is-idle #cvOut, .compare.is-idle .compare-line, .compare.is-idle .compare-tag { display: none; }
.compare.is-idle .demo-cta {
  position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 40px);
  padding: 16px 22px; border-radius: 16px; text-align: center; pointer-events: none;
  background: var(--scrim); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(142, 162, 255, 0.45); box-shadow: 0 18px 50px var(--shadow), 0 0 40px var(--glow-soft);
  animation: cta-in 0.6s var(--ease) both;
}
.demo-cta-badge { padding: 4px 10px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; }
.demo-cta p { margin: 0; font: 500 17px/1.35 var(--display); letter-spacing: -0.01em; }
@keyframes cta-in { from { opacity: 0; transform: translate(-50%, 10px); } }
.chips.is-hint button { animation: chip-hint 2.4s var(--ease) infinite; }
.chips.is-hint button:nth-child(2) { animation-delay: 0.15s; } .chips.is-hint button:nth-child(3) { animation-delay: 0.3s; }
.chips.is-hint button:nth-child(4) { animation-delay: 0.45s; } .chips.is-hint button:nth-child(5) { animation-delay: 0.6s; }
@keyframes chip-hint { 0%, 70%, 100% { border-color: var(--line); box-shadow: none; } 35% { border-color: rgba(142, 162, 255, 0.75); box-shadow: 0 0 16px rgba(74, 108, 255, 0.3); } }

/* wide screens: headline and live demo share the first screen */
@media (min-width: 1180px) {
  .hero { padding-top: 40px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 52px; align-items: center; max-width: 1360px; }
  .ht-1, .ht-3 { font-size: clamp(48px, 5vw, 84px); }
  .ht-3 { margin-left: 0; }
  .ht-2 { margin: 0.3em 0 0.3em 0.1em; font-size: clamp(20px, 1.8vw, 28px); }
  .hero-row { margin-top: 34px; padding-left: 0; }
  .hero-copy .lead { font-size: 18px; }
  .hero-copy .cta-row { margin-top: 24px; }
  .hero .demo { margin: 0; }
  .demo-body { grid-template-columns: minmax(0, 1fr) 248px; }
  .compare { padding: 20px; }
  .cmp-art canvas { max-height: min(540px, calc(100vh - 210px)); }
  .demo-side { gap: 20px; padding: 20px 18px; }
}

.only-narrow { display: none; }

.ink-count-ends span { font-variant-numeric: tabular-nums; }

/* theme switch */
.theme-btn {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--ghost); color: var(--muted);
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.theme-btn:hover { color: var(--text); background: var(--ghost-hover); }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.theme-btn svg path { fill: currentColor; stroke: none; }

/* cost calculator */
.roi { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.roi-lead { margin: 22px 0 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 44ch; }
.roi-ctl { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.roi-ctl label, .roi-label { color: var(--muted); font-size: 14px; }
.roi-ctl output { font: 500 18px/1 var(--mono); color: var(--text); }
#roiCount { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; --p: 18%; }
#roiCount::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) 0, var(--blue-hi) var(--p), var(--raise-2) var(--p)); }
#roiCount::-moz-range-track { height: 5px; border-radius: 3px; background: var(--raise-2); }
#roiCount::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--blue); }
#roiCount::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 5px var(--glow-soft); }
#roiCount::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }
.roi-chips { display: flex; gap: 8px; }
.roi-chips button {
  height: 38px; min-width: 64px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: 500 15px/1 var(--mono);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.roi-chips button:hover { color: var(--text); border-color: var(--line-strong); }
.roi-chips button[aria-pressed="true"] { color: var(--chip-on); border-color: var(--blue); background: var(--glow-soft); }
.roi-card { padding: 30px; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 30px 80px var(--shadow); }
.roi-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.roi-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; }
.roi-bars span { color: var(--muted); font-size: 15px; }
.roi-bars b { font: 500 15px/1 var(--mono); color: var(--text); white-space: nowrap; }
.roi-bars i {
  grid-column: 1 / -1; grid-row: 2; height: 10px; border-radius: 5px; background: var(--raise-2); position: relative; overflow: hidden;
}
.roi-bars i::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: 5px; background: var(--faint);
  transition: width 0.45s var(--ease);
}
.roi-bars li.is-us span { color: var(--text); font-weight: 600; }
.roi-bars li.is-us i::after { background: linear-gradient(90deg, var(--blue), var(--blue-hi)); box-shadow: 0 0 14px var(--glow); }
.roi-save { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.roi-save span { color: var(--muted); font-size: 15px; }
.roi-save strong { grid-row: 1 / 3; grid-column: 2; justify-self: end; font: 600 clamp(36px, 4vw, 52px)/1 var(--display); letter-spacing: -0.03em; color: var(--blue-hi); }
.roi-save small { color: var(--faint); font-size: 13px; }
.roi-note { margin: 22px 0 0; color: var(--faint); font-size: 12px; line-height: 1.5; }

/* pricing: billing switch, trust row */
.pricing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.billing { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--ghost); }
.billing button {
  height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  color: var(--muted); font: 500 14px/1 var(--sans); display: inline-flex; align-items: center; gap: 8px;
}
.billing button[aria-pressed="true"] { background: var(--raise-2); color: var(--text); }
.billing em { font-style: normal; padding: 3px 7px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; }
.price-y { display: none; }
.bill-y .price-m { display: none; }
.bill-y .price-y { display: flex; }
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 30px 0 0; padding: 0; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; fill: none; stroke: var(--blue-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* call to action after the gallery */
.try-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  margin-top: 40px; padding: 26px 30px; border-radius: 20px; border: 1px solid var(--line-strong);
  background: radial-gradient(80% 140% at 0% 50%, var(--glow-soft), transparent 70%), var(--surface);
}
.try-title { margin: 0; font: 600 clamp(20px, 2vw, 26px)/1.2 var(--display); letter-spacing: -0.02em; }
.try-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* sticky call to action */
.sticky-cta {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; align-items: center; gap: 18px; max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 20px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--scrim); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 50px var(--shadow);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.sticky-cta.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.sticky-cta span { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* ---------- free tool pages ---------- */
.tool-hero { padding: 72px 0 8px; }
.tool-h1 { font-size: clamp(42px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.05em; }
.tool-lead { margin: 24px 0 0; max-width: 62ch; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.tool-wrap { padding-top: 40px; }
.tool-wrap .demo { margin: 0; max-width: none; }
.tool .demo-body { grid-template-columns: minmax(0, 1fr) 300px; }
.tool .cmp-art canvas { max-height: min(640px, calc(100vh - 200px)); }
.tool .compare { min-height: 420px; }
.tool-ctls { display: flex; flex-direction: column; gap: 20px; }
.tool-out { display: flex; flex-direction: column; gap: 16px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.tool .demo-side { gap: 20px; }
.tool-up {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--ghost); color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap;
}
.tool-up:hover { background: var(--ghost-hover); }
.tool-up svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chips.chips-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips.chips-3 button { height: 34px; font-size: 12.5px; padding: 0 4px; }
.ctl-inline { flex-direction: row; align-items: center; justify-content: space-between; }
input[type="range"].rng { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; --p: 50%; }
.rng::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) 0, var(--blue-hi) var(--p), var(--raise-2) var(--p)); }
.rng::-moz-range-track { height: 5px; border-radius: 3px; background: var(--raise-2); }
.rng::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--blue); }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 4px var(--glow-soft); }
.rng::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
.sw2 { position: relative; width: 38px; height: 22px; flex: none; }
.sw2 input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.sw2 i { position: absolute; inset: 0; border-radius: 11px; background: var(--raise-2); transition: background 0.2s var(--ease); }
.sw2 i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); transition: transform 0.2s var(--ease); }
.sw2 input:checked + i { background: var(--blue); }
.sw2 input:checked + i::after { transform: translateX(16px); }
.sw2 input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }
.seg2 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; gap: 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--ghost); }
.seg2 button { height: 30px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; color: var(--muted); font: 500 12.5px/1 var(--sans); }
.seg2 button[aria-pressed="true"] { background: var(--raise-2); color: var(--text); }
.ink-pick {
  position: relative; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; cursor: pointer; border: 1px solid var(--line-strong);
  background: conic-gradient(#e2574c, #e8c33b, #5fb36a, #3f78c9, #9a59c2, #e2574c);
}
.ink-pick[data-on] { background: var(--c); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--blue); }
.ink-pick input { position: absolute; inset: -8px; width: 44px; height: 44px; opacity: 0; cursor: pointer; }
.paper-pick { width: 100%; height: 32px; margin-top: 8px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
#cvOut.is-clear { background: repeating-conic-gradient(#d9d9d9 0 25%, #f4f4f4 0 50%) 0 0 / 16px 16px; }
.tool-more { margin: 18px 0 0; color: var(--muted); font-size: 15px; text-align: center; }
.tool-more a { color: var(--blue-hi); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }
.who.uses { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-links-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
.tool-link {
  display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.tool-link:hover { border-color: var(--blue); transform: translateY(-3px); }
.tool-link b { font: 600 20px/1.2 var(--display); letter-spacing: -0.02em; color: var(--text); }
.tool-link span { color: var(--muted); font-size: 15px; }
.final-p { margin: 18px auto 0; max-width: 52ch; color: var(--muted); font-size: 18px; }
.foot-link { color: var(--muted); text-decoration: none; }
.foot-link:hover { color: var(--text); }
.toast-s {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 11px 16px; border-radius: 12px;
  background: var(--raise); color: var(--text); border: 1px solid var(--line-strong); box-shadow: 0 16px 40px var(--shadow); font-size: 14px;
}
.nav-links a[aria-current="page"] { color: var(--text); }

/* big section switch: separation, halftone, dither */
.sw-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 34px; }
.sw-tab {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px 12px;
  padding: 14px 18px; border-radius: 14px; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.sw-tab:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.sw-n { grid-row: 1 / 3; color: var(--faint); font: 500 13px/1 var(--mono); }
.sw-tab b { font: 600 clamp(17px, 1.6vw, 21px)/1.2 var(--display); letter-spacing: -0.02em; }
.sw-tab small { grid-column: 2; color: var(--muted); font-size: 13px; }
.sw-tab[aria-current="page"] { border-color: var(--blue); background: linear-gradient(180deg, var(--glow-soft), var(--surface)); box-shadow: 0 0 0 3px var(--glow-soft), 0 10px 30px var(--glow-soft); }
.sw-tab[aria-current="page"] .sw-n { color: var(--blue-hi); }
.tool-hero .sw-bar { margin-bottom: 44px; }

/* halftone and dither sections on the home page */
.sc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.showcase.is-flip .sc-text { order: 2; }
.sc-p { margin: 24px 0 0; max-width: 48ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; }
.sc-try { display: flex; flex-direction: column; gap: 10px; margin: 28px 0 30px; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-chips button { padding: 0 14px; }
.sc-vis { position: relative; display: grid; place-items: center; }
.sc-vis::before { content: ""; position: absolute; inset: 8% 6%; background: radial-gradient(closest-side, var(--glow-soft), transparent); filter: blur(30px); }
.sc-vis canvas { position: relative; width: 100%; max-width: 560px; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 30px 70px var(--shadow); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-in { gap: 12px; }
  .lang { margin-left: auto; }
  .theme-btn { order: 3; }
}
@media (max-width: 960px) {
  .sc { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .showcase.is-flip .sc-text { order: 0; }
  .tool .demo-body { grid-template-columns: minmax(0, 1fr); }
  .tool .compare { min-height: 0; }
  .who.uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-links { grid-template-columns: minmax(0, 1fr); }
  .roi { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .gal-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-row { margin-top: 40px; padding-left: 0; }
  .ht-2 { margin-left: 18%; }
  .inkband-in { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ink-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sep { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .nav-in { justify-content: space-between; }
  .demo-body { grid-template-columns: minmax(0, 1fr); }
  .compare { border-right: 0; border-bottom: 1px solid var(--line); }
  .bento, .steps, .plans, .who, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { gap: 36px; }
  .faq-head { position: static; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-wide { grid-column: auto; flex-direction: column; align-items: stretch; gap: 22px; }
  .card-text { flex: none; }
  .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
}
@media (max-width: 560px) {
  .sw-bar { gap: 6px; margin-bottom: 24px; }
  .sw-tab { grid-template-columns: minmax(0, 1fr); padding: 10px 10px; gap: 2px; }
  .sw-n, .sw-tab small { display: none; }
  .sw-tab b { font-size: 14px; }
  .who.uses { grid-template-columns: minmax(0, 1fr); }
  .tool-hero { padding-top: 44px; }
  .tool .demo-bar { flex-wrap: wrap; height: auto; padding: 10px 14px; row-gap: 8px; }
  .sticky-cta span { display: none; }
  .sticky-cta { padding: 6px; }
  .roi-card { padding: 22px; }
  .roi-chips button { min-width: 0; flex: 1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-switch-lg button { width: 54px; height: 54px; }
  .faq summary { grid-template-columns: 32px minmax(0, 1fr) 18px; }
  .faq-a { padding: 0 0 24px 44px; }
  .hero { padding-top: 48px; }
  .ht-2 { margin-left: 0; }
  .ht-3 { margin-left: 0; }
  .inkband { padding-top: 88px; }
  .why { grid-template-columns: minmax(0, 1fr); }
  .nav-cta { display: none; }
  .sep-vis { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .films { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 56px; }
  .demo { margin-top: 44px; border-radius: 16px; }
  .compare { padding: 16px; }
  .cmp-art canvas { max-height: 420px; }
  .demo-title { display: none; }
  .cta-row .btn { width: 100%; }
  .section { padding-top: 96px; }
  .foot-in { flex-wrap: wrap; height: auto; padding-block: 22px; gap: 10px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-cta { transition: none; }
  .chips.is-hint button, .compare.is-idle .demo-cta { animation: none; }
  .faq details[open] .faq-a { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
