/* Pasal design tokens. Light/dark via prefers-color-scheme + [data-theme] override. */
:root {
  /* Brand */
  --brand-deep: #0b3a30;
  --brand-mid: #18a47b;
  --brand-soft: #c4f5e1;
  --brand-coral: #ff7a5c;
  --brand-cream: #fdf6ec;
  /* Crimson — drawn from the Nepali flag. Used sparingly for one or two
     high-energy moments (seal, accent rules), never as a primary surface. */
  --brand-crimson: #c8102e;
  --brand-saffron: #f0a202;

  /* Type families — Fraunces (display), Hanken Grotesk (body/UI), Mukta
     (Devanagari). Devanagari fonts are appended so नेपाली is styled in both. */
  --font-display: 'Fraunces', 'Mukta', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', 'Mukta', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Optical sizing: let Fraunces use its display cut at large sizes. */
  --display-opsz: 'opsz' 144;

  /* Surfaces (light) */
  --bg-page: #fbfaf6;
  --bg-page-grad: radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #f6f4ee 50%, #efece4 100%);
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-tint: #f1efe8;
  --bg-inverse: #0b3a30;

  /* Ink (light) */
  --ink: #0d1f1b;
  --ink-soft: #4a5a55;
  --ink-mute: #7a8884;
  --ink-inverse: #fbfaf6;

  /* Lines & glass */
  --line: rgba(11, 58, 48, 0.10);
  --line-strong: rgba(11, 58, 48, 0.18);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.92);

  /* Status */
  --positive: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;

  /* Type scale (fluid, mobile-first) */
  --fs-display: clamp(2.5rem, 6vw + 1rem, 4.75rem);
  --fs-h1: clamp(2rem, 4vw + 0.75rem, 3.25rem);
  --fs-h2: clamp(1.5rem, 2.5vw + 0.75rem, 2.25rem);
  --fs-h3: clamp(1.2rem, 1vw + 0.9rem, 1.5rem);
  --fs-lede: clamp(1.0625rem, 0.5vw + 0.95rem, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.75rem;

  /* Spacing (4px scale) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-7: 2rem;
  --sp-8: 2.5rem;
  --sp-9: 3rem;
  --sp-10: 4rem;
  --sp-11: 5rem;
  --sp-12: 6rem;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 6px rgba(13, 31, 27, 0.05), 0 1px 2px rgba(13, 31, 27, 0.04);
  --shadow-md: 0 8px 22px rgba(13, 31, 27, 0.08), 0 2px 6px rgba(13, 31, 27, 0.04);
  --shadow-lg: 0 24px 60px rgba(13, 31, 27, 0.14), 0 4px 12px rgba(13, 31, 27, 0.06);
  --shadow-glow: 0 12px 40px rgba(24, 164, 123, 0.28);

  /* Texture & atmosphere */
  --grain-opacity: 0.5;          /* paper grain over the page */
  --lattice-opacity: 0.45;       /* Newari-lattice line motif in sections */
  --lattice-ink: 11, 58, 48;     /* rgb of the lattice strokes (brand-deep) */

  /* Motion */
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 400ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --container-prose: 720px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 76px;
  --header-h-shrunk: 60px;
}

/* Dark theme — prefers-color-scheme OR explicit toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page: #08120f;
    --bg-page-grad: radial-gradient(120% 100% at 50% 0%, #0d1c18 0%, #0a1614 50%, #07100e 100%);
    --bg-card: #11201c;
    --bg-elevated: #16302a;
    --bg-tint: #0e1c19;
    --bg-inverse: #c4f5e1;
    --ink: #e8f5f0;
    --ink-soft: #a8b8b3;
    --ink-mute: #6c7a76;
    --ink-inverse: #0b3a30;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.18);
    --glass: rgba(11, 28, 24, 0.7);
    --glass-strong: rgba(11, 28, 24, 0.92);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 12px 40px rgba(24, 164, 123, 0.3);
    --grain-opacity: 0.7;
    --lattice-opacity: 0.5;
    --lattice-ink: 196, 245, 225;  /* brand-soft on dark */
  }
}

