/* Tailend use-case pages. Dusk tokens, nav, footer and the homepage's use-case
   demo pieces, shared by /use-cases/ and each guide. Keep in step with /index.html. */
:root {
  color-scheme: light;
  --bg: #fffefc; --surface: #ffffff; --soft: #f8f7f4;
  --ink: #24212f; --ink-2: #45404f; --muted: #645e6c;
  --line: #ebe7e0; --line-2: #d8d2c8;
  --lead: #4f48c4; --lead-hover: #433cb0; --lead-ink: #4a43bd; --lead-soft: #eeecf9; --on-lead: #ffffff;
  --accent: #ec9a55; --accent-ink: #9c5219;
  --deep: #201d2a; --deep-2: #2a2636; --deep-line: #3a3447; --deep-text: #ece8f2; --deep-muted: #a59fb2;
  --code-k: #bdb7ff; --code-s: #f4bb8c; --code-n: #a3cbe8;
  --shadow-rgb: 52, 40, 30;
  --radius: 18px; --radius-sm: 12px; --wrap: 1320px; --gutter: clamp(16px, 4.5vw, 64px);
  --display: "Libre Franklin", "Instrument Sans", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --paper: 0 1px 1px rgba(var(--shadow-rgb), .04), 0 2px 6px rgba(var(--shadow-rgb), .04), 0 14px 32px -16px rgba(var(--shadow-rgb), .16);
  --paper-lift: 0 1px 1px rgba(var(--shadow-rgb), .05), 0 4px 10px rgba(var(--shadow-rgb), .05), 0 26px 50px -24px rgba(var(--shadow-rgb), .26);
  --svg-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .28  0 0 0 0 .2  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}
/* Hand-drawn local glyphs (same as the homepage), used as masks */
:root {
  --g-rowhome: url("/img/icons/rowhome.webp");
  --g-flyer: url("/img/icons/flyer.webp");
  --g-door: url("/img/icons/door.webp");
  --g-lamp: url("/img/icons/lamp.webp");
  --g-stoop: url("/img/icons/stoop.webp");
  --g-tree: url("/img/icons/tree.webp");
  --g-rowhomes: url("/img/icons/rowhomes.webp");
  --g-sun: url("/img/icons/sun.webp");
  --g-awning: url("/img/icons/awning.webp");
  --g-kite: url("/img/icons/kite.webp");
  --svg-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13.4 Q7.6 15.6 10.2 18.6 Q14.4 11 21 4.6'/%3E%3C/svg%3E");
  --g-trolley: url("/img/icons/trolley.webp");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg) var(--svg-grain); color: var(--ink); font: 17px/1.65 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--lead-soft); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lead-ink); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, .btn:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--lead); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
code { font-family: var(--mono); font-size: .88em; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--display); }
[id] { scroll-margin-top: 84px; }

/* Logo mark (footer and the TinyJawns lockup); the header is /header.css */
.logo-mark { display: block; width: 28px; height: 28px; flex: none; }
.logo-mark svg { display: block; width: 100%; height: 100%; }

/* Labels with a hand-drawn local glyph */
.label { font: 500 13px/1.2 var(--mono); color: var(--muted); letter-spacing: .02em; display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.label::before { content: ""; width: 28px; height: 28px; flex: none; background: var(--accent); margin-top: -6px; margin-bottom: -4px;
  -webkit-mask: var(--g, var(--g-rowhome)) center / contain no-repeat; mask: var(--g, var(--g-rowhome)) center / contain no-repeat; }
.label a { color: inherit; text-decoration: none; } .label a:hover { color: var(--ink); text-decoration: underline; }
.crumb-sep { color: var(--line-2); }

/* Buttons */
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 21px; border-radius: 12px; font: 600 16px/1.3 var(--text); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--lead); color: var(--on-lead); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -8px color-mix(in srgb, var(--lead) 70%, transparent); }
.btn.primary:hover { background: var(--lead-hover); }
.btn.quiet { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--paper); }
.btn.quiet:hover { box-shadow: 0 0 0 1px var(--line-2), var(--paper-lift); }

