/* FeelingFlexi design system (Concept A, approved by Lorenzo 2026-11-15).
   One family (Inter, our own file), one radius (12px), one button system, an
   8px grid. Cream and Mocha Green carry the page; pink is only a line (the
   current page, a selected tab, a step) and the focus ring; gold is only the
   Featured frame and fills, never text on cream. No black buttons: the
   primary is Mocha Green with cream text, sage in dark.

   Loaded last on every page (tools/site-chrome.mjs adds it). Tokens and the
   shared chrome (the header, its phone sheet, the footer, buttons and the
   light and dark switch) apply everywhere; page parts apply inside
   <body class="ds"> only, so a page moves onto the system in one step. */

/* The app's titles font, only for the example card's name (loaded when the card draws). */
@font-face { font-family: "FF Card Title"; src: url("/assets/fonts/ff-plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "FF Card Title"; src: url("/assets/fonts/ff-plus-jakarta-sans-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale: 1.2 minor third on a 16px root, display steps fluid */
  --t-12: 0.75rem;   /* 12 / 16 */
  --t-14: 0.875rem;  /* 14 / 20 */
  --t-16: 1rem;      /* 16 / 24 */
  --t-18: 1.125rem;  /* 18 / 28 */
  --t-20: 1.25rem;   /* 20 / 28 */
  --t-24: 1.5rem;    /* 24 / 32 */
  --t-32: clamp(1.625rem, 1.3rem + 1.2vw, 2rem);      /* 26-32 */
  --t-44: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);       /* 32-44 */
  --t-64: clamp(2.5rem, 1.5rem + 4vw, 4rem);          /* 40-64 */

  /* 8px grid */
  --s-1: 4px; --s0: 8px; --s1: 16px; --s2: 24px; --s3: 32px; --s4: 40px;
  --s5: 48px; --s6: 64px; --s7: 80px; --s8: 96px; --s9: 128px;

  --r: 12px;        /* the one radius: cards, buttons, inputs, photos */
  --r-pill: 999px;  /* chips and switches only */

  /* Light palette from cream and Mocha Green */
  --bg: #f7f5f2;
  --bg-2: #efebe4;
  --surface: #ffffff;
  --line: #e4dfd6;
  --line-2: #cbc4b6;
  --field-line: #8f887a;  /* 3.2:1+ on cream and white: input and secondary button edges */
  --ink: #1f1d17;
  --ink-2: #57534a;
  --ink-3: #6b665a;
  --brand: #474329;
  --brand-hover: #39361f;
  --on-brand: #f7f5f2;
  --brand-soft: #e9e6d8;
  --accent: #fc75b4;          /* lines, dots, current-page markers */
  --focus: #c2367a;           /* pink, deepened to 3.9:1 for focus rings on cream */
  --gold: #c9a227;            /* Featured frame and fills, never text on cream */
  --gold-fill: #f0d27a;
  --gold-soft: #f6ecd2;
  --gold-ink: #5e4706;        /* text on gold fills */
  --ok: #2c6a3b; --ok-soft: #e1eee3;
  --warn: #7a5300; --warn-soft: #f6ead0;
  --err: #a8261d; --err-soft: #f8e2df;
  --scrim: rgba(23, 22, 17, 0.42);
  --shadow-1: 0 1px 2px rgba(40, 36, 24, 0.06), 0 2px 8px rgba(40, 36, 24, 0.05);
  --shadow-2: 0 12px 32px rgba(40, 36, 24, 0.12), 0 2px 8px rgba(40, 36, 24, 0.06);
  --photo-plate: linear-gradient(180deg, rgba(12, 16, 20, 0) 0%, rgba(12, 16, 20, 0.55) 38%, rgba(12, 16, 20, 0.86) 100%);

  /* Motion: minimal and precise */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);           /* ease-out for UI */
  --ease-move: cubic-bezier(0.32, 0.72, 0, 1);      /* sheets and drawers */
  --d-press: 150ms;
  --d-fast: 180ms;
  --d: 220ms;
  --d-slow: 250ms;
  --d-sheet: 400ms;  /* the swipe-up sheet glide (audit: 350-450 ms) */

  --wrap: 1200px;
  --gutter: 24px;
  --nav-h: 64px;

  /* The older stylesheets' names for the same colours (css/site.css, city.css, blog.css). */
  --fg: var(--ink);
  --muted: var(--ink-2);
  --quiet: var(--ink-2);
  --pill-bg: var(--brand);
  --pill-fg: var(--on-brand);
  --lamp-lit: #fc75b4;
}


@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --is-dark: 1; }
}
:root[data-theme="dark"] { --is-dark: 1; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c1014; --bg-2: #11161b; --surface: #161c22; --line: #252d35; --line-2: #3a444e; --field-line: #66717c;
    --ink: #d6d1a8; --ink-2: #aca88b; --ink-3: #96927a;
    --brand: #d6d1a8; --brand-hover: #e6e2c2; --on-brand: #12160f; --brand-soft: #1f251f;
    --focus: #fc75b4;
    --gold: #e2b93b; --gold-fill: #e2b93b; --gold-soft: #2a2414; --gold-ink: #241a00;
    --ok: #8fd19e; --ok-soft: #142319; --warn: #e9c46a; --warn-soft: #2a2310; --err: #f2948b; --err-soft: #2c1513;
    --scrim: rgba(0, 0, 0, 0.6);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1014; --bg-2: #11161b; --surface: #161c22; --line: #252d35; --line-2: #3a444e; --field-line: #66717c;
  --ink: #d6d1a8; --ink-2: #aca88b; --ink-3: #96927a;
  --brand: #d6d1a8; --brand-hover: #e6e2c2; --on-brand: #12160f; --brand-soft: #1f251f;
  --focus: #fc75b4;
  --gold: #e2b93b; --gold-fill: #e2b93b; --gold-soft: #2a2414; --gold-ink: #241a00;
  --ok: #8fd19e; --ok-soft: #142319; --warn: #e9c46a; --warn-soft: #2a2310; --err: #f2948b; --err-soft: #2c1513;
  --scrim: rgba(0, 0, 0, 0.6);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}


/* ---------- Shared chrome: every page ---------- */
body { background: var(--bg); color: var(--ink); font-family: var(--font); }
/* clip, not hidden: a hidden body becomes its own scroller and the sticky header would scroll away. */
html body { overflow-x: clip; }
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s0);
  min-height: var(--btn-h); padding: 0 20px;
  border-radius: var(--r); border: 1px solid transparent;
  font-family: var(--font); font-size: var(--t-16); font-weight: 600; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; user-select: none; cursor: pointer;
  transition: background-color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), transform var(--d-press) var(--ease), box-shadow var(--d-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-1); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--field-line); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--brand-hover); }
  .btn-secondary:hover { border-color: var(--ink-3); background: color-mix(in srgb, var(--ink) 4%, transparent); }
}
.btn-sm { --btn-h: 44px; padding: 0 16px; font-size: var(--t-14); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 45%, transparent); background: transparent; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: var(--r); border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; transition: background-color var(--d-fast) var(--ease), transform var(--d-press) var(--ease); }
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); } }
.btn-row { display: flex; gap: var(--s1); flex-wrap: wrap; align-items: center; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* The header: logo, Places, Events, City guides, For business, the switch and Get the app. */
.site-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); font-family: var(--font); }
.site-nav .nav-inner { display: flex; align-items: center; gap: var(--s3); height: var(--nav-h); width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); flex: none; }
.brand-word { font-weight: 700; letter-spacing: 0.14em; font-size: 0.8125rem; line-height: 1; }
.brand .logo-link { position: relative; display: inline-flex; width: 26px; height: 28px; flex: none; }
.brand .logo, .brand .logo-plain { display: block; width: 26px; height: 28px; max-width: none; opacity: 1; }
.brand .logo-draw { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; overflow: visible; color: #474329; --logo-edge: #36341f; }
.brand .logo-link.is-drawn .logo-draw { display: block; }
.brand .logo-link.is-drawn .logo { visibility: hidden; }
:root[data-theme="dark"] .brand .logo, :root[data-theme="dark"] .brand .logo-plain { content: url("/assets/logo-sage.svg?v=2"); }
:root[data-theme="dark"] .brand .logo-draw { color: #d6d1a8; --logo-edge: transparent; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand .logo, :root:not([data-theme]) .brand .logo-plain { content: url("/assets/logo-sage.svg?v=2"); }
}
.site-nav-main { margin-left: auto; }
.site-nav-links { display: flex; gap: var(--s0); list-style: none; margin: 0; padding: 0; }
.site-nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: var(--t-14); font-weight: 550; color: var(--ink-2); border-radius: var(--r); white-space: nowrap; transition: color var(--d-fast) var(--ease); }
.site-nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--d) var(--ease); }
.site-nav-links a[aria-current="page"] { color: var(--ink); }
.site-nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .site-nav-links a:hover { color: var(--ink); } .site-nav-links a:hover::after { transform: scaleX(1); } }
.nav-actions { display: flex; align-items: center; gap: var(--s1); margin-left: var(--s1); }
.menu-btn { display: none; }

