/* ============================================================
   Itinr Design System v2 — Web tokens
   Source of truth: Itinr_Design_System_v2 (2026-06-30) — the same
   tokens shipped in the iOS app (DesignColors/DesignTokens.swift).
   "One hero blue leads, everything else recedes; rich ink,
    tighter type, glass + two-layer depth."
   ============================================================ */

:root {
  /* ── Colors ── */
  --brand:          #0A84FF;   /* primary actions, links, AI */
  --brand-pressed:  #0070E0;
  --brand-tint:     rgba(10, 132, 255, .10);   /* selected rows, chips, secondary buttons */

  --ink:            #0B0B0F;   /* text — not pure black */
  --text-secondary: #71717A;   /* zinc */
  --text-tertiary:  #A1A1AA;
  --zinc-deep:      #52525B;
  --zinc-deeper:    #3F3F46;

  --canvas:         #F5F5F7;
  --surface:        #FFFFFF;
  --surface-tint:   #EFEEF3;
  --hairline:       rgba(9, 9, 11, .08);

  --success:        #34C759;
  --warning:        #FF9F0A;
  --error:          #FF453A;
  --info:           #5AC8FA;

  /* Category accents — identity hexes, used small (dots/icons), never full-bleed */
  --cat-restaurant: #F2682F;
  --cat-nature:     #2E9961;
  --cat-museum:     #AF52DE;
  --cat-concert:    #5E5CE6;
  --cat-hotel:      #997333;
  --cat-activity:   #8CC73D;

  /* ── Typography (SF stack, tight tracking) ── */
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Display 56/800/-2.5px · Title 32/800/-1.2px · Headline 18/700/-0.3px
     Body 16/400/1.5 · Footnote 13/600 zinc · Caption 11/800 +1px uppercase */
  --fs-display: 56px;  --fw-display: 800;  --ls-display: -2.5px;
  --fs-title:   32px;  --fw-title:   800;  --ls-title:   -1.2px;
  --fs-headline:18px;  --fw-headline:700;  --ls-headline: -.3px;
  --fs-body:    16px;  --fw-body:    400;  --lh-body:    1.5;
  --fs-footnote:13px;  --fw-footnote:600;
  --fs-caption: 11px;  --fw-caption: 800;  --ls-caption:  1px;

  /* ── Radius ramp ── */
  --r-8: 8px;  --r-10: 10px;  --r-14: 14px;  --r-16: 16px;  /* primary pill */
  --r-18: 18px; --r-20: 20px; --r-24: 24px;  --r-28: 28px;  /* card, hero */
  --r-full: 980px;

  /* ── Elevation (two-layer: contact + soft long) ── */
  --shadow-card:    0 1px 2px rgba(9,9,11,.04), 0 12px 32px rgba(9,9,11,.05);
  --shadow-control: 0 4px 14px rgba(9,9,11,.10);
  --shadow-brand:   0 8px 20px rgba(10,132,255,.30);   /* primary button glow */
  --shadow-float:   0 20px 40px rgba(9,9,11,.18);      /* floating / hero */
}

/* ── Base ── */
.ds-body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-stack);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

/* ── Type scale ── */
.ds-display  { font-size: var(--fs-display);  font-weight: var(--fw-display);  letter-spacing: var(--ls-display);  line-height: 1.04; }
.ds-title    { font-size: var(--fs-title);    font-weight: var(--fw-title);    letter-spacing: var(--ls-title);    line-height: 1.12; }
.ds-headline { font-size: var(--fs-headline); font-weight: var(--fw-headline); letter-spacing: var(--ls-headline); }
.ds-footnote { font-size: var(--fs-footnote); font-weight: var(--fw-footnote); color: var(--text-secondary); }
.ds-caption  { font-size: var(--fs-caption);  font-weight: var(--fw-caption);  letter-spacing: var(--ls-caption); text-transform: uppercase; }

/* ── Components ── */
.ds-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-24);
  box-shadow: var(--shadow-card);
}
.ds-card--hero { border-radius: var(--r-28); }

.ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 var(--fs-body)/1 var(--font-stack);
  padding: 14px 26px; border-radius: var(--r-16);
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ds-btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.ds-btn--primary:hover { background: var(--brand-pressed); transform: translateY(-1px); }
.ds-btn--secondary { background: var(--brand-tint); color: var(--brand); }
.ds-btn--secondary:hover { background: rgba(10,132,255,.16); }
.ds-btn--utility { background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); box-shadow: var(--shadow-control); }

.ds-badge {
  display: inline-block; padding: 4px 10px; border-radius: var(--r-10);
  font: 700 12px/1.2 var(--font-stack);
  background: var(--brand-tint); color: var(--brand);
}
.ds-badge--success { background: rgba(52,199,89,.12);  color: #1a9d55; }
.ds-badge--warning { background: rgba(255,159,10,.12); color: #c77700; }
.ds-badge--ink     { background: var(--ink); color: #fff; }   /* "Shared" */

.ds-glass {
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