/* Sections */
main { display: block; }
section { padding: 88px 0; }
.soft-sec { background: var(--soft) var(--svg-grain); }
h2 { font: 600 clamp(28px, 3.8vw, 40px)/1.14 var(--display); letter-spacing: -0.022em; max-width: 18em; text-wrap: balance; }
.sub { color: var(--muted); max-width: 40em; margin: 14px 0 0; font-size: 18px; text-wrap: pretty; }

/* Hero: copy on the left, the bigger demo on the right */
.uc-hero { padding: 68px 0 72px; position: relative; isolation: isolate; }
.uc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 78% 55%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: center; }
.uc-hero h1 { font: 600 clamp(34px, 4.8vw, 52px)/1.08 var(--display); letter-spacing: -0.024em; text-wrap: balance; }
.uc-hero .lede { font-size: clamp(17px, 1.9vw, 19px); color: var(--muted); margin: 20px 0 0; max-width: 30em; text-wrap: pretty; }
.uc-hero .req { margin: 18px 0 0; font: 12.5px/1.5 var(--mono); color: var(--muted); }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* The demo stage (bigger cousin of the homepage's .uc-demo) */
.stage { background: var(--surface); border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -28px rgba(var(--shadow-rgb), .35); padding: 18px; min-width: 0; }
.stage-in { background: var(--soft); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.uc-call { display: flex; justify-content: space-between; gap: 10px; font: 500 11.5px/1.5 var(--mono); color: var(--muted); padding: 2px 2px 0; }
.uc-call span { overflow-wrap: anywhere; } .uc-call em { font-style: normal; white-space: nowrap; opacity: .8; }
.js .uc-in { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 160ms + 120ms); }
.js .shown .uc-in { opacity: 1; transform: none; }
.uc-q::after { content: ""; display: inline-block; width: 2px; height: 1em; background: currentColor; margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.done .uc-q::after, .uc-q:empty::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }

/* Problem: three short lines */
.trio { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trio li { background: var(--surface); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 22px 22px 24px; }
.trio b { display: block; font: 700 18px/1.3 var(--display); color: var(--ink); letter-spacing: -0.01em; margin-bottom: 6px; }
.trio span { color: var(--muted); font-size: 16px; }
.trio li::before { content: ""; display: block; width: 24px; height: 22px; margin-bottom: 12px; background: var(--accent);
  -webkit-mask: var(--g, var(--g-lamp)) center / contain no-repeat; mask: var(--g, var(--g-lamp)) center / contain no-repeat; }
@media (max-width: 820px) { .trio { grid-template-columns: 1fr; } }

/* How to build it: numbered steps with a request and a trimmed response */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 40px; counter-reset: step; }
.step { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: start; }
.step-copy { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.step-n { grid-row: 1 / span 3; width: 34px; height: 34px; border-radius: 50%; background: var(--lead-soft); color: var(--lead-ink); font: 600 15px/34px var(--mono); text-align: center; }
.step h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; margin: 3px 0 8px; }
.step p { margin: 0; color: var(--ink-2); max-width: 30em; }
.step .try { margin-top: 14px; font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.step .try:hover { text-decoration: underline; }
@media (max-width: 900px) { .step { grid-template-columns: 1fr; gap: 18px; } }

.window { border-radius: var(--radius); overflow: hidden; background: var(--deep); box-shadow: var(--paper-lift); min-width: 0; }
.window-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--deep-line); font: 500 12px/1.4 var(--mono); color: var(--deep-muted); }
.window-bar .verb { color: var(--code-s); font-weight: 600; }
.window-bar .path { color: var(--deep-text); overflow-wrap: anywhere; min-width: 0; }
.win-tag { margin-left: auto; white-space: nowrap; font-size: 11px; border: 1px solid var(--deep-line); border-radius: 999px; padding: 3px 8px; }
pre { margin: 0; padding: 14px 18px 18px; overflow-x: auto; color: var(--deep-text); font: 12.75px/1.65 var(--mono); tab-size: 2; max-height: 420px; }
pre .c { color: var(--deep-muted); } pre .k { color: var(--code-k); } pre .s { color: var(--code-s); } pre .n { color: var(--code-n); }
@media (max-width: 640px) { pre { font-size: 12px; padding: 12px 14px 16px; } }

