/* =========================================================================
   Sphot — minimal "bone & grotesque" design system. Plain CSS, no build.
   Warm off-white canvas, near-black type, hairline borders, rounded media
   blocks and a single forest-green feature block. One stylesheet powers the
   marketing site, the dashboard, and every generated store page (which can
   opt into a dark palette with <body data-theme="dark">).
   ========================================================================= */

/* ----------------------------------------------------------------------- *
 * 1. Tokens
 * ----------------------------------------------------------------------- */
:root {
  --bg: #f0efe8;          /* warm bone canvas */
  --bg-2: #e8e7df;        /* slightly deeper bone for media wells */
  --fg: #1b1b18;          /* near-black ink */
  --muted: #74746a;       /* warm grey */
  --faint: #9c9c91;
  --border: #dcdbd1;      /* hairline */
  --border-strong: #cac9bd;
  --card: #ffffff;

  --ink: #1b1b18;         /* black buttons */
  --ink-fg: #f3f2ec;

  --green: #2e6a4f;       /* forest accent block */
  --green-press: #285c44;
  --on-green: #eaf0ec;
  --on-green-faint: #b8ccc0;

  --star: #b8772a;
  --danger: #a8392b;
  --danger-soft: #f3e3df;
  --success: #2e6a4f;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --pill: 100px;
  --max: 1200px;
  --max-narrow: 760px;

  --shadow: 0 1px 0 rgba(27,27,24,.04), 0 10px 30px -20px rgba(27,27,24,.25);

  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: light;
}

body[data-theme="dark"], [data-theme="dark"] {
  --bg: #161614;
  --bg-2: #1e1e1b;
  --fg: #ecebe2;
  --muted: #9b9b8f;
  --faint: #6f6f64;
  --border: #2c2c27;
  --border-strong: #3a3a33;
  --card: #1e1e1b;
  --ink: #ecebe2;
  --ink-fg: #161614;
  --green: #3a7d60;
  --on-green: #eaf0ec;
  --danger-soft: #2a1d1a;
  color-scheme: dark;
}

/* ----------------------------------------------------------------------- *
 * 2. Reset & base
 * ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  font-size: 16px;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* faint matte grain over the whole canvas */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--fg); text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.025em; line-height: 1.04; color: var(--fg); }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }

.muted { color: var(--muted); }
.lead { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 52ch; line-height: 1.45; }

