/* Unsited home page. Builds on the tokens and components in styles.css. */

body.home { overflow-x: hidden; }
.home main { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.home .eyebrow { color: var(--muted); }
.home h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }

/* ---------- nav ---------- */
.hnav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 max(24px, calc((100vw - 1160px) / 2 + 24px));
  background: var(--nav-bg); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line-2);
}
.hnav .brand { text-decoration: none; }
.hnav-links { display: flex; gap: 26px; }
.hnav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .15s; }
.hnav-links a:hover { color: var(--ink); }
.hnav-cta { display: flex; gap: 8px; }
.hnav-cta .btn { text-decoration: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 72px 0 56px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.hero-lede { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 20px 0 26px; max-width: 54ch; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-points li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14.5px; }
.hero-points svg { color: var(--ok); width: 17px; height: 17px; }

/* ---------- auth card ---------- */
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); margin-bottom: 18px; }
.auth-tabs button { border: 0; background: none; height: 34px; border-radius: 6px; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.auth-tabs button.on { background: var(--raised); color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.btn-google {
  width: 100%; height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #ffffff; color: #1f1f1f; border: 1px solid #dadce0; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .15s;
}
.btn-google:hover { background: #f2f2f2; }
.btn-google:disabled { opacity: .5; cursor: not-allowed; }
.btn-google svg { width: 18px; height: 18px; stroke: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--faint); font-size: 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pw-label { display: flex; justify-content: space-between; align-items: baseline; }
.pw-label .link-btn { font-size: 12px; font-weight: 500; }
.auth-msg { margin: -4px 0 14px; font-size: 13px; line-height: 1.45; color: var(--hot); }
.auth-msg.ok { color: var(--ok); }
.auth-fine { margin: 14px 0 0; font-size: 12px; color: var(--faint); text-align: center; }
.auth-fine a { color: var(--muted); }
.gsi-wrap { position: relative; display: flex; justify-content: center; min-height: 44px; }
/* Google's button lives in a light-mode frame. Chrome paints an opaque box behind a frame whose color scheme
   differs from the page (dark here), so the frame is marked light to keep its background transparent. */
#gsiBtn, #gsiBtn iframe { color-scheme: light; }
/* Locked (18+ box not ticked): a soft layer in the card's color dims the button and takes the clicks.
   Fading the frame itself would turn its edges into a grey box. */
.gsi-block { position: absolute; inset: 0; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--surface) 55%, transparent); cursor: not-allowed; }
.age-check { align-items: flex-start; gap: 10px; margin: 0 0 16px; font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--ink-2); }
.age-check input { margin-top: 2px; flex: none; }
.age-check a { color: var(--ink); }
.auth-hello { margin: 4px 0 16px; color: var(--ink-2); }
.auth-out { display: block; margin: 14px auto 0; }
#authSignedIn .btn, #authOff .btn { text-decoration: none; }

