/* tablelit.com — shared styles. Tokens first, then layout, then components. */
:root {
  --bg: #F3F4F1; --surface: #FFFFFF; --sunken: #EBECE7; --soft: #F7F8F6;
  --ink: #15171A; --ink-2: #2A2E34; --ink-3: #3D424A; --muted: #5A606A;
  --line: #DADDE2; --line-2: #ECEEF1; --line-strong: #C9CDD4; --dash: #B9BEC6;
  --link-hover: #1D4ED8;
  --idea: #D97706; --idea-ink: #8A4205; --idea-bg: #FBEEDC; --idea-stripe-a: #F1E7DA; --idea-stripe-b: #EADCC9; --idea-track: #F1DCC0;
  --build: #1D4ED8; --build-ink: #1A3FAF; --build-bg: #E5ECFB; --build-soft: #F3F5FA; --build-dash: #A9B6D6;
  --launch: #047857; --launch-ink: #035E44; --launch-bg: #E6F4EE; --launch-soft: #F1F8F4; --launch-dash: #9CC9B5;
  --invert-bg: #15171A; --invert-ink: #FFFFFF; --invert-muted: #C7CBD2;
  --logo-bg: #15171A; --logo-ink: #F3F4F1;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'PingFang SC', 'Noto Sans CJK SC', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111315; --surface: #1A1D21; --sunken: #16191C; --soft: #1F2327;
    --ink: #F1F2EF; --ink-2: #DDE0E4; --ink-3: #C3C8CF; --muted: #9AA1AB;
    --line: #2C3137; --line-2: #262A30; --line-strong: #3A4048; --dash: #4A515A;
    --link-hover: #8AB0FF;
    --idea: #F59E0B; --idea-ink: #FBBF6A; --idea-bg: #3A2A12; --idea-stripe-a: #2A2318; --idea-stripe-b: #322A1D; --idea-track: #4A3A22;
    --build: #6E95F7; --build-ink: #A9C1FF; --build-bg: #1C2742; --build-soft: #182033; --build-dash: #3A4C78;
    --launch: #34D399; --launch-ink: #7EE2B8; --launch-bg: #143128; --launch-soft: #132821; --launch-dash: #2E5E4B;
    --invert-bg: #F1F2EF; --invert-ink: #15171A; --invert-muted: #4A5059;
    --logo-bg: #F1F2EF; --logo-ink: #15171A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111315; --surface: #1A1D21; --sunken: #16191C; --soft: #1F2327;
  --ink: #F1F2EF; --ink-2: #DDE0E4; --ink-3: #C3C8CF; --muted: #9AA1AB;
  --line: #2C3137; --line-2: #262A30; --line-strong: #3A4048; --dash: #4A515A;
  --link-hover: #8AB0FF;
  --idea: #F59E0B; --idea-ink: #FBBF6A; --idea-bg: #3A2A12; --idea-stripe-a: #2A2318; --idea-stripe-b: #322A1D; --idea-track: #4A3A22;
  --build: #6E95F7; --build-ink: #A9C1FF; --build-bg: #1C2742; --build-soft: #182033; --build-dash: #3A4C78;
  --launch: #34D399; --launch-ink: #7EE2B8; --launch-bg: #143128; --launch-soft: #132821; --launch-dash: #2E5E4B;
  --invert-bg: #F1F2EF; --invert-ink: #15171A; --invert-muted: #4A5059;
  --logo-bg: #F1F2EF; --logo-ink: #15171A;
  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-family: var(--font-body); font-size: 16px; line-height: 1.55; }