/* numbered section label: "01 — Problem" */
.label { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.label .num { color: var(--fg); }
.label .num::after { content: ""; display: inline-block; width: 14px; height: 1px; background: var(--border-strong); margin: 0 2px 0 8px; vertical-align: middle; }

::selection { background: rgba(46,106,79,.2); }

/* ----------------------------------------------------------------------- *
 * 3. Layout
 * ----------------------------------------------------------------------- */
.wrap { max-width: var(--max-narrow); margin: 0 auto; padding: 40px 22px 80px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section.tight { padding: clamp(36px, 5vw, 64px) 0; }
.center { text-align: center; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hidden { display: none !important; }

.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.12rem; max-width: 52ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ----------------------------------------------------------------------- *
 * 4. Buttons
 * ----------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--ink-fg); border: 1px solid var(--ink);
  border-radius: var(--pill);
  padding: 10px 22px; font-size: .92rem; font-weight: 500; font-family: inherit;
  letter-spacing: -.01em; cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: opacity .18s ease, background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { opacity: .9; text-decoration: none; }
.btn:active { transform: translateY(.5px); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn.secondary, .btn.outlined, .btn.tonal {
  background: transparent; color: var(--fg); border: 1px solid var(--border-strong);
}
.btn.secondary:hover, .btn.outlined:hover, .btn.tonal:hover { background: var(--bg-2); opacity: 1; }

.btn.green { background: var(--green); border-color: var(--green); color: var(--on-green); }
.btn.green:hover { background: var(--green-press); opacity: 1; }

.btn.text { background: transparent; border-color: transparent; color: var(--fg); padding-left: 8px; padding-right: 8px; }
.btn.text:hover { background: transparent; opacity: .6; }

.btn.lg { padding: 13px 28px; font-size: 1rem; }
.btn.block { width: 100%; }
.btn svg { width: 16px; height: 16px; }
.arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ----------------------------------------------------------------------- *
 * 5. Nav
 * ----------------------------------------------------------------------- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px clamp(20px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
nav.top .logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 1.12rem; letter-spacing: -.03em; color: var(--fg); }
.logo-mark {
  width: 22px; height: 22px; border-radius: 6px; background: var(--ink);
  display: inline-grid; place-items: center; position: relative;
}
.logo-mark::after { content: ""; width: 9px; height: 9px; border: 2px solid var(--bg); border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { color: var(--muted); font-size: .9rem; font-weight: 500; padding: 8px 12px; border-radius: var(--pill); }
.nav-links a:not(.btn):hover { color: var(--fg); }
.nav-only-desktop { display: inline-flex; }

/* ----------------------------------------------------------------------- *
 * 6. Hero
 * ----------------------------------------------------------------------- */
.hero-section { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.hero-inner { max-width: 820px; }
.hero-inner h1 { margin-bottom: 26px; max-width: 16ch; }
.hero-inner .lead { margin-bottom: 26px; }

/* inline capture field: input + black pill (used in hero & CTA) */
.capture {
  display: flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--border-strong);
  border-radius: var(--pill); padding: 5px 5px 5px 18px;
  max-width: 480px; box-shadow: var(--shadow);
}
.capture input { flex: 1; border: none; background: transparent; padding: 10px 0; font-size: .95rem; color: var(--fg); box-shadow: none !important; }
.capture input:focus { outline: none; }
.capture .btn { flex: none; }
.hero-note { margin-top: 14px; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.hero-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }

/* ----------------------------------------------------------------------- *
 * 7. Logo strip
 * ----------------------------------------------------------------------- */
.strip { padding: 30px 0 6px; }
.strip-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; }
.strip-logos span { font-weight: 500; color: var(--muted); font-size: 1rem; letter-spacing: -.02em; opacity: .75; }

/* ----------------------------------------------------------------------- *
 * 8. Media block (rounded product wells)
 * ----------------------------------------------------------------------- */
.media {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border);
}
.media-pad { padding: clamp(28px, 5vw, 64px); }

/* hero "Maps → website" stage */
.stage { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 40px); flex-wrap: wrap; }
.stage .to { color: var(--muted); display: grid; place-items: center; gap: 4px; font-family: var(--mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; }
.stage .to svg { width: 26px; height: 26px; }
@media (max-width: 720px) { .stage .to svg { transform: rotate(90deg); } }

.mini-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; width: min(380px, 90vw); box-shadow: var(--shadow); }
.mini-cover { height: 130px; background: linear-gradient(135deg, #cfd8d2, #2e6a4f); position: relative; }
.mini-search { position: absolute; top: 12px; left: 12px; right: 12px; background: var(--card); border-radius: var(--pill); padding: 7px 14px; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 7px; box-shadow: var(--shadow); }
.mini-search svg { width: 14px; height: 14px; }
.mini-pin { position: absolute; left: 50%; top: 56%; transform: translate(-50%,-50%); color: #fff; }
.mini-pin svg { width: 30px; height: 30px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.3)); }
.mini-body { padding: 14px 16px 16px; }
.mini-body h4 { font-size: 1.08rem; font-weight: 500; }
.mini-rate { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.mini-rate .stars { color: var(--star); }
.mini-tags { display: flex; gap: 7px; margin-top: 12px; }
.mini-tags span { font-size: .72rem; color: var(--muted); border: 1px solid var(--border); border-radius: var(--pill); padding: 4px 12px; }
.mini-tags span.live { background: var(--green); border-color: var(--green); color: var(--on-green); }

/* ----------------------------------------------------------------------- *
 * 9. Numbered split (Problem / Solution)
 * ----------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.seg h2, .seg h3 { margin: 14px 0 0; font-weight: 500; }
.seg h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.seg p { color: var(--muted); margin-top: 12px; max-width: 42ch; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ----------------------------------------------------------------------- *
 * 10. Green feature block
 * ----------------------------------------------------------------------- */
.green-block { background: var(--green); color: var(--on-green); border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 72px); position: relative; overflow: hidden; }
.green-block .label { color: var(--on-green-faint); }
.green-block .label .num { color: var(--on-green); }
.green-block .label .num::after { background: rgba(255,255,255,.3); }
.green-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 30px; }
.green-block h2 { color: var(--on-green); max-width: 16ch; }
.green-block .gb-copy p { color: var(--on-green-faint); margin-top: 16px; max-width: 40ch; }
.green-frame { border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 22px; background: rgba(0,0,0,.07); }
.green-frame .gf-tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-green-faint); }
.green-frame .gf-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; color: var(--on-green); border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 8px 12px; margin-top: 14px; }
.green-frame h4 { color: var(--on-green); margin: 18px 0 8px; font-weight: 500; font-size: 1.1rem; }
.green-frame p { color: var(--on-green-faint); font-size: .92rem; }
@media (max-width: 760px) { .green-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ----------------------------------------------------------------------- *
 * 11. Steps / feature cards
 * ----------------------------------------------------------------------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }

.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.step .label { margin-bottom: 20px; }
.step h3 { font-weight: 500; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }

/* showcase */
.showcase { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.shot { border-radius: var(--radius-lg); overflow: hidden; background: var(--card); border: 1px solid var(--border); }
.shot-thumb { height: 180px; display: grid; place-items: center; position: relative; }
.shot-thumb .emoji { font-size: 3rem; }
.shot-meta { padding: 16px 18px; border-top: 1px solid var(--border); }
.shot-meta strong { font-weight: 500; display: block; }
.shot-meta span { color: var(--muted); font-size: .86rem; }
@media (max-width: 900px) { .grid-3, .showcase { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------- *
 * 12. Pricing
 * ----------------------------------------------------------------------- */
.price-card { max-width: 560px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px); background: var(--card); }
.plan-tag { display: inline-flex; align-items: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 4px; margin: 18px 0 4px; }
.price .amount { font-size: clamp(2.8rem, 6vw, 3.6rem); font-weight: 500; letter-spacing: -.03em; }
.price .per { color: var(--muted); }
.price-sub { color: var(--muted); margin-bottom: 20px; }
.addon-line { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--fg); border: 1px solid var(--border); border-radius: var(--pill); padding: 8px 16px; }
.calc { margin: 24px 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.calc .calc-label { font-weight: 500; }
.calc .calc-label small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; margin-top: 2px; }
.stepper { display: inline-flex; align-items: center; gap: 12px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--fg); font-size: 1.2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.stepper button:hover { background: var(--bg-2); }
.stepper .count { font-size: 1.2rem; font-weight: 500; min-width: 24px; text-align: center; }
.calc .calc-total { font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.calc .calc-total small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.price-card li svg { flex: none; width: 17px; height: 17px; color: var(--green); margin-top: 3px; }
.price-foot { color: var(--muted); font-size: .86rem; margin-top: 16px; }

/* ----------------------------------------------------------------------- *
 * 13. FAQ
 * ----------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 500; font-size: 1.06rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; background: var(--fg); transition: transform .2s ease; }
.faq summary .pm::before { top: 6px; left: 0; width: 14px; height: 1.5px; }
.faq summary .pm::after { left: 6px; top: 0; width: 1.5px; height: 14px; }
.faq details[open] summary .pm::after { transform: scaleY(0); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 64ch; }

/* ----------------------------------------------------------------------- *
 * 14. CTA
 * ----------------------------------------------------------------------- */
.cta-block { background: var(--ink); color: var(--ink-fg); border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 80px); }
.cta-block h2 { color: var(--ink-fg); max-width: 18ch; }
.cta-block p { color: color-mix(in srgb, var(--ink-fg) 65%, transparent); margin: 16px 0 28px; max-width: 46ch; }
.cta-block .capture { background: color-mix(in srgb, var(--ink-fg) 8%, transparent); border-color: color-mix(in srgb, var(--ink-fg) 22%, transparent); }
.cta-block .capture input { color: var(--ink-fg); }
.cta-block .capture input::placeholder { color: color-mix(in srgb, var(--ink-fg) 50%, transparent); }
.cta-block .capture .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* ----------------------------------------------------------------------- *
 * 15. Forms (dashboard)
 * ----------------------------------------------------------------------- */
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit;
  background: var(--card); color: var(--fg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,106,79,.14); }
