/* ============================================================
   AKCS Design System — Colors + Type
   Foundations for marketing site, docs, decks, and brand collateral.
   Reference: shinrai-dynamics/asks-customer-mobile (Flutter)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,200..800&family=JetBrains+Mono:wght@400..700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* ─────────────────────────────────────────────────────────
     BRAND — Aubergine (logo)
     The logo color is the brand's signature on the WEB and brand
     collateral. The product UI (mobile) leads with blue; the web
     leads with aubergine.
     ───────────────────────────────────────────────────────── */
  --brand-50:  #f6f1f7;
  --brand-100: #ece1ee;
  --brand-200: #d8c4dc;
  --brand-300: #b89bbf;
  --brand-400: #8e6996;
  --brand-500: #6a4774;   /* mid */
  --brand-600: #503356;   /* hover */
  --brand-700: #4b2e50;   /* PRIMARY — matches logo */
  --brand-800: #3a2440;
  --brand-900: #261829;
  --brand-950: #170f1a;

  /* ─────────────────────────────────────────────────────────
     PRODUCT BLUE — mobile app accent (carry into web for product UI,
     screenshots, and inline product references)
     ───────────────────────────────────────────────────────── */
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;   /* accent (mobile) */
  --blue-600: #2563eb;   /* primary (mobile) */
  --blue-700: #1d4ed8;

  /* ─────────────────────────────────────────────────────────
     INK (dark surfaces) — premium dark with warm undertone.
     Even darker, warmer than v1 — pushes toward warm noir.
     Use --ink-1000 as the hero / dark-section background.
     ───────────────────────────────────────────────────────── */
  --ink-1000: #08060a;   /* hero black, warm undertone (deepest) */
  --ink-950:  #0c0a10;   /* footer / deep panels */
  --ink-900:  #13111a;   /* primary CTA bg (matches mobile loginButton) */
  --ink-800:  #1c1924;
  --ink-700:  #2a2632;
  --ink-600:  #3a3543;

  /* ─────────────────────────────────────────────────────────
     SLATE — body text scale (matches mobile app exactly)
     ───────────────────────────────────────────────────────── */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  /* ─────────────────────────────────────────────────────────
     PAPER — warm light surfaces. The "warm linen" off-white is
     the app's canvas; we keep it for any light marketing section.
     ───────────────────────────────────────────────────────── */
  --paper-canvas: #f5f4f0;   /* warm linen — primary light surface */
  --paper-card:   #fcfcfc;
  --paper-pure:   #ffffff;
  --paper-tint:   #faf9f5;   /* very subtle warm cream */

  /* ─────────────────────────────────────────────────────────
     SEMANTIC (matches mobile)
     ───────────────────────────────────────────────────────── */
  --emerald: #10b981;
  --emerald-tint: #ecfdf5;
  --amber:   #f59e0b;
  --amber-tint:  #fffbeb;
  --red:     #ef4444;
  --red-deep:#dc2626;
  --red-tint:#fef2f2;
  --indigo:  #6366f1;
  --indigo-tint: #eef2ff;
  --violet:  #8b5cf6;
  --violet-tint: #f5f3ff;

  /* ─────────────────────────────────────────────────────────
     SEMANTIC ROLES — use these in components, not the raw values
     ───────────────────────────────────────────────────────── */
  --fg-1: var(--slate-900);          /* primary text */
  --fg-2: var(--slate-700);          /* body */
  --fg-3: var(--slate-500);          /* muted */
  --fg-4: var(--slate-400);          /* hints, captions */
  --fg-inverse: #f6f1f7;             /* text on dark */
  --fg-inverse-2: #b8a8be;           /* muted text on dark */

  --bg-canvas: var(--paper-canvas);
  --bg-card:   var(--paper-card);
  --bg-elevated: var(--paper-pure);
  --bg-dark:   var(--ink-1000);
  --bg-dark-elevated: var(--ink-900);

  --border-strong: var(--slate-300);
  --border:        var(--slate-200);
  --border-soft:   var(--slate-100);
  --border-dark:   rgba(255,255,255,0.08);
  --border-dark-strong: rgba(255,255,255,0.14);

  --accent: var(--ink-900);          /* web primary action — matches mobile near-black */
  --accent-hover: var(--ink-800);
  --accent-press: var(--ink-1000);
  --accent-brand: var(--brand-700);  /* aubergine ACCENT — moments only (italic flourish, watermarks) */
  --accent-product: var(--blue-600); /* product UI primary */

  /* ─────────────────────────────────────────────────────────
     RADIUS (matches mobile: 8/12/16/24/full)
     ───────────────────────────────────────────────────────── */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-full: 9999px;

  /* ─────────────────────────────────────────────────────────
     SHADOWS — matches mobile's "premium / card / sculpted / debossed"
     ───────────────────────────────────────────────────────── */
  --shadow-premium:
    0 10px 30px -10px rgba(15, 23, 42, 0.05);
  --shadow-card:
    0 8px 20px -4px rgba(15, 23, 42, 0.04);
  --shadow-sculpted:
    4px 4px 10px rgba(15, 23, 42, 0.15);
  --shadow-nav:
    0 4px 20px -4px rgba(15, 23, 42, 0.05);
  --shadow-hover:
    0 16px 40px -12px rgba(75, 46, 80, 0.18);

  /* on dark surfaces */
  --shadow-dark-glow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 20px 60px -20px rgba(0,0,0,0.6);

  /* ─────────────────────────────────────────────────────────
     SPACING (4 / 8 grid)
     ───────────────────────────────────────────────────────── */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* ─────────────────────────────────────────────────────────
     TYPOGRAPHY
     • Bricolage Grotesque — primary face for everything web. Variable on
       three axes (opsz, wdth, wght). Statement-making, distinctive, modern.
       Pulls visual presence from its dynamic optical sizing — looks rich
       at display sizes, neutral at body sizes. Pairs the futurism the
       brief asked for with restraint.
     • Instrument Serif — rare editorial highlight (pull quotes,
       hero italic flourish). Use sparingly.
     • JetBrains Mono — code, eyebrows, telemetry, tab labels.
     ───────────────────────────────────────────────────────── */
  --font-sans:   "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif:  "Instrument Serif", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --font-mono:   "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale (tight, statement-making) */
  --t-display-xl: clamp(56px, 8vw, 112px);
  --t-display-l:  clamp(44px, 6vw, 80px);
  --t-display-m:  clamp(36px, 4.5vw, 56px);
  --t-h1: 48px;
  --t-h2: 36px;
  --t-h3: 28px;
  --t-h4: 22px;
  --t-h5: 18px;
  --t-body-lg: 18px;
  --t-body:    16px;
  --t-body-sm: 14px;
  --t-caption: 13px;
  --t-eyebrow: 12px;
  --t-mono: 13px;

  /* Tracking & leading — tight on display, loose on eyebrows */
  --track-tight: -0.025em;
  --track-snug:  -0.01em;
  --track-normal: 0;
  --track-eyebrow: 0.14em;
  --track-loose: 0.02em;
}

