/* Tablumo website — shared stylesheet (landing + user guide).
   MAINTAINED BY THE AUTONOMOUS DEV LOOP: keep classes stable; content lives in the HTML.
   Brand (see assets/brand/BRAND.md): stock shadcn zinc + amber-500 accent, used sparingly.
   Mobile-first: base styles are the 375px layout; min-width queries add the desktop. */

:root {
  --ink: #09090b;          /* zinc-950 */
  --ink-soft: #52525b;     /* zinc-600 */
  --ink-mute: #71717a;     /* zinc-500 */
  --paper: #ffffff;
  --paper-alt: #f4f4f5;    /* zinc-100 */
  --paper-soft: #fafafa;   /* zinc-50 */
  --line: #e4e4e7;         /* zinc-200 */
  --line-soft: #d4d4d8;    /* zinc-300 */
  --amber: #f59e0b;        /* amber-500 — the lit cell; decorative accents */
  --amber-ink: #b45309;    /* amber-700 — accent that must read as text */
  --dark: #09090b;         /* zinc-950 surfaces (footer, primary buttons) */
  --dark-ink: #fafafa;     /* zinc-50 on dark */
  --dark-mute: #a1a1aa;    /* zinc-400 on dark */
  --radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16px; }
a { color: var(--amber-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
img { max-width: 100%; height: auto; }
[id] { scroll-margin-top: 76px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* Brand lockup (inline SVG mark + wordmark) */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 22px; height: 22px; flex: 0 0 auto; display: block; }
.brand .wordmark { font-weight: 500; font-size: 19px; letter-spacing: -0.02em; text-transform: lowercase; }

/* Top navigation — light, sticky, collapses to a burger on small screens */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 12px; min-height: 58px; flex-wrap: wrap; padding-top: 0; padding-bottom: 0; }
.nav .brand { margin-right: auto; order: 0; }
.nav .nav-cta { order: 2; }
.nav-burger { order: 3; }
.nav-links { order: 4; }
@media (min-width: 880px) { .nav-links { order: 1; } }
.nav a { color: var(--ink-soft); font-size: 14px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .nav-cta {
  padding: 7px 14px; border-radius: 8px;
  background: var(--dark); color: var(--dark-ink); font-weight: 600; white-space: nowrap;
}
.nav .nav-cta:hover { background: #27272a; }

.nav-toggle { display: none; }
.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px; cursor: pointer; border-radius: 8px;
}
.nav-burger:hover { background: var(--paper-alt); }
.nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.15s ease, opacity 0.15s ease; }
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links {
  display: none; flex-direction: column; gap: 2px;
  flex-basis: 100%; padding: 6px 0 14px;
}
.nav-toggle:checked ~ .nav-links { display: flex; }
.nav-links a { padding: 9px 4px; font-size: 15px; border-radius: 6px; }
@media (min-width: 880px) {
  .nav-burger { display: none; }
  .nav-links { display: flex; flex-direction: row; align-items: center; gap: 24px; flex-basis: auto; padding: 0; }
  .nav-links a { padding: 0; font-size: 14px; }
}

/* Hero — light, with a soft amber glow ("see your data in a better light") */
.hero {
  background:
    radial-gradient(ellipse 900px 420px at 70% -80px, rgba(245, 158, 11, 0.13), transparent 65%),
    var(--paper-soft);
  border-bottom: 1px solid var(--line);
  color: var(--ink); padding: 56px 0 56px;
}
@media (min-width: 720px) { .hero { padding: 84px 0 72px; } }
.hero h1 { font-size: clamp(33px, 6.5vw, 54px); margin: 0 0 18px; letter-spacing: -0.025em; }
.hero h1 em { color: var(--amber-ink); font-style: normal; }
.hero p.lede { font-size: clamp(16px, 2.5vw, 19px); color: var(--ink-soft); max-width: 640px; margin: 0 0 30px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px; font-weight: 600;
  background: var(--dark); color: var(--dark-ink);
}
.btn:hover { background: #27272a; text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line-soft); color: var(--ink); }
.btn.ghost:hover { background: var(--paper-alt); }
.hero .note { font-size: 13px; color: var(--ink-mute); margin-top: 16px; }
.version-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px; border: 1px solid var(--line-soft); border-radius: 999px;
  font-size: 12px; color: var(--ink-soft); margin-bottom: 22px; background: var(--paper);
}
.version-pill::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); }