a { color: var(--ink); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--link-hover); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { flex-shrink: 0; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.logo-bg { fill: var(--logo-bg); } .logo-ink { fill: var(--logo-ink); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; flex-grow: 1; }
.main-nav a { padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.main-nav a[aria-current="page"] { background: var(--surface); font-weight: 600; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 14px; }
.lang a { padding: 10px 12px; text-decoration: none; background: var(--surface); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--bg); font-weight: 600; }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 1px solid transparent; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { color: var(--bg); opacity: 0.9; }
.btn-light { background: var(--surface); border-color: var(--line-strong); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-block; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }
.chip-lg { font-size: 13px; padding: 4px 10px; background: var(--surface); }
.chip-idea { background: var(--idea-bg); color: var(--idea-ink); border-color: transparent; font-weight: 600; }
.chip-building { background: var(--build-bg); color: var(--build-ink); border-color: transparent; font-weight: 600; }
.chip-launched { background: var(--launch-bg); color: var(--launch-ink); border-color: transparent; font-weight: 600; }
.chip-news { background: var(--line-2); color: var(--ink-3); border-color: transparent; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot-idea { background: var(--idea); } .dot-building { background: var(--build); } .dot-launched { background: var(--launch); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; }
.hero-main { flex: 999 1 560px; min-width: 0; }
.eyebrow { margin: 0 0 16px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.03em; }
.lead { margin: 20px 0 32px; max-width: 580px; font-size: 19px; color: var(--ink-3); }
.stats { flex: 1 1 300px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-family: var(--font-display); font-size: 32px; line-height: 1.2; }
.stat span { font-size: 14px; color: var(--muted); }
.stat-idea b { color: var(--idea-ink); } .stat-building b { color: var(--build); } .stat-launched b { color: var(--launch); }

/* Sections */
.section { padding-bottom: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; }
.section-title .count { font-family: var(--font-mono); font-size: 15px; font-weight: 400; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.filters button { min-height: 44px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }

/* Idea cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card:hover { color: var(--ink); border-color: var(--line-strong); }
.card[hidden] { display: none; }
.thumb { position: relative; height: 150px; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--idea-stripe-a) 0 12px, var(--idea-stripe-b) 12px 24px); }
.thumb .name { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--idea-ink); opacity: 0.55; letter-spacing: -0.02em; }
.thumb .tag { position: absolute; left: 10px; bottom: 10px; font-family: var(--font-mono); font-size: 12px; background: var(--surface); padding: 2px 6px; border-radius: 4px; color: var(--ink-3); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.card-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.card-text { margin: 0; font-size: 15px; color: var(--ink-3); flex-grow: 1; }
.card-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.card-add { justify-content: center; gap: 8px; border: 1px dashed var(--dash); background: transparent; padding: 24px; min-height: 200px; }
.card-add .card-title { margin: 0; }

/* Vote */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.vote { display: flex; flex-wrap: wrap; gap: 32px; }
.vote-intro { flex: 1 1 280px; }
.vote-intro h2 { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; margin-bottom: 10px; }
.vote-intro p { margin: 0 0 20px; color: var(--ink-3); }
.vote-list { flex: 2 1 420px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; counter-reset: v; }
.vote-list a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; text-decoration: none; font-weight: 600; }
.vote-list a::before { counter-increment: v; content: counter(v); font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--muted); }

/* Lanes */
.lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; padding-bottom: 64px; }
.lane { background: var(--sunken); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.lane-head { display: flex; align-items: center; justify-content: space-between; }
.lane-head h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; }
.lane p { margin: 0; color: var(--ink-3); }
.will { border: 1px dashed var(--build-dash); background: var(--build-soft); border-radius: 12px; padding: 16px; }
.will-launched { border-color: var(--launch-dash); background: var(--launch-soft); }
.will b { display: block; font-size: 13px; color: var(--build-ink); margin-bottom: 8px; }
.will-launched b { color: var(--launch-ink); }
.will ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-3); display: grid; gap: 4px; }
.lane .card { background: var(--surface); }