/* The light and dark switch: the app's lamp rocker, I is Light, O is Dark; the lit side is pink (no glow). */
.theme-toggle.lamp-switch {
  --lamp-plate: #ebe7df; --lamp-rocker-hi: #ffffff; --lamp-rocker-lo: #ddd8ce; --lamp-mark: #807a6c;
  position: relative; flex: none; width: 56px; height: 34px; padding: 3px; border: 0; border-radius: 11px;
  background: var(--lamp-plate); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08), inset 0 1px 2px rgba(17, 17, 17, 0.12);
  perspective: 144px; cursor: pointer; transition: transform 0.45s cubic-bezier(0.34, 1.8, 0.5, 1); -webkit-tap-highlight-color: transparent;
}
.theme-toggle.lamp-switch::before { content: ""; position: absolute; inset: -5px -2px; }
.theme-toggle.lamp-switch:active { transform: scale(0.9, 0.84); transition-duration: 0.12s; }
.lamp-rocker { display: flex; width: 100%; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--lamp-rocker-lo), var(--lamp-rocker-hi) 55%); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, -2px 2px 3px rgba(17, 17, 17, 0.18); transform: rotateY(20deg); transition: transform 0.5s cubic-bezier(0.34, 1.8, 0.5, 1), background 0.3s ease, box-shadow 0.3s ease; }
html:not([data-ff-ready]) .theme-toggle.lamp-switch, html:not([data-ff-ready]) .lamp-rocker { transition: none; }
.lamp-switch[data-on="1"] .lamp-rocker { background: linear-gradient(90deg, var(--lamp-rocker-hi) 45%, var(--lamp-rocker-lo)); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 2px 2px 3px rgba(17, 17, 17, 0.18); transform: rotateY(-20deg); }
.lamp-side { display: flex; flex: 1 1 50%; align-items: center; justify-content: center; font-family: var(--font); font-weight: 800; font-size: 12px; line-height: 1; color: var(--lamp-mark); transition: color 0.3s ease; }
.lamp-switch[data-on="1"] .lamp-side-on, .lamp-switch[data-on="0"] .lamp-side-off { color: var(--lamp-lit); }
:root[data-theme="dark"] .theme-toggle.lamp-switch { --lamp-plate: #1c2228; --lamp-rocker-hi: #3d4650; --lamp-rocker-lo: #262d34; --lamp-mark: #96927a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 2px rgba(0, 0, 0, 0.5); }
:root[data-theme="dark"] .lamp-rocker { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, -2px 2px 3px rgba(0, 0, 0, 0.5); }

/* The phone menu: a sheet from the right. */
.sheet-nav { position: fixed; inset: 0; z-index: 70; visibility: hidden; pointer-events: none; font-family: var(--font); }
.sheet-nav.is-open { visibility: visible; pointer-events: auto; }
.sheet-nav-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity var(--d) var(--ease); }
.sheet-nav.is-open .sheet-nav-scrim { opacity: 1; }
.sheet-nav-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--bg); color: var(--ink); border-left: 1px solid var(--line); box-shadow: var(--shadow-2); padding: max(12px, env(safe-area-inset-top)) max(var(--s2), env(safe-area-inset-right)) var(--s3) var(--s2); display: flex; flex-direction: column; gap: var(--s2); transform: translateX(100%); transition: transform var(--d-slow) var(--ease-move); overflow-y: auto; }
.sheet-nav.is-open .sheet-nav-panel { transform: none; }
.sheet-nav-head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.sheet-nav-links { list-style: none; display: grid; margin: 0; padding: 0; }
.sheet-nav-links a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; text-decoration: none; color: var(--ink); font-size: var(--t-20); font-weight: 600; letter-spacing: -0.01em; border-bottom: 1px solid var(--line); }
.sheet-nav-links a .i { color: var(--ink-3); }
.sheet-nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }

/* The footer: the brand, then Product, City guides, Businesses and Company. */
.site-foot { border-top: 1px solid var(--line); padding-block: var(--s7) var(--s4); background: var(--bg); color: var(--ink); font-family: var(--font); text-align: left; }
.site-foot .foot-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.site-foot .foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.site-foot .foot-brand { display: grid; gap: var(--s1); align-content: start; justify-items: start; }
.site-foot .foot-brand p { margin: 0; max-width: 28ch; font-size: var(--t-14); line-height: 1.45; color: var(--ink-2); }
.site-foot h2 { margin: 0 0 var(--s0); font-family: var(--font); font-size: var(--t-14); line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.site-foot ul { list-style: none; display: grid; margin: 0; padding: 0; }
.site-foot li a { display: inline-flex; align-items: center; min-height: 36px; font-size: var(--t-14); color: var(--ink-2); text-decoration: none; }
.site-foot li a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .site-foot li a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; } }
.site-foot .foot-base { margin-top: var(--s5); padding-top: var(--s2); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s0) var(--s2); flex-wrap: wrap; }
.site-foot .foot-base p { margin: 0; font-size: var(--t-12); line-height: 1.4; color: var(--ink-3); }

@media (max-width: 1100px) {
  .site-foot .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-foot .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .site-nav-main, .nav-actions .nav-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .nav-actions { margin-left: auto; gap: var(--s0); }
}
@media (max-width: 640px) {
  .site-foot { padding-block: var(--s6) var(--s4); }
  .site-foot .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s2); }
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle.lamp-switch, .lamp-rocker, .sheet-nav-panel, .sheet-nav-scrim { transition: none; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-16);
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:where(.ds) img, :where(.ds) svg, :where(.ds) video { display: block; max-width: 100%; }
:where(.ds) img { height: auto; }
:where(.ds) :is(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.ds) button { cursor: pointer; }
:where(.ds) a { color: inherit; }
:where(.ds) p { margin: 0; }
:where(.ds) :is(h1, h2, h3, h4) { margin: 0; font-weight: 600; text-wrap: balance; color: var(--ink); }
:where(.ds) :is(ul, ol) { margin: 0; padding: 0; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 1px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -120px; z-index: 100; background: var(--surface); color: var(--ink); padding: 12px 16px; border-radius: var(--r); box-shadow: var(--shadow-2); text-decoration: none; font-weight: 600; transition: top var(--d-fast) var(--ease); }
.skip:focus { top: 12px; }
html { scrollbar-color: var(--line-2) transparent; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Type ---------- */
.ds .t-display { font-size: var(--t-64); line-height: 1.04; letter-spacing: -0.035em; font-weight: 650; }
:where(.ds) h1, .t-h1 { font-size: var(--t-44); line-height: 1.1; letter-spacing: -0.028em; font-weight: 650; }
:where(.ds) h2, .t-h2 { font-size: var(--t-32); line-height: 1.15; letter-spacing: -0.022em; font-weight: 650; }
:where(.ds) h3, .t-h3 { font-size: var(--t-20); line-height: 1.35; letter-spacing: -0.012em; font-weight: 600; }
:where(.ds) h4, .t-h4 { font-size: var(--t-16); line-height: 1.4; font-weight: 600; }
.ds .lede { font-size: var(--t-18); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.ds .body { font-size: var(--t-16); color: var(--ink-2); max-width: 65ch; }
.ds .small { font-size: var(--t-14); line-height: 1.45; color: var(--ink-2); }
.ds .tiny { font-size: var(--t-12); line-height: 1.4; color: var(--ink-3); letter-spacing: 0.01em; }
.ds .muted { color: var(--ink-2); }
.ds .strong { font-weight: 600; color: var(--ink); }
.ds .prose > * + * { margin-top: var(--s1); }
.ds .stack-0 > * + * { margin-top: var(--s0); }
.ds .stack-1 > * + * { margin-top: var(--s1); }
.ds .stack-2 > * + * { margin-top: var(--s2); }
.ds .stack-3 > * + * { margin-top: var(--s3); }

/* the one link look: ink text, a 1px line that turns pink on hover */
.ds .link { color: var(--ink); font-weight: 550; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-2); transition: text-decoration-color var(--d-fast) var(--ease); }
.ds .link:hover { text-decoration-color: var(--accent); }
.ds .link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; font-weight: 600; color: var(--ink); }
.ds .link-arrow .i { transition: transform var(--d-fast) var(--ease); }
.ds .link-arrow span { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size var(--d) var(--ease); padding-bottom: 2px; }
@media (hover: hover) and (pointer: fine) {
  .ds .link-arrow:hover span { background-size: 100% 1px; }
  .ds .link-arrow:hover .i { transform: translateX(2px); }
}

