/* ─────────────────────────────────────────────────────────
   Troko — base utility classes
   Companion to troko-tokens.css. Provides the typography ramp,
   button system, chip/pill primitives, cards, inputs, and a
   small set of layout utilities used across catalogue surfaces.

   All values pull from var(--*) tokens in troko-tokens.css.
   Faithful port of the Phase 3 design canvas's marketing-mockup
   stylesheet.
   ───────────────────────────────────────────────────────── */

/* — Box-sizing applied within the .troko-app scope only, so this
     file is safe to load alongside other apps without surprising
     them with a global reset. */
.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; }

/* ── Typography ──────────────────────────────────────────── */

.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; }

/* ── Cards ───────────────────────────────────────────────── */

.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; }

/* ── Signature patterns ──────────────────────────────────── */

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

/* ── Layout utilities ────────────────────────────────────── */

.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 horizontal scrollers ──────── */

.no-bar::-webkit-scrollbar { display: none; }
.no-bar { scrollbar-width: none; }