textarea { resize: vertical; min-height: 84px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2374746a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
label { display: block; font-weight: 500; margin: 18px 0 7px; font-size: .88rem; color: var(--fg); }
.field-grid { display: grid; gap: 4px 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }

.error { color: var(--danger); background: var(--danger-soft); border-radius: var(--radius-sm); padding: 11px 14px; margin: 14px 0 0; font-size: .92rem; }
.error.hidden { display: none !important; }
.spinner { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
.spinner::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--border-strong); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.app-head { margin-bottom: 8px; }
.app-head .label { margin-bottom: 16px; }
.app-head p { color: var(--muted); margin-top: 12px; font-size: 1.06rem; }

.card.pad-lg { padding: 26px; border-radius: var(--radius-lg); }
.card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.card-title h2 { font-size: 1.25rem; margin: 0; font-weight: 500; }
.step-chip { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: .8rem; background: var(--ink); color: var(--ink-fg); }
.card-sub { color: var(--muted); font-size: .94rem; margin-bottom: 6px; }

.search-row { display: flex; gap: 10px; margin-top: 14px; }
.search-bar { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--pill); padding: 3px 4px 3px 18px; }
.search-bar:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,106,79,.14); }
.search-bar svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-bar input { border: none; box-shadow: none !important; padding: 11px 0; background: transparent; border-radius: 0; }
.search-bar input:focus { box-shadow: none; }
@media (max-width: 520px) { .search-row { flex-direction: column; } .search-row .btn { width: 100%; } .search-bar { border-radius: var(--radius); } }

.success-card { text-align: center; }
.success-icon { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--green); color: var(--on-green); }
.success-icon svg { width: 26px; height: 26px; }
.live-link { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--pill); padding: 10px 18px; margin: 14px 0 20px; font-weight: 500; word-break: break-all; }

.section-label { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; margin: 46px 0 16px; }

.store-card { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color .15s ease; }
.store-card:hover { border-color: var(--border-strong); }
.store-card strong { font-weight: 500; font-size: 1.05rem; }
.store-card .store-addr { color: var(--muted); font-size: .88rem; margin-bottom: 16px; min-height: 1.2em; display: flex; gap: 6px; align-items: flex-start; }
.store-card .store-addr svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.store-card .btn { margin-top: auto; align-self: flex-start; }
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 46px 20px; background: var(--bg-2); }

/* checkout / go-live */
.checkout-summary { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 10px 0 24px; }
.ci-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.ci-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; font-weight: 500; }
.ci-row.total small { color: var(--muted); font-weight: 400; font-size: .9rem; }
.ci-note { color: var(--muted); font-size: .84rem; margin-top: 10px; }
.checkout-step-label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .98rem; margin: 22px 0 10px; }
.checkout-step-label .n { font-family: var(--mono); color: var(--muted); font-size: .82rem; }
.google-btn { gap: 10px; }
.google-btn svg { width: 17px; height: 17px; }
.signed-in { display: flex; align-items: center; gap: 9px; font-weight: 500; color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); border-radius: var(--radius-sm); padding: 12px 15px; }
.signed-in svg { width: 18px; height: 18px; }
.pay-box { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 16px; background: var(--card); }
.pay-box .pay-field input { opacity: .6; }
.pay-box .pay-lock { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8rem; margin-top: 12px; }
.pay-box .pay-lock svg { width: 14px; height: 14px; }
.ci-secure { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 14px; }
.demo-pill { display: inline-block; font-family: var(--mono); background: var(--bg-2); color: var(--muted); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--pill); margin-left: 6px; border: 1px solid var(--border); }

