/* ==========================================================================
   Tyag Streak — styles.css
   ==========================================================================
   Aesthetic: "Ember & Mala" — a dark, incense-smoke/ember palette (gold,
   saffron, deep maroon on near-black) for the Duolingo-style streak/gamified
   layer, with the recent-days calendar rendered as a japmala (prayer bead)
   strand instead of a generic contribution-graph grid — a small, deliberate
   nod to Jain counting practice that also happens to read as "gamified".

   Fonts are loaded via a <link> tag in index.html's <head> (not @import)
   for performance (avoids the render-blocking hop @import adds inside CSS).
   This is still just a plain HTTP request from static HTML — no build step
   — so it satisfies the "system fonts or a single Google Font" constraint.
     - Fraunces  → display serif, used for the wordmark, headlines and the
                   big streak number. Has real personality (soft-serif,
                   optical-size axis) — avoids the generic Inter/Space
                   Grotesk look.
     - Manrope   → body/UI sans, humanist and clean, used for everything else.

   Theme: dark is the default/primary surface per the brief. A
   prefers-color-scheme: light override repaints the same tokens onto a warm
   parchment surface — same accent hues, so it still reads as one brand.
   ========================================================================== */

/* -------------------------------- Reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, figure, ol, ul { margin: 0; padding: 0; }
/* The browser's UA stylesheet sets `[hidden] { display: none }`, but that's
   user-agent origin — ANY normal author-origin `display` declaration below
   (e.g. `.dashboard-view { display: flex }`) wins over it regardless of
   specificity, because cascade origin is resolved before specificity. Several
   components in this file set `display` unconditionally, so without this
   rule, toggling the `hidden` attribute via JS would silently fail to hide
   them. `!important` forces this back to the intended behavior everywhere. */
[hidden] { display: none !important; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select { font: inherit; color: inherit; }
a { color: inherit; }
svg { display: block; width: 1em; height: 1em; }
img { max-width: 100%; display: block; }

/* ------------------------------ Design tokens --------------------------- */
:root {
  /* Ember accents — shared across both themes */
  --gold: #f2b544;
  --gold-soft: #f6c96b;
  --saffron: #e8823a;
  --ember-red: #c1453b;
  --maroon: #6b1e2e;
  --maroon-deep: #43111d;

  /* Dark theme surface (default) */
  --bg: #0c0908;
  --bg-elevated: #17110f;
  --bg-card: rgba(255, 246, 232, 0.045);
  --bg-card-solid: #1a1411;
  --border-soft: rgba(242, 181, 68, 0.14);
  --border-strong: rgba(242, 181, 68, 0.32);
  --ink: #f4ece0;
  --ink-dim: #b9a999;
  --ink-faint: #7d6e60;
  --shadow-ambient: rgba(0, 0, 0, 0.45);

  --status-missed: #665a4f;
  --status-declined: #9b4a45;
  --status-empty-border: rgba(255, 246, 232, 0.14);
  --track-bg: rgba(255, 246, 232, 0.08);

  --focus-ring: #f6c96b;

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6ecda;
    --bg-elevated: #fffaf0;
    --bg-card: rgba(255, 255, 255, 0.62);
    --bg-card-solid: #fffaf0;
    --border-soft: rgba(107, 30, 46, 0.12);
    --border-strong: rgba(107, 30, 46, 0.24);
    --ink: #2b1710;
    --ink-dim: #6b5343;
    --ink-faint: #97826f;
    --shadow-ambient: rgba(107, 60, 30, 0.18);

    --status-missed: #b9ab9a;
    --status-declined: #b5534c;
    --status-empty-border: rgba(43, 23, 16, 0.16);
    --track-bg: rgba(43, 23, 16, 0.08);

    --focus-ring: #a8571f;
  }
}

