:root {
  --ground: #f7f4ee;
  --surface: #ffffff;
  --ink: #1b1917;
  --ink-soft: #3f3a34;
  --ink-faint: #665f56;
  --line: #e3ddd3;
  --accent: #2e6b52;
  --accent-deep: #1f4d39;
  --band: #1b1917;
  --band-ink: #f7f4ee;
  --band-soft: #cfc8bc;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 18px/1.5 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 60px); letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(28px, 3.5vw, 36px); }
h3 { font-size: 24px; }
p { margin: 0; }

.site-header, .site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 22px var(--gutter); }
.site-header { border-bottom: 1px solid var(--line); }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-header nav a { color: var(--accent); font-weight: 600; font-size: 16px; text-decoration: none; }
.site-header nav a[aria-current] { color: var(--ink); }
.wordmark { font: 700 22px var(--display); color: var(--ink); text-decoration: none; }
.site-footer { border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-faint); }

.wrap { max-width: 1100px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 40px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--ink-soft); max-width: 48ch; }
.muted { color: var(--ink-soft); }
.note { font-size: 15px; color: var(--ink-faint); }

.home-hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.home-hero h1 { max-width: 14ch; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.card p { color: var(--ink-soft); }
.app-card { gap: 20px; color: var(--ink); text-decoration: none; border-radius: 20px; }
.app-card:hover { border-color: var(--accent); color: var(--ink); }
.app-card img { width: 96px; height: 96px; }
.app-card h2 { font-size: 30px; margin-bottom: 8px; }
.app-card footer { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--accent); }

.band { background: var(--band); color: var(--band-ink); padding-top: 72px; padding-bottom: 72px; padding-left: 0; padding-right: 0; }
.band .wrap { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.band .stack { display: flex; flex-direction: column; gap: 12px; }
.band p { color: var(--band-soft); }

.app-hero { padding-top: clamp(48px, 7vw, 80px); padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 48px); }
.app-hero > img { width: clamp(112px, 16vw, 160px); height: auto; }
.app-hero .stack { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.button { display: inline-flex; align-items: center; min-height: 52px; padding: 8px 28px; background: var(--surface); color: var(--ink); border: 1px solid #c9c2b6; border-radius: 12px; font-weight: 600; text-decoration: none; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.button.is-pending, .button.is-pending:hover { background: var(--line); border-color: var(--line); color: var(--ink-soft); }
.requires { font-size: 15px; color: var(--ink-faint); }

.shots { padding-bottom: 72px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); align-items: start; }
.shot { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.shot-pending { min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; background: #e8e2d8; border: 1px dashed #a79f90; border-radius: 16px; color: var(--ink-soft); font-weight: 600; }
.band .shot-pending { background: #2a2724; border-color: #5e574e; color: var(--band-soft); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
.table-scroll table { min-width: 680px; }
th, td { padding: 12px 8px; text-align: left; vertical-align: top; }
thead tr { border-bottom: 2px solid var(--ink); }
tbody tr { border-bottom: 1px solid var(--line); }
tbody th { font-weight: 600; }
thead th + th + th { font-weight: 600; color: var(--ink-soft); }

.faq { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.faq > div { display: flex; flex-direction: column; gap: 8px; }
.faq h3 { font: 600 20px/1.3 var(--body); letter-spacing: 0; }
.faq p { color: var(--ink-soft); }

.prose { padding-top: clamp(48px, 7vw, 72px); padding-bottom: 80px; max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 26px; margin-top: 24px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose p, .prose li { color: var(--ink-soft); }

/* Per-app color */
body, .showcase { --tint: #eee9df; --accent-app: var(--accent); }
[data-app="misodeck"] { --tint: #dcefe8; --accent-app: #146a55; }
[data-app="tacodesk"] { --tint: #fbe6cf; --accent-app: #a84c0c; }
[data-app="tofumux"] { --tint: #e2e6e8; --accent-app: #22333b; }
[data-app] .button.primary { background: var(--accent-app); border-color: var(--accent-app); }
[data-app] .button.primary:hover { filter: brightness(0.88); background: var(--accent-app); border-color: var(--accent-app); }
[data-app] .site-header nav a[aria-current] { color: var(--accent-app); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(247, 244, 238, 0.92); backdrop-filter: blur(10px); }
.site-header nav a { color: var(--ink-soft); }
.site-header nav a:hover { color: var(--ink); }

/* Home hero */
.home-hero-band { background: var(--band); color: var(--band-ink); }
.home-hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); display: grid; gap: 48px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.home-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.home-hero h1 { max-width: 15ch; font-size: clamp(42px, 6.4vw, 72px); }
.home-hero .lead { color: var(--band-soft); }
.promise-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; color: var(--band-ink); }
.promise-row li + li::before { content: "·"; margin-right: 24px; color: var(--band-soft); }
.icon-tray { display: flex; justify-content: center; align-items: center; }
.icon-tray img { width: clamp(96px, 13vw, 148px); height: auto; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45)); }
.icon-tray img:nth-child(1) { transform: rotate(-8deg) translate(14px, -8px); }
.icon-tray img:nth-child(2) { transform: translateY(-26px); z-index: 1; }
.icon-tray img:nth-child(3) { transform: rotate(8deg) translate(-14px, -8px); }

/* Home showcases */
.showcase-list { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: clamp(24px, 4vw, 40px); }
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 56px); background: var(--tint); border-radius: 28px; }
.showcase:nth-child(even) .showcase-copy { order: 2; }
.showcase-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.showcase-copy h2 { font-size: clamp(34px, 4.4vw, 48px); }
.eyebrow { font-weight: 600; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-app); }
.showcase-pitch { font-size: 21px; line-height: 1.35; }
.checks { list-style: none; margin: 4px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--accent-app); border-bottom: 2px solid var(--accent-app); transform: rotate(-45deg); }
.price-line { font-size: 15px; color: var(--ink-soft); }
.showcase .shot-pending { min-height: 300px; background: rgba(255, 255, 255, 0.55); border-color: rgba(0, 0, 0, 0.18); }

/* App page hero */
.hero-band { background: var(--tint); }
.app-hero { padding-bottom: clamp(64px, 9vw, 112px); }
.app-hero > img { filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.22)); }
.app-hero h1 { font-size: clamp(40px, 5.6vw, 64px); }
.shots { margin-top: clamp(-72px, -6vw, -32px); position: relative; }
.shots .shot-pending { background: #fff; border-style: solid; border-color: var(--line); box-shadow: 0 18px 40px rgba(27, 25, 23, 0.1); }
.window-frame { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(27, 25, 23, 0.2); }
.window-frame .shot { border: 0; border-radius: 0; }

/* Lighter feature blocks */
main .card { background: transparent; border: 0; border-top: 2px solid var(--ink); border-radius: 0; padding: 20px 0 8px; }
main .card h2 { font-size: 26px; }
.app-card { border-top: 0; }

/* Closing call to action */
.closing { background: var(--tint); }
.closing-inner { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.closing-inner .actions { justify-content: center; }

@media (max-width: 820px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); }
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .showcase:nth-child(even) .showcase-copy { order: 0; }
  .showcase .shot-pending { min-height: 200px; }
  .site-header { position: static; }
}