/* ---------- demo (signature) ---------- */
.demo-wrap { padding: 8px 0 30px; }
.demo { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); overflow: hidden; box-shadow: 0 40px 80px -40px var(--shadow-c); }
.demo-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line-2); background: var(--surface); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--raised); }
.demo-bar span { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.demo-grid { display: grid; grid-template-columns: 250px 1fr; min-height: 380px; }
.demo-side { padding: 18px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; }
.demo-field label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.demo-input { height: 34px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); padding: 0 10px; display: flex; align-items: center; font-size: 13px; color: var(--ink); }
.caret { width: 1px; height: 15px; background: var(--ink); margin-left: 1px; animation: blink 1s steps(1) infinite; }
.demo-check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.demo-check i { width: 13px; height: 13px; border-radius: 3px; background: var(--check); box-shadow: inset 0 0 0 3px var(--bg-2); }
.demo-btn { height: 36px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 7px; transition: transform .15s, background .15s; }
.demo-btn.press { transform: scale(.97); background: var(--accent-hover); }
.demo-btn svg { width: 14px; height: 14px; }
.demo-progress { height: 3px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.demo-progress span { display: block; height: 100%; width: 0; background: var(--ink-2); }
.demo-status { margin: 0; font-size: 11.5px; color: var(--faint); font-family: var(--mono); }
.demo-main { position: relative; padding: 14px; overflow: hidden; }
.demo-rows { display: grid; gap: 6px; }
.demo-row {
  display: grid; grid-template-columns: 30px 1fr auto auto; gap: 12px; align-items: center; padding: 9px 12px;
  border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface);
  opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease, border-color .3s, background .3s;
}
.demo-row.in { opacity: 1; transform: none; }
.demo-row.pick { border-color: var(--line-strong); background: var(--surface-2); }
.demo-row .av { width: 30px; height: 30px; font-size: 11px; border-radius: 8px; }
.demo-row .nm { font-weight: 600; font-size: 13px; }
.demo-row .ct { font-size: 11.5px; color: var(--muted); }
.demo-prompt {
  position: absolute; top: 14px; right: 14px; bottom: 14px; width: min(400px, 62%);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column;
  transform: translateX(110%); transition: transform .5s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 40px -20px var(--shadow-c);
}
.demo-prompt.open { transform: none; }
.demo-prompt-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line-2); font-size: 11.5px; color: var(--muted); }
.demo-copy { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; border: 1px solid var(--line); color: var(--ink-2); transition: background .2s, color .2s; }
.demo-copy svg { width: 12px; height: 12px; }
.demo-copy.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.demo-prompt pre { margin: 0; padding: 12px; font-family: var(--mono); font-size: 11px; line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; overflow: hidden; flex: 1; }
.demo-note { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--faint); }

/* ---------- sections ---------- */
.section { padding: 84px 0 0; scroll-margin-top: 70px; }
.section-head { max-width: 660px; margin-bottom: 34px; }
.section-lede { color: var(--muted); font-size: 16px; margin: 12px 0 0; }

.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.how-card h3 { font-size: 17px; margin: 18px 0 8px; }
.how-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.how-art { height: 110px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; }
.mini-input { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 13px; color: var(--ink); width: 78%; }
.mini-input svg { color: var(--faint); width: 14px; height: 14px; }
.mini-input .type { overflow: hidden; white-space: nowrap; border-right: 1px solid var(--ink); width: 0; }
.how-card.in .mini-input .type { animation: typing 2.4s steps(22) .3s forwards, caretOut .1s 2.8s forwards; }
.art-score { display: flex; flex-direction: column; gap: 12px; }
.art-tags { display: flex; gap: 6px; }
.sig.big { height: 34px; gap: 5px; }
.sig.big i { width: 9px; border-radius: 2px; background: var(--line); transition: background .3s; }
.how-card.in .sig.big i { animation: fillBar .4s forwards; }
.how-card.in .sig.big i:nth-child(1) { animation-delay: .3s; } .how-card.in .sig.big i:nth-child(2) { animation-delay: .5s; }
.how-card.in .sig.big i:nth-child(3) { animation-delay: .7s; } .how-card.in .sig.big i:nth-child(4) { animation-delay: .9s; }
.copy-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 13px; overflow: hidden; }
.copy-pill svg { width: 15px; height: 15px; }
.copy-pill { transition: background .3s, color .3s; }
.copy-pill .ic-check, .copy-pill .t2 { display: none; }
.copy-pill.done { background: var(--ok); }
.copy-pill.done .ic-copy, .copy-pill.done .t1 { display: none; }
.copy-pill.done .ic-check, .copy-pill.done .t2 { display: inline-block; }

