/* ─────────────────────────────────────────────────────────
   Troko — design tokens
   "India's Playbook" · Pay-to-play meets academy
   ───────────────────────────────────────────────────────── */

/* Pin text scaling: mobile browsers (Android Chrome especially) auto-INFLATE
   page text on their own, which renders the whole px-based console "zoomed in"
   on some phones. Anchor it to 100% so text renders at the sizes we set (users
   can still pinch-zoom). Standard reset behaviour; hardens every device. */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  /* — Surfaces */
  --bone:        #F6F1E7;
  --bone-2:      #EFE9DB;
  --paper:       #FFFFFF;
  --paper-warm:  #FBF9F4;
  --ink:         #0B0F14;
  --ink-2:       #161B22;
  --ink-3:       #232A33;

  /* — Text */
  --text:        #0B0F14;
  --text-2:      #2B323B;
  --text-3:      #5A6470;
  --text-4:      #8C949F;
  --text-on-ink:    #F6F1E7;
  --text-on-ink-2:  #B7BEC8;
  --text-on-ink-3:  #6E7682;

  /* — Brand */
  --orange:      #FF5A1F;
  --orange-2:    #E8431A;
  --orange-tint: #FFEFE7;
  --orange-ink:  #4A1A0B;

  --lime:        #D4FF3F;
  --lime-2:      #BFEB1F;
  --lime-tint:   #F2FFC5;
  --lime-ink:    #1A2400;

  /* — Utility */
  --success:     #15A874;
  --success-bg:  #E1F7EF;
  --warning:     #B66B00;
  --warning-bg:  #FBEFD4;
  --danger:      #C5301A;
  --danger-bg:   #FCE9E4;
  --info:        #2C4C8C;
  --info-bg:     #E1EAFB;

  /* — Lines */
  --line:        #E1DCCE;
  --line-2:      #D2CBB9;
  --line-on-ink: rgba(255,255,255,0.08);
  --line-on-ink-2: rgba(255,255,255,0.14);

  /* — Type families */
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-ui:      'Inter Tight', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* — Type sizes */
  --t-display:   56px;
  --t-h1:        34px;
  --t-h2:        26px;
  --t-h3:        20px;
  --t-h4:        17px;
  --t-body:      15px;
  --t-small:     13px;
  --t-micro:     11px;
  --t-eyebrow:   11px;

  /* — Radii */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  36px;
  --r-pill: 999px;

  /* — Spacing — 8px base */
  --s-0:   2px;
  --s-1:   4px;
  --s-2:   8px;
  --s-3:   12px;
  --s-4:   16px;
  --s-5:   20px;
  --s-6:   24px;
  --s-7:   32px;
  --s-8:   40px;
  --s-9:   56px;
  --s-10:  72px;

  /* — Shadows */
  --sh-card:   0 1px 0 0 rgba(11,15,20,0.03), 0 4px 14px -6px rgba(11,15,20,0.08);
  --sh-lift:   0 2px 0 0 rgba(11,15,20,0.04), 0 12px 28px -8px rgba(11,15,20,0.14);
  --sh-float:  0 8px 32px -8px rgba(11,15,20,0.20);
  --sh-inset:  inset 0 0 0 1px var(--line);
}

/* —————————————————————————————————————————
   Base resets used by the marketing-style mockups
   ————————————————————————————————————————— */
* { box-sizing: border-box; }

.troko-app {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.troko-app * { box-sizing: border-box; }

/* — Display text */
.t-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.92;
}
.t-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-h1);
  letter-spacing: -0.022em;
  line-height: 1.02;
}
.t-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h2);
  letter-spacing: -0.018em;
  line-height: 1.08;
}
.t-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h3);
  letter-spacing: -0.012em;
  line-height: 1.14;
}
.t-h4 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--t-h4);
  letter-spacing: -0.012em;
  line-height: 1.25;
}
.t-body {
  font-family: var(--font-ui);
  font-weight: 450;
  font-size: var(--t-body);
  line-height: 1.45;
}
.t-small {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--t-small);
  line-height: 1.4;
}
.t-micro {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--t-micro);
  line-height: 1.35;
}
.t-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

/* — Buttons */
.tb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1;
  border: 0;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: var(--r-md);
  transition: transform 0.12s, background 0.12s;
  white-space: nowrap;
}
.tb:active { transform: scale(0.98); }
.tb-primary {
  background: var(--orange);
  color: #fff;
}
.tb-primary:hover { background: var(--orange-2); }
.tb-ink {
  background: var(--ink);
  color: var(--text-on-ink);
}
.tb-lime {
  background: var(--lime);
  color: var(--lime-ink);
}
.tb-ghost {
  background: transparent;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tb-ghost-ink {
  background: transparent;
  color: var(--text-on-ink);
  box-shadow: inset 0 0 0 1px var(--line-on-ink-2);
}
.tb-full { width: 100%; }
.tb-lg   { padding: 18px 22px; font-size: 16px; border-radius: var(--r-lg); }
.tb-sm   { padding: 10px 14px; font-size: 13px; border-radius: var(--r-sm); }

/* — Chips & pills */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: var(--bone-2);
  color: var(--text-2);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.chip-ink { background: var(--ink); color: var(--text-on-ink); }
.chip-lime { background: var(--lime); color: var(--lime-ink); }
.chip-orange { background: var(--orange-tint); color: var(--orange-ink); }
.chip-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.chip-success { background: var(--success-bg); color: #0a6b48; }

/* — Card */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: var(--s-5);
}
.card-warm {
  background: var(--paper-warm);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.card-ink {
  background: var(--ink);
  color: var(--text-on-ink);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}

/* — Inputs */
.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text);
}
.input:focus { outline: 2px solid var(--orange); outline-offset: -1px; }

/* — Dotted price strip — signature pattern */
.dotted {
  background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1px);
  background-size: 6px 6px;
  background-position: 0 50%;
  background-repeat: repeat-x;
}

/* — Utility */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; }
.flex1 { flex: 1; }
.muted { color: var(--text-3); }
.faint { color: var(--text-4); }

/* — Scrollbar hide for inline scrollers */
.no-bar::-webkit-scrollbar { display: none; }
.no-bar { scrollbar-width: none; }