/* ------------------------------ Ambient bg ------------------------------ */
body {
  background-image:
    radial-gradient(60% 50% at 85% -6%, rgba(242, 181, 68, 0.20), transparent 60%),
    radial-gradient(55% 45% at -10% 15%, rgba(107, 30, 46, 0.30), transparent 60%),
    radial-gradient(80% 60% at 50% 120%, rgba(193, 69, 59, 0.14), transparent 60%);
  background-color: var(--bg);
  background-attachment: fixed;
}
@media (prefers-color-scheme: light) {
  body {
    background-image:
      radial-gradient(60% 50% at 85% -6%, rgba(242, 181, 68, 0.28), transparent 60%),
      radial-gradient(55% 45% at -10% 15%, rgba(107, 30, 46, 0.10), transparent 60%),
      radial-gradient(80% 60% at 50% 120%, rgba(193, 69, 59, 0.08), transparent 60%);
  }
}
/* Fine grain, kept extremely subtle so it reads as texture not noise */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------------------------------- Boot ---------------------------------- */
.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.4s var(--ease-standard), visibility 0.4s;
}
.boot-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-flame {
  width: 48px;
  height: 48px;
  color: var(--gold);
  filter: drop-shadow(0 0 18px rgba(242, 181, 68, 0.55));
  animation: flame-flicker 1.6s ease-in-out infinite;
}

/* ------------------------------- Toasts ---------------------------------- */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  box-shadow: 0 12px 30px var(--shadow-ambient);
  animation: toast-in 0.3s var(--ease-out-back);
}
.toast.toast-error { border-color: rgba(193, 69, 59, 0.5); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------ App shell -------------------------------- */
.app-shell {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px 64px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 22px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-flame {
  width: 26px;
  height: 26px;
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(242, 181, 68, 0.45));
  animation: flame-flicker 3.2s ease-in-out infinite;
}
.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(242, 181, 68, 0.3));
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.org-letterhead {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 2px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
}
.letterhead-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}
.letterhead-row strong { color: var(--ink-dim); font-weight: 700; }
/* Pull-down drawer for the org lines on the dashboard (see letterhead.js). */
.lh-drawer { overflow: hidden; }
body.lh-pull .lh-drawer { height: 0; }
body.lh-pull .lh-drawer .org-letterhead { opacity: 0; transform-origin: 50% 0; }
.lh-drawer.is-settling { transition: height 0.34s cubic-bezier(0.22, 1, 0.36, 1); }
.lh-drawer.is-settling .org-letterhead { transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1); }
body.lh-pull .brand { cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .lh-drawer.is-settling, .lh-drawer.is-settling .org-letterhead { transition-duration: 0.01s; }
}

.letterhead-mark {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-dim);
  border: 1px solid var(--border-soft);
  transition: transform 0.2s var(--ease-standard), color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--gold); border-color: var(--border-strong); background: var(--bg-card); }
.icon-btn:active { transform: scale(0.9) rotate(20deg); }
.icon-btn.is-spinning svg { animation: spin 0.7s linear; }

/* --------------------------------- Views --------------------------------- */
.view { animation: view-in 0.45s var(--ease-standard) both; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------- Card base ------------------------------ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px -22px var(--shadow-ambient);
}
.card-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.card-heading h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

/* ============================================================================
   ONBOARDING
   ============================================================================ */