:root[data-theme="dark"] {
  --bg-page: #08120f;
  --bg-page-grad: radial-gradient(120% 100% at 50% 0%, #0d1c18 0%, #0a1614 50%, #07100e 100%);
  --bg-card: #11201c;
  --bg-elevated: #16302a;
  --bg-tint: #0e1c19;
  --bg-inverse: #c4f5e1;
  --ink: #e8f5f0;
  --ink-soft: #a8b8b3;
  --ink-mute: #6c7a76;
  --ink-inverse: #0b3a30;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --glass: rgba(11, 28, 24, 0.7);
  --glass-strong: rgba(11, 28, 24, 0.92);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --grain-opacity: 0.7;
  --lattice-opacity: 0.5;
  --lattice-ink: 196, 245, 225;
}


/* --- next file --- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-page);
  background-image: var(--bg-page-grad);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Paper grain — a fixed, faint fractal-noise wash that gives the flat cream
   surfaces a printed, tactile quality. Sits between the page background and
   content (z-index:-1), never intercepts input. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] body::before,
.dark-grain body::before { mix-blend-mode: overlay; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body::before { mix-blend-mode: overlay; }
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-optical-sizing: auto;
}

h1 { font-size: var(--fs-h1); font-weight: 600; font-variation-settings: var(--display-opsz); }
h2 { font-size: var(--fs-h2); font-weight: 600; font-variation-settings: var(--display-opsz); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 var(--sp-4) 0; color: var(--ink-soft); line-height: 1.65; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--sp-4) 0; padding-left: var(--sp-6); color: var(--ink-soft); }
li { margin: var(--sp-1) 0; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.hidden { display: none !important; }

.skip-link {
  position: absolute;
  top: -200%;
  left: 16px;
  z-index: 100;
  padding: var(--sp-3) var(--sp-5);
  background: var(--ink);
  color: var(--ink-inverse);
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: var(--fs-small);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 16px; }

::selection {
  background: var(--brand-mid);
  color: #fff;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-tint) 25%, var(--line) 50%, var(--bg-tint) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
  color: transparent !important;
  min-height: 1em;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }
.container.prose { max-width: var(--container-prose); }


/* --- next file --- */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--gutter);
  border-bottom: 1px solid var(--line);
  transition: padding var(--t-base) var(--ease);
  /* IMPORTANT: backdrop-filter on the header itself would create a new
     containing block, trapping the mobile nav drawer (position: fixed)
     inside the ~76px header instead of the viewport. Push the blur to
     a ::before so the header stays a normal containing-block citizen. */
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glass);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: background var(--t-base) var(--ease);
}
.site-header.scrolled { padding-block: var(--sp-3); }
.site-header.scrolled::before { background: var(--glass-strong); }

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  /* Crop logo's surrounding whitespace so the wordmark fills more of the
     vertical band. logo.png ships with vertical padding; we hide the top
     and bottom 18% with object-fit + a clip box, letting us run a larger
     visible logo at the same header height. */
  height: 48px;
  overflow: hidden;
}
.brand-logo {
  height: 72px;          /* oversize source image… */
  width: auto;
  margin-block: -12px;   /* …pulled back into the 48px container by trimming top + bottom */
  transition: height var(--t-base) var(--ease), margin-block var(--t-base) var(--ease);
}
.site-header.scrolled .brand { height: 40px; }
.site-header.scrolled .brand-logo { height: 60px; margin-block: -10px; }

/* Hamburger */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--bg-tint);
  color: var(--ink);
  z-index: 60;
  /* iOS Safari occasionally swallows touch events on transparent buttons —
     setting background + a touch-action hint gives the OS a clear target. */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.menu-toggle:hover, .menu-toggle:focus-visible { background: var(--line); }
.hamburger-icon { position: relative; width: 22px; height: 16px; }
.hamburger-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease), top var(--t-base) var(--ease);
}
.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 7px; }
.hamburger-icon span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.nav-container {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.site-nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-soft);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--bg-tint); }
.nav-link-cta {
  background: var(--brand-deep);
  color: #fff;
  padding-inline: var(--sp-5);
}
.nav-link-cta:hover { background: var(--brand-mid); color: #fff; }

/* Active nav (data-nav-active on header) */
.site-header[data-nav-active="customers"] .nav-link[data-nav-key="customers"],
.site-header[data-nav-active="pasals"] .nav-link[data-nav-key="pasals"],
.site-header[data-nav-active="features"] .nav-link[data-nav-key="features"],
.site-header[data-nav-active="pricing"] .nav-link[data-nav-key="pricing"],
.site-header[data-nav-active="faq"] .nav-link[data-nav-key="faq"],
.site-header[data-nav-active="download"] .nav-link[data-nav-key="download"] {
  color: var(--ink);
  background: var(--bg-tint);
}

.nav-tools { display: inline-flex; align-items: center; gap: var(--sp-2); }
.icon-btn, .lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--bg-tint);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-small);
  transition: background var(--t-fast) var(--ease);
}
.icon-btn { width: 40px; padding: 0; }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
/* 3-state theme toggle: no data-theme = auto (follow system); else explicit light/dark. */
.icon-btn .icon-sun, .icon-btn .icon-moon { display: none; }
.icon-btn .icon-auto { display: block; }
:root[data-theme="light"] .icon-btn .icon-auto { display: none; }
:root[data-theme="light"] .icon-btn .icon-sun { display: block; }
:root[data-theme="dark"] .icon-btn .icon-auto { display: none; }
:root[data-theme="dark"] .icon-btn .icon-moon { display: block; }
.icon-btn:hover, .lang-btn:hover { background: var(--line); }

