/* =============================================================================
   Dompet — Landing Page styles
   Mobile-first (375px). Scales up via media queries + clamp().
   ============================================================================= */

/* Bricolage Grotesque is loaded via <link> tags in index.html <head>
   (preconnect + stylesheet) so the font request fires before this CSS
   finishes parsing. Variable axes: opsz 12..96, wght 400..800.
   Tabular figures applied per-class on monetary amounts. */

:root {
  --color-primary:        #C8553D;
  --color-primary-soft:   #FFF0EC;
  --color-primary-10:     rgba(200, 85, 61, 0.10);
  --color-primary-pressed:#A8462F;

  --color-income:         #5EBB8A;
  --color-expense:        #E8836A;
  --color-mom-up:         #4A8C6F;
  --color-mom-down:       #C85A4A;

  --color-bg:             #FAFAF7;
  --color-surface:        #FFFFFF;
  --color-surface-muted:  #F0EFEA;
  --color-divider:        #EEEDEA;
  --color-dark:           #1A1A18;

  --fg-1: #1A1A18;
  --fg-2: #7C7C73;
  --fg-soft: #4A4A44;      /* darker secondary — for hero sub, body that needs weight */
  --fg-3: #8A8680;
  --fg-muted: #D0CFCA;
  --fg-on-primary: #FFFFFF;
  --fg-on-dark: #FFFFFF;
  --fg-on-dark-muted: rgba(255, 255, 255, 0.70);

  /* One family, two role names kept so existing rules don't churn. */
  --font-heading: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --radius-xs:    8px;
  --radius-sm:    12px;
  --radius-md:    14px;
  --radius-lg:    16px;
  --radius-xl:    20px;
  --radius-2xl:   24px;
  --radius-pill:  999px;

  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 4px 12px rgba(26, 26, 24, 0.06);
  --shadow-lg:  0 8px 20px rgba(26, 26, 24, 0.08);
  --shadow-xl:  0 24px 60px rgba(26, 26, 24, 0.14);
  --shadow-cta: 0 6px 16px rgba(200, 85, 61, 0.28);
  --shadow-dark: 0 16px 32px rgba(26, 26, 24, 0.18);

  --hairline: 1px solid var(--color-divider);

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Motion: smooth, decisive ease-out curves. No bounce, no elastic. */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 17px);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; }

/* Bilingual visibility — JS sets <html lang="id"> or "en" */
html[lang="id"] [data-lang="en"] { display: none; }
html[lang="en"] [data-lang="id"] { display: none; }

/* ----------------------------------------------------------------- Type */
.h-display {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--fg-1);
  text-wrap: balance;
  font-optical-sizing: auto;
}
.h-section {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(26px, 4.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
  font-optical-sizing: auto;
}
.h-card {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
}
.lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.55;
  color: var(--fg-soft);
  text-wrap: pretty;
  max-width: 56ch;
}
.muted { color: var(--fg-2); }

/* Tabular figures + lining numerals across every monetary surface. */
.bal-card .amount,
.bal-pill .v,
.tps-bal .amt,
.tps-bal .v,
.asset-hero .amt,
.asset-hero .delta,
.asset-row .r .a,
.asset-row .r .d,
.add-amount .v,
.add-mini-amount,
.stat-cell strong,
.stat-cell .delta,
.cat-row .a,
.alloc-list em,
.txn-amt,
.tps-tx .a,
.wallet-card .bal,
.tps-wallets .w strong,
.phone-status,
.tp .tp-status {
  font-variant-numeric: tabular-nums lining-nums;
}

/* ----------------------------------------------------------------- Layout */
.wrap {
  width: 100%;
  max-width: var(--max);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
section { position: relative; }
.section-pad {
  padding-block: clamp(72px, 11vw, 128px);
}

/* ----------------------------------------------------------------- Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 14px;
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background-color 220ms ease, backdrop-filter 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(250, 250, 247, 0.78);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: rgba(26, 26, 24, 0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg-1);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: transparent;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-toggle {
  display: inline-flex;
  padding: 4px;
  background: rgba(26,26,24,0.06);
  border-radius: 999px;
  gap: 0;
  border: 0;
}
.nav.is-stuck .lang-toggle {
  background: rgba(26,26,24,0.05);
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  min-height: 32px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--color-surface);
  color: var(--fg-1);
  box-shadow: var(--shadow-sm);
}
.nav-cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--color-dark);
  color: var(--fg-on-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 999px;
  transition: transform 120ms ease, background-color 160ms ease;
}
.nav-cta:hover { background: #2a2a26; }
.nav-cta:active { transform: scale(0.97); }
@media (max-width: 520px) {
  .nav-cta { display: none; }
}

/* ----------------------------------------------------------------- Buttons */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: transform 120ms ease, background-color 160ms ease, box-shadow 220ms ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--fg-on-primary);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: #B84932; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(200,85,61,0.32); }
.btn-primary:active { transform: translateY(0) scale(0.97); background: var(--color-primary-pressed); }
.btn-ghost {
  background: transparent;
  color: var(--fg-1);
  padding: 14px 18px;
  border-radius: 8px;
}
.btn-ghost:hover { background: rgba(26,26,24,0.05); }
.btn-dark {
  background: var(--color-dark);
  color: var(--fg-on-dark);
}
.btn-dark:hover { background: #2a2a26; transform: translateY(-1px); }
.btn-dark:active { transform: scale(0.97); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.cta-hint {
  font-size: 13px;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  background: var(--color-surface);
  border: var(--hairline);
  border-radius: 999px;
}
.cta-hint::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--color-primary-soft);
  border-radius: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C8553D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 6L12 2L8 6'/%3E%3Cpath d='M12 2v13'/%3E%3Cpath d='M20 17v3a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.cta-hint[hidden] { display: none; }

/* ----------------------------------------------------------------- Hero */
.hero {
  padding-top: clamp(110px, 17vw, 160px);
  padding-bottom: clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 8vw, 80px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(40px, 5vw, 72px);
  }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(200,85,61,0.18);
}
.hero-sub {
  margin-top: 18px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--fg-2);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta svg { color: var(--color-primary); flex-shrink: 0; }