.onboarding-hero { padding: 18px 4px 26px; text-align: left; }
.onboarding-title {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(2.2rem, 9vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.onboarding-title em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(100deg, var(--gold-soft), var(--saffron) 55%, var(--ember-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.onboarding-sub {
  margin-top: 14px;
  max-width: 42ch;
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.55;
}

.onboarding-card { display: flex; flex-direction: column; gap: 18px; }
.install-view { display: flex; flex-direction: column; gap: 18px; }
.install-hero { padding: 10px 4px 4px; }
.install-headline {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(2rem, 8.5vw, 2.7rem);
  line-height: 1.08;
}
.install-headline em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(100deg, var(--gold-soft), var(--saffron) 55%, var(--ember-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.install-lede { margin-top: 10px; color: var(--ink-dim); line-height: 1.5; max-width: 38ch; }

.install-quick { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.install-quick-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 26px -10px var(--shadow-ambient); }
.install-quick-hint { font-size: 0.82rem; color: var(--ink-faint); }
.install-done { text-align: center; line-height: 1.5; }
.install-done-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 6px; }

.install-reassure { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; color: var(--ink-dim); line-height: 1.5; }
.install-detected { text-align: center; font-size: 0.75rem; color: var(--ink-faint); padding-bottom: 72px; }

/* step-by-step walkthrough */
.coach { display: flex; flex-direction: column; gap: 12px; }
.coach-or { text-align: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin: -4px 0; }
.coach.is-important { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 181, 68, 0.18); }
.coach-top { display: flex; align-items: center; justify-content: space-between; }
.coach-count { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.coach-dots { display: flex; gap: 6px; }
.coach-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--status-empty-border); transition: all 0.25s var(--ease-standard); }
.coach-dots span.done { background: var(--gold-soft); }
.coach-dots span.on { width: 22px; border-radius: 4px; background: linear-gradient(90deg, var(--gold-soft), var(--saffron)); }
.coach-art { display: grid; place-items: center; padding: 4px 0; }
.coach-svg { width: 150px; height: 197px; }
.coach-text { font-size: 1.08rem; line-height: 1.45; text-align: center; }
.coach-text small { font-size: 0.85rem; color: var(--ink-dim); }
.coach-text strong.on { color: #2f9e57; }
.coach-hi { text-align: center; font-size: 0.9rem; color: var(--ink-faint); margin-top: -4px; }
.coach-extra { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.coach-extra:empty { display: none; }
.coach-nav { display: flex; gap: 10px; }
.coach-nav .btn { flex: 1; }
.glyph { display: inline-grid; place-items: center; vertical-align: -0.25em; color: var(--gold); }
.glyph-svg { width: 1.15em; height: 1.15em; }

.bar-ask { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-dim); }
.bar-choice { display: flex; gap: 8px; }
.bar-choice button {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-dim);
}
.bar-choice button.on { background: var(--gold); border-color: var(--gold); color: #1a1411; }

.edge-arrow {
  position: fixed;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  animation: edge-bounce-up 1.1s ease-in-out infinite;
}
.edge-svg { width: 34px; height: 48px; }
.edge-svg path { fill: none; stroke: var(--saffron); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35)); }
.edge-label {
  background: var(--saffron);
  color: #1a1411;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.5);
}
.edge-top { top: calc(env(safe-area-inset-top, 0px) + 6px); flex-direction: row; }
.edge-bottom { bottom: calc(env(safe-area-inset-bottom, 0px) + 6px); animation-name: edge-bounce-down; flex-direction: row; }
.edge-bottom .edge-svg { transform: rotate(180deg); }
.edge-side-right { right: 0; }
.edge-side-center { left: 50%; transform: translateX(calc(-100% + 17px)); }
.edge-side-center.edge-bottom { animation-name: edge-bounce-down-center; }
@keyframes edge-bounce-up { 0%, 100% { translate: 0 6px; } 50% { translate: 0 -2px; } }
@keyframes edge-bounce-down { 0%, 100% { translate: 0 -6px; } 50% { translate: 0 2px; } }
@keyframes edge-bounce-down-center { 0%, 100% { translate: 0 -6px; } 50% { translate: 0 2px; } }
@media (prefers-reduced-motion: reduce) { .edge-arrow { animation: none; } }

/* phone illustrations */
.ph-body { fill: var(--bg-card-solid); stroke: var(--border-strong); stroke-width: 1.5; }
.ph-screen { fill: var(--bg-elevated); }
.ph-bar, .ph-menu { fill: var(--track-bg); }
.ph-menu { stroke: var(--border-soft); }
.ph-url, .ph-line { fill: var(--status-empty-border); }
.ph-app { fill: var(--status-empty-border); }
.ph-dim { fill: rgba(0, 0, 0, 0.25); }
.ph-hi-fill { fill: var(--gold); }
.ph-hi-row { fill: rgba(242, 181, 68, 0.2); stroke: var(--gold); stroke-width: 1; }
.ph-hi-btn { fill: var(--gold); }
.ph-hi-stroke { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ph-hi-stroke-box { fill: none; stroke: var(--gold); stroke-width: 1.4; }
.ph-ring { fill: none; stroke: var(--saffron); stroke-width: 2; stroke-dasharray: 4 3; }
.ph-arrow { fill: none; stroke: var(--saffron); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ph-label { font: 700 8px var(--font-body); fill: var(--ink-dim); }
.ph-label-hi { fill: var(--ink); }
.ph-label-on-btn { fill: #1a1411; font-size: 7.5px; }
.ph-toggle { fill: #34c759; }
.ph-toggle-knob { fill: #fff; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.select-wrap { position: relative; }
select, input[type="tel"], input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
select { padding-right: 42px; }
select:focus-visible, input:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 181, 68, 0.22);
}
.select-caret {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
  pointer-events: none;
}
.combo { position: relative; }
#city-search.is-chosen { border-color: var(--border-strong); font-weight: 600; }
.combo-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 260px;
  overflow-y: auto;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 32px -12px var(--shadow-ambient);
  padding: 4px;
}
.combo-option {
  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}
.combo-option:hover, .combo-option.is-active { background: var(--track-bg); color: var(--ink); }
.combo-empty { padding: 11px 12px; font-size: 0.88rem; color: var(--ink-faint); }
.field-hint { font-size: 0.78rem; color: var(--ink-faint); }
.field-hint.field-error { color: var(--ember-red); }
.link-btn { text-decoration: underline; font-weight: 700; color: inherit; }

/* --------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s var(--ease-standard), box-shadow 0.2s, opacity 0.2s, filter 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-icon { width: 18px; height: 18px; }

.btn-primary {
  color: #201005;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 45%, var(--saffron));
  box-shadow: 0 10px 26px -8px rgba(232, 130, 58, 0.55);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-glow { position: relative; }
.btn-glow::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--gold-soft), var(--ember-red));
  z-index: -1;
  opacity: 0.35;
  filter: blur(14px);
  transition: opacity 0.2s;
}
.btn-glow:hover::after { opacity: 0.55; }

.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--gold); }

.btn-accept, .btn-decline {
  flex: 1;
  padding: 14px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s var(--ease-standard), filter 0.2s, opacity 0.2s;
}
.btn-accept:active, .btn-decline:active { transform: scale(0.96); }
.btn-accept {
  color: #201005;
  background: linear-gradient(120deg, var(--gold-soft), var(--saffron));
}
.btn-decline {
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--border-strong);
}
.btn-decline:hover { border-color: var(--ember-red); color: var(--ember-red); }
.btn-accept:disabled, .btn-decline:disabled { opacity: 0.55; cursor: not-allowed; }

.onboarding-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--ink-dim);
  text-align: center;
}
.onboarding-status.is-error { color: var(--ember-red); }
.onboarding-fineprint {
  font-size: 0.74rem;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.4;
}

/* ============================================================================
   DASHBOARD
   ============================================================================ */
.dashboard-view { display: flex; flex-direction: column; gap: 20px; }

.notice-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.84rem;
  color: var(--ink-dim);
  animation: view-in 0.3s var(--ease-standard);
}
.notice-banner svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold); }
.notice-banner span { flex: 1; }
.notice-banner .link-btn { color: var(--gold-soft); flex-shrink: 0; white-space: nowrap; }
.notice-banner .link-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.notice-dismiss { width: 22px; height: 22px; display: grid; place-items: center; color: var(--ink-faint); flex-shrink: 0; }
.notice-dismiss svg { width: 13px; height: 13px; }

/* Informational, not urgent -- e.g. the installed-app Android permission
   note, where nothing is confirmed broken, just worth knowing about. */
.notice-banner-info { border-color: var(--border-soft); opacity: 0.88; }
.notice-banner-info svg { color: var(--ink-dim); }

.greeting { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.greeting-line {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.greeting-line strong { color: var(--ink); font-weight: 700; }

.city-pill {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: linear-gradient(120deg, rgba(242, 181, 68, 0.16), rgba(193, 69, 59, 0.10));
  border: 1px solid var(--border-soft);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ------------------------------- Streak hero ------------------------------ */
.streak-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 0 6px;
}
.streak-flame-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.streak-flame-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 181, 68, 0.35), transparent 68%);
  filter: blur(4px);
  animation: glow-pulse 3.6s ease-in-out infinite;
}
.streak-flame {
  position: relative;
  width: 64px;
  height: 64px;
  color: var(--gold);
  filter: drop-shadow(0 0 22px rgba(242, 181, 68, 0.6));
  animation: flame-flicker 2.6s ease-in-out infinite;
}
.ember-burst { position: absolute; inset: 0; pointer-events: none; }
.ember-burst span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 8px 2px rgba(242, 181, 68, 0.7);
  opacity: 0;
}
.ember-burst.is-bursting span { animation: ember-float 1.1s var(--ease-standard) forwards; }
.ember-burst span:nth-child(1) { animation-delay: 0s;   --dx: -46px; --dy: -70px; }
.ember-burst span:nth-child(2) { animation-delay: .05s; --dx: 10px;  --dy: -86px; }
.ember-burst span:nth-child(3) { animation-delay: .1s;  --dx: 52px;  --dy: -54px; }
.ember-burst span:nth-child(4) { animation-delay: .02s; --dx: -20px; --dy: -92px; }
.ember-burst span:nth-child(5) { animation-delay: .12s; --dx: 34px;  --dy: -74px; }
.ember-burst span:nth-child(6) { animation-delay: .08s; --dx: -54px; --dy: -40px; }