/* ---------- Layout ---------- */
.ds .wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ds .section { padding-block: var(--s8); }
.ds .section + .section { border-top: 1px solid var(--line); }
.ds .section-tint { background: var(--bg-2); }
.ds .section-head { display: grid; gap: var(--s1); margin-bottom: var(--s5); max-width: 40rem; }
.ds .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.ds .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.ds .grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.ds .row { display: flex; align-items: center; gap: var(--s1); flex-wrap: wrap; }
.ds .between { justify-content: space-between; }
.ds .hr { height: 1px; background: var(--line); border: 0; margin: var(--s3) 0; }

/* ---------- Surfaces ---------- */
.ds .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); }
.ds .card-tight { padding: var(--s2); }
.ds .card-link { display: block; text-decoration: none; color: inherit; transition: transform var(--d) var(--ease), box-shadow var(--d) var(--ease), border-color var(--d) var(--ease); }
@media (hover: hover) and (pointer: fine) { .ds .card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); } }
.ds .photo { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.ds .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-slow) var(--ease); }
@media (hover: hover) and (pointer: fine) { .ds a:hover .photo img { transform: scale(1.025); } }
.ds .badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--t-12); font-weight: 600; letter-spacing: 0.01em; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.ds .badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ds .badge-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.ds .badge-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.ds .badge-gold { background: var(--gold-fill); color: var(--gold-ink); border-color: transparent; }
.ds .badge-brand { background: var(--brand-soft); color: var(--ink); border-color: transparent; }
.ds .notice { display: flex; gap: 12px; align-items: flex-start; padding: var(--s1) var(--s2); border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); font-size: var(--t-14); color: var(--ink-2); }
.ds .notice .i { margin-top: 2px; color: var(--ink); }
.ds .price-old { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--ink-3); }
.ds .list-check { list-style: none; display: grid; gap: 12px; align-content: start; }
.ds .list-check li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; color: var(--ink-2); font-size: var(--t-16); }
.ds .list-check li .i { color: var(--ink); margin-top: 2px; }
.ds .list-check li b { color: var(--ink); font-weight: 600; }

/* ---------- Home ---------- */
.ds .hero { padding-block: var(--s7) var(--s8); }
.ds .hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: var(--s6); }
.ds .hero h1 { margin-top: var(--s0); }
.ds .hero .lede { margin-top: var(--s2); }
.ds .hero .btn-row { margin-top: var(--s4); }
.ds .hero-note { margin-top: var(--s2); }
.ds .hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.ds .hero-visual::before { content: ""; position: absolute; inset: 8% 6% 4%; border-radius: 28px; background: linear-gradient(160deg, var(--brand-soft), var(--bg-2)); }
.ds .hero-visual img { position: relative; width: min(420px, 100%); filter: drop-shadow(0 24px 40px rgba(40, 36, 24, 0.18)); }
.ds .accent-line { display: block; width: 40px; height: 2px; border-radius: 2px; background: var(--accent); }
.ds .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ds .fact { padding: var(--s3) var(--s2) var(--s3) 0; }
.ds .fact + .fact { padding-left: var(--s3); border-left: 1px solid var(--line); }
.ds .fact b { display: block; font-size: var(--t-24); letter-spacing: -0.02em; font-weight: 650; }
.ds .fact span { color: var(--ink-2); font-size: var(--t-14); }
.ds .screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.ds figure.screen { margin: 0; }
.ds .screen-frame { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #0c1014; aspect-ratio: 600 / 1100; box-shadow: var(--shadow-1); }
.ds .screen-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ds .screen h3 { margin-top: var(--s2); }
.ds .screen p { margin-top: var(--s0); }
.ds .tile { display: block; text-decoration: none; color: var(--ink); }
.ds .tile .photo { aspect-ratio: 4 / 5; }
.ds .tile-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-weight: 600; min-height: 32px; }
.ds .tile-meta .i { color: var(--ink-3); transition: transform var(--d-fast) var(--ease), color var(--d-fast) var(--ease); }
@media (hover: hover) and (pointer: fine) { .ds .tile:hover .tile-meta .i { transform: translateX(3px); color: var(--ink); } }
.ds .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
.ds .city-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ds .city-list li { border-bottom: 1px solid var(--line); }
.ds .city-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.ds .city-list a { display: flex; justify-content: space-between; align-items: center; gap: var(--s1); min-height: 64px; padding: 0 var(--s2); text-decoration: none; font-weight: 600; transition: background-color var(--d-fast) var(--ease); }
.ds .city-list a span.tiny { font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .ds .city-list a:hover { background: var(--surface); } }
.ds .partners { display: flex; flex-wrap: wrap; gap: var(--s0) var(--s3); color: var(--ink-2); font-weight: 600; font-size: var(--t-16); }
.ds .band { border-radius: var(--r); background: var(--brand); color: var(--on-brand); padding: var(--s6); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--s3); align-items: center; }
.ds .band h2, .ds .band p { color: var(--on-brand); }
.ds .band p { opacity: 0.86; margin-top: var(--s0); }
.ds .band .btn-primary { background: var(--on-brand); color: var(--brand); }
.ds .band .btn-secondary { color: var(--on-brand); border-color: color-mix(in srgb, var(--on-brand) 45%, transparent); }