/* builders */
.builders { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.builder-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.builder-tabs button { border: 0; background: none; height: 34px; padding: 0 14px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.builder-tabs button:hover { color: var(--ink); }
.builder-tabs button.on { background: var(--raised); color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.builder-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; padding: 26px; min-height: 230px; }
.builder-copy h3 { font-size: 22px; margin-bottom: 10px; }
.builder-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.builder-code { margin: 0; padding: 18px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: var(--ink-2); white-space: pre-wrap; }
.builder-code .k { color: var(--warm); }
.builder-code .c { color: var(--faint); }
.builder-panel.swap .builder-copy, .builder-panel.swap .builder-code { animation: swapIn .35s ease; }
.builder-timer { height: 2px; background: var(--line-2); }
.builder-timer span { display: block; height: 100%; width: 0; background: var(--faint); }
.builder-timer span.run { animation: timer 5s linear forwards; }

/* inside */
.inside { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.inside li { padding: 22px 22px 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.inside li:not(:nth-child(3n + 1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.inside strong { font-size: 15px; }
.inside span { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.plan-rec { border-color: var(--line-strong); background: var(--surface-2); }
.plan-badge { position: absolute; top: 18px; right: 18px; margin: 0; font-size: 11px; font-weight: 600; color: var(--ink-2); padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; }
.plan h3 { font-size: 18px; }
.price { margin: 12px 0 18px; display: flex; align-items: baseline; gap: 4px; }
.price b { font-family: var(--display); font-size: 40px; letter-spacing: -0.04em; font-weight: 700; }
.price span { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.plan li { color: var(--ink-2); font-size: 14px; padding-left: 22px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 9px; height: 5px; border-left: 1.5px solid var(--ok); border-bottom: 1.5px solid var(--ok); transform: rotate(-45deg); }
.plan li em { font-style: normal; font-size: 11px; color: var(--faint); margin-left: 4px; }
.plan .btn { text-decoration: none; }

/* faq */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 16px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--muted); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); line-height: 1.65; max-width: 68ch; }
.faq details a { color: var(--link); }

.final { margin: 96px 0 0; padding: 56px 24px; text-align: center; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.final h2 { margin-bottom: 22px; }
.final .btn { text-decoration: none; height: 44px; padding: 0 20px; }

.hfoot { max-width: 1160px; margin: 56px auto 0; padding: 26px 24px 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line-2); }
.hfoot nav { display: flex; gap: 20px; }
.hfoot a { color: var(--muted); text-decoration: none; }
.hfoot a:hover { color: var(--ink); }

/* ---------- legal pages ---------- */
.home main.legal-main { max-width: 760px; margin: 0 auto; padding: 56px 24px 20px; }
.legal-main h1 { font-size: clamp(32px, 4.5vw, 46px); letter-spacing: -0.04em; font-weight: 700; }
.legal-date { color: var(--faint); margin: 8px 0 28px; font-size: 14px; }
.legal-main h2 { font-size: 20px; margin: 36px 0 12px; letter-spacing: -0.02em; }
.legal-main p, .legal-main li { color: var(--ink-2); line-height: 1.7; font-size: 15px; }
.legal-main ul { padding-left: 20px; margin: 0; display: grid; gap: 6px; }
.legal-main strong { color: var(--ink); }
.legal .hfoot { max-width: 760px; }

/* ---------- motion ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes typing { to { width: var(--type-w, 22ch); } }
@keyframes caretOut { to { border-right-color: transparent; } }
@keyframes fillBar { to { background: var(--hot); } }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes timer { to { width: 100%; } }

/* Hero rises in on load; later sections fade up once as they enter. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .auth-card, .demo-wrap { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .auth-card { animation-delay: .15s; }
  .demo-wrap { animation-delay: .3s; }
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .mini-input .type { width: auto; border-right: 0; }
  .how-card .sig.big i { background: var(--hot); }
  .builder-timer { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hnav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 40px; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-side { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .demo-main { min-height: 330px; }
  .demo-prompt { width: auto; left: 14px; }
  .how, .plans { grid-template-columns: 1fr; }
  .builder-panel { grid-template-columns: 1fr; }
  .inside { grid-template-columns: 1fr; }
  .inside li, .inside li:not(:nth-child(3n + 1)) { padding: 20px 0; border-left: 0; }
}
@media (max-width: 560px) {
  .home main { padding: 0 16px; }
  .hnav { padding: 0 16px; }
  #navSignIn { display: none; }
  .section { padding-top: 64px; }
  .demo-row { grid-template-columns: 30px 1fr auto; }
  .demo-row .sig { display: none; }
}

/* ---------- guides (articles) ---------- */
.home main.guide-main { max-width: 760px; margin: 0 auto; padding: 56px 24px 24px; }
@media (max-width: 760px) { .home main.guide-main { padding: 36px 18px 20px; } }
.guide-crumbs { font-size: 13px; color: var(--faint); margin: 0 0 18px; }
.guide-crumbs a { color: var(--muted); text-decoration: none; }
.guide-crumbs a:hover { color: var(--ink); }
.guide-main h1 { font-size: clamp(32px, 4.8vw, 48px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 700; }
.guide-meta { margin: 14px 0 0; font-size: 13.5px; color: var(--faint); }
.guide-lede { margin: 22px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.guide-toc { margin: 30px 0 8px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.guide-toc p { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.guide-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 5px; }
.guide-toc a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.guide-toc a:hover { color: var(--ink); text-decoration: underline; }
.guide-main h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.03em; margin: 48px 0 14px; scroll-margin-top: 90px; }
.guide-main h3 { font-size: 18px; letter-spacing: -0.015em; margin: 28px 0 8px; }
.guide-main p, .guide-main li { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.guide-main p { margin: 0 0 16px; }
.guide-main ul, .guide-main ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.guide-main strong { color: var(--ink); font-weight: 600; }
.guide-main a:not(.btn):not(.guide-card) { color: var(--ink); text-underline-offset: 3px; }
.guide-main table { width: 100%; border-collapse: collapse; margin: 6px 0 22px; font-size: 14.5px; }
.guide-main th, .guide-main td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--ink-2); }
.guide-main th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); background: var(--surface); }
.guide-main td:first-child { color: var(--ink); font-weight: 500; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 6px 0 22px; }
.table-scroll table { margin: 0; }
.note { margin: 6px 0 22px; padding: 16px 18px; border-left: 2px solid var(--line-strong); background: var(--surface); border-radius: 0 10px 10px 0; }
.note p:last-child { margin: 0; }
.template { margin: 6px 0 22px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.template-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.template p { margin: 0 0 10px; color: var(--ink); font-size: 15.5px; }
.template p:last-child { margin: 0; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.guide-cta { margin: 44px 0 10px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--logo-dot); border-radius: 14px; }
.guide-cta h2 { margin: 0 0 8px; font-size: 24px; }
.guide-cta p { margin: 0 0 18px; }
.guide-cta .btn { text-decoration: none; }
.guide-next { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: 15px; }
.guide-list { list-style: none; padding: 0 !important; display: grid; gap: 12px; margin-top: 28px; }
.guide-card { display: block; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .15s, background .15s; }
.guide-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.guide-card h2 { margin: 0 0 6px; font-size: 21px; color: var(--ink); }
.guide-card p { margin: 0; font-size: 15px; color: var(--muted); }
.guides .hfoot { max-width: 760px; }

/* "Google Maps" in Google's colors in the closing headline (no letter gaps, same weight) */
.gmaps { white-space: nowrap; }
.gmaps .g-b { color: #4285f4; } .gmaps .g-r { color: #ea4335; } .gmaps .g-y { color: #fbbc05; } .gmaps .g-g { color: #34a853; }
:root[data-theme="light"] .gmaps .g-y { color: #e3a600; } /* a touch darker so yellow stays readable on light paper */

/* ---------- 404 page ---------- */
.home main.nf-main { max-width: 680px; margin: 0 auto; padding: 72px 24px 60px; text-align: center; min-height: calc(100vh - 160px); display: flex; flex-direction: column; justify-content: center; }
.nf-code { margin: 0 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--display); font-weight: 700; font-size: clamp(96px, 18vw, 168px); line-height: 1; letter-spacing: -0.06em; color: var(--ink); }
.nf-mark { display: inline-grid; width: .78em; height: .78em; }
.nf-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; }
.nf-mark circle { fill: var(--logo-dot); stroke: none; }
.nf-main h1 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; }
.nf-lede { margin: 16px auto 30px; max-width: 46ch; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.nf-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.nf-actions .btn { text-decoration: none; }
.nf-links { margin-top: 30px; display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; font-size: 14px; }
.nf-links a { color: var(--muted); text-underline-offset: 3px; }
.nf-links a:hover { color: var(--ink); }
.not-found .hfoot { max-width: 760px; }