/* live website preview (dashboard step 2) */
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 14px; }
.seg-toggle { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--pill); padding: 3px; }
.seg-toggle button { border: none; background: transparent; color: var(--muted); font-family: inherit; font-size: .86rem; font-weight: 500; padding: 7px 16px; border-radius: var(--pill); cursor: pointer; }
.seg-toggle button.active { background: var(--card); color: var(--fg); box-shadow: var(--shadow); }

.preview-surface { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); color: var(--fg); }
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.preview-bar .dot { width: 9px; height: 9px; border-radius: 50%; }
.preview-bar .purl { margin-left: 6px; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.preview-scroll { max-height: 540px; overflow: auto; }
.preview-scroll .store-shell { padding-bottom: 32px; }
.preview-scroll .place-cover { border-radius: 0; }
.preview-empty { padding: 60px 20px; text-align: center; color: var(--muted); }

.edit-panel { margin-top: 22px; padding-top: 6px; border-top: 1px dashed var(--border); }
.edit-panel .edit-hint { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ----------------------------------------------------------------------- *
 * 16. Store page (minimal place profile)
 * ----------------------------------------------------------------------- */
.store-shell { max-width: 760px; margin: 0 auto; padding: 0 0 80px; }
.place-cover { position: relative; height: clamp(200px, 34vw, 320px); overflow: hidden; background: var(--bg-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.place-cover img { width: 100%; height: 100%; object-fit: cover; }
.place-back { position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--fg); box-shadow: var(--shadow); }
.place-back svg { width: 18px; height: 18px; }
.place-body { padding: 26px clamp(18px, 4vw, 26px) 0; }
.place-title { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 500; }
.place-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .94rem; margin-top: 8px; }
.place-meta .rate-num { color: var(--fg); font-weight: 500; }
.place-meta .stars { color: var(--star); letter-spacing: .5px; }
.place-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); display: inline-block; }
.place-desc { color: var(--muted); margin-top: 14px; font-size: 1.02rem; max-width: 58ch; }

.place-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 8px; }
.place-act { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: var(--pill); padding: 9px 18px; font-size: .9rem; font-weight: 500; color: var(--fg); background: transparent; }
.place-act:hover { background: var(--bg-2); text-decoration: none; }
.place-act.primary { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.place-act svg { width: 16px; height: 16px; }

.place-info { margin: 22px 0; border-top: 1px solid var(--border); }
.place-row { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.place-row svg { width: 18px; height: 18px; color: var(--muted); flex: none; margin-top: 2px; }
.place-row .pr-value { word-break: break-word; }
.place-row .pr-value a { color: var(--green); }

.place-section-title { font-size: 1.2rem; font-weight: 500; margin: 30px 0 14px; }
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .96rem; }
.hours-list li:last-child { border-bottom: none; }
.hours-list li .day { color: var(--muted); }

.photos { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 4px 0; }
.photos img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-sm); }

/* ----------------------------------------------------------------------- *
 * 17. Footer
 * ----------------------------------------------------------------------- */
footer.site { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 40px; }
footer.site .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
footer.site .logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; color: var(--fg); font-size: 1.1rem; }
footer.site .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site .foot-links a { color: var(--muted); font-size: .9rem; }
footer.site .foot-links a:hover { color: var(--fg); }
footer.site .copy { width: 100%; font-size: .8rem; color: var(--faint); padding-top: 16px; border-top: 1px solid var(--border); margin-top: 8px; }
footer.site.simple { text-align: center; }
footer.site.simple .container { justify-content: center; }
footer.site.simple .copy { border: none; }

/* ----------------------------------------------------------------------- *
 * 18. Motion
 * ----------------------------------------------------------------------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: fade-up .6s cubic-bezier(.2,.7,.2,1) both; }
.reveal.d1 { animation-delay: .06s; } .reveal.d2 { animation-delay: .12s; } .reveal.d3 { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) { *, body::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 640px) { .nav-only-desktop { display: none; } }