/* Mobile nav */
@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; order: 3; }
  .nav-container {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    z-index: 55;                 /* above page content but under the toggle */
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--sp-6) var(--gutter) var(--sp-9);
    gap: var(--sp-2);
    background: var(--bg-page);
    background-image: var(--bg-page-grad);
    transform: translateX(100%);
    transition: transform var(--t-base) var(--ease);
    overflow-y: auto;
    pointer-events: none;        /* prevent click-through while closed */
  }
  .nav-container.open { transform: translateX(0); pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .site-nav { flex-direction: column; align-items: stretch; gap: var(--sp-1); width: 100%; }
  .nav-link {
    padding: var(--sp-4) var(--sp-5);
    font-size: 1.0625rem;
    border-radius: var(--r-md);
  }
  .nav-link-cta { margin-top: var(--sp-3); justify-content: center; }
  .nav-tools {
    margin-top: var(--sp-5);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--line);
    justify-content: flex-start;
  }
}

/* Footer */
.site-footer {
  margin-top: var(--sp-12);
  padding: var(--sp-9) var(--gutter) var(--sp-6);
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
}
.footer-grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}
.footer-logo { height: 32px; margin-bottom: var(--sp-3); }
.footer-tagline { color: var(--ink-soft); margin-bottom: var(--sp-4); font-size: var(--fs-small); }
.footer-pricing-strip { font-size: var(--fs-small); color: var(--brand-mid); }
.footer-col h4 {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a { color: var(--ink-soft); font-size: var(--fs-small); transition: color var(--t-fast) var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: var(--container);
  margin-inline: auto;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-small);
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer-bottom-right { display: flex; align-items: center; gap: var(--sp-3); }
.footer-bottom-right a { color: var(--ink-soft); }
.footer-bottom-right a:hover { color: var(--ink); }
.footer-version { font-variant-numeric: tabular-nums; opacity: 0.6; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}


/* --- next file --- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.btn-primary {
  background: var(--brand-deep);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-mid); box-shadow: var(--shadow-glow); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--bg-tint); border-color: var(--ink-mute); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-tint); }

.btn-coral {
  background: var(--brand-coral);
  color: #fff;
}
.btn-coral:hover { background: #ff8a6c; box-shadow: 0 12px 30px rgba(255, 122, 92, 0.32); }

.btn-lg { padding: var(--sp-4) var(--sp-7); font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }

/* Store buttons (Apple/Google style) */
.store-button {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--ink-inverse);
  font-weight: 700;
  transition: transform var(--t-fast) var(--ease);
  border: 1px solid transparent;
}
.store-button:hover { transform: translateY(-2px); }
.store-button svg { width: 24px; height: 24px; fill: currentColor; }
.store-button .store-meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-button .store-meta small { font-size: 0.7rem; font-weight: 500; opacity: 0.85; }
.store-button .store-meta span { font-size: 1.05rem; font-weight: 700; }

/* Pill chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-small);
  font-weight: 600;
}
.chip-mint {
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-color: transparent;
}
.chip-coral {
  background: rgba(255, 122, 92, 0.14);
  color: var(--brand-coral);
  border-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-mid);
  margin-bottom: var(--sp-3);
}
/* Editorial tick — a short rule before the eyebrow label. */
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.7;
}
.section-heading .eyebrow { justify-content: center; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}
.card-icon svg { width: 24px; height: 24px; fill: currentColor; }

/* Section heading */
.section {
  padding-block: var(--sp-12);
}
.section-tight { padding-block: var(--sp-9); }
.section-narrow { padding-block: var(--sp-7); }

.section-heading {
  text-align: center;
  max-width: var(--container-narrow);
  margin: 0 auto var(--sp-9);
}
.section-heading.left { text-align: left; margin-inline: 0; }
.section-heading h2 { margin-bottom: var(--sp-3); }
.section-heading p {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto;
}
.section-heading.left p { margin-inline: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Screenshot frame — clean rounded image with subtle shadow.
   We dropped the dark phone bezel + notch: the heavy dark border looked
   noisy against the calm marketing palette and ate visual real estate. */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-tint);
}
.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-2xl);
}

/* Screenshot pair (two phones, layered with gentle tilt) */
.screenshot-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  align-items: center;
}
.screenshot-pair .phone-frame:first-child { transform: rotate(-2.5deg); margin-top: var(--sp-7); }
.screenshot-pair .phone-frame:last-child { transform: rotate(2.5deg); }
@media (max-width: 600px) {
  .screenshot-pair { grid-template-columns: 1fr; max-width: 260px; margin-inline: auto; }
  .screenshot-pair .phone-frame { transform: none !important; margin-top: 0; }
  .screenshot-pair .phone-frame:last-child { display: none; }
}

