/* Dovito AI Lab. Tokens follow dovito.com v3 (feat/apply-v3-design, 2026-10-28):
   light-first paper ground, jet in dark mode, navy buttons in both modes. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght.woff2') format('woff2');
}

:root {
  --jet: #0C0C0F;
  --paper: #F4F3EE;
  --dot-blue: #2840F0;
  --navy: #1a365d;
  --navy-dark: #0f2744;
  --ember: #E8620A;
  --sage: #2E7D52;
  --amber: #D4970A;

  --bg: #F4F3EE;
  --surface: #FFFFFF;
  --surface-2: #EDEEF1;
  --ink: #0C0C0F;
  --ink-2: #1F2430;
  --ink-3: #55606F;
  --rule: rgba(12, 12, 15, 0.12);
  --glass: rgba(255, 255, 255, 0.78);
  --btn-bg: #1a365d;
  --btn-ink: #F4F3EE;
  --ghost-edge: rgba(12, 12, 15, 0.2);
  --ground-rgb: 244, 243, 238;
  --shadow: 0 30px 60px -24px rgba(12, 12, 15, 0.28);
  color-scheme: light;
}

.dark {
  --bg: #0C0C0F;
  --surface: #14161C;
  --surface-2: #1A1D24;
  --ink: #F4F3EE;
  --ink-2: #E2E8F0;
  --ink-3: #94A3B8;
  --rule: rgba(255, 255, 255, 0.1);
  --glass: rgba(0, 0, 0, 0.4);
  --btn-bg: #F4F3EE;
  --btn-ink: #0C0C0F;
  --ghost-edge: rgba(255, 255, 255, 0.24);
  --ground-rgb: 12, 12, 15;
  --shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* Always-dark surfaces (hero tiles, CTA band in dark mode). */