/* Phone mockup */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.phone-stage::before,
.phone-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.phone-stage::before {
  width: 70%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(200,85,61,0.18), transparent 70%);
  top: 8%; left: 15%;
  filter: blur(8px);
}
.phone-stage::after {
  width: 50%;
  height: 50%;
  background: radial-gradient(closest-side, rgba(94,187,138,0.14), transparent 70%);
  bottom: 5%; right: 5%;
  filter: blur(8px);
}
.phone {
  position: relative;
  z-index: 1;
  width: min(320px, 80vw);
  aspect-ratio: 320 / 660;
  background: var(--color-dark);
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow-xl), inset 0 0 0 1.5px rgba(255,255,255,0.06);
  transform: rotate(-3deg);
}
@media (min-width: 900px) {
  .phone { transform: rotate(-4deg) translateY(0); width: 340px; }
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: var(--color-dark);
  border-radius: 999px;
  z-index: 5;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  color: var(--fg-1);
}
.phone-status .right { display: flex; align-items: center; gap: 4px; color: var(--fg-1); }
.phone-status .right svg { display: block; }

.phone-content { padding: 8px 16px 18px; flex: 1; overflow: hidden; }

/* Recreated home header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 14px;
}
.app-greet {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--fg-2);
}
.app-greet strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--fg-1);
  margin-top: 1px;
}
.app-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
}

/* Balance card */
.bal-card {
  background: var(--color-dark);
  color: var(--fg-on-dark);
  border-radius: 20px;
  padding: 14px 16px 14px;
  box-shadow: var(--shadow-dark);
  position: relative;
  overflow: hidden;
}
.bal-card .label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-on-dark-muted);
}
.bal-card .amount {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 4px 0 12px;
}
.bal-card .amount small { font-weight: 600; font-size: 13px; color: var(--fg-on-dark-muted); margin-right: 4px; }
.bal-pills { display: flex; gap: 6px; }
.bal-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
}
.bal-pill .k {
  font-family: var(--font-body);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-on-dark-muted);
}
.bal-pill .v {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
}
.bal-pill .v.income { color: var(--color-income); }
.bal-pill .v.expense { color: var(--color-expense); }