/* ---------- The swipe card (Fable) ---------- */
.ds .ffcard { --card-w: 340px; position: relative; width: min(var(--card-w), 100%); aspect-ratio: 340 / 520; border-radius: 22px; overflow: hidden; background: #0c1014; color: #ffffff; box-shadow: var(--shadow-2); isolation: isolate; user-select: none; touch-action: pan-y; }
.ds .ffcard.is-featured { box-shadow: var(--shadow-2); }
/* The app's gold frame (ff-featured-ring): a 2px gradient edge drawn inside the card, over the photo. */
.ds .ffcard.is-featured::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; padding: 2px; pointer-events: none; background: linear-gradient(135deg, #f6e27a, #c9a227 30%, #fff1b0 50%, #b8891f 72%, #f3d36b); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
:root[data-theme="dark"] .ffcard { --plate-ink: #d6d1a8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ffcard { --plate-ink: #d6d1a8; } }
.ds .ffcard-photos { position: absolute; inset: 0; }
.ds .ffcard-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--d) var(--ease); }
.ds .ffcard-photos img.is-on { opacity: 1; }
.ds .ffcard-tap { position: absolute; top: 0; bottom: 45%; width: 50%; background: none; border: 0; z-index: 2; }
.ds .ffcard-tap.prev { left: 0; } .ds .ffcard-tap.next { right: 0; }
.ds .ffcard-top { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.ds .ffcard-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ds .chip-glass { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; line-height: 1.15; color: var(--plate-ink, #fff); background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); white-space: nowrap; }
.ds .chip-glass svg { width: 11px; height: 11px; flex: none; }
/* The app's card chips: amber Quest (swords) and the gold Featured (star). */
.ds .chip-quest { background: rgba(245, 193, 74, 0.92); color: #1a1203; }
.ds .chip-featured { background: linear-gradient(135deg, #f6e27a, #d9b13b 55%, #f3d36b); color: #2a1f05; font-weight: 700; box-shadow: 0 2px 10px rgba(120, 84, 0, 0.3); }
.ds .chip-glass .dot { width: 6px; height: 6px; border-radius: 50%; background: #6fd08b; }
.ds .ffcard-dots { display: flex; align-items: center; gap: 7px; height: 28px; padding-right: 2px; }
.ds .ffcard-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); box-shadow: 0 0 2px rgba(0, 0, 0, 0.3); transition: width var(--d) var(--ease), height var(--d) var(--ease), background-color var(--d) var(--ease); }
.ds .ffcard-dots span.is-on { width: 8px; height: 8px; background: #fff; }
/* The plate as the app's Explore card draws it (the redesign of 2026-11-15): the swipe-up line, the name in
   the titles font, distance and kind, the photo credit, then at most two glass tags. */
.ds .ffcard-plate { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 80px 16px 16px; background: var(--photo-plate); color: var(--plate-ink, #fff); }
.ds .ffcard-name { font-family: "FF Card Title", var(--font); font-size: 28px; line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; color: var(--plate-ink, #fff); overflow-wrap: anywhere; text-wrap: balance; }
.ds .ffcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 1.3; color: color-mix(in srgb, var(--plate-ink, #fff) 75%, transparent); }
.ds .ffcard-meta [hidden] { display: none; }
.ds .ffcard-credit { margin-top: 8px; font-size: 10px; line-height: 1.35; color: color-mix(in srgb, var(--plate-ink, #fff) 55%, transparent); }
.ds .ffcard-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ds .ffcard-tags span { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 1; color: var(--plate-ink, #fff); background: rgba(10, 12, 14, 0.42); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ds .ffcard-tags span:nth-child(n + 3) { display: none; }
.ds .ffcard-open { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 28px; margin: 0 0 4px; padding: 0; border: 0; background: none; color: var(--plate-ink, #fff); border-radius: 10px; position: relative; }
.ds .ffcard-open::before { content: ""; position: absolute; inset: -8px 0; }
.ds .ffcard-open .grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.7); }
.ds .ffcard-open:focus-visible { outline-color: #fc75b4; }
.ds .ffcard-sheet { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 86%; background: var(--surface); color: var(--ink); border-radius: 20px 20px 0 0; transform: translateY(102%); transition: transform var(--d-sheet) var(--ease-move); display: flex; flex-direction: column; box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25); }
.ds .ffcard.is-open .ffcard-sheet { transform: translateY(0); }
.ds .ffcard-sheet-head { display: grid; justify-items: center; gap: 4px; padding: 6px 12px 4px; touch-action: none; cursor: grab; }
.ds .ffcard-sheet-head .grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin-top: 4px; }
.ds .ffcard-sheet-head button { min-height: 40px; }
.ds .ffcard-sheet-body { overflow-y: auto; padding: 4px 18px 18px; font-size: 14px; overscroll-behavior: contain; }
.ds .ffcard-sheet-body .sheet-title { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); }
.ds .sheet-sec { padding-block: 12px; border-top: 1px solid var(--line); }
.ds .sheet-sec .sheet-h { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.ds .sheet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 12px 0 4px; }
.ds .sheet-actions button { display: grid; justify-items: center; gap: 4px; min-height: 52px; padding: 6px 0; border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--ink); border-radius: 10px; transition: transform var(--d-press) var(--ease); }
.ds .sheet-actions button:active { transform: scale(0.95); }
.ds .sheet-actions button[aria-pressed="true"] .i { color: #e5484d; fill: #e5484d; }
.ds .hours-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ds .hours-table td { padding: 3px 0; }
.ds .hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ds .hours-table tr.is-today td { font-weight: 700; color: var(--ink); }
.ds .happy { display: inline-block; margin-top: 4px; color: var(--gold-ink); background: var(--gold-fill); border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.ds .coupon-lock { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px dashed var(--gold); border-radius: 10px; background: var(--gold-soft); }
.ds .coupon-lock code { font: 600 15px/1 var(--font); letter-spacing: 0.08em; filter: blur(5px); transition: filter var(--d) var(--ease); }
.ds .coupon-lock.is-revealed code { filter: none; }

/* ---------- Tabs ---------- */
.ds .tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); }
.ds .tab { position: relative; min-height: 44px; padding: 0 18px; border: 0; background: transparent; border-radius: var(--r); font-weight: 600; font-size: var(--t-14); color: var(--ink-2); transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease); }
.ds .tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.ds .tab[aria-selected="true"]::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); }
.ds .tab-panel { animation: panel-in var(--d) var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Plans (business) ---------- */
.ds .plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); align-items: stretch; }
.ds .plan { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); }
.ds .plan.is-featured { border: 2px solid var(--gold); }
.ds .plan-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ds .plan-price b { font-size: var(--t-44); letter-spacing: -0.03em; font-weight: 650; line-height: 1; }
.ds .plan .list-check { flex: 1; }
.ds .plan .btn { align-self: flex-start; }
.ds .steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); counter-reset: step; }
.ds .steps li { counter-increment: step; padding-top: var(--s2); border-top: 2px solid var(--line); }
.ds .steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.ds .steps li:first-child { border-top-color: var(--accent); }
.ds .demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
.ds .demo-stage { display: grid; place-items: center; padding: var(--s4); border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); min-height: 600px; }
.ds .quest-phone { width: min(340px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: var(--s2); box-shadow: var(--shadow-2); display: grid; gap: var(--s1); }
.ds .quest-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.ds .quest-step .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--ink); font-weight: 700; font-size: 13px; }
.ds .quest-step.is-done .num { background: var(--ok-soft); color: var(--ok); }
.ds .stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ds .stat { background: var(--surface); padding: var(--s2); }
.ds .stat b { display: block; font-size: var(--t-24); letter-spacing: -0.02em; font-weight: 650; font-variant-numeric: tabular-nums; }
.ds .stat span { font-size: var(--t-14); color: var(--ink-2); }

/* ---------- Accordion ---------- */
.ds .faq { border-top: 1px solid var(--line); }
.ds .faq details { border-bottom: 1px solid var(--line); }
.ds .faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 64px; cursor: pointer; font-weight: 600; font-size: var(--t-18); }
.ds .faq summary::-webkit-details-marker { display: none; }
.ds .faq summary .i { transition: transform var(--d) var(--ease); color: var(--ink-2); }
.ds .faq details[open] summary .i { transform: rotate(45deg); }
.ds .faq details > div { padding: 0 0 var(--s2); max-width: 60ch; color: var(--ink-2); }
.ds .faq details[open] > div { animation: panel-in var(--d) var(--ease); }

/* ---------- Forms ---------- */
.ds .field { display: grid; gap: var(--s0); }
.ds .field + .field, .ds .field + .field-row, .ds .field-row + .field, .ds .field-row + .field-row { margin-top: var(--s2); }
.ds .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.ds .label { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s1); font-size: var(--t-14); font-weight: 600; color: var(--ink); }
.ds .req { font-weight: 500; font-size: var(--t-12); color: var(--ink-2); }
.ds .req::before { content: "*"; color: var(--focus); margin-right: 3px; font-weight: 700; }
.ds .opt { font-weight: 500; font-size: var(--t-12); color: var(--ink-3); }
.ds .input, .ds .textarea, .ds .select { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--field-line); background: var(--surface); color: var(--ink); font-size: var(--t-16); transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease); }
.ds .textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.ds .select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2357534a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.ds .input::placeholder, .ds .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.ds .input:hover, .ds .textarea:hover, .ds .select:hover { border-color: var(--ink-3); }
.ds .input:focus-visible, .ds .textarea:focus-visible, .ds .select:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); outline: none; }
.ds .input[aria-invalid="true"], .ds .textarea[aria-invalid="true"], .ds .select[aria-invalid="true"] { border-color: var(--err); }
.ds .input.is-valid { border-color: color-mix(in srgb, var(--ok) 60%, var(--line-2)); }
.ds .hint { font-size: var(--t-14); color: var(--ink-2); }
.ds .field-error { display: none; align-items: center; gap: 6px; font-size: var(--t-14); font-weight: 500; color: var(--err); }
.ds .field-error.is-on { display: flex; }
.ds .counter { font-size: var(--t-12); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ds .input-group { display: flex; align-items: stretch; }
.ds .input-group .prefix { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--field-line); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--bg-2); color: var(--ink-2); font-weight: 600; }
.ds .input-group .input { border-radius: 0 var(--r) var(--r) 0; }
.ds .choice-chips { display: flex; flex-wrap: wrap; gap: var(--s0); }
.ds .choice { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--field-line); background: var(--surface); font-size: var(--t-14); font-weight: 600; color: var(--ink-2); transition: border-color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), transform var(--d-press) var(--ease); }
.ds .choice:active { transform: scale(0.97); }
.ds .choice[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.ds .choice[aria-pressed="true"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ds .choice[aria-disabled="true"] { opacity: 0.45; }
.ds .switch { position: relative; flex: none; width: 52px; height: 44px; border: 0; background: none; padding: 0; }
.ds .switch::before { content: ""; position: absolute; left: 0; top: 6px; width: 52px; height: 32px; border-radius: 16px; background: var(--field-line); transition: background-color var(--d-fast) var(--ease); }
.ds .switch::after { content: ""; position: absolute; left: 3px; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform var(--d) var(--ease); }
.ds .switch[aria-checked="true"]::before { background: var(--brand); }
.ds .switch[aria-checked="true"]::after { transform: translateX(20px); }
:root[data-theme="dark"] .switch[aria-checked="true"]::after { background: #12160f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .switch[aria-checked="true"]::after { background: #12160f; } }
.ds .fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ds .form-success { display: flex; gap: 12px; align-items: flex-start; padding: var(--s2); border-radius: var(--r); background: var(--ok-soft); color: var(--ok); font-weight: 500; }
.ds .form-success .i { margin-top: 2px; }
.ds .form-success p { color: var(--ink); }

/* ---------- Business shell ---------- */
.ds .biz { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.ds .rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s2) var(--s1); border-right: 1px solid var(--line); background: var(--bg); }
.ds .rail .brand { padding: 0 8px; gap: 8px; }
.ds .rail .brand-word { letter-spacing: 0.1em; font-size: 0.75rem; }
.ds .rail .brand-sub { padding-left: 8px; font-size: var(--t-12); }
.ds .biz-switch { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: left; }
.ds .biz-switch img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.ds .biz-switch b { display: block; font-size: var(--t-14); }
.ds .biz-switch span { display: block; font-size: var(--t-12); color: var(--ink-2); }
.ds .rail-nav { list-style: none; display: grid; gap: 2px; }
.ds .rail-nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r); text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: var(--t-14); transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease); }
.ds .rail-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.ds .rail-nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--accent); }
@media (hover: hover) and (pointer: fine) { .ds .rail-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); } }
.ds .rail-foot { margin-top: auto; display: grid; gap: 2px; }
.ds .biz-main { min-width: 0; }
.ds .biz-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--s1); min-height: 64px; padding: 0 var(--s4); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ds .biz-top .crumbs { font-size: var(--t-14); color: var(--ink-2); display: flex; gap: 8px; align-items: center; min-width: 0; }
.ds .biz-top .crumbs b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds .biz-top .actions { margin-left: auto; display: flex; gap: var(--s0); align-items: center; }
.ds .biz-top .brand-m { display: none; }
.ds .biz-content { padding: var(--s4); max-width: 1180px; }
.ds .page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); }
.ds .page-head p { margin-top: var(--s0); }
.ds .bottom-bar { display: none; }
.ds .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ds .panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s1); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ds .panel-body { padding: var(--s3); }
.ds .panel + .panel { margin-top: var(--s3); }
.ds .grid-2 > .panel + .panel { margin-top: 0; }
.ds .editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s4); align-items: start; }
.ds .preview-col { position: sticky; top: 88px; display: grid; gap: var(--s1); justify-items: center; }
.ds .preview-col .tiny { text-align: center; }
.ds .biz-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s2); padding: var(--s2); }
.ds .biz-card > img { width: 112px; height: 140px; border-radius: 10px; object-fit: cover; }
.ds .biz-card-body { display: grid; gap: 12px; align-content: start; min-width: 0; }
.ds .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.ds .kpi { background: var(--surface); padding: var(--s2); }
.ds .kpi b { display: block; font-size: var(--t-24); font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ds .kpi span { font-size: var(--t-14); color: var(--ink-2); }
.ds .kpi .locked { color: var(--ink-3); font-size: var(--t-14); display: flex; align-items: center; gap: 6px; min-height: 32px; }
.ds .todo { list-style: none; display: grid; }
.ds .todo li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 64px; padding: 10px 0; border-top: 1px solid var(--line); }
.ds .todo li:first-child { border-top: 0; }
.ds .todo .tick { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.ds .todo li.is-done .tick { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.ds .todo li.is-done .todo-title { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--line-2); }
.ds .progress { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); }
.ds .progress span { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width var(--d-slow) var(--ease); }
.ds .photo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; list-style: none; }
.ds .photo-slot { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.ds .photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.ds .photo-slot .cover { position: absolute; left: 6px; top: 6px; }
.ds .photo-slot .slot-actions { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 2px; }
.ds .photo-slot .slot-actions .icon-btn { background: rgba(18, 20, 22, 0.6); color: #fff; width: 36px; height: 36px; }
.ds .photo-slot.is-add { display: grid; place-items: center; border: 1.5px dashed var(--line-2); background: transparent; color: var(--ink-2); width: 100%; font-weight: 600; font-size: var(--t-14); gap: 6px; transition: border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease); }
.ds .photo-slot.is-add:hover { border-color: var(--brand); color: var(--ink); }
.ds .photo-slot.is-locked { display: grid; place-items: center; border-style: dashed; color: var(--ink-3); font-size: var(--t-12); text-align: center; padding: 8px; }
.ds .hours-edit { display: grid; gap: 0; }
.ds .hours-row { display: grid; grid-template-columns: 110px auto minmax(0, 1fr); gap: var(--s1); align-items: center; min-height: 64px; border-top: 1px solid var(--line); }
.ds .hours-row:first-child { border-top: 0; }
.ds .hours-row .times { display: flex; align-items: center; gap: 8px; }
.ds .hours-row .times .input { width: 120px; }
.ds .hours-row .times.is-closed { color: var(--ink-3); }
.ds .save-bar { position: sticky; bottom: 0; z-index: 20; margin-top: var(--s3); display: flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s2); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); }
.ds .save-bar .btn-row { margin-left: auto; }
.ds .req-list { list-style: none; display: grid; gap: 6px; }
.ds .req-list li { display: flex; align-items: center; gap: 8px; font-size: var(--t-14); color: var(--ink-2); }
.ds .req-list li .i { color: var(--ink-3); }
.ds .req-list li.is-done { color: var(--ink); }
.ds .req-list li.is-done .i { color: var(--ok); }