/* Stat tile */
.stat {
  text-align: center;
  padding: var(--sp-5);
}
.stat-value {
  display: block;
  font-size: var(--fs-h1);
  font-weight: 800;
  color: var(--brand-mid);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-top: var(--sp-2);
}

/* Theme toggle button visibility — 3-state (auto / light / dark). */
/* Canonical rules are in layout.css; left here intentionally empty so nothing in this
   file overrides the auto-by-default icon visibility set there. */

/* Scroll-to-top */
.scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--ink-inverse);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  box-shadow: var(--shadow-md);
}
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Gate / upsell modals */
.gate-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: var(--sp-3) var(--gutter);
  background: var(--ink);
  color: var(--ink-inverse);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--fs-small);
}
.gate-banner .btn-secondary { background: var(--ink-inverse); color: var(--ink); border-color: transparent; }

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 18, 15, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.gate-modal {
  position: relative;
  background: var(--bg-card);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.gate-modal .gate-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: var(--sp-3);
}
.gate-modal .gate-message { color: var(--ink-soft); margin-bottom: var(--sp-4); }
.gate-modal ul { list-style: none; padding: 0; margin-bottom: var(--sp-5); }
.gate-modal ul li {
  position: relative;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-2);
  color: var(--ink-soft);
}
.gate-modal ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-mid);
  font-weight: 800;
}
.gate-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.upsell-close-btn {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--bg-tint);
  color: var(--ink);
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.upsell-close-btn:hover { background: var(--line); }

body.gate-soft, body.gate-hard { overflow: hidden; }

/* Hero bands */
.hero {
  padding: var(--sp-10) var(--gutter) var(--sp-9);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-9);
  align-items: center;
}
.hero-copy h1 {
  margin-bottom: var(--sp-5);
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.0;
  font-variation-settings: var(--display-opsz);
}
/* Set the last word of the headline in warm italic Fraunces for editorial lift. */
.hero-copy h1 .lede-em {
  font-style: italic;
  font-weight: 600;
  color: var(--brand-mid);
}
.hero-copy .hero-lede {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  margin-bottom: var(--sp-6);
  max-width: 52ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
.hero-visual { position: relative; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .hero { padding-block: var(--sp-9) var(--sp-7); }
}

/* ===================================================================
   Editorial signature layer — Bazaar aesthetic
   =================================================================== */

/* Newari-lattice / jali motif: a faint geometric line field for section
   bands. Built from layered linear-gradients forming an interlocked diamond
   grid. Apply `.lattice` to any positioned band; strokes inherit --lattice-ink. */
.lattice { position: relative; isolation: isolate; }
.lattice::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--lattice-opacity);
  background-image:
    repeating-linear-gradient(45deg,
      rgba(var(--lattice-ink), 0.06) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg,
      rgba(var(--lattice-ink), 0.06) 0 1px, transparent 1px 22px);
  -webkit-mask-image: radial-gradient(120% 120% at 50% 0%, #000 0%, transparent 78%);
          mask-image: radial-gradient(120% 120% at 50% 0%, #000 0%, transparent 78%);
}

/* Awning — a striped shopfront ribbon along the top edge of a band, with a
   scalloped lower hem. Classic Nepali shopfront awning (saffron / crimson /
   green). Apply to a positioned, rounded band; it tucks under the top corners. */
.awning { position: relative; }
.awning > .awning-hem {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  z-index: 2;
  background: repeating-linear-gradient(90deg,
    var(--brand-saffron) 0 26px,
    #fff 26px 52px,
    var(--brand-crimson) 52px 78px,
    var(--brand-mid) 78px 104px);
  /* scalloped lower hem */
  -webkit-mask: radial-gradient(8px at 50% 14px, transparent 7px, #000 8px) repeat-x 0 0 / 22px 14px;
          mask: radial-gradient(8px at 50% 14px, transparent 7px, #000 8px) repeat-x 0 0 / 22px 14px;
  opacity: 0.92;
}

/* Crimson seal — a rotated postmark-style "0% commission" stamp that overlaps
   the hero phones. Pure CSS; text curves are faked with a tight circular badge. */
.seal {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 124px;
  border-radius: var(--r-pill);
  background:
    radial-gradient(circle at 50% 38%, #e4243f 0%, var(--brand-crimson) 60%, #9c0c23 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 14px 30px rgba(200, 16, 46, 0.38), inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  transform: rotate(-12deg);
  z-index: 3;
  animation: seal-pop var(--t-slow) var(--ease) both;
  animation-delay: 360ms;
}
.seal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: var(--r-pill);
  border: 1.5px dashed rgba(255, 255, 255, 0.55);
}
.seal .seal-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variation-settings: var(--display-opsz);
}
.seal .seal-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}
@keyframes seal-pop {
  from { opacity: 0; transform: rotate(-32deg) scale(0.6); }
  to   { opacity: 1; transform: rotate(-12deg) scale(1); }
}
/* Seal placement over the hero phones (bottom-left overlap). */
.hero-visual .seal { left: -10px; bottom: 18px; }
@media (max-width: 600px) {
  .hero-visual .seal { width: 96px; height: 96px; left: auto; right: 4px; bottom: auto; top: -8px; }
  .hero-visual .seal .seal-num { font-size: 1.6rem; }
}

/* Ghumti marquee — a self-scrolling strip of category pills that echoes the
   app's "Ghumti" cross-shop feed. Two duplicated tracks loop seamlessly. */
.ghumti {
  position: relative;
  padding-block: var(--sp-6);
  border-block: 1px solid var(--line);
  background: var(--bg-tint);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ghumti-eyebrow {
  display: block;
  text-align: center;
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--sp-4);
}
.ghumti-track {
  display: flex;
  gap: var(--sp-3);
  width: max-content;
  animation: ghumti-scroll 48s linear infinite;
}
.ghumti:hover .ghumti-track { animation-play-state: paused; }
.ghumti-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.ghumti-pill .mi {
  font-family: 'Material Symbols Rounded';
  font-size: 18px;
  color: var(--cat, var(--brand-mid));
}
@keyframes ghumti-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ghumti-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .ghumti { -webkit-mask-image: none; mask-image: none; }
}


