/*
 * FareRabbit design tokens.
 * Source of truth: /DESIGN_SYSTEM.md at the repository root.
 * No template or component file should use a raw hex value — every colour,
 * size, radius, and shadow used anywhere in this theme comes from here.
 */

:root {
	/* Brand tokens — from the supplied FareRabbit brand board, unchanged. */
	--fr-navy: #10172D;
	--fr-coral: #FF5B72;
	--fr-cyan: #20D6D2;
	--fr-cream: #FFF8EC;
	--fr-orange: #FF9A5A;

	/* Semantic tokens — see DESIGN_SYSTEM.md §2 for the contrast rule
	   governing why coral/cyan/orange are never used as small text colour. */
	--fr-bg: var(--fr-cream);
	--fr-surface: #FFFFFF;
	--fr-surface-dark: var(--fr-navy);
	--fr-text: var(--fr-navy);
	--fr-text-inverse: var(--fr-cream);
	--fr-text-muted: #4B5271;
	--fr-primary-action: var(--fr-coral);
	--fr-primary-action-text: var(--fr-navy);
	--fr-border: #E7DFCF;
	--fr-warning: #B45400;
	--fr-warning-bg: #FDECE3;
	--fr-danger: #C81E3A;
	--fr-danger-bg: #FBE4E7;
	--fr-success: #1E8A63;
	--fr-focus-ring: var(--fr-navy);
	--fr-focus-ring-inverse: var(--fr-cream);

	/* Typography */
	--fr-font-display: "Space Grotesk", sans-serif;
	--fr-font-body: "Inter", sans-serif;

	/* Spacing */
	--fr-space-1: 4px;
	--fr-space-2: 8px;
	--fr-space-3: 12px;
	--fr-space-4: 16px;
	--fr-space-5: 24px;
	--fr-space-6: 32px;
	--fr-space-7: 48px;
	--fr-space-8: 64px;

	/* Radii */
	--fr-radius-sm: 6px;
	--fr-radius-md: 12px;
	--fr-radius-lg: 20px;
	--fr-radius-pill: 999px;

	/* Shadow */
	--fr-shadow-sm: 0 1px 2px rgba(16, 23, 45, 0.08);
	--fr-shadow-md: 0 6px 16px rgba(16, 23, 45, 0.12);

	/* Gate 5 visual tokens — DESIGN_SYSTEM.md §18. Sampled from the
	   Product Owner-approved Gate 5 homepage design and its developer-handoff
	   strip. Used by the dark Gate 5 surfaces (header, homepage); the
	   existing cream pages keep the tokens above. */
	--fr-g5-night: #021234;
	--fr-g5-night-deep: #001030;
	--fr-g5-panel: #01173F;
	--fr-g5-panel-raised: #0F1F53;
	--fr-g5-line: #22346F;
	--fr-g5-pink: #FC2468;
	--fr-g5-pink-action: #E0145A;
	--fr-g5-purple: #8B41FB;
	--fr-g5-cyan: #00DCFD;
	--fr-g5-green: #02E7A2;
	--fr-g5-chip: #2C257C;
	--fr-g5-text: #FFFFFF;
	--fr-g5-text-muted: #AAB4D4;
	--fr-g5-ink: #0B1A3A;
	--fr-g5-ink-muted: #5B6380;
	--fr-g5-field-border: #E3E6EF;
	--fr-g5-gradient-cta: linear-gradient(90deg, var(--fr-g5-pink) 0%, var(--fr-g5-purple) 50%, var(--fr-g5-cyan) 100%);
	--fr-g5-gradient-heading: linear-gradient(90deg, var(--fr-g5-purple) 0%, var(--fr-g5-pink) 100%);

	/* Gate 6 V2 refinement (DESIGN_SYSTEM.md §18, D311): the Phase 1-4
	   board's neon swatches, for decorative borders and glows on Deal
	   Discovery only (and neon cyan text on navy, 12:1). Never text on
	   white or a button fill: white on the neon pink is 3.6:1, so buttons
	   and text on white keep the AA tokens above. */
	--fr-g5-neon-pink: #FF00AB;
	--fr-g5-neon-purple: #A855F7;
	--fr-g5-neon-cyan: #00E5FF;
	--fr-g5-gradient-neon: linear-gradient(90deg, var(--fr-g5-neon-pink) 0%, var(--fr-g5-neon-purple) 50%, var(--fr-g5-neon-cyan) 100%);

	/* Price Rating bands (DESIGN_SYSTEM.md §18, D285) — hues sampled from
	   the approved Phase 1 board; number colours darkened to the nearest
	   value meeting 3:1 for large bold text on white; descriptions sit on
	   the light tints with navy text. Display only: no band is ever derived
	   from a number in the theme. */
	--fr-g5-rating-below: #1AA86F;
	--fr-g5-rating-below-bg: #D6F5EA;
	--fr-g5-rating-around: #BE8808;
	--fr-g5-rating-around-bg: #FFF1D0;
	--fr-g5-rating-above: var(--fr-g5-pink);
	--fr-g5-rating-above-bg: #FDD6E8;
	--fr-g5-rating-unrated-bg: #EEF0F5;

	/* Phase 4 "Book with …" button (D326; DESIGN_SYSTEM.md §18): the blue
	   of the approved Phase 1-4 reference's Booking Options buttons,
	   sampled between #175DCE and #2168E2. White text 5.4:1 (AA). Used for
	   the outbound provider action only. */
	--fr-g5-book-action: #1D63DC;

	--fr-font-g5-display: "Inter", sans-serif;
	--fr-radius-g5-card: 16px;
	--fr-shadow-g5-glow: 0 0 0 1px var(--fr-g5-line), 0 10px 30px rgba(0, 8, 32, 0.45);
}

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