/* Updates */
.updates { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.updates .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 40px; }
.updates-intro { flex: 1 1 280px; }
.updates-intro h2 { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; margin-bottom: 8px; }
.updates-intro p { margin: 0; color: var(--muted); }
.update-list { flex: 999 1 560px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.update-list li { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.update-list li:last-child { border-bottom: 0; }
.update-list time { font-family: var(--font-mono); font-size: 13px; color: var(--muted); width: 96px; }
.update-list .text { flex: 1 1 280px; }

/* Idea CTA */
.cta { padding-top: 64px; padding-bottom: 64px; }
.cta-box { background: var(--invert-bg); color: var(--invert-ink); border-radius: 20px; padding: 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-box h2 { font-family: var(--font-display); font-size: 36px; letter-spacing: -0.02em; margin-bottom: 10px; }
.cta-box p { margin: 0; color: var(--invert-muted); font-size: 17px; }
.cta-box > div { flex: 1 1 420px; }
.btn-invert { background: var(--invert-ink); color: var(--invert-bg); }
.btn-invert:hover { color: var(--invert-bg); opacity: 0.9; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.foot-top { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; padding-bottom: 28px; }
.foot-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.foot-brand p { margin: 0; font-size: 15px; color: var(--ink-3); }
.follow { flex: 0 1 auto; }
.follow h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.follow ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.follow a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); transition: color .15s, border-color .15s, background-color .15s, transform .15s; }
.follow a:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line-2); }
.foot-bottom a { color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .follow a { transition: none; } .follow a:hover { transform: none; } }