/* ---------- Onboarding ---------- */
.ds .flow-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s1); min-height: 64px; border-bottom: 1px solid var(--line); }
.ds .stepper { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s0); margin: var(--s4) 0 var(--s4); counter-reset: st; }
.ds .stepper li { counter-increment: st; display: grid; gap: 8px; font-size: var(--t-14); color: var(--ink-3); font-weight: 550; }
.ds .stepper li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); transition: background-color var(--d) var(--ease); }
.ds .stepper li.is-done { color: var(--ink-2); }
.ds .stepper li.is-done::before { background: var(--brand); }
.ds .stepper li[aria-current="step"] { color: var(--ink); font-weight: 650; }
.ds .stepper li[aria-current="step"]::before { background: var(--accent); }
.ds .stepper .n { font-variant-numeric: tabular-nums; }
.ds .flow { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s6); align-items: start; padding-bottom: var(--s8); }
.ds .flow-step h1 { font-size: var(--t-32); }
.ds .flow-step > p { margin-top: var(--s0); }
.ds .flow-step form { margin-top: var(--s4); }
.ds .flow-nav { display: flex; gap: var(--s1); justify-content: space-between; align-items: center; margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); flex-wrap: wrap; }
.ds .match { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s1); align-items: center; padding: var(--s1); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-top: var(--s2); }
.ds .match img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.ds .verify-opts { display: grid; gap: var(--s1); margin-top: var(--s3); }
.ds .radio-card { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; padding: var(--s2); border: 1px solid var(--field-line); border-radius: var(--r); background: var(--surface); cursor: pointer; transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease); }
.ds .radio-card input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.ds .radio-card:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.ds .radio-card:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .code-boxes { display: flex; gap: 8px; }
.ds .code-boxes .input { width: 52px; text-align: center; font-size: var(--t-20); font-weight: 600; padding: 0; }

/* ---------- City page ---------- */
.ds .city-hero { position: relative; border-radius: var(--r); overflow: hidden; min-height: 440px; display: grid; align-items: end; color: #fff; }
.ds .city-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ds .city-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 16, 20, 0.05) 30%, rgba(12, 16, 20, 0.72)); }
.ds .city-hero-body { position: relative; z-index: 1; padding: var(--s5); max-width: 44rem; }
.ds .city-hero-body h1, .ds .city-hero-body p { color: #fff; }
:root[data-theme="dark"] .city-hero-body h1, :root[data-theme="dark"] .city-hero-body p { color: #d6d1a8; }
.ds .crumb { display: flex; gap: 8px; align-items: center; font-size: var(--t-14); color: var(--ink-2); margin-bottom: var(--s2); flex-wrap: wrap; }
.ds .crumb a { text-decoration: none; color: var(--ink-2); min-height: 32px; display: inline-flex; align-items: center; }
.ds .crumb a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.ds .place-card { display: block; text-decoration: none; color: var(--ink); }
.ds .place-card .photo { aspect-ratio: 4 / 3; }
.ds .place-card h3 { margin-top: 12px; font-size: var(--t-18); }
.ds .place-card p { margin-top: 4px; }
.ds .event-list { list-style: none; display: grid; }
.ds .event { display: grid; grid-template-columns: 72px 120px minmax(0, 1fr) auto; gap: var(--s2); align-items: center; padding: var(--s2) 0; border-top: 1px solid var(--line); }
.ds .event:last-child { border-bottom: 1px solid var(--line); }
.ds .event .date { display: grid; justify-items: center; padding: 8px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.ds .event .date b { font-size: var(--t-24); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ds .event .date span { font-size: var(--t-12); font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }
.ds .event .photo { aspect-ratio: 3 / 2; }
.ds .event h3 { font-size: var(--t-18); }
.ds .more-cities { display: flex; flex-wrap: wrap; gap: var(--s0); }

/* ---------- Modal ---------- */
.ds dialog.modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); opacity: 0; transform: scale(0.96); transition: opacity var(--d) var(--ease), transform var(--d) var(--ease), overlay var(--d) allow-discrete, display var(--d) allow-discrete; }
.ds dialog.modal[open] { opacity: 1; transform: none; }
@starting-style { .ds dialog.modal[open] { opacity: 0; transform: scale(0.96); } }
.ds dialog.modal::backdrop { background: var(--scrim); opacity: 0; transition: opacity var(--d) var(--ease), overlay var(--d) allow-discrete, display var(--d) allow-discrete; }
.ds dialog.modal[open]::backdrop { opacity: 1; }
@starting-style { .ds dialog.modal[open]::backdrop { opacity: 0; } }
.ds .modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s1); padding: var(--s3) var(--s3) 0; }
.ds .modal-body { padding: var(--s2) var(--s3); }
.ds .modal-foot { display: flex; justify-content: flex-end; gap: var(--s1); padding: var(--s1) var(--s3) var(--s3); flex-wrap: wrap; }