.streak-number-wrap { line-height: 1; }
.streak-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4rem, 22vw, 5.6rem);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--gold-soft), var(--saffron) 60%, var(--ember-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.streak-number.is-incrementing { animation: streak-pop 0.7s var(--ease-out-back); }
.streak-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-top: 2px;
}
.streak-affirmation {
  margin-top: 10px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-dim);
  font-family: var(--font-display);
  max-width: 32ch;
}

/* -------------------------------- Today card ------------------------------ */
.today-card { min-height: 132px; }
.today-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.today-eyebrow { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.today-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.today-badge svg { width: 11px; height: 11px; }
.today-badge.badge-accepted { background: rgba(242, 181, 68, 0.16); color: var(--gold-soft); }
.today-badge.badge-declined { background: rgba(193, 69, 59, 0.16); color: var(--status-declined); }

.today-content {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 18px;
  color: var(--ink);
}
.today-actions { display: flex; gap: 12px; }
.today-rest {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-dim);
  padding: 6px 0;
}
.today-rest svg { width: 26px; height: 26px; color: var(--gold-soft); flex-shrink: 0; }
.today-rest-text strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 2px; }
.today-error { font-size: 0.82rem; color: var(--ember-red); margin-top: 10px; }

/* ------------------------------- Calendar / mala --------------------------- */
.calendar-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none;
  scrollbar-width: thin;
}
.calendar-strip::-webkit-scrollbar { height: 5px; }
.calendar-strip::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