/* --- next file --- */

/* ----- Landing page (/) ----- */
.persona-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-9);
}
.persona-card {
  position: relative;
  display: block;
  padding: calc(var(--sp-8) + 14px) var(--sp-8) var(--sp-8);
  border-radius: var(--r-2xl);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
/* Each persona is a "door" into the app — a coloured awning hangs over each. */
.persona-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 12px;
  background: repeating-linear-gradient(90deg,
    var(--awning-a, var(--brand-mid)) 0 22px,
    var(--awning-b, var(--brand-soft)) 22px 44px);
  -webkit-mask: radial-gradient(7px at 50% 12px, transparent 6px, #000 7px) repeat-x 0 0 / 20px 12px;
          mask: radial-gradient(7px at 50% 12px, transparent 6px, #000 7px) repeat-x 0 0 / 20px 12px;
  opacity: 0.9;
}
.persona-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.persona-card .eyebrow { color: var(--brand-mid); }
.persona-card.persona-pasal { --awning-a: var(--brand-coral); --awning-b: #ffd9cd; }
.persona-card.persona-customer { --awning-a: var(--brand-mid); --awning-b: var(--brand-soft); }
.persona-card.persona-pasal .eyebrow { color: var(--brand-coral); }
.persona-card h3 { font-size: 1.9rem; margin-bottom: var(--sp-3); }
.persona-card p { color: var(--ink-soft); margin-bottom: var(--sp-5); }
.persona-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-small);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.persona-card .arrow::after { content: "→"; transition: transform var(--t-fast) var(--ease); }
.persona-card:hover .arrow { background: var(--bg-tint); border-color: var(--ink-mute); }
.persona-card:hover .arrow::after { transform: translateX(4px); }
.persona-card.persona-customer {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(24, 164, 123, 0.20) 0%, rgba(24, 164, 123, 0) 60%),
    var(--bg-card);
  border-color: rgba(24, 164, 123, 0.28);
}
.persona-card.persona-pasal {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 122, 92, 0.20) 0%, rgba(255, 122, 92, 0) 60%),
    var(--bg-card);
  border-color: rgba(255, 122, 92, 0.28);
}
@media (max-width: 720px) { .persona-band { grid-template-columns: 1fr; } }

/* Pricing strip — repeated callout */
.pricing-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--sp-8) + 16px) var(--gutter) var(--sp-8);
  margin: 0 auto;
  max-width: var(--container);
  border-radius: var(--r-2xl);
  background: var(--brand-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.pricing-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(196, 245, 225, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 122, 92, 0.12) 0%, transparent 50%),
    repeating-linear-gradient(45deg, rgba(196, 245, 225, 0.05) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(-45deg, rgba(196, 245, 225, 0.05) 0 1px, transparent 1px 24px);
  pointer-events: none;
}
/* Striped, scallop-hemmed shopfront awning along the top edge. */
.pricing-strip::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  background: repeating-linear-gradient(90deg,
    var(--brand-saffron) 0 26px,
    #fdf6ec 26px 52px,
    var(--brand-crimson) 52px 78px,
    var(--brand-soft) 78px 104px);
  -webkit-mask: radial-gradient(8px at 50% 14px, transparent 7px, #000 8px) repeat-x 0 0 / 22px 14px;
          mask: radial-gradient(8px at 50% 14px, transparent 7px, #000 8px) repeat-x 0 0 / 22px 14px;
}
.pricing-strip .pricing-eyebrow {
  font-size: var(--fs-small);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin-bottom: var(--sp-4);
  font-weight: 700;
  position: relative;
}
.pricing-strip h2 {
  color: #fff;
  font-size: clamp(2.25rem, 5vw + 0.5rem, 4rem);
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-3);
  position: relative;
}
.pricing-strip .pricing-zeros {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
  margin-block: var(--sp-5);
  position: relative;
}
.pricing-strip .zero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  min-width: 130px;
}
.pricing-strip .zero-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--brand-soft);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variation-settings: var(--display-opsz);
}
.pricing-strip .zero-label {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.78);
  margin-top: var(--sp-2);
  font-weight: 600;
}
.pricing-strip .pricing-sub {
  font-size: var(--fs-lede);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  position: relative;
}