/* Key fields */
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 32px 0 0; }
.fields div { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(150px, .7fr) 1.3fr; gap: 16px; }
.fields dt { font: 500 13.5px/1.5 var(--mono); color: var(--lead-ink); overflow-wrap: anywhere; }
.fields dd { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .fields { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .fields div { grid-template-columns: 1fr; gap: 4px; } }

/* Example prompts or screens */
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.ex { background: var(--surface); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ex .ex-k { font: 600 14.5px/1.2 var(--display); color: var(--ink); margin: 0; display: flex; align-items: center; gap: 10px; }
.ex .ex-k::before { content: ""; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--lead-soft); }
.ex .ex-k { position: relative; }
.ex .ex-k::after { content: ""; position: absolute; left: 6px; top: 50%; width: 18px; height: 17px; margin-top: -9px; background: var(--lead-ink);
  -webkit-mask: var(--g, var(--g-rowhome)) center / contain no-repeat; mask: var(--g, var(--g-rowhome)) center / contain no-repeat; }
.ex-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ex-res li { display: grid; gap: 1px; background: var(--soft); border-radius: 10px; padding: 8px 10px; box-shadow: inset 2px 0 0 var(--accent); }
.ex-res b { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.ex-res span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ex .ex-q { margin: 0; background: var(--lead); color: var(--on-lead); border-radius: 14px 14px 4px 14px; padding: 10px 14px; font-size: 15px; align-self: flex-end; max-width: 95%; }
.ex p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.ex code.call { display: block; margin-top: auto; font: 500 12px/1.55 var(--mono); color: var(--ink-2); background: var(--soft); border-radius: 10px; padding: 8px 11px; overflow-wrap: anywhere; }
@media (max-width: 900px) { .ex-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin: 32px 0 0; max-width: 780px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 600 17px/1.4 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 15px; font: 400 22px/1 var(--mono); color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 40em; }

/* Proof / split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split p { color: var(--ink-2); margin: 16px 0 0; max-width: 32em; }
.split p.label { margin: 0 0 22px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { font: 500 12.5px/1 var(--mono); background: var(--surface); color: var(--ink-2); padding: 7px 10px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }

/* Related guides and the index cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 24px; text-decoration: none; color: inherit; transition: box-shadow .15s ease, transform .15s ease; min-width: 0; }
.card:hover { box-shadow: 0 0 0 1px var(--line-2), var(--paper-lift); transform: translateY(-2px); }
.card-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--lead-soft); position: relative; }
.card-ic::after { content: ""; position: absolute; inset: 9px; background: var(--lead-ink); -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .go { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--lead-ink); font-size: 15px; }
.card .mini-demo { background: var(--soft); border-radius: 12px; padding: 12px; margin-bottom: 4px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.also { margin-top: 28px; color: var(--muted); font-size: 16px; }

/* End CTA */
.end { text-align: center; }
.end h2 { margin: 0 auto; }
.end .sub { margin-left: auto; margin-right: auto; }
.end .ctas { justify-content: center; }

/* Footer: shared, see /footer.css */

/* Built with: the TinyJawns customer lockup (same as the homepage) */
.tj-lockup { display: inline-flex; align-items: center; gap: 18px; margin: 0 0 28px; padding: 12px 22px 12px 14px; border-radius: 16px; background: #fbf8f1; box-shadow: 0 0 0 1px var(--line), var(--paper); text-decoration: none; color: var(--ink-2); max-width: 100%; transition: box-shadow .2s; }
.tj-lockup:hover { box-shadow: 0 0 0 1px var(--line-2), var(--paper-lift); }
.tj-logo { width: 144px; height: auto; flex: none; }
.tj-meta { display: grid; gap: 3px; padding-left: 18px; border-left: 1px solid var(--line-2); font-size: 14px; line-height: 1.35; }
.tj-k { font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tj-pw { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font: 500 12.5px/1 var(--mono); color: var(--muted); }
.tj-pw .logo-mark { width: 16px; height: 16px; }
.tj-pw b { font: 800 14px/1 "Bricolage Grotesque", var(--display); color: var(--ink); letter-spacing: -0.02em; }
@media (max-width: 420px) { .tj-lockup { gap: 12px; padding: 10px 14px 10px 10px; } .tj-logo { width: 104px; } .tj-meta { padding-left: 12px; font-size: 13px; } }

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .uc-hero { padding: 44px 0 48px; }
  .ctas .btn { flex: 1 1 auto; justify-content: center; }
  .stage { padding: 10px; border-radius: 18px; } .stage-in { padding: 12px; }
}

/* ---- Demo pieces, shared with the homepage's use-case tabs ---- */
/* chat */
.chat { display: grid; gap: 10px; }
.bub { margin: 0; border-radius: 16px; padding: 10px 14px; font-size: 14.5px; max-width: 92%; }
.bub.me { justify-self: end; background: var(--lead); color: var(--on-lead); border-bottom-right-radius: 4px; }
.bub.bot { background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-bottom-left-radius: 4px; }
.bub.bot > p { margin: 0 0 8px; color: var(--ink-2); }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mini li { display: grid; padding: 8px 10px; border-radius: 10px; background: var(--soft); }
.mini b { font-weight: 600; color: var(--ink); font-size: 14px; } .mini span { font-size: 12.5px; color: var(--muted); }
.cite { margin: 8px 0 0 !important; font: 500 11px/1 var(--mono); color: var(--muted) !important; }
/* week calendar */
.wk { background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); padding: 12px; }
.wk-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; } .wk-head b { font: 700 15px var(--display); } .wk-head span { font-size: 12px; color: var(--muted); }
.wk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.wk-day { background: var(--soft); border-radius: 8px; padding: 6px 5px 8px; min-height: 150px; display: flex; flex-direction: column; gap: 4px; }
.wk-day.we { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.wk-day b { font: 600 11px var(--mono); color: var(--muted); }
.wk-n { font: 600 16px/1 var(--mono); color: var(--ink); }
.wk-day i { font-style: normal; font-size: 10.5px; line-height: 1.25; background: var(--surface); border-radius: 5px; padding: 3px 4px; box-shadow: inset 2px 0 0 var(--lead); color: var(--ink-2); }
/* newsletter */
.mail { background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.mail-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.mail-from { font-size: 12px; color: var(--muted); } .mail-subj { font: 700 15px/1.3 var(--display); color: var(--ink); }
.mail-body { padding: 10px 14px 12px; display: grid; gap: 8px; }
.mail-item { display: grid; padding-left: 12px; border-left: 2px solid var(--accent); } .mail-item b { font-size: 14.5px; color: var(--ink); font-weight: 600; } .mail-item span { font-size: 12.5px; color: var(--muted); }
.mail-foot { margin: 2px 0 0 !important; font-size: 12px; color: var(--muted) !important; }
/* home listing */
.home { background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.home-top { display: flex; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.home-ph { width: 64px; height: 48px; border-radius: 8px; background: var(--soft); position: relative; flex: none; }
.home-ph::after { content: ""; position: absolute; inset: 8px; background: var(--muted); -webkit-mask: var(--g-rowhome) center / contain no-repeat; mask: var(--g-rowhome) center / contain no-repeat; }
.home-top b { display: block; font-weight: 600; color: var(--ink); } .home-top span { font-size: 12.5px; color: var(--muted); }
.home-fam { padding: 12px; } .hf-t { margin: 0 0 8px !important; font: 600 12px var(--mono); color: var(--muted); }
.hf-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.gauge { text-align: center; } .gauge svg { width: 100%; height: auto; } .gauge b { display: block; margin-top: -6px; font: 600 14px var(--mono); color: var(--accent-ink); }
.g-bg, .g-fg { fill: none; stroke-width: 7; stroke-linecap: round; } .g-bg { stroke: var(--soft); } .g-fg { stroke: var(--accent); stroke-dasharray: 82; stroke-dashoffset: 82; transition: stroke-dashoffset 1.2s ease .4s; }
.uc-panel.shown .g-fg { stroke-dashoffset: 18; }
.dots { position: relative; height: 66px; border-radius: 10px; background: var(--soft); } .dots i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--lead); transform: translate(-50%,-50%); } .dots i.here { width: 12px; height: 12px; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.hf-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); } .hf-list li::before { content: "· "; color: var(--accent-ink); }
/* spaces mini */
.sp-mini { background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); padding: 12px 14px; display: grid; gap: 10px; }
.spm-top { display: flex; gap: 10px; align-items: baseline; } .spm-top b { font: 700 14px var(--display); } .spm-top span { font-size: 12.5px; color: var(--muted); }
.spm-verdict { margin: 0 !important; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-size: 13.5px; color: var(--ink-2) !important; } .spm-verdict b { color: var(--ink); }
.spm-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .spm-week span { height: 20px; border-radius: 5px; background: var(--soft); } .spm-week .t { background: color-mix(in srgb, var(--lead) 18%, var(--surface)); } .spm-week .o { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); }
.spm-price { margin: 0 !important; font-size: 13px; color: var(--muted) !important; } .spm-price b { color: var(--ink); font-family: var(--mono); }