/* ---------- Toast ---------- */
.ds .toasts { position: fixed; z-index: 90; left: 50%; bottom: 112px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.ds .toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: var(--bg); font-size: var(--t-14); font-weight: 550; box-shadow: var(--shadow-2); transition: opacity var(--d) var(--ease), transform var(--d) var(--ease); }
.ds .toast .i { color: var(--accent); }
.ds .toast.is-entering, .ds .toast.is-leaving { opacity: 0; transform: translateY(8px); }

/* ---------- Entrance (hero only, once) ---------- */
.ds .enter { animation: enter 420ms var(--ease) both; }
.ds .enter-2 { animation-delay: 60ms; } .ds .enter-3 { animation-delay: 120ms; } .ds .enter-4 { animation-delay: 180ms; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Shared page parts ---------- */
.ds .eyebrow { margin-top: var(--s2); font-size: var(--t-14); font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); }
.ds .hrow { display: flex; align-items: center; gap: var(--s0); flex-wrap: wrap; }
/* Rich text written on the admin page (paragraphs, headings, lists, links). */
.ds .rich > * + * { margin-top: var(--s1); }
.ds .rich a { color: inherit; font-weight: 550; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-2); transition: text-decoration-color var(--d-fast) var(--ease); }
@media (hover: hover) and (pointer: fine) { .ds .rich a:hover { text-decoration-color: var(--accent); } }
.ds .rich ul, .ds .rich ol { padding-left: 1.25em; }
.ds .rich li + li { margin-top: 6px; }
.ds .lede.rich p { color: inherit; }

/* ---------- For business ---------- */
.ds .hero-card { margin: 0; min-height: 0; padding: var(--s3); display: grid; gap: var(--s1); justify-items: center; }
.ds .hero-card figcaption { max-width: 340px; text-align: center; }
.ds .chip-glass { line-height: 1; }
.ds .ffcard-sheet-body > * + * { margin-top: 6px; }
.ds .sheet-about { margin-top: 10px !important; color: var(--ink-2); }
.ds .sheet-open { color: var(--ok); font-weight: 600; }
.ds .sheet-actions > span { display: grid; justify-items: center; gap: 4px; min-height: 52px; padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--ink); }
.ds .sheet-h { display: flex; align-items: center; gap: 8px; }
.ds .sheet-hours { list-style: none; padding: 0; font-size: 13px; color: var(--ink-2); display: grid; gap: 2px; margin-bottom: 6px; }
.ds .coupon-lock { justify-content: flex-start; color: var(--gold-ink); font-size: 13px; }
:root[data-theme="dark"] .ds .coupon-lock { color: var(--ink); }
.ds .ffcard-sheet:not([inert]) { box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25); }
.ds .ffcard.is-dragging .ffcard-sheet { transition: none; }

.ds .plan { position: relative; }
.ds .plan-flag { position: absolute; top: var(--s3); right: var(--s3); }
.ds .plan-body { flex: 1; }
.ds .plan-body h2 { font-size: var(--t-24); line-height: 1.25; letter-spacing: -0.018em; padding-right: 7.5rem; }
.ds [data-plan="join"] .plan-body h2 { padding-right: 0; }
.ds .plan-body h2 + p strong { display: block; font-size: var(--t-44); line-height: 1; letter-spacing: -0.03em; font-weight: 650; color: var(--ink); }
.ds .plan-body h3 { margin-top: var(--s3); font-size: var(--t-14); font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.ds .plan-body ul { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: var(--s1); }
.ds .plan-body li { position: relative; padding-left: 32px; color: var(--ink-2); }
.ds .plan-body li + li { margin-top: 0; }
.ds .plan-body li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; }
.ds .plan-body li strong { color: var(--ink); font-weight: 600; }
.ds .plan-body > p:last-child { margin-top: var(--s2); font-size: var(--t-14); color: var(--ink-2); }
/* Featured's prices: two figures from /api/business/pricing; struck through while Featured is free. */
.ds .biz-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s0) var(--s3); }
.ds .biz-price { display: flex; align-items: baseline; gap: 8px; }
.ds .biz-price b { font-size: var(--t-44); line-height: 1; letter-spacing: -0.03em; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.ds .biz-price span { font-size: var(--t-14); color: var(--ink-2); }
.ds .biz-prices[data-free] .biz-price b { font-size: var(--t-24); color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }

.ds .tab-panels { margin-top: var(--s3); }
.ds .tab-panel:focus-visible { outline-offset: 4px; border-radius: var(--r); }
.ds .quest-phone > * + * { margin-top: 0; }
.ds .quest-note { font-size: var(--t-12); line-height: 1.4; color: var(--ink-2); padding-left: 10px; border-left: 2px solid var(--accent); }
.ds .quest-riddle { font-weight: 600; color: var(--ink); }
.ds .quest-field { margin-top: 6px; min-height: 44px; display: flex; align-items: center; padding: 8px 12px; border: 1px solid var(--field-line); border-radius: var(--r); background: var(--surface); font-size: var(--t-14); color: var(--ink); }
.ds .quest-stars { display: flex; gap: 2px; font-size: 18px; line-height: 1; color: var(--line-2); }
.ds .quest-stars .on { color: var(--gold); }
.ds .quest-reward { padding: var(--s1); border-radius: var(--r); background: var(--gold-soft); border: 1px solid var(--gold); display: grid; gap: 6px; }
.ds .quest-reward .sheet-h { font-size: 13px; font-weight: 600; color: var(--ink); }
.ds .quest-code { justify-self: start; padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px dashed var(--gold); font-weight: 650; letter-spacing: 0.08em; color: var(--ink); }
.ds .stats-box { width: min(420px, 100%); display: grid; gap: var(--s1); }
.ds .stats-grid .stat { margin: 0; }
.ds .stat dt { font-size: var(--t-14); color: var(--ink-2); }
.ds .stat dd { margin: 4px 0 0; font-size: var(--t-24); letter-spacing: -0.02em; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); }
.ds .stat-wide { grid-column: 1 / -1; }
.ds .steps h3 { font-size: var(--t-18); }
.ds .steps p { margin-top: var(--s0); }
.ds .section-band { padding-top: 0; border-top: 0 !important; }
.ds .band .rich { margin-top: var(--s0); }
.ds .band .rich p { margin-top: 0; }
.ds .biz-updated { margin-top: var(--s2); }
@media (max-width: 900px) {
  .ds .hero-card { padding: var(--s2) 0 0; background: transparent; border: 0; }
}
@media (max-width: 640px) {
  .ds .plan-flag { position: static; }
  .ds .plan-body h2 { padding-right: 0; }
}

