/* About page — reuses tokens + app components (.btn, .toggle, .modal, .hint-card, .cl-*). */
html, body.about { overflow: auto; height: auto; }
body.about { font-size: 14px; line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) { html:has(body.about) { scroll-behavior: smooth; } }
.about h1, .about h2, .about h3 { font-family: var(--font-ui); margin: 0; }
.about a { color: inherit; }
.about kbd { font: 500 10px/1 var(--font-mono); border: 1px solid var(--rule-2); border-radius: 4px; padding: 3px 5px; background: var(--paper); white-space: nowrap; }
.eyebrow { margin: 0 0 10px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--plate); }
.pill { display: inline-block; font: 500 10.5px/1 var(--font-mono); padding: 4px 7px; border-radius: 20px; border: 1px solid var(--rule-2); background: var(--sheet); white-space: nowrap; }

/* bar */
.a-bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; height: 58px; padding: 0 20px;
  background: color-mix(in srgb, var(--sheet) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule);
}
.a-brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.a-crumb { font: 400 10.5px/1 var(--font-mono); color: var(--graphite); }
.a-nav { display: flex; gap: 2px; margin-left: 8px; }
.a-nav a { font: 400 11px/1 var(--font-mono); text-decoration: none; color: var(--graphite); padding: 7px 9px; border-radius: 5px; }
.a-nav a:hover { color: var(--ink); background: var(--paper); }
.a-end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.a-end .btn { text-decoration: none; }

.a-main { max-width: 1140px; margin: 0 auto; padding: 0 24px 40px; }
.a-main > section { padding: 64px 0 8px; scroll-margin-top: 60px; }
.a-sec-head { max-width: 680px; margin-bottom: 26px; }
.a-sec-head h2, .a-hints h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.08; font-weight: 750; font-variation-settings: "wdth" 115; letter-spacing: -0.005em; }
.a-sec-head p:not(.eyebrow) { color: var(--ink-2); margin: 10px 0 0; }

/* hero */
.a-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: center; padding-top: 56px !important; }
.a-hero h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: .96; font-weight: 800; font-variation-settings: "wdth" 120; letter-spacing: -0.02em; }
.lede { font-size: 16px; color: var(--ink-2); margin: 20px 0 0; max-width: 54ch; }
.lede.small { font-size: 14px; color: var(--graphite); margin-top: 12px; }
.lede b { color: var(--ink); }

/* demo frames */
.demo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #0e0e10; border: 1px solid var(--rule-2); }
.demo canvas { display: block; width: 100%; aspect-ratio: 16 / 10; }
.a-hero-demo canvas { aspect-ratio: 4 / 3; }
.readout {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); font: 500 10px/1 var(--font-mono); letter-spacing: .03em;
  background: color-mix(in srgb, #0e0e10 78%, transparent); color: #edebe4; padding: 6px 8px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.readout:empty { display: none; }

/* hint mode */
.a-hints {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  margin-top: 56px; padding: 34px !important; border-radius: 18px; background: var(--sheet); border: 1px solid var(--rule);
}
.a-hints p { color: var(--ink-2); }
.a-list { margin: 14px 0 22px; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-2); }
.a-switch { font-size: 14px; font-weight: 600; color: var(--ink); gap: 12px; padding: 12px 16px; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--paper); width: fit-content; }
.a-switch .sw { width: 40px; height: 22px; }
.a-switch .sw::after { width: 16px; height: 16px; top: 3px; left: 3px; }
.a-switch input:checked + .sw::after { transform: translateX(18px); }
body.hints-on .a-switch { border-color: var(--plate); box-shadow: 0 0 0 3px var(--plate-soft); }
.a-note { font-size: 12px; color: var(--graphite) !important; margin: 10px 0 0; }
.stage-mock { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--rule-2); background: #0e0e10; }
.stage-mock canvas { display: block; width: 100%; aspect-ratio: 4 / 3; opacity: .9; }
.hint-card.mock { position: absolute; left: 14px; bottom: 14px; width: min(320px, calc(100% - 28px)); animation: none; }
.hint-card.mock .hc-off { text-decoration: underline; }
body:not(.hints-on) .hint-card.mock { opacity: .55; filter: grayscale(1); }