/* ---- Bigger versions for the guide heroes ---- */
.stage .bub { font-size: 15px; }
.bub.me .uc-q::after { background: var(--on-lead); }
.mini li { grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; }
.mini li > b, .mini li > span:not(.ok) { grid-column: 1; }
.mini .ok { grid-column: 2; grid-row: 1 / span 2; font: 500 10.5px/1 var(--mono); color: #1d5a35; background: #e8f5ec; border-radius: 999px; padding: 5px 8px; white-space: nowrap; }
.occ { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.occ li { font: 500 12px/1 var(--mono); background: var(--soft); color: var(--ink-2); border-radius: 8px; padding: 7px 9px; }

/* calendar: counts per day, then a change arrives */
.stage .wk { padding: 14px; }
.stage .wk-day { min-height: 170px; }
.wk-n small { display: block; font: 500 9.5px/1.2 var(--mono); color: var(--muted); margin-top: 3px; }
.wk-day i.chg { transition: box-shadow .4s ease, background .4s ease; }
.shown.changed .wk-day i.chg { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); box-shadow: inset 2px 0 0 var(--accent); }
.chg-t::before { content: attr(data-a); }
.shown.changed .chg-t::before { content: attr(data-b); }
.sync { background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); padding: 10px 12px; font: 500 11.5px/1.5 var(--mono); color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.shown.changed .sync, html:not(.js) .sync { opacity: 1; transform: none; }
.sync b { color: var(--accent-ink); font-weight: 600; }
.sync .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* home listing: score, then the neighborhood */
.stage .home-top b { font-size: 16px; }
.stage .hf-row { grid-template-columns: 130px 1fr; }
.gauge b { font-size: 18px; }
.gauge small { display: block; font: 500 10.5px/1.3 var(--mono); color: var(--muted); margin-top: 2px; }
.shown .g-fg { stroke-dashoffset: var(--g-off, 19); }
.hf-sum { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.grp { margin-top: 12px; display: grid; gap: 6px; }
.grp h4 { margin: 0; font: 600 11px/1 var(--mono); color: var(--muted); letter-spacing: .02em; }
.grp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.grp li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink-2); background: var(--soft); border-radius: 8px; padding: 6px 9px; }
.grp li em { font: 500 11.5px/1.5 var(--mono); font-style: normal; color: var(--accent-ink); white-space: nowrap; }
.hf-cov { margin: 10px 0 0; font: 500 11px/1.4 var(--mono); color: var(--muted); }