/* Stats band — live marketplace counts (hydrated by src/stats.ts) */
.stats-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-7) var(--gutter);
  margin: 0 auto;
  max-width: var(--container);
  border-radius: var(--r-2xl);
  background: var(--bg-card);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(196, 245, 225, 0.35) 0%, transparent 55%),
              radial-gradient(circle at 85% 90%, rgba(255, 122, 92, 0.18) 0%, transparent 55%);
  pointer-events: none;
}
.stats-band .stats-eyebrow {
  font-size: var(--fs-small);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: var(--sp-5);
  font-weight: 700;
  position: relative;
}
.stats-band .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  width: 100%;
  max-width: 720px;
  position: relative;
}
.stats-band .stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-4) var(--sp-3);
}
.stats-band .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw + 0.5rem, 3.5rem);
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-variation-settings: var(--display-opsz);
}
/* brand-deep is too close to the dark-mode bg; use brand-mid for contrast */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stats-band .stat-num { color: var(--brand-mid); }
}
:root[data-theme="dark"] .stats-band .stat-num { color: var(--brand-mid); }
.stats-band .stat-label {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-top: var(--sp-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stats-band .stats-sub {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  margin-top: var(--sp-5);
  margin-bottom: 0;
  max-width: 560px;
  position: relative;
}
@media (max-width: 720px) {
  .stats-band .stats-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .stats-band .stat-cell { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
  .stats-band .stat-cell:last-child { border-bottom: none; }
}

/* Feature step list (How it works) */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.step {
  position: relative;
  padding: var(--sp-7);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-6);
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand-soft);
  -webkit-text-stroke: 1px var(--brand-mid);
  font-variation-settings: var(--display-opsz);
}
:root[data-theme="dark"] .step::before { color: transparent; -webkit-text-stroke: 1px var(--brand-mid); }
.step h3 { margin-bottom: var(--sp-3); padding-right: var(--sp-8); }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr; } }

/* Feature page deep-dive layout */
.feature-hero {
  padding: var(--sp-9) var(--gutter) var(--sp-7);
}
.feature-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-9);
  align-items: center;
}
.feature-hero h1 { font-size: var(--fs-h1); margin-bottom: var(--sp-4); }
.feature-hero .hero-lede { font-size: var(--fs-lede); color: var(--ink-soft); }
@media (max-width: 920px) {
  .feature-hero .container { grid-template-columns: 1fr; gap: var(--sp-6); }
}

.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-9);
  align-items: center;
  padding: var(--sp-9) 0;
  border-bottom: 1px solid var(--line);
}
.feature-detail.reverse { direction: rtl; }
.feature-detail.reverse > * { direction: ltr; }
.feature-detail:last-child { border-bottom: 0; }
.feature-detail h3 { font-size: 1.5rem; margin-bottom: var(--sp-4); }
@media (max-width: 920px) {
  .feature-detail { grid-template-columns: 1fr; gap: var(--sp-5); }
  .feature-detail.reverse { direction: ltr; }
}

/* FAQ */
.faq-list { max-width: var(--container-prose); margin-inline: auto; display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand-mid);
  transition: transform var(--t-fast) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { margin-bottom: var(--sp-3); }
.faq-item p { margin: 0; color: var(--ink-soft); line-height: 1.65; }

/* Legal pages */
.legal-content {
  max-width: var(--container-prose);
  margin: 0 auto;
  padding: var(--sp-9) var(--gutter);
}
.legal-content h1 { font-size: var(--fs-h1); margin-bottom: var(--sp-3); }
.legal-content h2 {
  font-size: 1.4rem;
  margin: var(--sp-7) 0 var(--sp-3);
  color: var(--ink);
}
.legal-date {
  font-size: var(--fs-small);
  color: var(--ink-mute);
  margin-bottom: var(--sp-7);
}
.legal-content p { color: var(--ink-soft); line-height: 1.7; }