/* steps */
.a-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.a-steps li { counter-increment: s; position: relative; padding: 54px 20px 20px; border: 1px solid var(--rule); border-radius: 14px; background: var(--sheet); color: var(--ink-2); font-size: 13.5px; }
.a-steps li::before { content: "0" counter(s); position: absolute; left: 20px; top: 18px; font: 600 12px/1 var(--font-mono); color: var(--plate); }
.a-steps b { color: var(--ink); display: block; margin-bottom: 6px; font-size: 15px; }
.a-steps .pill { margin: 1px 0; }

/* control map */
.a-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.map-art { border: 1px solid var(--rule-2); border-radius: 12px; overflow: hidden; background: var(--sheet); font: 400 9.5px/1 var(--font-mono); color: var(--graphite); position: sticky; top: 76px; }
.map-art > div { display: flex; align-items: center; gap: 8px; }
.m-bar, .m-strip { position: relative; padding: 0 10px; height: 34px; border-bottom: 1px solid var(--rule); }
.m-strip { border-bottom: 0; border-top: 1px solid var(--rule); height: 26px; }
.m-bar span { padding: 4px 6px; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--paper); }
.m-bar span:first-of-type { border: 0; background: none; font-weight: 600; color: var(--ink); }
.m-sp { flex: 1; border: 0 !important; background: none !important; }
.m-rec { color: var(--signal); border-color: var(--signal) !important; }
.m-body { display: grid !important; grid-template-columns: 1fr 34%; align-items: stretch !important; gap: 0 !important; height: 250px; }
.m-stage { position: relative; background: var(--board); }
.m-art { position: absolute; inset: 34px 30px 52px 64px; border-radius: 3px; background: radial-gradient(circle at 40% 40%, #edebe4 0 6%, transparent 7%) 0 0 / 9px 9px, #111; opacity: .9; }
.m-tools { position: absolute; left: 10px; top: 12px; display: grid; gap: 4px; padding: 4px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; }
.m-tools b { width: 18px; height: 18px; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--paper); }
.m-tools .m-reset { border-color: var(--signal); }
.m-vbar { display: flex; align-items: center; position: absolute !important; left: 64px; right: 30px; bottom: 12px; height: 28px; padding: 0 8px; justify-content: space-between; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; }
.m-rail { position: relative; display: flex; flex-direction: column; align-items: stretch !important; justify-content: flex-start; padding: 14px 10px; gap: 8px !important; border-left: 1px solid var(--rule); }
.m-rail span { padding: 9px 8px; border: 1px solid var(--rule); border-radius: 5px; color: var(--ink-2); font-weight: 500; }
.m-k { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--plate); color: #fff; font: 600 10px/1 var(--font-mono); font-style: normal; flex: none; }
.map-art .m-k { position: absolute; z-index: 2; }
.m-bar > .m-k { left: -2px; top: -2px; position: static; }
.m-tools > .m-k { position: absolute; right: -24px; top: 0; }
.m-vbar > .m-k { position: absolute; left: -24px; top: 5px; }
.m-rail > .m-k { position: static; align-self: flex-end; margin-bottom: -4px; }
.m-strip > .m-k { position: static; }
.map-keys { margin: 0; display: grid; gap: 4px; }
.map-keys dt { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-top: 14px; }
.map-keys dt:first-child { margin-top: 0; }
.map-keys dd { margin: 4px 0 0 28px; color: var(--ink-2); font-size: 13.5px; }
.a-keys { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; }
.a-keys div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-2); }

/* guides */
.a-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--sheet); }
.guide .demo { border: 0; border-radius: 0; border-bottom: 1px solid var(--rule); }
.g-body { padding: 18px 20px 20px; display: flex; flex-direction: column; }
.g-idx { margin: 0 0 4px; font: 500 10px/1 var(--font-mono); color: var(--graphite); }
.g-body h3 { font-size: 19px; font-weight: 700; font-variation-settings: "wdth" 112; }
.g-body p { margin: 8px 0 0; color: var(--ink-2); font-size: 13.5px; }
.g-tips { margin: 12px 0 16px; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.g-tips li { position: relative; padding-left: 16px; }
.g-tips li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--plate); }
.g-body .btn { margin-top: auto; align-self: flex-start; text-decoration: none; }

/* recipes */
.a-recipes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.recipe { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--rule); border-radius: 14px; background: var(--sheet); }
.recipe h3 { font-size: 17px; font-weight: 700; font-variation-settings: "wdth" 112; }
.recipe p { margin: 0; color: var(--ink-2); font-size: 13px; }
.recipe .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.recipe .btn { margin-top: auto; align-self: flex-start; text-decoration: none; }