/* Wallet strip */
.wallet-strip {
  display: flex;
  gap: 8px;
  margin: 14px 0 4px;
  overflow: hidden;
}
.wallet-card {
  flex: 0 0 76px;
  height: 50px;
  border-radius: 12px;
  padding: 6px 8px;
  color: white;
  font-family: var(--font-heading);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.wallet-card.w1 { background: linear-gradient(135deg, #C8553D, #5c2418); }
.wallet-card.w2 { background: linear-gradient(135deg, #1e40af, #0b1a4a); }
.wallet-card.w3 { background: linear-gradient(135deg, #059669, #064e3b); }
.wallet-card .name { font-weight: 600; font-size: 9px; opacity: 0.9; }
.wallet-card .bal { font-weight: 800; font-size: 11px; letter-spacing: -0.01em; }
.wallet-card.selected { box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-primary); }

/* Chart */
.mini-chart {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 12px;
  margin-top: 12px;
  box-shadow: var(--shadow-md);
}
.mini-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.mini-chart-head .t {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
}
.mini-chart-head .p {
  font-size: 10px;
  color: var(--fg-2);
}
.mini-chart svg { width: 100%; height: auto; display: block; }
.mini-chart-legend {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 10px;
  color: var(--fg-2);
}
.mini-chart-legend span { display: inline-flex; align-items: center; gap: 4px; }
.mini-chart-legend .d {
  width: 6px; height: 6px; border-radius: 999px; background: var(--color-income);
}
.mini-chart-legend .d.exp { background: var(--color-expense); }

/* Txn rows */
.txn-list { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.txn-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 8px 10px;
}
.txn-icon {
  width: 32px; height: 32px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
}
.txn-icon svg { width: 16px; height: 16px; }
.txn-meta { flex: 1; min-width: 0; }
.txn-meta .n {
  font-family: var(--font-heading);
  font-weight: 600; font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.txn-meta .s {
  font-size: 9px; color: var(--fg-2); margin-top: 1px;
}
.txn-amt {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 11px;
  white-space: nowrap;
}
.txn-amt.exp { color: var(--color-expense); }
.txn-amt.inc { color: var(--color-income); }

/* Floating bits anchored to the phone */
.phone-stage .badge {
  position: absolute;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  z-index: 4;
  white-space: nowrap;
}
.phone-stage .badge .ico {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.phone-stage .badge .ico.inc { background: rgba(94,187,138,0.16); color: var(--color-income); }
.phone-stage .badge .sub {
  font-family: var(--font-body);
  font-weight: 500; font-size: 10px;
  color: var(--fg-2);
  margin-top: 1px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.phone-stage .badge .col { display: flex; flex-direction: column; line-height: 1.1; }
.phone-stage .badge-offline {
  top: 8%;
  left: -8%;
  transform: rotate(-2deg);
  animation: float 6s ease-in-out infinite;
}
.phone-stage .badge-income {
  bottom: 18%;
  right: -6%;
  transform: rotate(2deg);
  animation: float 6.6s ease-in-out -2s infinite;
}
@media (max-width: 480px) {
  .phone-stage .badge-offline { left: -4%; top: 5%; }
  .phone-stage .badge-income { right: -2%; bottom: 14%; }
}
@keyframes float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(-2deg) translateY(-6px); }
}
.phone-stage .badge-income { animation-name: float2; }
@keyframes float2 {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%      { transform: rotate(2deg) translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-stage .badge { animation: none; }
}

/* ----------------------------------------------------------------- Sections */
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head p { margin: 16px 0 0; }

/* Features — three equally-weighted rows, sides alternate down the section.
   Each row pairs a numbered copy block with one art vignette. No cards, no
   icon tiles. The art is a small concrete scene per feature, not an icon. */
.features-head {
  max-width: 580px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.features-head .eyebrow { display: block; }

.feat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 760px) {
  .feat-row {
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(48px, 7vw, 96px);
  }
  .feat-row--reverse .feat-copy { order: 2; }
  .feat-row--reverse .feat-art  { order: 1; }
}

.feat-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 52ch;
}
.feat-title {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.feat-copy p {
  margin: 0;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--fg-soft);
  line-height: 1.55;
  text-wrap: pretty;
}

.feat-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums lining-nums;
  margin-bottom: 2px;
}

.feat-art {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
}

.feat-divider {
  border: 0;
  height: 1px;
  background: var(--color-divider);
  margin: clamp(48px, 7vw, 96px) 0;
  transform-origin: center;
}

/* === 01 · Offline — large wifi arcs in a beige panel, struck through === */
.art-offline {
  width: min(300px, 82vw);
  padding: 36px 28px 28px;
  background: var(--color-surface-muted);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.ao-wifi {
  width: 96px;
  height: 70px;
  color: var(--fg-2);
}
.ao-wifi .ao-slash { stroke: var(--color-primary); }
.ao-eb {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.ao-cap {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--fg-2);
  line-height: 1.45;
  max-width: 26ch;
}

/* === 02 · Multi-platform — phone + browser sharing one balance === */
.art-sync {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(400px, 90vw);
}
.sync-phone {
  flex: 0 0 124px;
  height: 204px;
  background: var(--color-surface);
  border-radius: 20px;
  padding: 20px 14px 16px;
  box-shadow:
    0 14px 30px -14px rgba(26, 26, 24, 0.18),
    0 1px 3px rgba(26, 26, 24, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sp-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 4px;
  background: var(--fg-1);
  border-radius: 2px;
  opacity: 0.75;
}
.sp-eb, .sw-eb {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-top: 10px;
}
.sp-amt, .sw-amt {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.05;
}
.sp-amt small, .sw-amt small {
  font-size: 10px;
  color: var(--fg-2);
  margin-right: 3px;
  font-weight: 600;
  letter-spacing: 0;
}
.sp-row, .sw-row {
  height: 8px;
  border-radius: 3px;
  background: var(--color-surface-muted);
  margin-top: 5px;
  display: block;
}
.sp-row--short, .sw-row--short { width: 60%; }

.sync-link {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 36px;
}
.sl-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  background: var(--color-bg);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 85, 61, 0.22);
  white-space: nowrap;
}
.sl-pill svg { color: currentColor; }

.sync-web {
  flex: 0 0 172px;
  height: 162px;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow:
    0 14px 30px -14px rgba(26, 26, 24, 0.18),
    0 1px 3px rgba(26, 26, 24, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sw-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: var(--color-surface-muted);
  border-bottom: 1px solid var(--color-divider);
}
.sw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-muted);
}
.sw-body {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

@media (max-width: 540px) {
  .sync-phone { flex-basis: 104px; height: 178px; padding: 16px 12px 12px; }
  .sync-web   { flex-basis: 148px; height: 142px; }
  .sp-amt, .sw-amt { font-size: 16px; }
}

/* === 03 · Assets — miniature 'Aset Saya' phone screen ===
   Same vocabulary as the App Tour cards (.tp), scaled to a vignette. */
.art-assets-screen {
  position: relative;
  width: 216px;
  background: var(--color-surface);
  border-radius: 24px;
  padding: 22px 20px 20px;
  box-shadow:
    0 22px 44px -22px rgba(26, 26, 24, 0.26),
    0 2px 6px -2px rgba(26, 26, 24, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aas-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 4.5px;
  background: var(--fg-1);
  border-radius: 2.5px;
  opacity: 0.78;
}
.aas-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  color: var(--fg-1);
  margin-top: 4px;
}
.aas-status .r {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--fg-1);
}
.aas-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin-top: 10px;
}
.aas-eb {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-top: 8px;
}
.aas-amt {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums lining-nums;
}
.aas-amt small {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-2);
  margin-right: 3px;
  letter-spacing: 0;
}
.aas-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  color: var(--color-income);
  margin-top: -1px;
}
.aas-delta svg { color: currentColor; flex-shrink: 0; }
.aas-chart {
  width: 100%;
  height: 32px;
  display: block;
  margin: 4px 0 6px;
}
.aas-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-divider);
  padding-top: 4px;
}
.aas-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-divider);
}
.aas-row:last-child { border-bottom: 0; }
.aas-chip {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.aas-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  color: var(--fg-1);
}
.aas-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: -0.005em;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums lining-nums;
}

/* ----------------------------------------------------------------- Features entrance
   One orchestrated reveal: header fades up, then each row's copy cascades
   followed by its art, with dividers wiping in between. JS gates with
   .has-anim + .is-in-view. */
#features.has-anim:not(.is-in-view) .features-head,
#features.has-anim:not(.is-in-view) .feat-copy > *,
#features.has-anim:not(.is-in-view) .feat-art {
  opacity: 0;
  transform: translateY(14px);
}
#features.has-anim:not(.is-in-view) .feat-divider {
  transform: scaleX(0);
  opacity: 0;
}

#features.has-anim.is-in-view .features-head {
  animation: featFadeUp 600ms var(--ease-out-quart) both;
}

/* Row 1 — eyebrow + copy left, art right */
#features.has-anim.is-in-view .feat-row:nth-of-type(1) .feat-copy > :nth-child(1) { animation: featFadeUp 500ms var(--ease-out-quart) 160ms both; }
#features.has-anim.is-in-view .feat-row:nth-of-type(1) .feat-copy > :nth-child(2) { animation: featFadeUp 500ms var(--ease-out-quart) 240ms both; }
#features.has-anim.is-in-view .feat-row:nth-of-type(1) .feat-copy > :nth-child(3) { animation: featFadeUp 500ms var(--ease-out-quart) 320ms both; }
#features.has-anim.is-in-view .feat-row:nth-of-type(1) .feat-art               { animation: featFadeUp 600ms var(--ease-out-expo)  380ms both; }

#features.has-anim.is-in-view .feat-divider:nth-of-type(1) { animation: dividerWipe 700ms var(--ease-out-quart) 580ms both; }