/* compare two addresses */
.cmp { display: grid; gap: 8px; }
.cmp div { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.cmp b { font-size: 14px; color: var(--ink); font-weight: 600; }
.cmp span { font: 600 15px/1 var(--mono); color: var(--accent-ink); align-self: center; grid-row: 1 / span 2; grid-column: 2; }
.cmp small { font-size: 12.5px; color: var(--muted); }

@media (max-width: 520px) { .stage .wk-grid { grid-template-columns: repeat(4, 1fr); } .stage .wk-day { min-height: 0; } .stage .hf-row { grid-template-columns: 96px 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .uc-in, .sync, .g-fg, .wk-day i.chg, .card { transition: none !important; }
  .uc-q::after { animation: none; }
}

/* spacing polish: eyebrow to heading, heading rhythm, labelled parameter chips */
.uc-hero .label { margin-bottom: 28px; }
h1, h2 { margin-top: 0; }
.uc-hero h1 { line-height: 1.1; margin-bottom: 20px; }
section h2 { line-height: 1.14; margin-bottom: 16px; }
.tags-k { margin: 22px 0 0 !important; font: 500 12px/1 var(--mono); color: var(--muted); }
.tags-k + .tags { margin-top: 10px; }
.tags span em { font-style: normal; font-size: 11px; color: var(--accent-ink); margin-left: 4px; }

/* a light street map under the nearby dots (park, river, grid) */
.dots { background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 140' preserveAspectRatio='xMidYMid slice'%3E%3Crect width='320' height='140' fill='%23f8f7f4'/%3E%3Cpath d='M-10 0 C 14 40, 4 90, 22 150' fill='none' stroke='%23dbe7f0' stroke-width='16'/%3E%3Crect x='118' y='34' width='46' height='38' rx='4' fill='%23e3eedf'/%3E%3Cg stroke='%23e6e0d6' stroke-width='2.2' fill='none'%3E%3Cpath d='M0 20H320M0 52H320M0 84H320M0 116H320'/%3E%3Cpath d='M48 0V140M90 0V140M118 0V140M164 0V140M206 0V140M248 0V140M290 0V140'/%3E%3C/g%3E%3Cpath d='M0 128L320 6' stroke='%23ece6dc' stroke-width='3' fill='none'/%3E%3C/svg%3E") center / cover no-repeat; }
.dots i { box-shadow: 0 0 0 2px #fff; }

/* TinyJawns, real surfaces: browser-framed screenshots and the weekly in an inbox frame */
.tj-top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; }
.tj-top h2 { margin-bottom: 0; }
.tj-side p { color: var(--ink-2); margin: 0; max-width: 32em; }
.tj-side .ctas { margin-top: 18px; }
@media (max-width: 900px) { .tj-top { grid-template-columns: 1fr; } }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; margin-top: 40px; }
.shot:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 28px; align-items: end; }
.shot:first-child .shot-win img { aspect-ratio: 16 / 11; }
.shot:first-child figcaption { flex: none; padding-bottom: 6px; }
.shot:first-child figcaption p { font-size: 16.5px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.shot-win { display: block; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 22px 44px -26px rgba(var(--shadow-rgb), .4); transition: box-shadow .2s, transform .2s; }
.shot-win:hover { box-shadow: 0 0 0 1px var(--line-2), var(--paper-lift); }
@media (prefers-reduced-motion: no-preference) { .shot-win:hover { transform: translateY(-2px); } }
.shot-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--soft); }
.shot-dots { display: flex; gap: 5px; flex: none; } .shot-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); display: block; }
.shot-url { flex: 1; min-width: 0; text-align: center; font: 500 11px/1 var(--mono); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-win img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: var(--pos, top left); }
.shot figcaption { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.shot figcaption p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.shot figcaption b { color: var(--ink); font-weight: 600; }
.shot code.call { display: block; margin-top: auto; font: 500 11.5px/1.55 var(--mono); color: var(--ink-2); background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: 10px; padding: 9px 11px; overflow-wrap: anywhere; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; max-width: 600px; gap: 32px; } .shot:first-child { grid-template-columns: 1fr; gap: 14px; } .shot:first-child .shot-win img { aspect-ratio: 6 / 5; } .shot:first-child figcaption p { font-size: 15px; } }
.mail-fig { margin: 0; }
.mail-real .mail-from { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; color: var(--ink-2); }
.mail-to { font-weight: 400; color: var(--muted); }
.mail-shot { display: block; position: relative; max-height: 460px; overflow: hidden; background: #fffdf9; }
.mail-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: linear-gradient(rgba(255,255,255,0), var(--surface)); pointer-events: none; }
.mail-shot img { width: 100%; }
.mail-cap { font-size: 13.5px; color: var(--ink-2); margin: 0; padding: 0 2px; }
.mail-cap a { font-weight: 600; white-space: nowrap; }
@media (max-width: 520px) { .mail-shot { max-height: 380px; } .mail-real .mail-from { flex-direction: column; gap: 0; } }