.bead-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.bead-col .bead-date { font-size: 0.62rem; color: var(--ink-faint); }

.bead {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.2s var(--ease-standard);
}
.bead-accepted {
  background: linear-gradient(135deg, var(--gold-soft), var(--saffron));
  box-shadow: 0 0 10px 1px rgba(242, 181, 68, 0.55);
}
.bead-declined {
  background: rgba(193, 69, 59, 0.28);
  border: 1.5px solid var(--status-declined);
}
.bead-missed {
  background: transparent;
  border: 1.5px dashed var(--status-missed);
}
.bead-empty {
  background: transparent;
  border: 1.5px dotted var(--status-empty-border);
}
.bead-pending {
  background: transparent;
  border: 1.5px dashed var(--gold);
  animation: bead-pulse 2.4s ease-in-out infinite;
}
.bead-unknown { background: var(--ink-faint); opacity: 0.4; }
.bead-col.is-today .bead-accepted { animation: bead-pulse 2.4s ease-in-out infinite; }
.bead-col.is-today .bead-date { color: var(--gold-soft); font-weight: 700; }

.bead-legend { width: 12px; height: 12px; }
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--ink-faint);
}
.calendar-legend li { display: flex; align-items: center; gap: 6px; }

/* --------------------------------- Stats ---------------------------------- */
.stat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-caption { font-size: 0.76rem; color: var(--ink-faint); }