/* Row 2 — art left, copy right */
#features.has-anim.is-in-view .feat-row:nth-of-type(2) .feat-copy > :nth-child(1) { animation: featFadeUp 500ms var(--ease-out-quart) 720ms both; }
#features.has-anim.is-in-view .feat-row:nth-of-type(2) .feat-copy > :nth-child(2) { animation: featFadeUp 500ms var(--ease-out-quart) 800ms both; }
#features.has-anim.is-in-view .feat-row:nth-of-type(2) .feat-copy > :nth-child(3) { animation: featFadeUp 500ms var(--ease-out-quart) 880ms both; }
#features.has-anim.is-in-view .feat-row:nth-of-type(2) .feat-art               { animation: featFadeUp 600ms var(--ease-out-expo)  760ms both; }

#features.has-anim.is-in-view .feat-divider:nth-of-type(2) { animation: dividerWipe 700ms var(--ease-out-quart) 1100ms both; }

/* Row 3 — copy left, art right */
#features.has-anim.is-in-view .feat-row:nth-of-type(3) .feat-copy > :nth-child(1) { animation: featFadeUp 500ms var(--ease-out-quart) 1240ms both; }
#features.has-anim.is-in-view .feat-row:nth-of-type(3) .feat-copy > :nth-child(2) { animation: featFadeUp 500ms var(--ease-out-quart) 1320ms both; }
#features.has-anim.is-in-view .feat-row:nth-of-type(3) .feat-copy > :nth-child(3) { animation: featFadeUp 500ms var(--ease-out-quart) 1400ms both; }
#features.has-anim.is-in-view .feat-row:nth-of-type(3) .feat-art               { animation: featFadeUp 600ms var(--ease-out-expo)  1460ms both; }

@keyframes featFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dividerWipe {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #features.has-anim:not(.is-in-view) .features-head,
  #features.has-anim:not(.is-in-view) .feat-copy > *,
  #features.has-anim:not(.is-in-view) .feat-art,
  #features.has-anim:not(.is-in-view) .feat-divider {
    opacity: 1;
    transform: none;
  }
  #features.has-anim.is-in-view .features-head,
  #features.has-anim.is-in-view .feat-copy > *,
  #features.has-anim.is-in-view .feat-art,
  #features.has-anim.is-in-view .feat-divider {
    animation: none;
  }
}

/* Showcase rail (three phone-like screen cards) */
.showcase {
  background: linear-gradient(180deg, var(--color-bg) 0%, #F3F1EA 100%);
}
.screens-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 12px;
}
@media (min-width: 720px) {
  .screens-rail { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.screen-card {
  background: var(--color-surface);
  border-radius: 24px;
  padding: 28px 20px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(26,26,24,0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 360px;
}
.screen-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.screen-card p {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.45;
}
.screen-frame {
  margin: auto -20px 0;
  padding: 18px 16px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(26,26,24,0.04) 100%);
  border-top: 1px solid rgba(26,26,24,0.05);
  border-radius: 0 0 24px 24px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  min-height: 220px;
}
.screen-mini {
  width: 100%;
  max-width: 200px;
  background: var(--color-bg);
  border-radius: 18px 18px 0 0;
  padding: 14px 12px;
  box-shadow: 0 -8px 24px rgba(26,26,24,0.08);
  transform: translateY(8px);
}

/* Stats screen mini */
.stats-mini-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin-bottom: 8px;
}
.stats-mini-cell {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 8px;
}
.stats-mini-cell .k {
  font-size: 8px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-2);
}
.stats-mini-cell .v {
  font-family: var(--font-heading); font-weight: 700; font-size: 11px; margin-top: 1px;
}
.stats-mini-cell .v.inc { color: var(--color-income); }
.stats-mini-cell .v.exp { color: var(--color-expense); }
.donut-wrap { display: flex; justify-content: center; padding: 8px 0 0; }

/* Add transaction mini */
.add-mini-seg {
  display: flex; gap: 4px; background: var(--color-surface-muted);
  padding: 3px; border-radius: 999px; margin-bottom: 10px;
}
.add-mini-seg span {
  flex: 1; text-align: center; font-family: var(--font-heading);
  font-weight: 600; font-size: 9px; padding: 5px 0;
  border-radius: 999px; color: var(--fg-2);
}
.add-mini-seg span.on { background: var(--color-surface); color: var(--fg-1); box-shadow: var(--shadow-sm); }
.add-mini-amount {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--fg-1);
  padding: 14px 0 6px;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 10px;
}
.add-mini-amount small { font-size: 13px; font-weight: 600; color: var(--fg-2); margin-right: 4px; }
.add-mini-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0;
  border-bottom: var(--hairline);
}
.add-mini-row:last-child { border-bottom: 0; }
.add-mini-row .ico {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--color-primary-soft);
  display: grid; place-items: center; color: var(--color-primary);
}
.add-mini-row .ico svg { width: 12px; height: 12px; }
.add-mini-row .k { font-size: 10px; color: var(--fg-2); }
.add-mini-row .v { font-family: var(--font-heading); font-weight: 600; font-size: 11px; margin-left: auto; }

/* Filters mini */
.filt-mini-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.filt-mini-chips span {
  font-family: var(--font-body); font-size: 9px; font-weight: 500;
  padding: 4px 8px; background: var(--color-surface-muted);
  border-radius: 999px; color: var(--fg-1);
}
.filt-mini-chips span.on { background: var(--color-primary); color: white; }
.filt-mini-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--color-surface);
  padding: 7px 8px; border-radius: 10px; margin-bottom: 4px;
}
.filt-mini-row .icn {
  width: 22px; height: 22px; border-radius: 999px;
  display: grid; place-items: center; color: white;
}
.filt-mini-row .n { font-size: 9px; font-weight: 600; font-family: var(--font-heading); }
.filt-mini-row .a { font-family: var(--font-heading); font-weight: 700; font-size: 9px; margin-left: auto; }

/* ----------------------------------------------------------------- Waitlist */
.waitlist-card {
  background: var(--color-dark);
  color: var(--fg-on-dark);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}