.on-dark {
  --ink: #F4F3EE;
  --ink-2: #E2E8F0;
  --ink-3: #94A3B8;
  --rule: rgba(255, 255, 255, 0.12);
  --btn-bg: #F4F3EE;
  --btn-ink: #0C0C0F;
  --ghost-edge: rgba(255, 255, 255, 0.28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* Theme-specific images: the one not in use never shows. */
.only-dark { display: none !important; }
.dark .only-dark { display: block !important; }
.dark .only-light { display: none !important; }

/* Nav: glass pill, top on desktop, bottom on phones (as dovito.com). */
.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  padding: 14px 24px;
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}
.nav-inner {
  max-width: 1232px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--rule);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
/* Lockup: the wordmark, then the Systematics AI mark as the second word ("Dovito ai").
   The mark's viewBox is cropped to its ink so its base sits on the wordmark baseline. */
.brand { display: inline-flex; align-items: flex-start; gap: 5px; text-decoration: none; color: var(--ink); }
.brand .wordmark { height: 26px; width: auto; }
.brand .ai-mark { width: auto; height: 23px; margin-top: 1px; }
.ai-mark { width: 22px; height: 22px; color: var(--mark); }
:root { --mark: #2840F0; }
.dark, .on-dark { --mark: #7d8cff; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--ink-3); padding: 8px 12px; border-radius: 999px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--rule); }
.nav .btn { height: 40px; padding: 0 18px; font-size: 13px; }
@media (max-width: 767px) {
  .nav { top: auto; bottom: 12px; padding: 0 12px; }
  .nav-links { display: none; }
  .nav-inner { padding: 8px 8px 8px 16px; gap: 10px; }
  .brand { gap: 4px; }
  .brand .wordmark { height: 20px; }
  .brand .ai-mark { height: 17.7px; margin-top: 0.8px; }
  .nav .btn { height: 38px; padding: 0 14px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px; border-radius: 8px;
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-ink);
  transition: opacity 0.2s, background-color 0.2s, border-color 0.2s;
}
.btn:hover { opacity: 0.88; }
.btn-navy { background: var(--navy); color: #F4F3EE; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ghost-edge); }
.btn-ghost:hover { border-color: var(--ink); opacity: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .btn-row .btn { flex: 1 1 100%; } }

/* Overline */
.overline {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 20px;
}
.overline::before { content: ""; width: 20px; height: 1px; background: currentColor; }

/* Home hero, open layout: painting top right on the page ground. */
.hero-open {
  position: relative; overflow: hidden;
  min-height: min(100vh, 900px);
  display: flex; align-items: flex-end;
}
.hero-open .art { position: absolute; right: 0; top: 0; height: 100%; width: 64vw; object-fit: cover; object-position: right top; pointer-events: none; }
.hero-open .art.only-light { mix-blend-mode: multiply; transform: scaleX(-1); object-position: left top; width: 54vw; }
.hero-open .art.only-dark { mix-blend-mode: lighten; object-fit: contain; width: 52vw; }
.hero-open .wash {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(var(--ground-rgb)) 0%, rgba(var(--ground-rgb), 0.94) 42%, rgba(var(--ground-rgb), 0) 66%),
    linear-gradient(to top, rgb(var(--ground-rgb)) 0%, rgba(var(--ground-rgb), 0) 24%);
}
.hero-open .copy { position: relative; z-index: 1; padding: 140px 0 96px; max-width: min(720px, 50vw); }
.hero-open h1 { font-size: clamp(38px, 6vw, 80px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.hero-open .sub { margin-top: 22px; font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-3); max-width: 600px; line-height: 1.6; }
.hero-open .btn-row { margin-top: 34px; }
@media (max-width: 1023px) {
  .hero-open { min-height: auto; }
  .hero-open .art, .hero-open .art.only-light, .hero-open .art.only-dark { width: 100%; height: 58%; }
  .hero-open .wash { background-image: linear-gradient(to top, rgb(var(--ground-rgb)) 0%, rgba(var(--ground-rgb), 0.92) 46%, rgba(var(--ground-rgb), 0) 72%); }
  .hero-open .copy { padding: 300px 0 64px; max-width: none; }
}

.rise { animation: rise 0.7s cubic-bezier(0.33, 1, 0.68, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
section.block { padding: 112px 0; }
section.block.tight { padding: 72px 0; }
.block + .block { border-top: 1px solid var(--rule); }
.head { max-width: 720px; margin-bottom: 56px; }
.head h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.head p { margin-top: 16px; font-size: 18px; color: var(--ink-3); }
@media (max-width: 600px) { section.block { padding: 80px 0; } .head { margin-bottom: 40px; } }

/* Pipeline */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px;
  padding: 28px 24px 26px; display: flex; flex-direction: column; gap: 12px;
}
.step .num { font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 20px; letter-spacing: -0.015em; }
.step p { font-size: 15px; color: var(--ink-3); }
.gate {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: rgba(46, 125, 82, 0.12); color: var(--sage);
}
.dark .gate { background: rgba(46, 125, 82, 0.22); color: #6fcf97; }
.gate svg { width: 13px; height: 13px; }
.stages { display: flex; flex-wrap: wrap; gap: 6px; }
.stages span { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Tool cards */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 24px; overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.25s;
}
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tool .shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--surface-2); }
.tool .shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.tool .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tool h3 { font-size: 22px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.tool p { font-size: 15px; color: var(--ink-3); }
.tool .more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pill { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--ghost-edge); color: var(--ink-3); }
.tool.next { border-style: dashed; background: transparent; justify-content: center; }
.tool.next .shot { display: grid; place-items: center; border-bottom-style: dashed; background: transparent; }
.tool.next .shot .ai-mark { width: 64px; height: 64px; }
.tool.next .shot[data-morph] { position: relative; }
.tool.next .shot.has-morph > [data-ai-mark] { visibility: hidden; }

/* Ai ribbon morph (morph.js): the intro out of the nav mark and the "Your idea" card. */
.morph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-stage { position: fixed; inset: 0; z-index: 51; pointer-events: none; }
.intro .nav .brand .ai-mark { visibility: hidden; }
@media (max-width: 960px) { .tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tools { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; max-width: 920px; }
.plan { color: var(--ink-2); background: var(--surface); border: 1px solid var(--rule); border-radius: 24px; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.plan-main { background: var(--navy); border-color: var(--navy); }
.plan .name { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.plan .price { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.plan .price small { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.plan ul { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--sage); }
.plan-main li svg { color: #6fcf97; }
.plan .btn { margin-top: auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Idea form */
.drop { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.form { background: var(--surface); border: 1px solid var(--rule); border-radius: 24px; padding: 32px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule); border-radius: 10px; padding: 13px 14px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--dot-blue); outline-offset: 1px; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .note { font-size: 13px; color: var(--ink-3); }
.done { display: none; gap: 16px; }
.fields { display: grid; gap: 18px; }
.form.sent .fields { display: none; }
.form.sent .done { display: grid; }
.track { display: grid; gap: 0; margin-top: 4px; }
.track li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.track li:first-child { border-top: 0; }
.track .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ghost-edge); justify-self: center; }
.track .now .dot { border-color: var(--dot-blue); background: var(--dot-blue); box-shadow: 0 0 0 5px rgba(40, 64, 240, 0.18); }
.track .state { font-size: 12px; color: var(--ink-3); }
.track ol, ol.track { list-style: none; margin: 0; padding: 0; }
.drop-side p { color: var(--ink-3); margin-top: 16px; font-size: 17px; }
.drop-side .facts { margin-top: 28px; display: grid; gap: 14px; }
.drop-side .facts div { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); }
.drop-side .facts b { color: var(--ink); }
@media (max-width: 860px) { .drop { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } .form { padding: 22px; } }

/* Hero tile (product pages): an inset dark panel with the painting. */
.tile-wrap { padding: 96px 24px 0; }
@media (max-width: 767px) { .tile-wrap { padding: 16px 12px 0; } }
.tile {
  position: relative; overflow: hidden; border-radius: 32px;
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: flex-end; min-height: min(620px, calc(100vh - 128px));
}
.dark .tile { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.tile .art {
  position: absolute; right: 0; top: 0; height: 100%; width: 55%; object-fit: contain; object-position: right center;
  mix-blend-mode: lighten; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%);
  mask-image: linear-gradient(to right, transparent 0, #000 18%);
}
.tile .copy { position: relative; z-index: 1; padding: 56px; max-width: 58%; }
.tile h1 { font-size: clamp(34px, 5vw, 68px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; }
.tile .sub { margin-top: 18px; font-size: clamp(16px, 2vw, 19px); color: var(--ink-3); max-width: 560px; }
.tile .btn-row { margin-top: 30px; }
@media (max-width: 767px) {
  .tile { border-radius: 24px; flex-direction: column; align-items: stretch; min-height: 0; }
  .tile .art { position: relative; width: 100%; height: 240px; object-position: center; -webkit-mask-image: none; mask-image: none; }
  .tile .copy { max-width: none; padding: 4px 24px 36px; }
}

/* Frames, after dkcoleman.com/health (Matthew's Feature Image Capture SOP). */
.browser { overflow: hidden; border-radius: 14px; border: 1px solid var(--rule); background: var(--surface); box-shadow: var(--shadow); }
.browser .bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--rule); background: var(--surface-2); }
.browser .lights { display: flex; gap: 6px; }
.browser .lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.browser .lights i:nth-child(2) { background: #febc2e; }
.browser .lights i:nth-child(3) { background: #28c840; }
.browser .url { margin: 0 auto; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--ink-3); background: var(--bg); padding: 3px 14px; border-radius: 6px; }
.browser .bar::after { content: ""; width: 42px; }

.phone { container-type: inline-size; }
.phone .metal { border-radius: 16.4cqw; padding: 0.6cqw; background: linear-gradient(145deg, #e6e8eb, #a3a7ad 28%, #dfe1e4 52%, #8f9399 78%, #d3d6da); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45); }
.dark .phone .metal { background: linear-gradient(145deg, #5b5f65, #2c2f33 30%, #4a4e54 55%, #24272a 80%, #43474c); }
.phone .bezel { border-radius: 15.8cqw; background: #000; padding: 2.3cqw; }
.phone .screen { position: relative; overflow: hidden; border-radius: 13.6cqw; background: var(--bg); }
.phone .status { position: relative; aspect-ratio: 402 / 54; display: flex; align-items: center; justify-content: space-between; padding: 1cqw 7.6cqw 0 9.2cqw; font-size: 3.9cqw; font-weight: 600; color: var(--ink); }
.phone .island { position: absolute; left: 50%; top: 20.4%; height: 68.5%; width: 31.3%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone .icons { display: flex; gap: 1.3cqw; align-items: center; }
.phone .icons svg { height: 2.7cqw; width: auto; fill: currentColor; }

.duo { position: relative; padding: 0 6% 12% 0; }
.duo .phone { position: absolute; right: 0; bottom: 0; width: 22%; }
@media (max-width: 767px) { .duo { padding: 0 4% 18% 0; } .duo .phone { width: 34%; } }
.showcase { padding: 64px 24px 0; max-width: 1248px; margin: 0 auto; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip .text { order: 2; }
.feature .text h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.feature .text p { margin-top: 16px; color: var(--ink-3); font-size: 17px; }
.feature .eyebrow { font-size: 14px; font-weight: 600; color: var(--dot-blue); margin-bottom: 12px; }
.dark .feature .eyebrow { color: #8c9aff; }
.feature .phones { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 520px; margin: 0 auto; align-items: start; }
.feature .phones .phone:last-child { margin-top: 56px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .text { order: 0; }
  .feature + .feature { margin-top: 80px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { font-size: 14px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); color: var(--ink-2); }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; }
.mini h3 { font-size: 17px; margin-bottom: 6px; }
.mini p { font-size: 14px; color: var(--ink-3); }
@media (max-width: 900px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .grid4 { grid-template-columns: 1fr; } }

/* CTA band: light in light mode, jet in dark (adaptive, as dovito.com). */
.cta { text-align: center; padding: 112px 0; border-top: 1px solid var(--rule); }
.cta h2 { font-size: clamp(32px, 4vw, 60px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.cta p { margin: 16px auto 32px; max-width: 34em; font-size: 19px; color: var(--ink-3); }
.cta .btn-row { justify-content: center; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 48px 0 120px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.foot .links a { text-decoration: none; color: var(--ink-3); }
.foot .links a:hover { color: var(--ink); }
.foot .legal { margin-top: 28px; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.theme-ctl { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--rule); }
.theme-ctl button { font: inherit; font-size: 12px; font-weight: 600; border: 0; background: transparent; color: var(--ink-3); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.theme-ctl button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
@media (min-width: 768px) { .foot { padding-bottom: 48px; } }

.review-flag {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ember); color: #fff; padding: 6px 10px; border-radius: 6px;
}
@media (max-width: 767px) { .review-flag { top: 12px; bottom: auto; left: auto; right: 12px; } }

/* Map, build, run */
.steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps.steps-3 { grid-template-columns: 1fr; } }
.text-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.checkout-note { font-size: 13px; color: var(--ink-3); margin-top: -4px; }

/* Idea form (board.js) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 14px; color: var(--ember); }
.done-title { font-size: 26px; letter-spacing: -0.02em; }
.done-copy { color: var(--ink-3); }
.related { display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.related p { margin: 0; }
.related a { color: var(--ink); font-weight: 600; }
.similar { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.similar li { display: flex; align-items: center; gap: 10px; }
.similar em { font-style: normal; font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.similar .vote { flex-direction: row; min-width: 0; height: 30px; padding: 0 10px; gap: 4px; }

/* Board */
.tile.tile-short { min-height: min(440px, calc(100vh - 128px)); }
.board-section { padding-top: 64px; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.board-side { position: sticky; top: 104px; display: grid; gap: 14px; }
.board-side h2 { font-size: 28px; letter-spacing: -0.02em; }
.board-side > p { color: var(--ink-3); font-size: 15px; }
.board-bar { display: grid; gap: 14px; margin-bottom: 20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink-3);
}
.tabs button small { font-size: 12px; font-weight: 500; margin-left: 4px; color: var(--ink-3); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tabs button[aria-pressed="true"] small { color: inherit; opacity: 0.7; }
.board-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.board-tools input, .board-tools select, .review-actions select, .admin-login input {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px;
}
.board-tools input { flex: 1 1 220px; }
.ideas { display: grid; gap: 12px; }
.idea { display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 18px; }
.idea h3 { font-size: 18px; letter-spacing: -0.01em; }
.idea-text { margin-top: 6px; font-size: 15px; color: var(--ink-3); white-space: pre-line; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.idea-text.open { display: block; }
.idea-meta { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--ink-3); }
.vote {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 56px; height: 64px; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--ink-2);
  background: transparent; border: 1px solid var(--rule);
}
.vote svg { width: 14px; height: 14px; }
.vote:hover { border-color: var(--ink-3); }
.vote[aria-pressed="true"] { background: var(--mark); border-color: var(--mark); color: #fff; }
.dark .vote[aria-pressed="true"] { color: #0C0C0F; }
.vote:disabled { opacity: 0.6; }
.stage-pill { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.stage-pill.s-planned { background: rgba(212, 151, 10, 0.16); color: #9a6c00; }
.stage-pill.s-building { background: rgba(40, 64, 240, 0.12); color: var(--dot-blue); }
.stage-pill.s-shipped { background: rgba(46, 125, 82, 0.14); color: var(--sage); }
.dark .stage-pill.s-planned { color: #f0c048; }
.dark .stage-pill.s-building { color: #8c9aff; }
.dark .stage-pill.s-shipped { color: #6fcf97; }
.proj { font-weight: 600; color: var(--ink); text-decoration: none; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--rule); }
.proj:hover { border-color: var(--ink-3); }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-3); border: 1px dashed var(--rule); border-radius: 18px; }
.flash {
  position: fixed; left: 50%; bottom: 96px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); font-size: 14px; padding: 10px 16px; border-radius: 10px; max-width: calc(100% - 32px);
  transition: opacity 0.2s, transform 0.2s;
}
.flash.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 960px) {
  .board-grid { grid-template-columns: 1fr; }
  .board-side { position: static; }
}
@media (max-width: 480px) { .idea { grid-template-columns: 48px 1fr; gap: 12px; padding: 14px; } .vote { min-width: 48px; } }

/* Welcome and review queue */
.welcome, .admin { padding-top: 160px; }
.welcome h1, .admin h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1.06; }
.welcome .head p { margin-top: 16px; font-size: 18px; color: var(--ink-3); }
.admin-login { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; max-width: 560px; }
.admin-login label { width: 100%; font-weight: 600; font-size: 14px; color: var(--ink); }
.admin-login input { flex: 1 1 240px; }
.admin-queue { display: grid; gap: 20px; }
.review { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 20px; display: grid; gap: 8px; }
.review + .review { margin-top: 12px; }
.review h3 { font-size: 19px; }
.review-text { white-space: pre-line; color: var(--ink-2); }
.review-meta, .review-hint { font-size: 13px; color: var(--ink-3); }
.review-meta a { color: inherit; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.review-actions .btn { height: 42px; padding: 0 18px; }