.leaderboard { display: flex; flex-direction: column; gap: 2px; }
.leaderboard li, .leaderboard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.9rem;
}
.leaderboard li:last-child, .leaderboard-row:last-child { border-bottom: none; }
.leaderboard-rank {
  width: 20px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.leaderboard-name { flex: 1; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-streak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}
.leaderboard-streak svg { width: 12px; height: 12px; }

.city-bar-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--track-bg);
  overflow: hidden;
}
.city-bar-fill {
  /* Both children here are plain <span>s (kept semantically light on
     purpose), but a <span> defaults to display:inline, which silently
     ignores width/height — without this, the fill would render at zero
     size regardless of its inline width:NN% style. */
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--saffron), var(--gold-soft));
}
.empty-row { color: var(--ink-faint); font-size: 0.85rem; padding: 6px 4px; }

/* -------------------------------- Error state ------------------------------ */
.dashboard-error {
  text-align: center;
  padding: 20px;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ============================================================================
   SKELETONS
   ============================================================================ */
.skeleton-block { display: block; }
/* (hiding on [hidden] is handled globally near the top of this file) */

.skeleton-line, .skeleton-beads, .skeleton-stat-row, .skeleton-text {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border-radius: 8px;
}
.skeleton-line { height: 14px; margin-bottom: 10px; border-radius: 6px; }
.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-beads { height: 22px; border-radius: 999px; }
.skeleton-stat-row { height: 76px; border-radius: var(--radius-md); }
.streak-number.skeleton-text {
  -webkit-background-clip: initial;
  background-clip: initial;
  color: transparent;
  width: 140px;
  height: 74px;
  border-radius: 16px;
  background-image: none !important;
}

.skeleton-line::after, .skeleton-beads::after, .skeleton-stat-row::after, .streak-number.skeleton-text::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(242, 181, 68, 0.14), transparent);
  animation: shimmer 1.6s infinite;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes flame-flicker {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.04, 0.97) rotate(-1.5deg); }
  50% { transform: scale(0.97, 1.05) rotate(1deg); }
  75% { transform: scale(1.02, 0.98) rotate(-0.5deg); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
@keyframes bead-pulse {
  0%, 100% { box-shadow: 0 0 10px 1px rgba(242, 181, 68, 0.55); }
  50% { box-shadow: 0 0 16px 4px rgba(242, 181, 68, 0.85); }
}
@keyframes streak-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); }
  60% { transform: scale(0.96); }
  100% { transform: scale(1); }
}
@keyframes ember-float {
  0% { opacity: 0; transform: translate(-50%, -50%) translate(0, 0) scale(0.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(1); }
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Staggered section entrance on first dashboard paint */
.dashboard-view.is-entering > * {
  animation: view-in 0.5s var(--ease-standard) both;
}
.dashboard-view.is-entering > *:nth-child(1) { animation-delay: 0.02s; }
.dashboard-view.is-entering > *:nth-child(2) { animation-delay: 0.06s; }
.dashboard-view.is-entering > *:nth-child(3) { animation-delay: 0.12s; }
.dashboard-view.is-entering > *:nth-child(4) { animation-delay: 0.18s; }
.dashboard-view.is-entering > *:nth-child(5) { animation-delay: 0.24s; }
.dashboard-view.is-entering > *:nth-child(6) { animation-delay: 0.30s; }

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

/* Focus visibility everywhere (accessibility) */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ------------------------------- Responsive -------------------------------- */
@media (min-width: 640px) {
  .app-shell { padding-top: 40px; }
  .onboarding-title { font-size: 3.4rem; }
}

/* "Tapped by mistake?" affordance on an already-answered tyag card. */
.today-change-row { margin-top: 12px; }
.today-change-row .link-btn {
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.today-change-row .link-btn:hover { color: var(--gold-soft); }
.today-change-row .link-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ------------------------- Notification check -------------------------- */
.push-check { margin-bottom: 18px; border-color: var(--border-strong); }
.pc-state { display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center; }
.pc-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.pc-sub { font-size: 0.9rem; color: var(--ink-dim); line-height: 1.5; }
.pc-sub:empty { display: none; }
.pc-bell { font-size: 2rem; animation: pc-ring 1.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes pc-ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
.pc-progress { width: 100%; height: 4px; border-radius: 2px; background: var(--track-bg); overflow: hidden; }
.pc-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-soft), var(--saffron)); transform-origin: left; animation: pc-fill 25s linear forwards; }
@keyframes pc-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pc-actions { display: flex; gap: 10px; width: 100%; flex-wrap: wrap; }
.pc-actions .btn { flex: 1 1 140px; }
.pc-steps { text-align: left; display: flex; flex-direction: column; gap: 8px; counter-reset: pc; width: 100%; }
.pc-steps li { counter-increment: pc; display: flex; gap: 10px; font-size: 0.92rem; line-height: 1.45; }
.pc-steps li::before {
  content: counter(pc);
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.78rem; color: #1a1411;
  background: linear-gradient(135deg, var(--gold-soft), var(--saffron));
}
@media (prefers-reduced-motion: reduce) { .pc-bell, .pc-progress span { animation: none; } }

/* --------------------- Install: watch-then-do ---------------------------- */
#install-coach { display: flex; flex-direction: column; gap: 14px; }
.demo-stage { position: relative; width: 170px; margin: 0 auto; }
.demo-stage .coach-svg { width: 170px; height: 223px; display: block; }
.demo-finger {
  position: absolute;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(232, 130, 58, 0.28);
  border: 2px solid var(--saffron);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: left 0.6s var(--ease-standard), top 0.6s var(--ease-standard);
  pointer-events: none;
}
.demo-finger span { position: absolute; inset: 9px; border-radius: 50%; background: var(--saffron); }
.demo-finger.tap { animation: finger-tap 0.8s ease-out; }
.demo-finger.tap::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--saffron); animation: finger-ripple 0.8s ease-out forwards;
}
.demo-finger.swipe { animation: finger-swipe 0.9s var(--ease-standard) forwards; }
@keyframes finger-tap { 0% { transform: scale(1); } 30% { transform: scale(0.78); } 100% { transform: scale(1); } }
@keyframes finger-ripple { from { transform: scale(1); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
@keyframes finger-swipe { from { transform: translateY(0); } to { transform: translateY(-46px); } }
.demo-cap { min-height: 3em; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.demo-num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-weight: 800; font-size: 0.8rem; color: #1a1411;
  background: linear-gradient(135deg, var(--gold-soft), var(--saffron));
}
#demo-card.is-important { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 181, 68, 0.18); }
.doing-card { text-align: center; }
.after-card { text-align: center; align-items: center; }
.after-card .coach-svg { width: 150px; height: 197px; }

.cheat-strip {
  position: fixed;
  left: 0; right: 0;
  z-index: 79;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-card-solid);
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.45);
}
.cheat-strip.at-top { top: 0; padding-top: calc(env(safe-area-inset-top, 0px) + 10px); border-bottom-width: 2px; }
.cheat-strip.at-bottom { bottom: 0; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); border-top-width: 2px; }
body.arrow-top .cheat-strip.at-top, body.arrow-bottom .cheat-strip.at-bottom { padding-right: 118px; }
.cheat-title { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.cheat-steps { display: flex; flex-direction: column; gap: 5px; }
.cheat-step { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; line-height: 1.3; }
.cheat-step i {
  font-style: normal; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 0.72rem; color: #1a1411;
  background: linear-gradient(135deg, var(--gold-soft), var(--saffron));
}
.cheat-step small { display: block; font-size: 0.75rem; color: var(--ink-faint); }
body.strip-top .app-shell { padding-top: 150px; }
body.strip-bottom .app-shell { padding-bottom: 170px; }
@media (prefers-reduced-motion: reduce) { .demo-finger, .demo-finger.tap, .demo-finger.swipe { animation: none; transition: none; } }
body.hide-quick #install-quick, body.hide-quick #coach-or, body.install-doing .install-hero { display: none !important; }

/* ---- Android: "installed -> open the app" takeover (install.js) ---- */
.open-app {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(70% 45% at 50% 30%, rgba(242, 181, 68, 0.22), transparent 70%),
    var(--bg);
  animation: open-app-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.open-app-inner { width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.open-app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 18px 40px -14px rgba(232, 130, 58, 0.7); }
.open-app-title { margin: 6px 0 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.open-app-title span { color: var(--saffron); }
.open-app-sub { margin: 0; color: var(--ink-dim); line-height: 1.45; }
.open-app-btn { margin-top: 10px; padding: 20px 24px; font-size: 1.15rem; text-decoration: none; }
.open-app-hi { margin: 0; font-size: 0.9rem; color: var(--ink-faint); }
.open-app-help { margin: 8px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border-soft); color: var(--ink-dim); font-size: 0.92rem; line-height: 1.5; }
.open-app-help span { display: block; margin-top: 4px; color: var(--ink-faint); }
body.open-app-on { overflow: hidden; }
@keyframes open-app-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .open-app { animation: none; } }
.open-app-btn.is-waiting {
  overflow: hidden;
  pointer-events: none;
  color: var(--ink-dim);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.open-app-btn.is-waiting::after { display: none; }
.open-app-fill { display: none; }
.open-app-btn.is-waiting .open-app-fill {
  display: block;
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--gold-soft), var(--saffron));
  opacity: 0.4;
}
#open-app-label { position: relative; }
.open-app-btn.is-ready { animation: open-app-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes open-app-pop { 0% { transform: scale(0.96); } 60% { transform: scale(1.03); } 100% { transform: none; } }

/* Android with a one-tap install: just the button (the hand-install guide is hidden).
   While we wait to learn whether one-tap is available, show neither. */
body.install-oneclick #install-coach, body.install-oneclick #coach-or,
body.install-waiting #install-coach, body.install-waiting #coach-or { display: none !important; }
body.install-oneclick .install-quick, body.install-waiting .install-quick { padding-top: 28px; padding-bottom: 28px; }
body.install-oneclick .install-quick-icon, body.install-waiting .install-quick-icon { width: 96px; height: 96px; border-radius: 22px; }
body.install-oneclick #install-now-btn { padding: 20px 24px; font-size: 1.15rem; }

/* iPhone install: four plain steps */
.ios-steps { display: flex; flex-direction: column; gap: 14px; }
.ios-steps-title { font-family: var(--font-display); font-size: 1.25rem; text-align: center; }
.ios-steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ios-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border-soft); }
.ios-step-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; background: var(--gold); color: #2a1a0c; }
.ios-step-text { font-size: 1.08rem; line-height: 1.35; }
.ios-step-text small { display: block; font-size: 0.85rem; color: var(--ink-dim); margin-top: 2px; }
.ios-step-text .hi { display: block; font-size: 0.85rem; color: var(--ink-faint); margin-top: 2px; }
.ios-step-text .glyph-svg { width: 1.3em; height: 1.3em; }
.ios-steps-final { text-align: center; font-size: 0.98rem; line-height: 1.45; color: var(--ink-dim); }
.ios-steps-final img { display: block; width: 40px; height: 40px; border-radius: 10px; margin: 0 auto 8px; }
.ios-steps-final span { font-size: 0.85rem; color: var(--ink-faint); }