@media (min-width: 820px) {
  .waitlist-card { grid-template-columns: 1.1fr 1fr; gap: 56px; }
}
.waitlist-card::before {
  content: "";
  position: absolute;
  inset: auto -40% -40% auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(200,85,61,0.45), transparent 70%);
  pointer-events: none;
}
.waitlist-card .eyebrow { color: var(--color-expense); }
.waitlist-card h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
  color: var(--fg-on-dark);
  text-wrap: balance;
  font-optical-sizing: auto;
}
.waitlist-card p {
  margin: 0;
  color: var(--fg-on-dark-muted);
  max-width: 52ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
  text-wrap: pretty;
}
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.waitlist-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 6px 6px 6px 18px;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.waitlist-input:focus-within {
  border-color: rgba(232,131,106,0.7);
  background: rgba(255,255,255,0.10);
}
.waitlist-input input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg-on-dark);
  padding: 14px 0;
  min-width: 0;
}
.waitlist-input input::placeholder { color: rgba(255,255,255,0.45); }
.waitlist-input button {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--color-primary);
  color: var(--fg-on-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform 120ms ease, background-color 160ms ease;
}
.waitlist-input button:hover { background: #B84932; }
.waitlist-input button:active { transform: scale(0.97); }
.waitlist-card small {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}
.waitlist-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
.waitlist-perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--fg-on-dark-muted);
}
.waitlist-perk .b {
  width: 24px; height: 24px;
  border-radius: 999px;
  background: rgba(232,131,106,0.18);
  color: var(--color-expense);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.waitlist-perk strong {
  display: block;
  color: var(--fg-on-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 1px;
}

/* ------------------------------------------------- Waitlist AI chat snippet
   Five back-and-forth exchanges run in sequence in the dark card's bottom-
   right. The chat lives in a two-row grid (user row on top, assistant row
   below); all five user bubbles share the user cell, all five assistant
   bubbles share the assistant cell, so new bubbles crossfade in place over
   the previous ones. Inside each assistant bubble, typing dots and the
   final answer share the same grid cell, so the bubble is always sized to
   its answer text and never reflows when the answer reveals.
   Hidden < 820px so the dark card stays clean on mobile. */
.ai-chat {
  position: absolute;
  right: clamp(20px, 3vw, 36px);
  bottom: clamp(20px, 3vw, 36px);
  width: 280px;
  display: none;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(34px, auto) minmax(34px, auto);
  row-gap: 10px;
  z-index: 0;
  pointer-events: none;
}
@media (min-width: 820px) {
  .ai-chat { display: grid; }
}

.ai-bubble {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.35;
  padding: 9px 13px;
  border-radius: 14px;
  width: max-content;
  max-width: 100%;
  opacity: 0;
  transition:
    opacity 380ms var(--ease-out-quart),
    transform 380ms var(--ease-out-quart);
}
.ai-bubble--user {
  grid-row: 1;
  grid-column: 1;
  justify-self: end;
  background: var(--color-primary);
  color: var(--fg-on-primary);
  border-bottom-right-radius: 4px;
  transform: translateX(8px);
}
.ai-bubble--bot {
  grid-row: 2;
  grid-column: 1;
  justify-self: start;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
  transform: translateX(-8px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.ai-bubble--bot > .ai-typing,
.ai-bubble--bot > .ai-answer {
  grid-row: 1;
  grid-column: 1;
  justify-self: start;
}

.ai-bubble.is-in {
  opacity: 1;
  transform: none;
}
.ai-bubble.is-out {
  opacity: 0;
  transition: opacity 680ms var(--ease-out-quart);
}

.ai-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  transition: opacity 320ms var(--ease-out-quart);
}
.ai-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  opacity: 0.32;
}
.ai-bubble--bot.is-in:not(.is-answered) .ai-dot {
  animation: aiDotPulse 1200ms ease-in-out infinite;
}
.ai-bubble--bot .ai-dot:nth-child(2) { animation-delay: 140ms; }
.ai-bubble--bot .ai-dot:nth-child(3) { animation-delay: 280ms; }

.ai-answer {
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 500;
  letter-spacing: -0.005em;
  opacity: 0;
  transition: opacity 320ms var(--ease-out-quart);
}
.ai-bubble--bot.is-answered > .ai-typing { opacity: 0; }
.ai-bubble--bot.is-answered > .ai-answer { opacity: 1; }

@keyframes aiDotPulse {
  0%, 80%, 100% { opacity: 0.32; transform: translateY(0); }
  40%           { opacity: 1;    transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-bubble { transition: none; }
  .ai-dot { animation: none !important; opacity: 0.32; }
  .ai-typing, .ai-answer { transition: none; }
}

/* ----------------------------------------------------------------- Final CTA */
.final-cta {
  text-align: center;
  padding-block: clamp(80px, 12vw, 140px);
}
.final-cta .mark {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 18px;
}
.final-cta h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
}
.final-cta p {
  margin: 16px auto 0;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--fg-2);
  max-width: 44ch;
  line-height: 1.55;
}
.final-cta .cta-row { justify-content: center; }

/* ----------------------------------------------------------------- Footer */
footer {
  border-top: var(--hairline);
  padding: 36px 0 max(36px, env(safe-area-inset-bottom));
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  color: var(--fg-2);
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  text-decoration: none;
  color: var(--fg-2);
}
.footer-links a:hover { color: var(--fg-1); }
.footer-row > div a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}
.footer-row > div a:hover { color: var(--fg-1); }

/* ----------------------------------------------------------------- Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 80px);
  background: var(--color-dark);
  color: var(--fg-on-dark);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 14px 18px 14px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast .check {
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--color-income);
  color: white;
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------- A11y */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 6px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* =============================================================================
   FAQ — accordion using <details> + the grid-template-rows expand trick
   ============================================================================= */