/* Refinements after the first render */
[data-app] .button.is-pending, [data-app] .button.is-pending:hover { background: #fff; border-color: var(--accent-app); color: var(--accent-app); filter: none; }
.home-hero-band { background: #ece6da; color: var(--ink); }
.home-hero .lead { color: var(--ink-soft); }
.promise-row { color: var(--ink); gap: 8px; }
.promise-row li { padding: 6px 14px; background: #fff; border-radius: 999px; font-size: 16px; }
.promise-row li + li::before { content: none; }
.icon-tray img { filter: drop-shadow(0 16px 22px rgba(27, 25, 23, 0.28)); }

/* Narrative copy, after syncvote.com's structure */
.letter { max-width: 760px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 18px; font-size: clamp(19px, 2vw, 21px); line-height: 1.55; color: var(--ink-soft); }
.letter p:first-child { color: var(--ink); font-weight: 600; }
.asks { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 3px solid var(--accent-app); display: flex; flex-direction: column; gap: 8px; color: var(--ink); font-style: italic; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); max-width: 22ch; margin-bottom: 8px; }
.benefits { padding-top: 24px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.benefit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 40px; padding-top: 24px; border-top: 2px solid var(--ink); }
.benefit h3 { font-size: 28px; }
.benefit p { color: var(--ink-soft); font-size: 19px; }
.showcase-copy h2 { font-size: clamp(28px, 3.4vw, 38px); }
.eyebrow { font-family: var(--display); font-size: 18px; letter-spacing: 0; text-transform: none; }
.shots + .letter { padding-top: 0; }
@media (max-width: 820px) { .benefit { grid-template-columns: minmax(0, 1fr); } }

/* Product-first hero: headline, button, then the app itself */
.app-hero { flex-direction: column; align-items: center; text-align: center; gap: 20px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(96px, 12vw, 160px); }
.app-hero > img { width: 88px; }
.app-hero .stack { flex: none; align-items: center; max-width: 860px; gap: 18px; }
.app-hero .lead { max-width: 56ch; }
.app-hero .actions { justify-content: center; }
.shots { margin-top: clamp(-128px, -9vw, -64px); max-width: 1040px; padding-bottom: 24px; }
.shots .shot-pending { min-height: clamp(220px, 36vw, 440px); }
.letter { margin-left: auto; margin-right: auto; }
.shots + .letter { padding-top: 40px; }

/* Illustrative app mockups, used until real screenshots exist */
.mock { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mock figcaption { font-size: 13px; color: var(--ink-faint); }
.mk-win { width: min(100%, 460px); background: #fff; color: #1b1917; border-radius: 16px; padding: 14px; box-shadow: 0 24px 60px rgba(27,25,23,.22); display: flex; flex-direction: column; gap: 8px; font-size: 14px; text-align: left; }
.mk-dark { background: #232326; color: #f2f2f2; }
.mk-tabs { display: flex; gap: 4px; padding: 3px; background: rgba(127,127,127,.18); border-radius: 9px; }
.mk-tabs span { flex: 1; text-align: center; padding: 5px 4px; border-radius: 7px; font-weight: 600; font-size: 13px; opacity: .7; }
.mk-tabs .on { background: rgba(255,255,255,.9); color: #1b1917; opacity: 1; }
.mk-dark .mk-tabs .on { background: #55555b; color: #fff; }
.mk-now, .mk-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; }
.mk-now { background: rgba(127,127,127,.16); }
.mk-now div { display: flex; flex-direction: column; flex: 1; line-height: 1.2; }
.mk-win small { opacity: .65; font-size: 12px; }
.mk-ctl { font-size: 12px; letter-spacing: 1px; }
.mk-row b { font-weight: 600; flex: 0 0 auto; min-width: 96px; }
.mk-row em { font-style: normal; font-size: 12px; opacity: .7; width: 22px; text-align: right; }
.mk-row small, .mk-row .mk-pill { margin-left: auto; }
.mk-dot { width: 18px; height: 18px; border-radius: 5px; flex: none; }
.mk-slider { flex: 1; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #3fb89a var(--v), rgba(127,127,127,.3) var(--v)); position: relative; }
.mk-slider::after { content: ""; position: absolute; left: var(--v); top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.mk-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .55; padding: 6px 8px 0; }
.mk-pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(127,127,127,.2); }
.mk-pill.on { background: #3fb89a; color: #0c2a22; }
.mk-well { border: 1.5px dashed rgba(27,25,23,.3); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; background: #f6f4ef; }
.mk-well.sm { padding: 10px; flex: 1; }
.mk-cols { display: flex; gap: 8px; }
.mk-go { align-self: flex-end; background: #22333b; color: #fff; font-weight: 600; padding: 8px 18px; border-radius: 9px; }
.mk-screen { width: min(100%, 760px); aspect-ratio: 16 / 10; position: relative; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #f4b56a, #e8743b 55%, #9c3d1f); box-shadow: 0 24px 60px rgba(27,25,23,.22); }
.mk-strip { position: absolute; top: 4%; left: 50%; transform: translateX(-50%); display: flex; gap: 2%; padding: 1.5%; width: 62%; background: rgba(30,30,32,.82); border-radius: 12px; z-index: 2; }
.mk-thumb { flex: 1; aspect-ratio: 16 / 10; background: rgba(255,255,255,.14); border-radius: 5px; position: relative; overflow: hidden; }
.mk-thumb i { position: absolute; top: 0; bottom: 0; background: rgba(255,255,255,.55); }
.mk-thumb.on { outline: 2px solid #ffd9a8; }
.mk-thumb.on i { background: #ffd9a8; }
.mk-stage { position: absolute; left: 2%; top: 24%; bottom: 10%; width: 9%; display: flex; flex-direction: column; gap: 6%; }
.mk-stage span { flex: 1; background: rgba(255,255,255,.75); border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.mk-app { position: absolute; top: 22%; bottom: 4%; background: #fff; border-radius: 8px; box-shadow: 0 8px 22px rgba(0,0,0,.3); overflow: hidden; }
.mk-bar { height: 9%; background: #e9e6e0; }
.mk-drop { outline: 3px solid #ffd9a8; }
.shots .mock .mk-win { width: min(100%, 520px); }
.showcase-visual .mock figcaption { display: none; }
