/* Ramp design tokens — shared by the marketing site and the app. Do not redefine these
   elsewhere; add component styles in site.css / app.css using these variables.

   Brand idea: Ramp gets a crew of AI agents up and running in a business, with the owner
   still in charge.
   Look: warm paper, deep bush-green ink, one vivid emerald accent, a display face with
   character. State is shown with fills, indicators, motion and type. Never with a coloured
   border on one edge, a thick coloured outline, stripes or dashed tags. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* colour */
  --paper: #f6f1e7;        /* page background */
  --paper-2: #efe8d9;      /* sunken panels */
  --card: #fffdf8;         /* raised surfaces */
  --ink: #10231c;          /* primary text, dark surfaces */
  --ink-2: #3d4f47;        /* secondary text */
  --ink-3: #596961;        /* muted text (AA on paper, paper-2 and card) */
  --line: #e2dac8;         /* hairline borders */
  --line-strong: #c9bea6;  /* control borders */
  --hivis: #12b76a;        /* the accent: primary buttons, working indicators, headline emphasis */
  --hivis-ink: #08774a;    /* accent as small text on light backgrounds (AA) */
  --hivis-soft: #dcf5e8;
  --on-hivis: #04261a;     /* text on an accent fill */
  --green: #1f7a4d;        /* done / connected */
  --green-soft: #d9efe2;
  --amber: #c98a12;        /* waiting on you (indicator) */
  --amber-soft: #fbeccb;
  --red: #b3261e;          /* failed / rejected */
  --red-soft: #f9dedb;
  --blue: #4a5a66;         /* informational: a neutral slate, never a blue banner */
  --blue-soft: #e9e6dc;

  /* type */
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: clamp(2rem, 4vw, 2.875rem);
  --text-hero: clamp(2.75rem, 6.6vw, 5rem);

  /* space & shape */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(16, 35, 28, 0.06), 0 2px 8px rgba(16, 35, 28, 0.05);
  --shadow-2: 0 2px 4px rgba(16, 35, 28, 0.06), 0 16px 40px rgba(16, 35, 28, 0.14);
  --maxw: 1160px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* Shared primitives both surfaces use */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-5); border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font-size: var(--text-md); font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary { background: var(--hivis); border-color: var(--hivis); color: var(--on-hivis); }
.btn--primary:hover { background: #0fa55f; border-color: #0fa55f; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #1c352b; border-color: #1c352b; }
.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--card); border-color: var(--ink-3); }
.btn--sm { min-height: 36px; padding: 0 var(--s-4); font-size: var(--text-sm); }
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn--sm { min-height: 40px; }
}

.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.wordmark::before { content: ''; width: 13px; height: 13px; border-radius: 4px; background: var(--hivis); transform: rotate(12deg); }

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

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