.faq {
  border-top: 1px solid var(--color-divider);
}
.faq-head {
  margin-inline: auto;
  text-align: center;
  max-width: 760px;
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-top: 1px solid var(--color-divider);
  padding: 22px 0;
  cursor: pointer;
  transition: padding 300ms ease;
}
.faq-item:last-child { border-bottom: 1px solid var(--color-divider); }
.faq-item > summary {
  list-style: none;
  outline: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 19px);
  letter-spacing: -0.01em;
  color: var(--fg-1);
  text-wrap: balance;
}
.faq-plus {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  color: var(--fg-2);
  flex-shrink: 0;
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1), color 200ms ease;
}
.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.faq-item[open] .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a {
  overflow: hidden;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--fg-soft);
  line-height: 1.6;
  padding-top: 0;
  max-width: 680px;
  text-wrap: pretty;
  transition: padding-top 380ms ease;
}
.faq-item[open] .faq-a { padding-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  .faq-a-wrap, .faq-a, .faq-plus { transition: none; }
}

/* =============================================================================
   App Tour — 4 phone screens + tab selector + animated active state
   ============================================================================= */

.app-tour { background: linear-gradient(180deg, var(--color-bg) 0%, #F3F1EA 70%, var(--color-bg) 100%); }

.tour-head { margin-inline: auto; text-align: center; max-width: 760px; }
.tour-head .lede { margin-inline: auto; }

/* Tabs */
.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: clamp(28px, 4vw, 48px) auto clamp(28px, 4vw, 48px);
  max-width: 800px;
}
.tour-tab {
  appearance: none;
  background: var(--color-surface);
  color: var(--fg-soft);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease;
  min-height: 44px;
}
.tour-tab .n {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  background: transparent;
  padding: 0;
  border-radius: 0;
  transition: opacity 200ms ease, color 200ms ease;
}
.tour-tab .t {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  color: inherit;
}
.tour-tab:hover { transform: translateY(-1px); }
.tour-tab:active { transform: scale(0.97); }
.tour-tab.is-active {
  color: var(--fg-1);
  border-color: var(--color-primary);
}
.tour-tab.is-active .n { color: inherit; opacity: 0.55; }

/* Rail */
.tour-rail-wrap {
  /* No breakout/scrolling — grid layout fills the wrap. */
  margin-inline: 0;
  padding-inline: 0;
  overflow: visible;
}

.tour-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 0 12px;
  margin: 0;
}
@media (max-width: 960px) {
  .tour-rail { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 520px) {
  .tour-rail { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Each card: phone + caption + active glow pad */
.tour-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 20px;
  border-radius: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 240ms ease,
    box-shadow 280ms ease,
    background-color 240ms ease;
}
.tour-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top, rgba(200,85,61,0.14), transparent 60%);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
  z-index: 0;
}
.tour-card .tp,
.tour-card .tour-caption { position: relative; z-index: 2; }

.tour-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--color-primary) 40%, var(--color-divider));
  box-shadow: 0 30px 60px -30px rgba(26,26,24,0.25);
}
.tour-card.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 40px 70px -30px color-mix(in oklab, var(--color-primary) 40%, transparent);
}
.tour-card.is-active::before { opacity: 1; }

/* Phone frame (fixed natural size, scaled to fit the card) */
.tp {
  position: relative;
  width: 280px;
  aspect-ratio: 280 / 560;
  background: #111110;
  border-radius: 40px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 20px 40px -16px rgba(26,26,24,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.06);

  /* Scale to fit inside the gallery card */
  transform: scale(0.78);
  transform-origin: top center;
  margin-bottom: -120px;
  transition: transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tour-card.is-active .tp { transform: scale(0.82); }
@media (max-width: 960px) {
  .tp { transform: scale(0.68); margin-bottom: -170px; }
  .tour-card.is-active .tp { transform: scale(0.72); }
}
@media (max-width: 520px) {
  .tp { transform: scale(0.58); margin-bottom: -220px; }
  .tour-card.is-active .tp { transform: scale(0.62); }
}
.tp-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px; background: #111110; border-radius: 999px; z-index: 5;
}
.tp::before {
  /* outer chamfer ring */
  content: ""; position: absolute; inset: 0; border-radius: 40px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  pointer-events: none;
}
.tp > .tp-body, .tp > .tp-status, .tp > .tp-nav, .tp > .tp-notch { /* siblings inside screen */ }

.tp .tp-status {
  flex-shrink: 0;
  position: relative;
  z-index: 4;
  background: var(--color-bg);
  border-radius: 32px 32px 0 0;
  padding: 14px 22px 6px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  color: var(--fg-1);
}
.tp .tp-status .r { display: inline-flex; align-items: center; gap: 5px; }

.tp .tp-body {
  background: var(--color-bg);
  padding: 8px 16px 56px;  /* bottom padding reserves space for absolute nav */
  border-radius: 0 0 32px 32px;
  position: relative;
  z-index: 3;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tp .tp-body > * { flex-shrink: 0; }

/* Bottom nav with FAB */
.tp-nav {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  background: var(--color-surface);
  border-radius: 0 0 32px 32px;
  padding: 8px 10px 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 5;
  box-shadow: 0 -8px 16px rgba(26,26,24,0.04);
}
.tp-nav .i {
  display: grid; place-items: center; color: var(--fg-2);
  height: 28px;
}
.tp-nav .i svg { width: 18px; height: 18px; }
.tp-nav .i.on { color: var(--color-primary); }
.tp-nav .fab {
  width: 38px; height: 38px;
  background: var(--color-primary);
  border-radius: 999px;
  display: grid; place-items: center;
  justify-self: center;
  box-shadow: 0 6px 12px rgba(200,85,61,0.35);
  margin-top: -22px;
}
.tp-nav .fab svg { width: 18px; height: 18px; }

/* Common screen header */
.tp-screen-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 10px;
}
.tp-screen-head strong {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}
.tp-screen-head .month-chip,
.tp-screen-head .close {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  color: var(--fg-1);
  background: var(--color-surface-muted);
  padding: 4px 10px;
  border-radius: 999px;
}
.tp-screen-head .close { padding: 6px; border-radius: 999px; }
.tp-screen-head .month-chip svg { color: var(--fg-2); }