/* ---------- Home ---------- */
/* The admin page's highlighted last word and full stop: pink is a line only, never text. */
.ds .c-accent { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 0.12em; text-decoration-skip-ink: none; }
.ds .c-dot { color: inherit; }
.ds .hero-visual picture { position: relative; display: block; width: min(420px, 100%); }
.ds .hero-visual picture img { width: 100%; }
.ds .hero-note { margin-top: var(--s2); }
.ds .hp-facts-wrap { margin-top: var(--s6); }
.ds .facts { margin: 0; }
.ds .fact dt { font-size: var(--t-24); letter-spacing: -0.02em; font-weight: 650; color: var(--ink); }
.ds .fact dd { margin: 4px 0 0; color: var(--ink-2); font-size: var(--t-14); }
.ds .section-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s5); }
.ds .section-row .section-head { margin: 0; }
.ds .section-head .eyebrow { margin: 0; }
.ds .tiles { list-style: none; }
.ds .tile .photo { display: block; }
.ds .tile .photo picture { display: block; height: 100%; }
.ds .hp-note { margin-top: var(--s3); max-width: 60ch; }
.ds .hp-qr { display: inline-flex; padding: 8px; border-radius: var(--r); background: #fff; }
.ds .hp-qr img { width: 96px; height: 96px; }
.ds .band .eyebrow { margin: 0 0 var(--s0); color: var(--on-brand); opacity: 0.8; }
/* The app's screens: a sideways row that snaps, drags with a mouse and opens a screen large (js/home-shots.js). */
.ds .hp-shots { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 260px); gap: var(--s3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 4px var(--s2); margin: 0 -4px; scrollbar-width: thin; }
.ds .hp-shots:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ds .hp-shot { scroll-snap-align: start; }
.ds .hp-shot picture { display: block; }
.ds .hp-shot img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-1); background: #0c1014; }
.ds .hp-shots[data-drag] { cursor: grab; }
@media (hover: hover) and (pointer: fine) { .ds .hp-shots[data-drag] { scroll-snap-type: none; } .ds .hp-shots[data-drag] .hp-shot img { cursor: zoom-in; transition: transform var(--d) var(--ease); } .ds .hp-shots[data-drag] .hp-shot img:hover { transform: translateY(-3px); } }
.ds .hp-shots.is-dragging { cursor: grabbing; user-select: none; }
.ds .hp-shots.is-dragging img { pointer-events: none; }
.shot-box { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; gap: var(--s2); padding: var(--s2); background: var(--scrim); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: shot-in var(--d) var(--ease); }
.shot-box[hidden] { display: none; }
.shot-box img { max-height: 88vh; max-width: min(420px, 78vw); width: auto; height: auto; border-radius: 26px; box-shadow: var(--shadow-2); }
.shot-box button { flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 20px; cursor: pointer; }
.shot-box .shot-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
@keyframes shot-in { from { opacity: 0; } }
@media (max-width: 560px) { .shot-box .shot-prev, .shot-box .shot-next { display: none; } .shot-box img { max-width: 86vw; } }
.ds .hp-cities .city-list { list-style: none; }
@media (max-width: 640px) {
  .ds .hp-shots { grid-auto-columns: 62vw; gap: var(--s2); }
  .ds .tiles.grid-3 { grid-template-columns: minmax(0, 1fr); }
  .ds .tiles.grid-3 .photo { aspect-ratio: 16 / 10; }
  .ds .section-row { margin-bottom: var(--s4); }
}

/* ---------- The card editor (business/apply) ---------- */
.ds.ba-body { overflow-x: clip; }
.ds .ba-rail .brand { padding: 0 8px; }
.ds .ba-rail .logo-plain { width: 22px; height: 24px; }
:root[data-theme="dark"] .ds .ba-rail .logo-plain { content: url("/assets/logo-sage.svg?v=2"); }
.ds .ba-rail nav { display: block; }
.ds .ba-rail .rail-nav { margin: 0; padding: 0; }
.ds .ba-rail .rail-nav li[hidden] { display: none; }
.ds .biz-main > .ba-bar { position: sticky !important; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: var(--s1); min-height: 64px; padding: 0 var(--s4); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ds .biz-main > .ba-bar .nav-left, .ds .biz-main > .ba-bar .nav-right { display: flex; align-items: center; gap: var(--s1); }
.ds .ba-bar-home { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.ds .ba-bar-name { font-weight: 700; letter-spacing: 0.12em; font-size: 0.8125rem; color: var(--ink); }
.ds .ba-bar-tag { font-weight: 500; letter-spacing: 0.02em; color: var(--ink-2); padding-left: 8px; margin-left: 4px; border-left: 1px solid var(--line-2); }
.ds .ba-bar-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: var(--t-14); font-weight: 550; color: var(--ink-2); text-decoration: none; border-radius: var(--r); }
@media (hover: hover) and (pointer: fine) { .ds .ba-bar-link:hover { color: var(--ink); } }
@media (min-width: 901px) { .ds .biz .biz-main > .ba-bar .nav-left { visibility: hidden; } }
.ds.ba-solo main.prose { max-width: 640px; margin: 0 auto; padding: var(--s6) var(--gutter) var(--s7); }
.ds.ba-solo main.prose h1 { font-size: var(--t-44); font-weight: 650; }
.ds.ba-solo main.prose a.btn { box-shadow: var(--shadow-1); color: var(--on-brand); }
.ds main.ba-page { max-width: 1180px; margin: 0; padding: var(--s4) var(--s4) var(--s6); }
.ds main.ba-page > .eyebrow { margin: 0 0 var(--s0); }
.ds main.ba-page > .eyebrow a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.ds main.ba-page > h1 { margin: 0; font-size: var(--t-44); line-height: 1.1; letter-spacing: -0.028em; font-weight: 650; }
.ds main.ba-page > .lede { margin-top: var(--s1); max-width: 44em; }
.ds main.ba-page > .ba-kept { margin-top: var(--s1); max-width: 60em; }
.ds .ba-editor { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: var(--s4); margin-top: var(--s4); }
/* The card, its details and the checklist share one grid, so the sticky checklist stops above the save row (Lorenzo, 2026-11-16). */
.ds .ba-editor-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "form side"; gap: var(--s4); align-items: start; }
/* The save row spans both columns, so its edges line up with the cards and the checklist (Lorenzo, 2026-11-16). */
.ds .ba-editor > .ba-submit-row { margin-top: 0; }
/* The checklist starts level with the cards, under the column headings. */
.ds .ba-editor-main > .ba-side { margin-top: 31px; } /* the heading line (21px) and its 10px gap */
.ds .ba-editor-main > .ba-form { grid-area: form; min-width: 0; margin: 0; }
.ds .ba-editor-main > .ba-side { grid-area: side; position: sticky; top: 88px; }
.ds .ba-checklist .panel-head { padding: var(--s1) var(--s2); }
.ds .ba-checklist .panel-body { padding: var(--s2); display: grid; gap: var(--s2); }
.ds .ba-checklist .req-list { margin: 0; padding: 0; gap: 2px; }
.ds .ba-checklist .req-list li { display: block; }
.ds .ba-checklist .req-list button { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 44px; padding: 4px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; border-radius: var(--r); background: none; text-align: left; font-size: var(--t-14); color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .ds .ba-checklist .req-list button:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); } }
.ds .ba-checklist .tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.ds .ba-checklist li.is-done button { color: var(--ink); }
.ds .ba-checklist li.is-done .tick { background: var(--ok); border-color: var(--ok); }
.ds .ba-checklist li.is-done .tick::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--surface); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.ds .ba-checklist li.is-done .req { visibility: hidden; }
/* The send row: Send for review (or Save changes) is the filled button, Save draft the outlined one. */
.ds .ba-submit-row.save-bar { flex-direction: column; align-items: stretch; gap: var(--s0); text-align: left; }
/* The card editor's save row sits at the end of the form and never follows the page (Lorenzo, 2026-11-16). */
.ds .ba-submit-row.save-bar { position: static; bottom: auto; }
.ds .ba-submit-row .ba-submit-btns { display: flex; gap: var(--s1); justify-content: flex-start; flex-wrap: wrap; }
.ds .ba-submit-row .ba-err-center, .ds .ba-submit-row .ba-center { text-align: left; margin: 0; }
.ds .ba-submit-row .ba-draft { text-align: left; max-width: none; }
.ds .ba-body .soft-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--field-line); background: transparent; color: var(--ink); font-family: var(--font); font-size: var(--t-14); font-weight: 600; text-decoration: none; box-shadow: none; transition: background-color var(--d-fast) var(--ease), transform var(--d-press) var(--ease); }
.ds .ba-body .soft-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .ds .ba-body .soft-btn:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); } }
.ds .ba-refeature, .ds .ba-note { border-radius: var(--r); }
.ds .ba-body .ba-foot { border-top: 1px solid var(--line); padding: var(--s3) var(--s4) var(--s4); background: none; }
.ds .ba-body .ba-foot .foot-links { display: flex; flex-wrap: wrap; gap: var(--s0) var(--s3); justify-content: flex-start; }
.ds .ba-body .ba-foot .foot-links a { color: var(--ink-2); font-size: var(--t-14); min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; }
.ds .ba-bottom { grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: none !important; }
.ds .ba-bottom a .i, .ds .ba-rail .i { width: 20px; height: 20px; }
/* Below 1280 the card, its details and the checklist do not fit side by side: the checklist goes under. */
@media (max-width: 1279px) {
  .ds .ba-editor { grid-template-columns: minmax(0, 1fr); grid-template-areas: "form" "submit" "side"; }
  .ds .ba-editor-main { display: contents; }
  .ds .ba-editor > .ba-submit-row { grid-area: submit; }
  .ds .ba-editor-main > .ba-side { position: static; margin-top: 0; }
}
@media (max-width: 900px) {
  .ds .biz-main > .ba-bar { padding: 0 var(--gutter); }
  .ds main.ba-page { padding: var(--s3) var(--gutter) calc(var(--s8) + 16px); }
  .ds .ba-body .ba-foot { padding-bottom: calc(var(--s8) + 24px); }
}
@media (max-width: 640px) {
  .ds main.ba-page > h1 { font-size: var(--t-32); }
  .ds .ba-submit-row .ba-submit-btns .btn { flex: 1 1 auto; }
  .ds .ba-submit-row .ba-err-center, .ds .ba-submit-row .ba-center { text-align: left; }
}
/* The older .prose rules (css/site.css) stay off the editor's own parts. */
.ds main.ba-page > .lede, .ds main.ba-page > h1 + p { margin-left: 0; margin-right: 0; padding: 0; font-size: var(--t-18); color: var(--ink-2); }
.ds .ba-side h2 { margin: 0; padding: 0; border: 0; font-size: var(--t-16); font-weight: 600; letter-spacing: 0; }
.ds .ba-side p, .ds .ba-side li { margin: 0; padding: 0; border: 0; font-size: var(--t-14); line-height: 1.45; }
.ds .ba-side ul { margin: 0; padding: 0; }
.ds .ba-side .panel-head { flex-wrap: nowrap; }
.ds .ba-demo { display: none; }
@media (max-width: 640px) { .ds .ba-bar .ba-bar-link { display: none; } }
/* Inside the iPhone app (?embed=1): only the card, the checklist and the send row; the app draws the rest. */
.ba-embed .ds .ba-rail, .ba-embed .ds .ba-bottom { display: none !important; }
.ba-embed .ds .biz { grid-template-columns: minmax(0, 1fr); }
.ba-embed .ds main.ba-page { padding-top: 8px; }