/* Real map: a static OpenStreetMap render with pins placed by Web Mercator at build time */
.map { position: relative; overflow: hidden; background: #f2f0ec; }
.map img { position: absolute; max-width: none; height: auto; }
.home > .map { border-bottom: 1px solid var(--line); }
.map .pin { position: absolute; width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--lead); box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(var(--shadow-rgb), .35); }
.map .pin.event { width: 10px; height: 10px; background: var(--accent); transform: translate(-50%, -50%) translate(7px, -7px); }
.map .pin.home { width: 18px; height: 18px; background: var(--ink); z-index: 2; box-shadow: 0 0 0 3px #fff, 0 0 0 9px color-mix(in srgb, var(--accent) 30%, transparent), 0 2px 6px rgba(var(--shadow-rgb), .4); }
.map .pin.home::after { content: ""; position: absolute; inset: 3px; background: #fff; -webkit-mask: var(--g-rowhome) center / contain no-repeat; mask: var(--g-rowhome) center / contain no-repeat; }
.map-att { position: absolute; right: 0; bottom: 0; z-index: 3; font: 400 9.5px/1.4 var(--text); color: #4a4552; background: rgba(255,255,255,.82); padding: 1px 6px; border-top-left-radius: 6px; }
.map-key { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; padding: 8px 12px 0; font: 500 11px/1.4 var(--mono); color: var(--muted); }
.map-key span { display: inline-flex; align-items: center; gap: 6px; }
.map-key span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lead); }
.map-key .k-home::before { background: var(--ink); width: 11px; height: 11px; }
.map-key .k-event::before { background: var(--accent); }
.home-top { position: relative; }
.home-top > div:nth-child(2) { flex: 1; min-width: 0; }
.score { text-align: right; flex: none; }
.score b { display: block; font: 600 22px/1 var(--mono); color: var(--accent-ink); }
.score small { display: block; font: 500 10px/1.25 var(--mono); color: var(--muted); margin-top: 3px; }
.home-fam { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 2px; }
.home-fam .grp { margin-top: 0; }
.grp li { align-items: center; }
.grp li > span { display: grid; min-width: 0; }
.grp li b { font-weight: 600; color: var(--ink); font-size: 13px; line-height: 1.3; }
.grp li small { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
@media (max-width: 520px) { .home-fam { grid-template-columns: 1fr; } }
.ex .map.mini { border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.ex .map.mini .pin { width: 9px; height: 9px; }
.ex .map.mini .pin.home { width: 14px; height: 14px; }
.ex .map.mini .pin.home::after { inset: 2px; }

/* TinyJawns shot captions: a small glyph before the title */
.cap-ic { display: inline-flex; align-items: center; gap: 7px; }
.cap-ic::before { content: ""; width: 18px; height: 17px; background: var(--accent); -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }

/* Index: a small preview of each guide's hero */
.thumb { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--soft); box-shadow: 0 0 0 1px var(--line); margin-bottom: 6px; position: relative; }
.thumb-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 0; }
.thumb.thumb-map .map { height: 100%; }
.thumb-chat { padding: 12px; display: grid; gap: 8px; align-content: start; }
.thumb-chat .bub { font-size: 12px; padding: 7px 10px; max-width: 94%; }
.thumb-chat .bub.bot { padding: 6px; }
.thumb-chat .mini li { padding: 5px 8px; }
.thumb-chat .mini b { font-size: 12px; } .thumb-chat .mini span { font-size: 11px; }
.card .thumb + .card-ic { margin-top: 4px; }
.mini .ok.plain { color: var(--ink-2); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 520px) { .stage .home-top .home-ph { width: 44px; height: 40px; } .stage .home-top { gap: 10px; padding: 10px; } .score b { font-size: 19px; } .stage .uc-call { flex-direction: column; gap: 2px; } }
.map-key { padding-bottom: 4px; }

/* "This is real data" markers */
.real-badge { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 6px 12px 6px 10px; border-radius: 999px; background: color-mix(in srgb, #3ddc97 14%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, #1d7a4d 22%, transparent); font: 500 13px/1.2 var(--text, "Instrument Sans", sans-serif); color: #1d5a3c; }
.rb-dot { width: 8px; height: 8px; border-radius: 50%; background: #1d9a5c; box-shadow: 0 0 0 3px color-mix(in srgb, #1d9a5c 22%, transparent); flex: none; }
.uc-call em.real { font-style: normal; color: #1d5a3c; background: color-mix(in srgb, #3ddc97 16%, var(--surface)); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.uc-call em.real { align-self: flex-start; line-height: 1.5; }