/* export table */
.a-table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--sheet); }
.a-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.a-table th { text-align: left; font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.a-table td { padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.a-table tr:last-child td { border-bottom: 0; }
.a-table td:first-child { white-space: nowrap; color: var(--ink); }

/* footer */
.a-foot { display: flex; align-items: center; gap: 14px; max-width: 1140px; margin: 40px auto 0; padding: 22px 24px 30px; border-top: 1px solid var(--rule); }
.a-foot .wordmark { font-size: 13px; }
.a-foot-ver { font: 400 10px/1 var(--font-mono); color: var(--graphite); }
.a-foot .strip-links { margin-left: auto; }

@media (max-width: 960px) {
  .a-nav { display: none; }
  .a-hero, .a-hints, .a-map { grid-template-columns: 1fr; }
  .map-art { position: static; }
  .a-steps, .a-recipes { grid-template-columns: 1fr; }
  .a-guides { grid-template-columns: 1fr; }
  .a-keys { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .a-bar { padding: 0 14px; gap: 10px; }
  .a-crumb { display: none; }
  .a-main { padding: 0 16px 30px; }
  .a-hints { padding: 22px !important; }
  .a-keys { grid-template-columns: 1fr; }
  .m-bar span:not(:first-of-type):not(.m-rec) { display: none; }
  .m-vbar span:not(.m-rec), .m-strip span:first-of-type { display: none; }
  .map-art span { white-space: nowrap; }
}

/* liked the tool? */
.a-support {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center;
  margin-top: 64px; padding: 34px 40px !important; border-radius: 18px; border: 1px solid var(--rule);
  background: radial-gradient(circle at 12% 50%, color-mix(in srgb, var(--signal) 9%, transparent), transparent 46%), var(--sheet);
}
.a-support-heart { width: 180px; height: 156px; display: block; color: var(--signal); cursor: pointer; touch-action: manipulation; }
.a-support .eyebrow { color: var(--signal); }
.a-support h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.08; font-weight: 750; font-variation-settings: "wdth" 115; }
.a-support p:not(.eyebrow) { color: var(--ink-2); max-width: 60ch; }
.a-support-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.a-support-actions .btn { text-decoration: none; }
.a-support-actions .btn.primary { height: 38px; padding: 0 16px; font-size: 13.5px; }
@media (max-width: 760px) {
  .a-support { grid-template-columns: 1fr; text-align: center; padding: 26px 20px !important; gap: 10px; }
  .a-support-heart { margin: 0 auto; width: 140px; height: 121px; }
  .a-support-actions { justify-content: center; }
  .a-support p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .a-foot { flex-wrap: wrap; padding: 18px 16px 26px; }
  .a-foot .strip-links { margin-left: -6px; width: 100%; }
}

/* ── mobile & tablet pass (2026-11-11) ── */
.a-foot .strip-links a, .a-foot .strip-links button { color: var(--ink); }
.hint-card .hc-off { white-space: nowrap; }
@media (min-width: 561px) and (max-width: 960px) {
  .a-steps, .a-recipes, .a-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-steps li:last-child, .a-recipes .recipe:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  /* the export table becomes one card per output */
  .a-table thead { display: none; }
  .a-table, .a-table tbody, .a-table tr, .a-table td { display: block; width: 100%; }
  .a-table tr { padding: 14px 16px; border-bottom: 1px solid var(--rule); }
  .a-table tr:last-child { border-bottom: 0; }
  .a-table td { padding: 2px 0; border: 0; white-space: normal !important; }
  .a-table td:first-child { font-size: 14px; margin-bottom: 4px; }
  .a-table td:nth-child(2)::before { content: "Best for: "; color: var(--graphite); }
  .map-art { font-size: 8.5px; }
  .m-rail span { padding: 8px 6px; }
  .g-body .btn, .recipe .btn { height: 36px; padding: 0 14px; }
}
@media (max-width: 860px) {
  .a-brand { padding: 12px 0; }
  .a-foot .strip-links a, .a-foot .strip-links button { height: 40px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
  .a-foot .strip-links .support-btn { width: 44px; height: 40px; margin-left: auto; border-radius: 9px; }
  .a-foot .strip-links .support-btn .hm { width: 26px; height: 23px; }
}