/* Sections */
section { padding: 52px 0; }
@media (min-width: 720px) { section { padding: 64px 0; } }
section.alt { background: var(--paper-alt); }
.kicker { text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; font-weight: 700; color: var(--amber-ink); margin: 0 0 6px; }
section h2 { font-size: clamp(24px, 4.5vw, 30px); margin: 0 0 12px; letter-spacing: -0.02em; }
section p.sub { color: var(--ink-soft); max-width: 660px; margin: 0 0 34px; }

/* Cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 1px 2px rgba(9, 9, 11, 0.04);
}
section.alt .card { background: #ffffff; }
.card .icon { font-size: 24px; margin-bottom: 10px; }
.card h3 { font-size: 17px; margin: 0 0 8px; }
.card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* Steps */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.step { position: relative; padding: 22px 22px 22px 64px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 22px;
  width: 30px; height: 30px; border-radius: 8px; background: var(--dark); color: var(--dark-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* USP strip */
.usp-list { display: grid; gap: 14px; }
.usp { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-left: 3px solid var(--amber); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usp strong { display: block; margin-bottom: 2px; }
.usp p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* What's new */
.release { border-left: 2px solid var(--line); padding: 0 0 18px 20px; position: relative; }
.release::before { content: ''; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.release h3 { margin: 0 0 4px; font-size: 16px; }
.release .rdate { color: var(--ink-mute); font-size: 12px; margin-left: 8px; font-weight: 400; }
.release p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* Guide layout (guide.html) */
.guide-layout { display: grid; grid-template-columns: 1fr; gap: 32px; padding-top: 36px; padding-bottom: 80px; }
.guide-toc { font-size: 14px; }
.guide-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.guide-toc a { color: var(--ink-soft); }
.guide-toc a:hover { color: var(--amber-ink); }
@media (min-width: 880px) {
  .guide-layout { grid-template-columns: 240px 1fr; gap: 44px; padding-top: 48px; }
  .guide-toc { position: sticky; top: 78px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; }
}
.guide-body { min-width: 0; }
.guide-body h1 { font-size: clamp(28px, 5vw, 36px); }
.guide-body h2 { font-size: 24px; margin: 44px 0 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.guide-body h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.guide-body h3 { font-size: 17px; margin: 26px 0 6px; }
.guide-body p, .guide-body li { font-size: 15px; color: #27272a; }
.guide-body code { background: var(--paper-alt); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 13px; overflow-wrap: anywhere; }
.guide-body .tip {
  background: var(--paper-soft); border: 1px solid var(--line); border-left: 3px solid var(--amber);
  border-radius: 8px; padding: 12px 16px; font-size: 14px; margin: 14px 0;
}
.guide-body kbd {
  background: var(--paper-alt); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 6px; font-size: 12.5px; font-family: inherit;
}
.guide-version { font-size: 13px; color: var(--ink-soft); margin-bottom: 26px; }

/* Footer — the one dark surface, wearing the lockup */
footer { background: var(--dark); color: var(--dark-mute); padding: 40px 0; font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer a { color: var(--dark-ink); }
footer .brand { color: var(--dark-ink); }
footer .brand .wordmark { font-size: 17px; }
footer .foot-brand { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── Screenshots ────────────────────────────────────────────── */

.shot, .hero-shot { margin: 0; min-width: 0; }
.shot img, .hero-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(9, 9, 11, 0.10);
}
.shot figcaption, .hero-shot figcaption {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 8px;
  text-align: center;
}
.hero-shot { margin-top: 44px; }
.hero-shot img { border-color: var(--line-soft); box-shadow: 0 18px 60px rgba(9, 9, 11, 0.18); }
.hero-shot figcaption { color: var(--ink-mute); }

.shots-band { padding-bottom: 24px; }
.shots-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.guide-body .shot { margin: 14px 0 18px; }

.guide-toc .toc-sub { padding-left: 14px; font-size: 13px; }

/* Roadmap (public queue per Max's instruction) */
.roadmap-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.roadmap-item { display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; flex-wrap: wrap; }
.roadmap-item > div { min-width: min(100%, 260px); flex: 1; }
.roadmap-item p { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
.roadmap-item strong { font-size: 15px; }
.rm-badge { flex: 0 0 auto; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 10px; margin-top: 2px; color: var(--ink-soft); white-space: nowrap; }
.rm-badge.rm-now { color: var(--amber-ink); border-color: var(--amber); }