/* Social link hub */
.social-hub {
  max-width: 460px;
  margin: 0 auto;
  padding: var(--sp-9) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.social-hub-header { text-align: center; margin-bottom: var(--sp-6); }
.social-hub-header h1 { margin-bottom: var(--sp-2); }
.social-hub-header p { color: var(--ink-soft); }
.social-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-weight: 600;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.social-row:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.social-row svg { width: 22px; height: 22px; }
.social-row .social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Default: light icon on coloured background. Per-platform overrides below
   handle the cases where the background is light or transparent (gp, web). */
.social-row .social-icon svg { fill: #fff; width: 22px; height: 22px; }
.social-icon.fb { background: #1877F2; }
.social-icon.ig { background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%); }
.social-icon.tt { background: #000; }
.social-icon.li { background: #0A66C2; }
.social-icon.mail { background: var(--brand-mid); }
.social-icon.web {
  background: var(--brand-deep);
}
/* Globe SVG uses stroke, not fill — override the blanket fill rule. */
.social-icon.web svg { fill: none !important; stroke: #ffffff; stroke-width: 2; }
/* Google Play: white background → tinted Play glyph in brand colour, works
   in light + dark. */
.social-icon.gp {
  background: #ffffff;
  border: 1px solid var(--line);
}
.social-icon.gp svg { fill: #0b3a30; }
/* App Store: in light mode, dark background; in dark mode the brand --ink
   is light, so swap to a contrasting fixed-dark background and white glyph. */
.social-icon.as { background: #0b3a30; }
.social-icon.as svg { fill: #ffffff; }
.social-divider { height: 1px; background: var(--line); margin: var(--sp-3) 0; }

/* Download page */
.download-hero {
  text-align: center;
  padding: var(--sp-10) var(--gutter) var(--sp-7);
}
.download-hero h1 { margin-bottom: var(--sp-4); font-size: var(--fs-h1); }
.download-stores {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-block: var(--sp-6);
}
.download-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  max-width: var(--container-narrow);
  margin: var(--sp-7) auto 0;
}
.download-card {
  padding: var(--sp-7);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.download-card h2 { margin-bottom: var(--sp-3); font-size: var(--fs-h3); font-weight: 700; }

.dl-redirect-banner {
  position: fixed;
  left: 50%;
  bottom: max(var(--sp-5), env(safe-area-inset-bottom, 0));
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: var(--fs-small);
  max-width: calc(100vw - var(--sp-6));
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dl-redirect-banner--out {
  opacity: 0;
  transform: translate(-50%, 8px);
}
.dl-redirect-cancel {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font: inherit;
  cursor: pointer;
}
.dl-redirect-cancel:hover { background: var(--bg-tint); }
.download-qr {
  width: 160px;
  height: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  padding: var(--sp-3);
}
@media (max-width: 720px) { .download-info-grid { grid-template-columns: 1fr; } }

/* Trust badges row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.trust-item svg { width: 16px; height: 16px; fill: var(--brand-mid); }

/* Hero accent decoration */
.hero-accent {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(450px 320px at 8% 10%, rgba(196, 245, 225, 0.55) 0%, transparent 60%),
    radial-gradient(420px 320px at 92% 90%, rgba(255, 122, 92, 0.18) 0%, transparent 60%);
}
:root[data-theme="dark"] .hero-accent { opacity: 0.4; }

/* Side-by-side info row */
.info-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
@media (max-width: 920px) { .info-pair { grid-template-columns: 1fr; } }

/* Compact CTA card */
.cta-card {
  padding: var(--sp-8);
  border-radius: var(--r-2xl);
  background: var(--bg-card);
  border: 1px solid var(--line);
  text-align: center;
}
.cta-card h2 { margin-bottom: var(--sp-3); }
.cta-card p { max-width: 60ch; margin: 0 auto var(--sp-5); color: var(--ink-soft); }

/* Testimonial-ish quote block */
.quote {
  padding: var(--sp-7);
  border-left: 4px solid var(--brand-mid);
  background: var(--bg-tint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  color: var(--ink);
}
.quote cite { display: block; margin-top: var(--sp-3); color: var(--ink-mute); font-style: normal; font-size: var(--fs-small); }


/* --- next file --- */

/* Business / product preview, list views, gating UI */
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-5) 0;
  margin-bottom: var(--sp-5);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: var(--fs-small);
}
.back-link::before { content: "←"; }
.back-link:hover { color: var(--ink); }

.business-hero, .product-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-7);
  align-items: stretch;
  padding: var(--sp-6) 0;
}
.business-hero.no-cover { grid-template-columns: 1fr; }

.business-info {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}
.business-logo {
  width: 96px;
  height: 96px;
  border-radius: var(--r-lg);
  object-fit: cover;
  background: var(--bg-tint);
  flex-shrink: 0;
}
.business-meta { color: var(--ink-soft); font-size: var(--fs-small); margin-bottom: var(--sp-1); }
.business-description { color: var(--ink-soft); margin-top: var(--sp-3); }

/* Material Symbols glyph — shared by category/service pills and product
   placeholders. Loaded as a subset webfont in partials/layout.html. */
.mi {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App-style category/service pills: fully rounded, accent colour tinted at
   ~12% with solid icon/label. --pill-color is set per-pill from the model. */
.business-tags {
  list-style: none;
  margin: var(--sp-2) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  color: var(--pill-color, var(--ink-soft));
  background: color-mix(in srgb, var(--pill-color, var(--ink-soft)) 12%, transparent);
}
.pill .mi { font-size: 16px; }
.pill-label { white-space: nowrap; }

.business-cover, .product-image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--r-xl);
  background: var(--bg-tint);
}

@media (max-width: 720px) {
  .business-hero, .product-hero { grid-template-columns: 1fr; gap: var(--sp-4); }
}

.product-info-section {
  padding: var(--sp-6) 0;
}
.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-mid);
  margin-block: var(--sp-2) var(--sp-4);
}

.product-business-card {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--bg-tint);
  border-radius: var(--r-pill);
  margin-top: var(--sp-4);
  font-size: var(--fs-small);
}
.product-business-card strong { color: var(--ink); font-weight: 700; }

.structured-description {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--sp-2) var(--sp-5);
  margin-block: var(--sp-3) var(--sp-4);
}
.structured-description dt { font-weight: 700; color: var(--ink-mute); font-size: var(--fs-small); }
.structured-description dd { margin: 0; color: var(--ink); }
.description-text { color: var(--ink-soft); margin: 0; }

/* Product grid (within business preview) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-block: var(--sp-5);
}
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--pill-color, var(--ink-soft)) 10%, var(--bg-tint));
}
.product-card-placeholder .mi {
  font-size: 56px;
  color: color-mix(in srgb, var(--pill-color, var(--ink-soft)) 70%, transparent);
}
.product-card strong { display: block; padding: var(--sp-3) var(--sp-3) 0; font-size: 0.95rem; color: var(--ink); }
.product-card .product-price { padding: var(--sp-1) var(--sp-3); font-size: 1rem; margin: 0; }
.product-card .product-description { padding: 0 var(--sp-3) var(--sp-3); color: var(--ink-soft); font-size: var(--fs-small); }

/* List view grid */
.list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  padding-bottom: var(--sp-9);
}
@media (max-width: 920px) { .list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .list-grid { grid-template-columns: 1fr; } }
.list-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.list-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.list-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.list-card.no-image::before {
  content: "";
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-tint);
  display: block;
}
.list-card strong { padding: var(--sp-3) var(--sp-3) 0; color: var(--ink); }
.list-meta { padding: 0 var(--sp-3); color: var(--ink-soft); font-size: var(--fs-small); }
.list-meta:last-child { padding-bottom: var(--sp-3); }