/* ============================================================
   SEMANTIC TYPE STYLES — use these classes / element rules
   ============================================================ */

html { font-family: var(--font-sans); color: var(--fg-1); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

.display-xl, .display-l, .display-m, h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  color: inherit;
  text-wrap: balance;
}
body { color: var(--fg-1); }

.display-xl {
  font-size: var(--t-display-xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.display-l {
  font-size: var(--t-display-l);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
}
.display-m {
  font-size: var(--t-display-m);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1, .h1 { font-size: var(--t-h1); font-weight: 700; letter-spacing: var(--track-tight); line-height: 1.1; }
h2, .h2 { font-size: var(--t-h2); font-weight: 600; letter-spacing: var(--track-tight); line-height: 1.15; }
h3, .h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: var(--track-snug);  line-height: 1.2; }
h4, .h4 { font-size: var(--t-h4); font-weight: 600; letter-spacing: var(--track-snug);  line-height: 1.3; }
h5, .h5 { font-size: var(--t-h5); font-weight: 600; letter-spacing: var(--track-normal); line-height: 1.35; }

p, .body { font-size: var(--t-body); font-weight: 400; line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.body-lg { font-size: var(--t-body-lg); font-weight: 400; line-height: 1.55; color: var(--fg-2); }
.body-sm { font-size: var(--t-body-sm); font-weight: 400; line-height: 1.5;  color: var(--fg-2); }
.caption { font-size: var(--t-caption); font-weight: 500; line-height: 1.45; color: var(--fg-3); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--fg-3);
}

code, .code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Editorial flourish — use sparingly in display headers */
.flourish {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Links */
a { color: inherit; text-decoration: none; }
.link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 160ms ease;
}
.link:hover { opacity: 0.7; }

/* Dark surface text overrides */
.on-dark { color: var(--fg-inverse); }
.on-dark p, .on-dark .body { color: var(--fg-inverse-2); }
.on-dark .eyebrow { color: var(--fg-inverse-2); }