/* ===== Screen 1: BERANDA ===== */
.tps-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 14px; }
.tps-greet { font-family: var(--font-heading); font-size: 11px; color: var(--fg-2); font-weight: 500; line-height: 1.2; }
.tps-greet strong { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; color: var(--fg-1); margin-top: 2px; }
.tps-avatar {
  width: 32px; height: 32px; border-radius: 999px;
  background: linear-gradient(135deg, #E8836A, var(--color-primary));
  color: var(--fg-on-primary);
  display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 13px;
}
.tps-bal {
  background: var(--color-dark);
  color: var(--fg-on-dark);
  border-radius: 18px;
  padding: 14px 16px 14px;
  box-shadow: var(--shadow-dark);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.tps-bal .lbl {
  font-family: var(--font-body); font-weight: 500;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-on-dark-muted);
}
.tps-bal .amt {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 22px; letter-spacing: -0.02em;
  margin: 4px 0 14px;
}
.tps-bal .amt small { font-size: 12px; font-weight: 600; color: var(--fg-on-dark-muted); margin-right: 3px; }
.tps-bal .row { display: flex; gap: 14px; align-items: stretch; position: relative; z-index: 1; }
.tps-bal .row .sep { width: 1px; background: rgba(255,255,255,0.10); }
.tps-bal .k {
  font-family: var(--font-body); font-weight: 500;
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-on-dark-muted);
}
.tps-bal .v { font-family: var(--font-heading); font-weight: 700; font-size: 12px; margin-top: 2px; }
.tps-bal .v.inc { color: var(--color-income); }
.tps-bal .v.exp { color: var(--color-expense); }

.tps-seg {
  display: flex; gap: 0;
  background: var(--color-surface-muted);
  padding: 3px;
  border-radius: 10px;
  margin: 12px 0 10px;
}
.tps-seg span {
  flex: 1;
  text-align: center;
  font-family: var(--font-body); font-weight: 600;
  font-size: 10px;
  padding: 6px 0;
  border-radius: 8px;
  color: var(--fg-2);
}
.tps-seg span.on {
  background: var(--color-surface);
  color: var(--fg-1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.tps-chart {
  width: 100%; height: 52px;
  display: block;
  margin: 4px 0 12px;
}

.tps-wallets { display: flex; gap: 6px; margin-bottom: 12px; }
.tps-wallets .w {
  flex: 1;
  border-radius: 10px;
  padding: 8px 10px 9px;
  color: white;
  font-family: var(--font-heading);
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.tps-wallets .w span { font-family: var(--font-body); font-weight: 500; font-size: 9px; opacity: 0.85; }
.tps-wallets .w strong { font-weight: 700; font-size: 11px; letter-spacing: -0.01em; }
.tps-wallets .w1 { background: linear-gradient(135deg, #C8553D, #5c2418); }
.tps-wallets .w2 { background: linear-gradient(135deg, #1e40af, #0b1a4a); }
.tps-wallets .w3 { background: linear-gradient(135deg, #059669, #064e3b); }

.tps-tx-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-heading); font-weight: 700; font-size: 13px;
  color: var(--fg-1); margin: 6px 0 4px;
}
.tps-tx-head .see {
  font-family: var(--font-body); font-weight: 600; font-size: 10px;
  color: var(--color-primary); text-decoration: none;
}
.tps-tx {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: var(--hairline);
}
.tps-tx:last-child { border-bottom: 0; }
.tps-tx .ic {
  width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center; flex-shrink: 0;
}
.tps-tx .ic svg { width: 14px; height: 14px; }
.tps-tx .m { flex: 1; min-width: 0; }
.tps-tx .n { font-family: var(--font-heading); font-weight: 600; font-size: 11px; letter-spacing: -0.01em; color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tps-tx .s { font-family: var(--font-body); font-size: 9px; color: var(--fg-2); margin-top: 1px; }
.tps-tx .a { font-family: var(--font-heading); font-weight: 700; font-size: 11px; }
.tps-tx .a.exp { color: var(--color-expense); }
.tps-tx .a.inc { color: var(--color-income); }

/* ===== Screen 2: STATISTIK ===== */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.stat-cell {
  background: var(--color-surface-muted);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.stat-cell .eb {
  font-family: var(--font-body); font-weight: 500;
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2);
}
.stat-cell strong {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 14px; letter-spacing: -0.02em;
  color: var(--fg-1);
  margin-top: 1px;
}
.stat-cell strong.inc { color: var(--color-income); }
.stat-cell strong.exp { color: var(--color-expense); }
.stat-cell .delta {
  font-family: var(--font-body); font-weight: 500;
  font-size: 9px;
  color: var(--fg-2);
  margin-top: 3px;
}
.stat-cell .delta.inc { color: var(--color-mom-up); }
.stat-cell .delta.exp { color: var(--color-mom-down); }
.stat-cell .delta small { color: var(--fg-2); font-weight: 400; margin-left: 2px; }

.alloc-card {
  background: var(--color-surface-muted);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.alloc-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-body); font-weight: 500;
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 8px;
}
.alloc-head em { font-style: normal; }
.alloc-row { display: flex; align-items: center; gap: 12px; }
.alloc-row .donut { flex-shrink: 0; }
.alloc-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 3px;
  flex: 1;
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--fg-1);
}
.alloc-list li {
  display: flex; align-items: center; gap: 6px;
}
.alloc-list .dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.alloc-list em { margin-left: auto; font-style: normal; font-family: var(--font-heading); font-weight: 700; font-size: 10px; }

.cat-head {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 12px; color: var(--fg-1);
  margin-bottom: 6px;
}
.cat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 10px;
}
.cat-row .n { color: var(--fg-1); font-weight: 600; }
.cat-row .a { font-family: var(--font-heading); font-weight: 700; color: var(--fg-1); font-size: 10px; }
.cat-row .bar {
  grid-column: 1 / -1;
  height: 5px;
  background: var(--color-surface-muted);
  border-radius: 999px;
  overflow: hidden;
}
.cat-row .bar i { display: block; height: 100%; border-radius: 999px; }

/* ===== Screen 3: ASET SAYA ===== */
.asset-hero {
  background: var(--color-dark);
  color: var(--fg-on-dark);
  border-radius: 18px;
  padding: 14px 16px 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-dark);
  position: relative;
  overflow: hidden;
}
.asset-hero::after {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,119,6,0.30), transparent 65%);
  pointer-events: none;
}
.asset-hero .eb {
  font-family: var(--font-body); font-weight: 500;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-on-dark-muted);
}
.asset-hero .amt {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 22px; letter-spacing: -0.02em;
  margin: 4px 0 4px;
  position: relative; z-index: 1;
}
.asset-hero .amt small { font-size: 12px; font-weight: 600; color: var(--fg-on-dark-muted); margin-right: 3px; }
.asset-hero .delta {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 11px;
  color: var(--color-income);
  position: relative; z-index: 1;
}
.asset-hero .delta .muted { color: var(--fg-on-dark-muted); font-weight: 500; margin-left: 4px; }
.asset-hero .up-chart {
  width: calc(100% + 32px);
  height: 44px;
  margin: 6px -16px -12px;
  display: block;
  position: relative; z-index: 0;
}

