/* ==========================================================================
   Design tokens — sourced from the VELRA_UI Figma file.
   Colour names mirror the Figma variable names (collection: brand).
   ========================================================================== */

:root {
  /* --- Brand palette (Figma variables) --------------------------------- */
  --color-deep-velvet-blue: #0c2a44;
  --color-shadow-brown: #2e2828;
  --color-urban-taupe: #635b4e;
  --color-heritage-brown: #5c482d;
  --color-porcelain-ivory: #f0e9df;

  /* Raw values in the design with no matching Figma variable.
     Kept literal rather than snapped to a near-neighbour token. */
  --color-ivory-muted: #eee7de; /* nearby-list text + icons */
  --color-clay-brown: #5c4528; /* mobile nearby panel fill */
  --color-placeholder: #d9d9d9; /* highlighted table column / active dot */

  /* --- Semantic roles --------------------------------------------------- */
  --color-bg: #ffffff;
  --color-bg-deep: var(--color-deep-velvet-blue);
  --color-bg-ivory: var(--color-porcelain-ivory);
  --color-ink: var(--color-deep-velvet-blue);
  --color-ink-inverse: var(--color-porcelain-ivory);
  --color-ink-muted: var(--color-shadow-brown);
  --color-rule: var(--color-porcelain-ivory);
  --color-focus: #7fb3e0;
  /* Form + alert feedback. Both clear 4.5:1 on ivory and on white. */
  --color-alert-ok: #1c6b3f;
  --color-alert-error: #a3231f;

  /* --- Type families ---------------------------------------------------- */
  --font-display: "Marcellus", "Iowan Old Style", Georgia, "Times New Roman",
    serif;
  /* Noto Sans Thai (self-hosted, Latin + Thai) replaces the design's
     Proxima Nova Thai, which is licensed and not redistributable. */
  --font-body: "Noto Sans Thai", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  /* --- Type scale (mobile-first; grounded on the 392px artboard) --------- */
  --fs-hero-title: 0.75rem; /* 12px  Marcellus */
  --lh-hero-title: 1.25;
  --fs-hero-sub: 0.6875rem; /* 11px  body Medium */
  --fs-stat-value: 0.625rem; /* 10px  body Semibold */
  --fs-stat-label: 0.625rem; /* 10px  Satoshi Medium */
  --fs-section-title: 1.9375rem; /* 31px  Marcellus */
  --lh-section-title: 35px;
  --fs-lede: 0.875rem; /* 14px */
  --fs-disclaimer: 0.75rem; /* 12px */
  --fs-slide-caption: 1.125rem; /* 18px  Marcellus, mobile carousel (588:7423) */
  --fs-slide-caption-desktop: 1.25rem; /* 20px  Marcellus, desktop gallery */
  --fs-unit-name: 0.875rem; /* 14px */
  --fs-address: 0.75rem; /* 12px  Figma 607:15056 */
  --fs-form-title: 1.9375rem; /* 31px  Bold, Figma 607:15060 */

  /* Fixed across breakpoints */
  --fs-table: 0.75rem; /* 12px */
  --fs-plan-label: 0.8125rem; /* 13px */
  --fs-plan-label-mobile: 0.5rem; /* 8px — under each plan, 563:6641 */
  --fs-feature: 0.75rem; /* 12px */
  --lh-feature: 15px;
  --fs-nearby-cat: 1.25rem; /* 20px Marcellus */
  --fs-nearby-item: 0.75rem; /* 12px */
  --fs-btn: 1rem; /* 16px */
  --fs-btn-sm: 0.875rem; /* 14px */
  --fs-field-label: 0.9375rem; /* 15px */
  --fs-consent: 0.6875rem; /* 11px */
  --fs-footer: 0.875rem; /* 14px */
  --fs-footer-sm: 0.75rem; /* 12px */
  --fs-copyright: 0.8125rem; /* 13px */

  /* --- Radii ------------------------------------------------------------ */
  --radius-pill: 100px;
  --radius-button: 25px;
  --radius-submit: 24px;
  --radius-field: 11px;
  --radius-panel: 10px;
  --radius-card: 16px;

  /* --- Elevation -------------------------------------------------------- */
  --shadow-slide: 0 4px 15px rgb(0 0 0 / 0.5);

  /* --- Layout ----------------------------------------------------------- */
  --page-max: 1440px;
  --content-max: 1360px;
  --gutter: 1rem;

  /* --- Motion ----------------------------------------------------------- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 240ms;
}

/* Tablet ------------------------------------------------------------------ */
@media (min-width: 48em) {
  :root {
    --fs-hero-title: 1.5rem; /* 24px */
    --lh-hero-title: 1.3;
    --fs-hero-sub: 1.375rem; /* 22px */
    --fs-stat-value: 1.5rem;
    --fs-stat-label: 1rem;
    --fs-section-title: 2.5rem;
    --lh-section-title: 1.1;
    --fs-lede: 1.0625rem;
    --fs-disclaimer: 0.875rem;
    --fs-unit-name: 1.25rem;
    --fs-address: 1.125rem;
    --gutter: 1.5rem;
  }
}

/* Desktop — matches the 1440px artboard exactly ---------------------------- */
@media (min-width: 80em) {
  :root {
    --fs-hero-title: 2.5rem; /* 40px  Marcellus */
    --lh-hero-title: 1.25;
    --fs-hero-sub: 2.25rem; /* 36px */
    --fs-stat-value: 2.5rem; /* 40px  Semibold */
    --fs-stat-label: 1.5rem; /* 24px  Satoshi */
    --fs-section-title: 3rem; /* 48px  Marcellus */
    --lh-section-title: 50px;
    --fs-lede: 1.25rem; /* 20px */
    --fs-disclaimer: 1rem; /* 16px */
    --fs-unit-name: 1.5rem; /* 24px  Semibold */
    --fs-table: 1rem; /* 16px  matches --fs-btn on the spec CTA */
    --fs-address: 1.25rem; /* 20px */
    --fs-form-title: 2rem; /* 32px  Bold */
    --gutter: 2.5rem; /* 40px page padding */
  }
}