/* App page */
.app-head { padding-top: 40px; padding-bottom: 32px; }
.back { font-size: 14px; color: var(--muted); }
.app-title-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; margin-top: 16px; }
.app-title-row > div:first-child { flex: 999 1 560px; min-width: 0; }
.app-title-row .chips { margin-bottom: 12px; }
.app-head h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.app-summary { margin: 12px 0 0; max-width: 680px; font-size: 19px; color: var(--ink-3); }
.progress { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.progress li { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.progress .bar { height: 6px; border-radius: 3px; background: var(--line); }
.progress .done .bar { background: var(--idea); }
.progress .current { color: var(--idea-ink); font-weight: 600; }
.progress .current .bar { background: linear-gradient(90deg, var(--idea) 50%, var(--idea-track) 50%); }
.progress .current small { font-weight: 400; color: var(--muted); font-size: 14px; }
.progress .building.current { color: var(--build-ink); }
.progress .building.current .bar { background: linear-gradient(90deg, var(--build) 50%, var(--build-bg) 50%); }
.progress .building.done .bar { background: var(--build); }
.progress .launched.current { color: var(--launch-ink); }
.progress .launched.current .bar, .progress .launched.done .bar { background: var(--launch); }
.app-layout { padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.app-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.app-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.box-head { padding: 20px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1px solid var(--line-2); }
.box-head h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.01em; }
.box-body { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #15171A; display: grid; place-items: center; color: #FFFFFF; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .soon { display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 15px; color: #C7CBD2; }
.video .soon svg { opacity: 0.9; }
.video-empty { aspect-ratio: auto; min-height: 200px; background: var(--soft); color: var(--muted); border-bottom: 1px solid var(--line-2); }
.video-empty .soon { color: var(--muted); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.block h3 { font-size: 16px; margin-bottom: 6px; }
.block p { margin: 0; color: var(--ink-2); }
.features { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.features li { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; }
.features li span { display: block; color: var(--ink-3); font-size: 15px; }
.sketch-row { display: flex; flex-wrap: wrap; gap: 20px; }
.sketch { flex: 1 1 240px; min-height: 180px; border-radius: 12px; border: 1px dashed var(--dash); background: var(--soft); display: grid; place-items: center; color: var(--muted); font-size: 14px; padding: 16px; text-align: center; }
.sketch-row .block { flex: 2 1 320px; }
.feedback { padding: 24px; }
.feedback .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; }
.feedback h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.01em; }
.empty { margin: 16px 0 0; padding: 16px; border: 1px dashed var(--dash); border-radius: 12px; color: var(--ink-3); background: var(--soft); }
.comment { margin: 12px 0 0; border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; }
.comment blockquote { margin: 0; }
.comment .tr { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.comment figcaption { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.subsection { border-top: 1px solid var(--line-2); margin-top: 20px; padding-top: 16px; }
.subsection h3 { font-size: 16px; margin-bottom: 6px; }
.subsection p { margin: 0; color: var(--ink-3); font-size: 15px; }
.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.next > div { border: 1px dashed var(--build-dash); border-radius: 16px; padding: 20px; background: var(--build-soft); }
.next > div.l { border-color: var(--launch-dash); background: var(--launch-soft); }
.next b { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 20px; }
.next p { margin: 8px 0 0; font-size: 15px; color: var(--ink-3); }
.side-dark { background: var(--invert-bg); color: var(--invert-ink); border-radius: 16px; padding: 24px; }
.side-dark h2 { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; }
.side-dark p { margin: 0 0 16px; color: var(--invert-muted); font-size: 15px; }
.side-dark .btn { width: 100%; }
.side-box { padding: 20px; }
.side-box h2 { font-size: 16px; margin-bottom: 12px; }
.side-box p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.side-box a.small { font-size: 14px; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.timeline li { display: flex; gap: 10px; }
.timeline .pip { margin-top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--idea); flex-shrink: 0; }
.timeline .pip.open { background: transparent; border: 2px solid var(--idea); }
.timeline span span { color: var(--muted); }
.others { list-style: none; margin: 0; padding: 0; }
.others a { display: block; padding: 10px 0; font-size: 15px; }
.devlogs, .launch-links { display: flex; flex-direction: column; gap: 12px; }

/* 404 */
.notfound { padding-top: 96px; padding-bottom: 120px; }
.notfound h1 { font-family: var(--font-display); font-size: 48px; letter-spacing: -0.02em; margin-bottom: 12px; }
.notfound p { color: var(--ink-3); margin: 0 0 24px; }

@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .cta-box { padding: 28px; }
  .cta-box h2 { font-size: 28px; }
  .panel { padding: 20px; }
  .progress { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .box-head, .box-body, .feedback { padding-left: 16px; padding-right: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
}

/* ---- the journey of an app (flows, design drafts, run, video) ---- */
.progress.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.progress .step-done .bar { background: var(--launch); }
.thumb.has-img { background: var(--soft); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.thumb.has-img .tag { z-index: 1; }
.flows-list { display: flex; flex-direction: column; gap: 22px; }
.flow-item h3 { font-family: var(--font-display); font-size: 17px; margin: 0 0 8px; }
.flow-frame { border: 1px solid var(--line-2); border-radius: 12px; background: #FFFFFF; overflow: auto; padding: 10px; }
.flow-frame { overflow-x: auto; }
.flow-frame img { display: block; width: 100%; min-width: 760px; height: auto; }
.flow-item .open { font-size: 13px; margin-left: 8px; font-weight: 400; }
.shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.shots img { height: 460px; width: auto; border-radius: 14px; border: 1px solid var(--line); flex: none; background: var(--surface); }
.sketch-img { flex: 1 1 240px; max-width: 260px; border-radius: 12px; border: 1px solid var(--line); }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; background: #15171A; }
.note { font-size: 14px; color: var(--muted); margin: 0; }
.cat-head { padding: 56px 0 8px; }
.cat-head h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; margin: 0; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.cat-tabs a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; background: var(--surface); }
.cat-tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search { position: relative; margin-left: auto; margin-right: 12px; }
.search input { width: 220px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
#results { position: absolute; top: 44px; right: 0; width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: none; z-index: 10; }
#results a { display: block; padding: 8px 12px; text-decoration: none; border-bottom: 1px solid var(--line-2); }
#results a:hover { background: var(--soft); }
#results small { color: var(--muted); }

/* ---- the video and the app in one card: two phone frames of the same height, each with its own ratio ---- */
.showcase { padding: 28px 24px 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; background: radial-gradient(120% 90% at 50% 0%, var(--soft), var(--surface)); border-radius: 0 0 16px 16px; }
.stage { --dh: min(600px, 74vh); display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 36px; }
.device-col { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.device-col figcaption { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.device-col figcaption b { color: var(--ink); }
.device { position: relative; height: var(--dh); border: 9px solid #15171A; border-radius: 34px; background: #15171A; overflow: hidden; box-shadow: 0 18px 40px rgba(21, 23, 26, 0.18), 0 2px 6px rgba(21, 23, 26, 0.12); }
.device-video { aspect-ratio: 9 / 16; }
.device-app { aspect-ratio: 780 / 1688; background: #FFFFFF; }
.device video, .device iframe, .device .screen, .device .screen img { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.device video { background: #15171A; object-fit: contain; }
.device .screen img[hidden] { display: none; }
.device-app:not(.live)::after { content: ''; position: absolute; inset: 0; background: rgba(21, 23, 26, 0.12); pointer-events: none; }
.run-live { z-index: 2; }
.run-live { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 18px; border: 0; border-radius: 999px; background: #15171A; color: #FFFFFF; font: 600 15px var(--font-body); cursor: pointer; box-shadow: 0 6px 16px rgba(21, 23, 26, 0.3); }
.run-live:hover { background: #2A2E34; }
.dots { display: inline-flex; gap: 6px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line-strong); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--ink); }
.device-app.live iframe { max-width: none; }
@media (max-width: 720px) { .stage { --dh: 520px; gap: 28px; } }

/* the cover of a card: the app seen whole (video frame and app screens in phone frames), 3:2, nothing cropped */
.thumb.has-cover { height: auto; aspect-ratio: 3 / 2; background: #15171A; }
.thumb.has-cover img { object-position: 50% 50%; }

/* ---- store front: featured, shelves that scroll sideways, category tiles, pages ---- */
.card-grid.featured { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.card-grid.featured .card-text { font-size: 16px; }
.shelf-section .section-head { align-items: baseline; }
.see-all { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--build-ink); white-space: nowrap; }
.see-all:hover { text-decoration: underline; }
.shelf { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 14px; margin: 0 -2px; scrollbar-width: thin; }
.shelf .card { flex: 0 0 min(340px, 82%); scroll-snap-align: start; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; }
.cat-tile:hover { border-color: var(--line-strong); background: var(--soft); }
.cat-tile b { font-family: var(--font-display); font-size: 17px; }
.cat-tile span { font-size: 14px; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; font-size: 15px; color: var(--muted); }
.pager a { font-weight: 600; text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }

/* ---- logos ---- */
.card-id { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.card-id-text { min-width: 0; flex: 1; }
.card-id .card-title { margin: 0; }
.card-cat { font-size: 13px; color: var(--muted); }
.app-logo { flex: none; border: 1px solid var(--line-2); background: var(--surface); object-fit: cover; }
.open-pill { flex: none; padding: 6px 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--build-ink); }
.card:hover .open-pill { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.app-id { display: flex; align-items: center; gap: 22px; }
.app-id .app-logo { box-shadow: 0 6px 18px rgba(21, 23, 26, 0.12); }
.cat-icon { display: inline-grid; place-items: center; flex: none; }
.cat-tile { flex-direction: row; align-items: center; gap: 14px; }
.cat-tile-text { display: flex; flex-direction: column; min-width: 0; }
.cat-title { display: flex; align-items: center; gap: 16px; }
@media (max-width: 560px) { .app-id { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* ---- live activity: a terminal that shows real progress ---- */
.term { background: #0F1114; color: #D7DCE2; border-radius: 16px; overflow: hidden; border: 1px solid #23272D; box-shadow: 0 10px 30px rgba(21, 23, 26, 0.12); font-family: var(--font-mono); font-size: 13.5px; }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #171A1F; border-bottom: 1px solid #23272D; }
.term-dots { display: flex; gap: 6px; } .term-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3A4048; }
.term-title { color: #9AA1AB; font-size: 12.5px; }
.term-state { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.04em; color: #7EE2B8; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 1.8s infinite; }
.pulse.off { background: #6B7280; animation: none; box-shadow: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.term-lines { list-style: none; margin: 0; padding: 12px 16px 4px; display: flex; flex-direction: column; gap: 5px; min-height: 230px; }
.term-lines li { display: grid; grid-template-columns: 64px 150px 1fr; gap: 14px; align-items: baseline; line-height: 1.5; }
.term-lines li.muted { display: block; color: #6B7280; }
.term-lines time { color: #6B7280; text-align: right; }
.term-lines b { color: #8AB0FF; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-lines li.done span { color: #7EE2B8; }
.term-lines li.fresh { animation: slidein 0.6s ease-out; }
@keyframes slidein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.term-foot { padding: 6px 16px 14px; color: #7EE2B8; display: flex; gap: 8px; align-items: center; }
.cursor { width: 8px; height: 15px; background: #7EE2B8; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.now-badge { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 17, 20, 0.82); color: #D7DCE2; font: 500 12px var(--font-mono); }
.now-badge[hidden] { display: none; }
.card { position: relative; }
.now-line { margin: 4px 0 0; font: 500 13px var(--font-mono); color: var(--launch-ink); display: flex; align-items: center; gap: 8px; }
.now-line[hidden] { display: none; }
@media (max-width: 640px) { .term-lines li { grid-template-columns: 52px 1fr; } .term-lines li span { grid-column: 1 / -1; padding-left: 66px; } .term-lines b { text-align: left; } }

/* ---- the first screen: the words on the left, the live terminal on the right, the apps right below ---- */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding-top: 44px; padding-bottom: 28px; }
.hero-split .hero-main { min-width: 0; }
.hero-split h1 { font-size: clamp(40px, 5vw, 60px); }
.stats-row { display: flex; gap: 10px; margin-top: 24px; flex: none; }
.stats-row .stat { padding: 10px 16px; min-width: 96px; }
.stats-row .stat b { font-size: 26px; }
.hero-split .term-lines { min-height: 0; }
.hero-split .term-lines li { grid-template-columns: 56px 118px 1fr; gap: 12px; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; gap: 24px; } }

/* the terminal: the last 12 hours, newest first, scrolls; the last line is brighter */
.hero-split .term-lines { max-height: 232px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3A4048 transparent; padding-bottom: 8px; }
.term-lines li.latest span { color: #FFFFFF; font-weight: 600; }
.term-lines time { text-align: left; font-variant-numeric: tabular-nums; }
.hero-split .term-lines li { grid-template-columns: 82px 118px 1fr; }

/* ---- the page of an app: centred; the stage in the middle (the app, its video, the QR code) ---- */
.app-top { padding-top: 28px; text-align: center; }
.app-top .back { display: inline-block; float: left; }
.app-hero-id { clear: both; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 6px; }
.app-hero-id h1 { margin: 6px 0 0; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; }
.app-hero-id .app-summary { max-width: 640px; margin: 0; }
.app-hero-id .app-logo { box-shadow: 0 8px 22px rgba(21, 23, 26, 0.14); }
.chips-center { justify-content: center; }
.progress.three { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(520px, 100%); margin: 18px 0 0; text-align: left; }
.progress .step-done .bar { background: var(--launch); }
.app-stage { --dh: min(620px, 78vh); padding-top: 26px; padding-bottom: 12px; }
.stage-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; padding: 30px 24px; border-radius: 24px; background: radial-gradient(120% 90% at 50% 0%, var(--surface), var(--soft)); border: 1px solid var(--line); }
.stage-row .device-col-main .device { box-shadow: 0 24px 56px rgba(21, 23, 26, 0.24), 0 2px 6px rgba(21, 23, 26, 0.12); }
.stage-note { text-align: center; margin: 14px 0 0; }
.qr-card { width: 240px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(21, 23, 26, 0.08); }
.qr-card h3 { margin: 6px 0 0; font-family: var(--font-display); font-size: 18px; }
.qr-card p { margin: 0; color: var(--muted); font-size: 14px; }
.qr-code { width: 176px; height: 176px; padding: 10px; background: #FFFFFF; border: 1px solid var(--line-2); border-radius: 12px; }
.qr-code svg { width: 100%; height: 100%; display: block; }
.qr-url { font: 12px var(--font-mono); word-break: break-all; }
.stage-design .stage-gallery { flex: 1 1 520px; min-width: 0; max-width: 700px; }
.shots-centered { justify-content: flex-start; }
.shots-centered img { height: min(520px, 70vh); }
.run-link { text-decoration: none; }
.app-below { display: flex; flex-direction: column; gap: 26px; padding-top: 26px; padding-bottom: 12px; max-width: 920px; }
.idea-body { flex-direction: row !important; flex-wrap: wrap; gap: 32px !important; align-items: flex-start; }
.idea-video { flex: 0 0 auto; }
.idea-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.device-small { height: 440px; }
.more .card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (max-width: 720px) { .stage-row { gap: 28px; padding: 22px 12px; } .app-stage { --dh: 520px; } .qr-card { width: 100%; max-width: 320px; } }

/* ---- the page of an app, compact: the app and its QR code stay in view (pinned) while the rest scrolls ---- */
.app-page { padding-top: 12px; padding-bottom: 36px; }
.app-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 24px; padding: 4px 0 16px; }
.app-bar .back { grid-column: 1 / -1; float: none; font-size: 14px; }
.app-bar-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.app-bar-text { min-width: 0; }
.app-bar-text h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; line-height: 1.15; }
.app-bar-text .app-summary { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.app-bar-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.progress.compact { margin: 0; width: 250px; text-align: left; gap: 6px; }
.progress.compact li { font-size: 13px; gap: 5px; }
.app-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 28px; align-items: start; }
.app-pin { --dh: min(540px, calc(100vh - 200px)); position: sticky; top: 78px; }
.pin-row { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px 16px; border-radius: 20px; background: radial-gradient(120% 90% at 50% 0%, var(--surface), var(--soft)); border: 1px solid var(--line); }
.pin-row .qr-card { width: 176px; padding: 14px 12px; gap: 6px; flex: none; }
.pin-row .qr-code { width: 128px; height: 128px; padding: 6px; }
.pin-row .qr-card h3 { font-size: 14px; margin: 4px 0 0; }
.btn-sm { padding: 7px 14px; font-size: 14px; border-radius: 10px; }
.qr-save { font-size: 12px; color: var(--muted); text-decoration: underline; }
.pin-design .shots { max-width: 300px; }
.shots-pin img { height: calc(var(--dh) - 24px); }
.app-flow { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.panel h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; }
.watch-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.device-small { height: 250px; border-width: 6px; border-radius: 24px; }
.shots-small { gap: 10px; }
.shots-small img { height: 190px; border-radius: 10px; }
.idea-line { margin: 0 0 12px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.idea-pics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.idea-pics img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.idea-more { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.more { margin-top: 26px; }
.app-page .more .card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-pin { position: static; --dh: 520px; }
  .app-bar { grid-template-columns: 1fr; }
  .app-bar-side { align-items: flex-start; }
  .pin-row .qr-card { display: none; }
}

/* ---- app page, second pass: a larger app, tabs for the content, more room for the other apps ---- */
.app-grid { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 32px; }
.app-pin { --dh: min(720px, calc(100vh - 118px)); top: 70px; }
.pin-row { padding: 16px 14px; gap: 16px; }
.pin-row .qr-card { width: 168px; }
.tabs { padding: 0; overflow: hidden; }
.tablist { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); background: var(--soft); overflow-x: auto; }
.tablist [role="tab"] { appearance: none; border: 0; background: none; padding: 10px 16px; font: 600 15px var(--font-body); color: var(--muted); cursor: pointer; border-radius: 10px 10px 0 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.tablist [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); background: var(--surface); }
.tabpanel { padding: 20px 22px 24px; min-height: 440px; }
.tabpanel[hidden] { display: none; }
.tab-video { display: flex; justify-content: center; padding-top: 6px; }
.device-tab { height: min(520px, calc(100vh - 260px)); }
.idea-line { font-size: 19px; }
.idea-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.idea-pics img { aspect-ratio: 1 / 1; object-fit: contain; background: #FFFFFF; padding: 6px; }
.shots-small img { height: 260px; }
.more { margin-top: 64px; }
.app-page .more .card-grid { gap: 28px; }
@media (min-width: 1100px) { .idea-pics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- app page, third pass: the app is always whole in the first screen ---- */
.app-bar { grid-template-columns: minmax(0, 1fr) auto; padding: 2px 0 12px; }
.back-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; font-size: 18px; }
.back-icon:hover { background: var(--ink); color: var(--bg); }
.app-pin { --dh: min(720px, calc(100vh - 232px)); top: 74px; }
.qr-url { font-size: 11px; word-break: normal; white-space: nowrap; }
.app-page { padding-top: 8px; }