/* ---------- Pages still built by their own generators: the guides, the
   Places and Events feeds and articles, the legal and info pages, the 404.
   Their markup and words stay; body.ds-skin brings them onto the system's
   spacing under the sticky header, its ink, its one radius and its buttons. */
body.ds-skin { --pink: var(--accent); }
body.ds-skin.ff-mocha, body.ds-skin .ff-mocha { --fg: var(--ink); --tag-fg: var(--ink); --deck-tag-fg: var(--ink); --pill-bg: var(--brand); }
.ds-skin .seo, .ds-skin .blog, .ds-skin .art { padding-top: var(--s6); }
.ds-skin main.prose { padding-top: var(--s6); padding-bottom: var(--s7); }
.ds-skin .prose h1, .ds-skin .seo h1, .ds-skin .blog h1, .ds-skin .art h1 { font-weight: 650; letter-spacing: -0.028em; }
.ds-skin .prose h2 { margin: var(--s5) 0 0; padding: var(--s3) 0 0; border-top: 1px solid var(--line); }
.ds-skin .prose .updated { margin: var(--s4) 0 0; padding: var(--s2) 0 0; border-top: 1px solid var(--line); }
.ds-skin .prose a:not(.pill):not(.btn) { box-shadow: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
@media (hover: hover) and (pointer: fine) { .ds-skin .prose a:not(.pill):not(.btn):hover { text-decoration-color: var(--accent); } }
/* Pink is a line, never text. */
body.ds-skin .c-accent, body.ds-skin .feed-head h1 em, body.ds-skin.ff-mocha .feed-head h1 em { color: inherit; font-style: normal; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 0.12em; text-decoration-skip-ink: none; }
body.ds-skin .c-dot { color: inherit; }
/* The old pill buttons as the system's buttons: 12px corners, Mocha fill or an outline, never black. */
.ds-skin .pill { border-radius: var(--r); min-height: 44px; font-family: var(--font); font-weight: 600; }
.ds-skin .pill-solid { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-1); }
.ds-skin .pill-outline { box-shadow: inset 0 0 0 1px var(--field-line); color: var(--ink); }
.ds-skin .seo img, .ds-skin .blog img, .ds-skin .art img { border-radius: var(--r); }
@media (max-width: 860px) {
  .ds-skin .seo, .ds-skin .blog, .ds-skin .art { padding-top: var(--s4); }
  .ds-skin main.prose { padding-top: var(--s4); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ds .editor, .ds .flow { grid-template-columns: minmax(0, 1fr); }
  .ds .preview-col { position: static; }
  .ds .biz { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .ds .hero-grid, .ds .split, .ds .demo-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .ds .hero-visual { min-height: 0; }
  .ds .hero-visual img { width: min(340px, 80%); }
  .ds .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds .band { grid-template-columns: minmax(0, 1fr); padding: var(--s4); }
  .ds .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds .biz { grid-template-columns: minmax(0, 1fr); }
  .ds .rail { display: none; }
  .ds .biz-top { padding: 0 var(--gutter); }
  .ds .biz-top .brand-m { display: inline-flex; }
  .ds .biz-top .brand-m .brand-word { display: none; }
  .ds .biz-top .crumbs { padding-left: var(--s0); border-left: 1px solid var(--line-2); min-height: 24px; }
  .ds .biz-content { padding: var(--s3) var(--gutter) calc(var(--s8) + 16px); }
  .ds .bottom-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .ds .bottom-bar a { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 52px; padding-top: 6px; text-decoration: none; font-size: 11px; font-weight: 600; color: var(--ink-2); border-radius: var(--r); }
  .ds .bottom-bar a[aria-current="page"] { color: var(--ink); }
  .ds .bottom-bar a[aria-current="page"]::before { content: ""; position: absolute; top: -7px; left: 30%; right: 30%; height: 2px; border-radius: 2px; background: var(--accent); }
  .ds .save-bar { bottom: 76px; }
  .ds .toasts { bottom: 96px; }
  .ds .demo-stage { min-height: 0; padding: var(--s3) var(--s1); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --nav-h: 60px; }
  .ds .section { padding-block: var(--s6); }
  .ds .hero { padding-block: var(--s5) var(--s6); }
  .ds .section-head { margin-bottom: var(--s4); }
  .ds .facts { grid-template-columns: minmax(0, 1fr); }
  .ds .fact, .ds .fact + .fact { padding: var(--s2) 0; border-left: 0; }
  .ds .fact + .fact { border-top: 1px solid var(--line); }
  .ds .screens { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .ds .screen { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s2); align-items: center; }
  .ds .screen h3 { margin-top: 0; }
  .ds .screen-frame { border-radius: 18px; }
  .ds .grid-3, .ds .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .ds .grid-4 { gap: var(--s1); }
  .ds .plans { grid-template-columns: minmax(0, 1fr); }
  .ds .plan { padding: var(--s3); }
  .ds .plan .btn, .ds .hero .btn, .ds .band .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
  .ds .steps { grid-template-columns: minmax(0, 1fr); }
  .ds .city-list { grid-template-columns: minmax(0, 1fr); }
  .ds .city-list li:nth-child(odd) { border-right: 0; }
  .ds .field-row { grid-template-columns: minmax(0, 1fr); }
  .ds .field-row + .field, .ds .field + .field-row { margin-top: var(--s2); }
  .ds .field-row > .field + .field { margin-top: 0; }
  .ds .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds .hours-row { grid-template-columns: 1fr auto; grid-template-areas: "day toggle" "times times"; padding: 10px 0; }
  .ds .hours-row .day { grid-area: day; } .ds .hours-row .tog { grid-area: toggle; } .ds .hours-row .times { grid-area: times; }
  .ds .hours-row .times .input { width: auto; flex: 1; }
  .ds .stepper { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ds .stepper .lbl { display: none; }
  .ds .stepper li[aria-current="step"] .lbl { display: inline; }
  .ds .stepper li[aria-current="step"] { grid-column: span 1; }
  .ds .event { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "date body" "date act"; row-gap: 8px; }
  .ds .event .date { grid-area: date; align-self: start; }
  .ds .event .photo { display: none; }
  .ds .event .ev-body { grid-area: body; } .ds .event .ev-act { grid-area: act; }
  .ds .city-hero { min-height: 360px; }
  .ds .city-hero-body { padding: var(--s3); }
  .ds .biz-card { grid-template-columns: 80px minmax(0, 1fr); }
  .ds .biz-card > img { width: 80px; height: 100px; }
  .ds .panel-head, .ds .panel-body { padding-inline: var(--s2); }
  .ds .save-bar { flex-wrap: wrap; }
  .ds .save-bar .btn-row { margin-left: 0; width: 100%; }
  .ds .flow-nav .btn { flex: 1 1 auto; }
  .ds .modal-foot .btn { flex: 1 1 auto; }
  .ds .tabs { display: flex; width: 100%; }
  .ds .tab { flex: 1; padding: 0 8px; }
  .ds .code-boxes .input { width: 44px; }
  .ds .kpi { padding: var(--s1) var(--s2); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
