/* Kea Plans design tokens. The website (site/) and the editor (web/) both import this file.
   Change a value here and both follow. Fonts: Inter (SIL OFL), self-hosted from brand/fonts/. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); }

:root {
  /* Brand: the same blue the rendered plans use for symbols (research/design-brief.md 5.1). */
  --kp-blue: #1D4ED8;        /* primary: buttons, links, symbols. 6.7:1 on white */
  --kp-blue-hover: #1E40AF;
  --kp-blue-tint: #EFF6FF;   /* selected rows, soft panels */
  --kp-blue-soft: #DBEAFE;

  /* Neutrals (Apple-style, shared feel with keaconcepts.com). */
  --kp-ink: #1D1D1F;         /* headings, body */
  --kp-text: #1D1D1F;
  --kp-text-2: #424245;      /* secondary copy, 10:1 */
  --kp-muted: #6E6E73;       /* small labels, 5.0:1 on white */
  --kp-line: #D2D2D7;        /* borders */
  --kp-line-soft: #E8E8ED;
  --kp-surface: #FFFFFF;
  --kp-surface-2: #F5F5F7;   /* cards, panels, page sections */
  --kp-canvas: #E8E8ED;      /* editor: behind the sheet */

  /* Status. Text colours pass 4.5:1 on white and on their own tint. */
  --kp-success: #15803D;  --kp-success-tint: #F0FDF4;
  --kp-warning: #B45309;  --kp-warning-tint: #FEF3C7;  --kp-warning-line: #F59E0B;
  --kp-danger: #B91C1C;   --kp-danger-tint: #FEF2F2;

  /* Type: Inter everywhere. Sizes are a 1.25 scale off 16px; headings tighten. */
  --kp-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --kp-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --kp-text-xs: 0.75rem;     /* 12 labels */
  --kp-text-sm: 0.875rem;    /* 14 */
  --kp-text-md: 1rem;        /* 16 body */
  --kp-text-lg: 1.1875rem;   /* 19 lead */
  --kp-text-xl: 1.5rem;      /* 24 */
  --kp-text-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);   /* 28-40 section titles */
  --kp-text-3xl: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);   /* 36-64 page titles */
  --kp-text-4xl: clamp(2.6rem, 1.4rem + 5.2vw, 5.25rem); /* 42-84 hero */
  --kp-weight: 400;
  --kp-weight-strong: 600;
  --kp-leading: 1.5;
  --kp-leading-tight: 1.06;
  --kp-tracking-tight: -0.025em;

  /* Space: 4px grid. */
  --kp-space-1: 4px;  --kp-space-2: 8px;  --kp-space-3: 12px; --kp-space-4: 16px;
  --kp-space-5: 24px; --kp-space-6: 32px; --kp-space-7: 48px; --kp-space-8: 64px;
  --kp-space-9: 96px; --kp-space-10: 140px;

  /* Shape. */
  --kp-radius-sm: 8px;    /* inputs, small buttons */
  --kp-radius: 12px;      /* panels, menus */
  --kp-radius-lg: 20px;   /* cards */
  --kp-radius-xl: 28px;   /* big product shots */
  --kp-radius-pill: 999px;

  /* Depth: soft and few. */
  --kp-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06);
  --kp-shadow: 0 4px 16px -4px rgb(0 0 0 / 0.12);
  --kp-shadow-lg: 0 24px 60px -20px rgb(13 13 13 / 0.28);
  --kp-focus: 0 0 0 3px rgb(29 78 216 / 0.35);

  /* Motion (ease-out for things that appear; keep UI under 300ms). */
  --kp-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --kp-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --kp-fast: 160ms;
  --kp-base: 240ms;

  /* Hit area: 44px minimum, 48px on touch. */
  --kp-tap: 44px;
}
