/* ============================================================
 * AUTO-SYNCED from design-system-export/design-tokens.css
 * DO NOT EDIT directly — edit the canonical file and run:
 *   npm run teaser:sync-tokens
 * ============================================================
 */

/* ============================================================
 * IronClad — Portable Design Tokens
 * ============================================================
 * Drop this file into your Next.js project and import it from
 * `app/globals.css` (or equivalent). All components in this
 * export reference these CSS custom properties.
 *
 * This file contains ONLY tokens and layout utility classes.
 * It does NOT pull in Tailwind — add that separately if you
 * want utility classes. (Tailwind is NOT required for the
 * components in this export; they use inline styles + vars.)
 * ============================================================
 */

:root {
  /* === Primary Palette === */
  --primary: #00162a;
  --primary-container: #0d2b45;
  --on-primary: #ffffff;

  /* === Accent — Safety Orange === */
  --accent: #fe5722;
  --accent-container: #ff8a65;
  --on-accent: #ffffff;
  /* Accent variants (originated 2026-05-16 from teaser audit sweep).
     Soft tints for chip / pill / card backgrounds + borders on dark surfaces.
     Replaces ad-hoc `rgba(254,87,34,...)` literals across the teaser and any
     surface that wants the IronClad orange at < 50% emphasis. Numbered by
     intended opacity × 100 so adding new steps stays self-documenting. */
  --accent-soft-04: rgba(254, 87, 34, 0.04);
  --accent-soft-05: rgba(254, 87, 34, 0.05);
  --accent-soft-08: rgba(254, 87, 34, 0.08);
  --accent-soft-09: rgba(254, 87, 34, 0.09);
  --accent-soft-10: rgba(254, 87, 34, 0.10);
  --accent-soft-12: rgba(254, 87, 34, 0.12);
  --accent-soft-14: rgba(254, 87, 34, 0.14);
  --accent-soft-15: rgba(254, 87, 34, 0.15);
  --accent-soft-18: rgba(254, 87, 34, 0.18);
  --accent-soft-25: rgba(254, 87, 34, 0.25);
  --accent-soft-28: rgba(254, 87, 34, 0.28);
  --accent-soft-30: rgba(254, 87, 34, 0.30);
  --accent-soft-32: rgba(254, 87, 34, 0.32);
  --accent-soft-40: rgba(254, 87, 34, 0.40);
  --accent-soft-42: rgba(254, 87, 34, 0.42);
  --accent-border-20: rgba(254, 87, 34, 0.20);
  --accent-border-25: rgba(254, 87, 34, 0.25);
  --accent-border-28: rgba(254, 87, 34, 0.28);
  --accent-border-32: rgba(254, 87, 34, 0.32);
  --accent-border-35: rgba(254, 87, 34, 0.35);
  --accent-dark: #e04a17;

  /* === Surface Hierarchy (Light / App UI) === */
  --surface: #f4faff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #edf4fb;
  --surface-container: #e2ecf5;
  --surface-container-high: #d4e3f0;
  --surface-container-highest: #c5d9ea;
  /* Disabled-field surface — see app/globals.css for canonical comment.
     Mirrored here so the portable export stays in sync. */
  --surface-dim: #c0d2e2;

  /* === Text === */
  --on-surface: #0e1b27;
  --on-surface-variant: #43474d;
  --outline: #5c5f66;
  --outline-variant: #c3c6ce;

  /* === Semantic Tokens === */
  --success: #15803d;
  --success-container: #dcfce7;
  --warning: #a16207;
  --warning-container: #fef9c3;
  --destructive: #dc2626;
  --destructive-container: #fee2e2;
  --muted: #64748b;

  /* === Spacing Scale === */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* === Layout === */
  --sidebar-width: 260px;
  --sidebar-collapsed: 64px;
  --topbar-height: 56px;

  /* === Typography === */
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  /* D-FOLLOWUP-V1.2 (2026-05-01) — system mono stack token. Used for
     coordinates, hashes, IDs, and other monospace surfaces where polished
     numerics matter (SF Mono on macOS, Cascadia/Consolas on Windows,
     ui-monospace fallback elsewhere). Replaces scattered literal
     `fontFamily: 'monospace'` callsites. */
  --font-mono: ui-monospace, SFMono-Regular, Menlo, 'Cascadia Mono', 'Roboto Mono', Consolas, monospace;

  /* === Shadows === */
  --shadow-ambient: 0px 20px 40px rgba(13, 30, 37, 0.08);
  --shadow-float: 0px 8px 24px rgba(13, 30, 37, 0.12);
  /* Tight shadow for small floating elements (segmented-control active pill,
     dropdown items, popovers). --shadow-ambient is too diffuse to lift a
     ~30px pill off a near-white track. */
  --shadow-elevation-1: 0px 1px 2px rgba(0, 22, 42, 0.06), 0px 1px 4px rgba(0, 22, 42, 0.10);

  /* === Weather Icon Palette ===
     Semantic colors for Lucide weather glyphs on the rental detail
     Location tab + popover. Each weather variant gets a deliberate hue
     that matches user intuition (sun warm, rain blue, snow ice, storm
     vivid). Tuned for readable contrast on the white card background
     AND on the glassy popover. Source-of-truth: lib/weather/codes.ts
     getWeatherInfo() returns the var() name as the icon's color prop. */
  --weather-sun: #f59e0b;            /* warm amber — clear sky */
  --weather-cloud-sun: #fbbf24;      /* soft amber — partly cloudy */
  --weather-cloud: #94a3b8;          /* cool slate — overcast */
  --weather-fog: #a78bfa;            /* muted lavender — fog / haze */
  --weather-drizzle: #60a5fa;        /* light blue — drizzle / light rain */
  --weather-rain: #3b82f6;           /* blue — steady rain */
  --weather-rain-wind: #1d4ed8;      /* deep blue — heavy rain / wind-driven */
  --weather-snow: #7dd3fc;           /* ice blue — snow */
  --weather-snowflake: #7dd3fc;      /* ice blue — heavy snow */
  --weather-lightning: #ea580c;      /* vivid orange — thunderstorm */

  /* === Phone + browser mockup palette ===
     Originated 2026-05-16 from teaser audit sweep. The pre-launch teaser
     paints hardware-accurate iPhone bezels + Dynamic Island notches AND
     browser-chrome frames (titlebar + traffic lights + URL) around mockups.
     Tokenized so admin/preview surfaces and future marketing share the
     exact same hardware silhouette. */
  --phone-frame-bg: #00162a;         /* bezel — matches --primary */
  --phone-notch-bg: #000;            /* Dynamic Island fill */
  --phone-screen-bg: #f4faff;        /* idle screen — matches --surface */
  --mockup-body-bg: #1a1a2e;         /* outer browser chrome / mockup body */
  --mockup-titlebar-bg: #12121f;     /* darker titlebar strip inside the mockup */

  /* === Phase palette ===
     Three-phase narrative used in the teaser's 15-cell operating chain
     (Sales → Execute → Billing). Tokenized so the colors can be reused
     in dashboards / docs / future marketing without re-deriving hexes. */
  --phase-pipeline: #4a90e2;         /* blue — sales pipeline */
  --phase-pipeline-soft: rgba(74, 144, 226, 0.14); /* pipeline cell fill */
  --phase-execute: #2eb886;          /* green — field execution */
  --phase-execute-soft: rgba(46, 184, 134, 0.14);  /* execute cell fill */
  --phase-billing: #fe5722;          /* orange — billing/close (alias --accent) */
  --phase-billing-soft: var(--accent-soft-14);     /* billing cell fill */
}

/* Dashboard KPI grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Dashboard row layouts */
.dash-row-6 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .dash-row-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .dash-row-6 { grid-template-columns: repeat(6, 1fr); } }

.dash-row-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (min-width: 768px) { .dash-row-4 { grid-template-columns: repeat(4, 1fr); } }

.dash-row-2-1-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px) { .dash-row-2-1-1 { grid-template-columns: 2fr 1fr 1fr; } }

.dash-row-half {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px) { .dash-row-half { grid-template-columns: repeat(2, 1fr); } }

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 640px) { .analytics-grid { grid-template-columns: 1fr; } }

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 768px) { .account-grid { grid-template-columns: 1fr; } }

.billing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 900px) { .billing-grid { grid-template-columns: 1fr; } }

/* Auth input focus state */
.auth-input {
  background: var(--surface-container);
  color: var(--on-surface);
  border: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.auth-input:focus,
select:focus {
  outline: none;
  background: var(--surface-container-low);
  box-shadow: 0 0 0 3px rgba(254, 87, 34, 0.18);
}
.auth-input::placeholder { color: var(--outline); }

/* Skeleton loading pulse */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.skeleton-pulse {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

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