/* Batcher website: same palette and typeface as the app. */
@font-face {
  font-family: 'Outfit Variable';
  src: url('/fonts/outfit.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #121212;
  --surface: #1e1e1e;
  --raised: #262626;
  --line: #2e2e2e;
  --ink: #ffffff;
  --muted: #a0a0a0;
  --accent: #10e0bf;
  --accent-2: #03bdc9;
  --on-accent: #0b1a17;
  --ok: #3ddc84;
  --font: 'Outfit Variable', 'Avenir Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* signed-in visitors see "Open your workshop" instead of "Sign up" */
.in-only { display: none !important; }
html.signed-in .in-only { display: inline-flex !important; }
html.signed-in .out-only { display: none !important; }

/* ---- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn-lg { height: 54px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { background: #3ae9cd; }
.btn-quiet { border-color: var(--line); color: var(--ink); }
.btn-quiet:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.text-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Header ------------------------------------------------------------------ */
.site-head {
  position: sticky; top: 0; z-index: 20; background: rgba(18, 18, 18, 0.86);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; }
.tabs { display: flex; gap: 4px; }
.tabs a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current='page'] { color: var(--ink); background: var(--surface); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.link-app { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.link-app:hover { color: var(--accent); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-content: center; gap: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: 54px; width: min(320px, calc(100vw - 32px)); background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.menu-panel a:not(.btn) { padding: 12px 12px; text-decoration: none; font-weight: 600; border-radius: 10px; }
.menu-panel a:not(.btn):hover, .menu-panel a[aria-current='page'] { background: var(--raised); }
.menu-panel .btn { margin-top: 8px; }
@media (max-width: 860px) {
  .tabs, .head-actions { display: none; }
  .menu { display: block; }
}

/* ---- Hero -------------------------------------------------------------------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero .lede { margin-top: 24px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero-visual { position: relative; min-height: 560px; }
.phone {
  margin: 0; border-radius: 40px; padding: 8px; background: #2a2a2a; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px #3a3a3a;
  max-width: 300px;
}
.phone img { border-radius: 32px; }
.phone-hero { position: absolute; right: 0; top: 0; width: 72%; max-width: 320px; }

/* the cost ticket: the one moving part on the page */
.ticket {
  position: absolute; left: 0; bottom: 0; width: min(100%, 360px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px 20px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); font-variant-numeric: tabular-nums;
}
.ticket-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.ticket-head span:first-child { color: var(--ink); font-weight: 700; font-size: 15px; }
.ticket-lines { list-style: none; margin: 0; padding: 8px 0; }
.ticket-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; font-size: 14px; }
.ticket-lines .what { display: flex; flex-direction: column; line-height: 1.25; }
.ticket-lines small { color: var(--muted); font-size: 12px; }
.ticket-lines .cost { color: var(--ink); }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 600; }
.ticket-total strong { font-size: 28px; color: var(--accent); letter-spacing: -0.02em; }
.ticket-margin { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 4px; }
.ticket-margin .margin { color: var(--ok); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .ticket-lines li, .ticket-total, .ticket-margin { opacity: 0; transform: translateY(6px); animation: tally .45s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(500ms + var(--i) * 140ms); }
  .ticket-total strong { animation: settle .6s ease-out forwards; animation-delay: calc(500ms + 7 * 140ms); }
}
@keyframes tally { to { opacity: 1; transform: none; } }
@keyframes settle { 0% { text-shadow: 0 0 0 transparent; } 40% { text-shadow: 0 0 24px rgba(16, 224, 191, 0.6); } 100% { text-shadow: 0 0 0 transparent; } }

/* homepage hero: the inventory table on a computer, the phone, and the cost ticket in front */
.hero-visual-desk { min-height: 540px; }
.desk { position: absolute; top: 0; right: 0; width: 118%; max-width: 680px; margin: 0; border-radius: 14px; padding: 22px 6px 6px; background: #2a2a2a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px #3a3a3a; }
.desk::before { content: ''; position: absolute; top: 8px; left: 12px; width: 34px; height: 7px;
  background: radial-gradient(circle at 3.5px 3.5px, #555 3px, transparent 3.5px) 0 0 / 12px 7px repeat-x; }
.desk img { border-radius: 8px; }
.hero-visual-desk .phone-hero { top: auto; bottom: 0; right: -8px; width: 34%; max-width: 190px; border-radius: 30px; padding: 6px; }
.hero-visual-desk .phone-hero img { border-radius: 24px; }
.hero-visual-desk .ticket { bottom: 0; }
.hero-visual-ticket { min-height: 0; display: flex; justify-content: center; }
.hero-visual-ticket .ticket { position: static; width: min(100%, 400px); }
.ticket-name { font-size: 15px; color: var(--ink); font-weight: 700; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .desk { position: static; width: 100%; max-width: none; grid-column: 1 / -1; }
  .hero-visual-desk .phone-hero { display: none; }
  .hero-visual-desk .ticket { margin: -64px 12px 0; width: auto; max-width: 360px; }
  .hero h1 { max-width: 14ch; }
  .hero-visual { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: end; }
  .phone-hero, .ticket { position: static; width: auto; }
  .phone-hero { order: 2; }
}
@media (max-width: 560px) {
  .hero-visual { grid-template-columns: 1fr; }
  .phone-hero { display: none; }
  .ticket { width: 100%; }
}

/* ---- Sections ------------------------------------------------------------------ */
.section-h { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.03em; max-width: 20ch; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 1.1rem; max-width: 40em; }

.trades { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.trade-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.trade-list li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trade-list a { display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px; height: 100%; text-decoration: none; transition: background .15s; }
.trade-list a:hover { background: var(--surface); }
.trade-list a:hover strong { color: var(--accent); }
.trade-list svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.trade-list strong { display: block; font-size: 16px; line-height: 1.3; }
.trade-list small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.4; }
@media (max-width: 1100px) { .trade-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .trade-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .trade-list a { padding: 16px 12px; gap: 10px; } .trade-list strong { font-size: 15px; } }

.features { padding: clamp(32px, 6vw, 72px) 0; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(32px, 7vw, 96px); align-items: center; padding: clamp(40px, 7vw, 88px) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-copy { order: 2; }
.feature h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.03em; max-width: 16ch; }
.feature p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.feature ul, .ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.feature li, .ticks li { position: relative; padding-left: 28px; }
.feature li::before, .ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%2310e0bf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.feature .phone { justify-self: center; width: 100%; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .feature .phone { max-width: 260px; }
}

/* why makers switch from spreadsheets */
.switch { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.switch-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.switch-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.switch-list .said { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); margin-bottom: 12px; }
.switch-list p:not(.said) { color: var(--muted); }
@media (max-width: 860px) { .switch-list { grid-template-columns: 1fr; } }

/* FAQ */
.faq-sec { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.faq-wrap { max-width: calc(820px + 2 * var(--gutter)); }
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--accent); flex-shrink: 0; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.faq-a { padding: 0 0 22px; color: #d4d4d4; max-width: 46em; }
.faq-a a { color: var(--accent); text-underline-offset: 3px; }
.prose .faq summary h3 { margin: 0; }

.how { padding: clamp(56px, 8vw, 104px) 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-size: 44px; font-weight: 700; line-height: 1; color: var(--accent); letter-spacing: -0.04em; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; } .steps li::before { grid-row: span 2; font-size: 34px; margin: 0; } }

.team { padding: clamp(56px, 8vw, 104px) 0; }
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.thread-demo { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 14px; }
.thread-title { font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg p { font-size: 15.5px; line-height: 1.5; }
.msg b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.av { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 18%, var(--raised)); color: var(--accent); font-weight: 800; font-size: 14px; }
.at { color: var(--accent); font-weight: 700; }
.thread-log { font-size: 13px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; } }

.learn { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.learn-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.guide-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-list a {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; transition: border-color .15s;
}
.guide-list a:hover { border-color: var(--accent); }
.guide-list .topic { font-size: 13px; color: var(--accent); font-weight: 600; }
.guide-list strong { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
.guide-list a > span:last-child { color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 960px) { .guide-list { grid-template-columns: 1fr; } }

.closer { padding: clamp(64px, 9vw, 120px) 0; background: linear-gradient(160deg, #0f2f2a, #121212 60%); border-top: 1px solid var(--line); }
.closer-inner h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.035em; max-width: 16ch; }
.closer-inner p { margin: 16px 0 28px; color: var(--muted); font-size: 1.15rem; max-width: 34em; }

/* ---- Trade pages ---------------------------------------------------------------- */
.hero-trade { padding-bottom: clamp(40px, 6vw, 72px); }
.hero-trade .crumbs { margin-bottom: 20px !important; }
.hero-trade .crumbs a { color: var(--muted); }
.trade-sections { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.trade-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.trade-cols h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; }
.trade-cols p { margin-top: 12px; color: var(--muted); }
.trade-cols .ticks { margin-top: 18px; }
.stage-row { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: st; }
.stage-row li { counter-increment: st; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 10px; font-weight: 600; font-size: 15px; }
.stage-row li::before { content: counter(st); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-size: 13px; }
.note { margin-top: 14px; color: var(--muted); font-size: 15px; }
.note a { color: var(--accent); }
@media (max-width: 960px) { .trade-cols { grid-template-columns: 1fr; } }
.sample-strip { padding: clamp(48px, 7vw, 88px) 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sample-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.downloads a { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; }
.downloads a:hover { border-color: var(--accent); }
.downloads svg { color: var(--accent); flex-shrink: 0; }
.downloads strong { display: block; }
.downloads small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
@media (max-width: 860px) { .sample-inner { grid-template-columns: 1fr; } }
.more-trades { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.section-h-sm { font-size: 1.35rem; letter-spacing: -0.02em; }
.chip-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; }
.chip-list a:hover { border-color: var(--accent); color: var(--accent); }
.trade-cards { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trade-cards a { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.trade-cards a:hover { border-color: var(--accent); }
.trade-cards svg { color: var(--accent); flex-shrink: 0; }
.trade-cards strong { display: block; font-size: 1.1rem; }
.trade-cards small { display: block; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
@media (max-width: 960px) { .trade-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trade-cards { grid-template-columns: 1fr; } }
.hub .crumbs a { color: var(--muted); }
.compare .table-wrap table th[scope='row'] { white-space: nowrap; }

/* ---- Inner pages ----------------------------------------------------------------- */
.page { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(64px, 9vw, 112px); }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.035em; }
.prose .lede { margin-top: 18px; font-size: 1.2rem; color: var(--muted); }
.prose h2 { font-size: 1.5rem; margin: 48px 0 12px; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 8px; letter-spacing: -0.01em; }
.prose h4 { font-size: 1rem; margin: 20px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: #d4d4d4; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li > ul { margin: 6px 0 0; }
.prose strong { color: var(--ink); }
.prose a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }
.prose code { font-size: .9em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0 16px; }
.prose .meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
.table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); font-weight: 700; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.prose td { color: #d4d4d4; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px !important; }
.crumbs a { color: var(--muted) !important; }
.guide-foot { margin-top: 48px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.guide-foot p { margin: 0 !important; }

.values { margin: 0; display: grid; gap: 20px; }
.values div { padding: 20px 22px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 14px 14px 0; }
.values dt { font-weight: 700; font-size: 1.1rem; }
.values dd { margin: 6px 0 0; color: var(--muted); }

.hub-head { max-width: 720px; }
.hub-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.035em; }
.hub-head .lede { margin-top: 16px; font-size: 1.2rem; color: var(--muted); }
.hub-section { margin-top: 56px; }
.hub-section h2 { font-size: 1.4rem; letter-spacing: -0.02em; }
.hub-section .guide-list { margin-top: 18px; }
.template-list { list-style: none; padding: 0; margin: 18px 0 0; }
.template-list li { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; flex-wrap: wrap; }
.template-list strong { display: block; font-size: 1.1rem; }
.template-list span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; max-width: 46em; }
.hub-note { margin-top: 16px; color: var(--muted); font-size: 15px; }
.hub-intro { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 46em; }
.hub-sub { font-size: 1.1rem; margin-top: 32px; letter-spacing: -0.01em; }
.template-list li + li { margin-top: 10px; }
.template-list span a { color: var(--accent); }
.starter-grid { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.starter-grid a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.3; height: 100%; }
.starter-grid a:hover { border-color: var(--accent); }
.starter-grid svg { color: var(--accent); flex-shrink: 0; }
@media (max-width: 960px) { .starter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hub-note a { color: var(--accent); }

.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 32px 0 24px; }
.contact-cards a { display: block; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink) !important; }
.contact-cards a:hover { border-color: var(--accent); }
.contact-cards strong { display: block; }
.contact-cards span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---- Footer -------------------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-brand p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 28em; }
.site-foot nav { display: flex; flex-direction: column; gap: 10px; }
.site-foot h2 { font-size: 14px; color: var(--ink); font-weight: 700; letter-spacing: 0; margin-bottom: 4px; }
.site-foot nav a { color: var(--muted); text-decoration: none; font-size: 15px; overflow-wrap: anywhere; }
.site-foot nav a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