.asset-chips {
  display: flex; gap: 6px; margin-bottom: 8px;
}
.asset-chips span {
  font-family: var(--font-body); font-weight: 500;
  font-size: 10px;
  padding: 5px 12px;
  background: var(--color-surface-muted);
  color: var(--fg-1);
  border-radius: 999px;
}
.asset-chips span.on { background: var(--color-dark); color: var(--fg-on-dark); }

.asset-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: var(--hairline);
}
.asset-row:last-child { border-bottom: 0; }
.asset-row .b {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  color: white;
  font-family: var(--font-heading); font-weight: 700; font-size: 11px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.asset-row .m { flex: 1; min-width: 0; }
.asset-row .n {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 11px; color: var(--fg-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.asset-row .s {
  font-family: var(--font-body);
  font-size: 9px;
  color: var(--fg-2);
  margin-top: 1px;
}
.asset-row .r { text-align: right; }
.asset-row .r .a {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 11px; color: var(--fg-1);
}
.asset-row .r .d {
  font-family: var(--font-body); font-weight: 600;
  font-size: 9px;
  margin-top: 1px;
  color: var(--color-mom-up);
}
.asset-row .r .d.inc { color: var(--color-mom-up); }
.asset-row .r .d.exp { color: var(--color-mom-down); }

/* ===== Screen 4: ADD TRANSACTION ===== */
.tp-add { padding-top: 8px; }
.add-seg {
  display: flex;
  background: var(--color-surface-muted);
  padding: 3px;
  border-radius: 10px;
  margin: 4px 0 14px;
}
.add-seg span {
  flex: 1; text-align: center;
  font-family: var(--font-body); font-weight: 600;
  font-size: 10px;
  padding: 7px 0;
  border-radius: 8px;
  color: var(--fg-2);
}
.add-seg span.on {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.add-amount {
  text-align: center;
  padding: 14px 0 12px;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 14px;
}
.add-amount .lbl {
  font-family: var(--font-body); font-weight: 500;
  font-size: 9px; letter-spacing: 0.12em;
  color: var(--fg-2);
  margin-bottom: 6px;
}
.add-amount .v {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 30px; letter-spacing: -0.03em;
  color: var(--fg-1);
  display: inline-flex; align-items: baseline;
  position: relative;
}
.add-amount .v small {
  font-size: 15px; font-weight: 600; color: var(--fg-2); margin-right: 5px;
  letter-spacing: 0;
}
.add-amount .v .cur {
  display: inline-block;
  width: 2px; height: 26px;
  background: var(--color-primary);
  margin-left: 3px;
  animation: blink 1s steps(1) infinite;
  align-self: center;
}
@keyframes blink { 50% { opacity: 0; } }

.add-rows { display: flex; flex-direction: column; gap: 0; margin-bottom: 14px; }
.ar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: var(--hairline);
}
.ar:last-child { border-bottom: 0; }
.ar .ic {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ar .ic svg { width: 16px; height: 16px; }
.ar .kv { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.ar .k {
  font-family: var(--font-body); font-weight: 500;
  font-size: 9px; color: var(--fg-2);
}
.ar .kv strong {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 12px; color: var(--fg-1);
  margin-top: 2px;
}
.ar .kv strong.ellipsis {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.ar .chev { flex-shrink: 0; }

.add-labels {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
}
.add-labels .lab {
  font-family: var(--font-body); font-weight: 500;
  font-size: 10px;
  padding: 5px 10px;
  background: var(--color-surface-muted);
  color: var(--fg-1);
  border-radius: 999px;
}
.add-labels .lab.on { background: var(--color-primary); color: var(--fg-on-primary); }
.add-labels .lab.plus { background: transparent; color: var(--fg-2); border: 1px dashed var(--fg-muted); }

.add-cta {
  appearance: none; border: 0; cursor: pointer;
  background: var(--color-primary);
  color: var(--fg-on-primary);
  font-family: var(--font-heading); font-weight: 700;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 6px 14px rgba(200,85,61,0.30);
  margin-top: auto;
}

/* Caption under each card */
.tour-caption {
  margin-top: 14px;
  text-align: center;
  padding: 0 6px 4px;
  width: 100%;
}
.tour-caption .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  text-transform: uppercase;
  transition: color 240ms ease;
}
.tour-card.is-active .tour-caption .num { color: var(--color-primary); }
.tour-caption h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--fg-1);
  margin: 6px 0 0;
  text-wrap: balance;
}
@media (max-width: 520px) {
  .tour-caption h4 { font-size: 13px; }
}

/* Detail block under rail */
.tour-detail {
  position: relative;
  min-height: 160px;
}
.tour-detail-inner {
  display: block;
  animation: fadeUp 360ms cubic-bezier(0.16, 1, 0.3, 1);
}
.tour-detail-inner[hidden] { display: none; }
.tour-detail-inner .h-section {
  margin: 0 0 16px;
}
.tour-detail-inner .lede {
  margin-inline: auto;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .tour-detail-inner { animation: none; }
  .tour-card { transition: none; }
}

/* Narrower viewports — tabs adjust */
@media (max-width: 720px) {
  .tour-tab { font-size: 13px; padding: 8px 14px; }
}
@media (max-width: 420px) {
  .tour-tabs { gap: 6px; }
  .tour-tab { padding: 8px 12px; gap: 8px; }
}