/* Upsell card under preview */
.upsell-card {
  margin-block: var(--sp-7);
  padding: var(--sp-7);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  text-align: center;
}
.upsell-card h3 { margin-bottom: var(--sp-3); }
.upsell-card p { color: var(--ink-soft); margin-bottom: var(--sp-5); }
.upsell-actions { display: inline-flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }

/* ThumbHash placeholder fade-in.
 *
 * applyImagePlaceholder() in ui.ts paints a tiny PNG (decoded server-side
 * from the ThumbHash) as the <img>'s background-image, then adds .img-fade-in
 * before assigning src. The image starts at opacity 0 so the placeholder
 * shows through; the .img-loaded class is added on the load/error event,
 * fading the real image in over the blurred placeholder.
 *
 * Cached images skip the fade by getting both classes at once (set in JS),
 * which jumps straight to opacity 1 with no visible flicker.
 */
.img-fade-in {
  opacity: 0;
  transition: opacity 0.32s ease-out;
}
.img-fade-in.img-loaded { opacity: 1; }

/* Empty / error state shared with product-not-found, business-not-found */
.preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  margin: var(--sp-10) auto;
  padding: var(--sp-9) var(--sp-6);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.preview-empty-glyph {
  margin-bottom: var(--sp-5);
  filter: drop-shadow(0 6px 16px rgba(13, 31, 27, 0.08));
}
.preview-empty h1 {
  font-size: var(--fs-h3);
  margin: 0 0 var(--sp-3);
  color: var(--ink);
}
.preview-empty p {
  color: var(--ink-soft);
  margin: 0 0 var(--sp-6);
  line-height: 1.5;
}
.preview-empty-actions {
  display: inline-flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* Skeleton states */
.business-skeleton, .product-skeleton {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-6) 0;
}
.business-skeleton .business-hero { padding: 0; }
