/* Tem Compra: design tokens, version 2.
   Source: the founder's house style ("calm, people-first"), in design/house-style/. Light, neutral, one blue accent.
   Version 2 keeps that base and makes it friendlier: larger radii, a brighter accent, one soft shadow level for
   featured cards, one dark surface for emphasis, a display size for the landing page, and a full motion scale.
   Rule: components use these variables. They never hard-code a colour, a size, a space, a time or a curve.

   Breakpoints (CSS variables do not work inside @media, so the numbers are written out):
     base      0 to 719 px    phone. Design target: 390 px.
     sm      720 px and up    large phone, small tablet. Tables stop stacking (the spec: stacked cards under 720 px).
     md      960 px and up    desktop layout. Design target: 1280 px.
     lg     1200 px and up    the container stops growing (1120 px).
   Styles are mobile-first: write the phone layout, then add @media (min-width: ...). */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  /* ---------- Colour: surfaces ---------- */
  --color-page: #F4F5F7;            /* page background */
  --color-surface: #FFFFFF;         /* cards, panels, header */
  --color-surface-subtle: #F8F9FB;  /* group headers inside a card, inset blocks */
  --color-surface-hover: #FAFBFC;   /* row hover */
  --color-ink-surface: #0E1530;     /* the one dark surface: the fact band, the closing call to action, the toast */
  --color-ink-surface-raised: #1A2347; /* a field or a card on the dark surface */
  --color-ink-border: #2B3560;      /* a border on the dark surface */

  /* ---------- Colour: borders ---------- */
  --color-border: #E3E6EB;          /* cards, header, footer */
  --color-border-row: #ECEEF1;      /* dividers between rows */
  --color-border-control: #CDD2DA;  /* secondary buttons, chips with an outline */
  --color-border-field: #8B93A1;    /* text fields, checkboxes, radios: 3:1 on white */

  /* ---------- Colour: text (never lighter than --color-text-muted) ---------- */
  --color-text: #14171F;            /* primary */
  --color-text-strong: #3A4250;     /* strong secondary */
  --color-text-secondary: #4A5261;  /* secondary */
  --color-text-muted: #5A6372;      /* ids, icons, help text */
  --color-text-on-accent: #FFFFFF;
  --color-text-on-ink: #FFFFFF;     /* primary text on the dark surface */
  --color-text-on-ink-muted: #C7CCDA; /* secondary text on the dark surface: 11:1 */

  /* ---------- Colour: the one accent ---------- */
  --color-accent: #2456F0;          /* primary buttons, links, selection: 5.7:1 on white */
  --color-accent-hover: #1B43C8;
  --color-accent-tint: #EEF2FF;     /* price line, selected chip, "new" */
  --color-accent-tint-border: #C9D6FF;
  --color-accent-on-tint: #1E3FAE;  /* text on the tint: 7.9:1 */
  --color-accent-on-ink: #9DB8FF;   /* numbers and links on the dark surface: 9:1 */
  --color-accent-glow: rgba(36, 86, 240, 0.28); /* the shadow under a primary button, the radar rings */

  /* ---------- Colour: meaning (only for meaning, never for decoration) ---------- */
  --color-success: #067647;
  --color-success-bg: #ECFDF3;
  --color-success-border: #ABEFC6;
  --color-success-bar: #12B76A;
  --color-danger: #B42318;
  --color-danger-bg: #FEF3F2;
  --color-danger-border: #FECDCA;
  --color-danger-bar: #D92D20;
  --color-warning: #B54708;
  --color-warning-bg: #FFFAEB;
  --color-warning-border: #FEDF89;
  --color-neutral: #3A4250;         /* neutral pill text */
  --color-neutral-bg: #E8EAEE;      /* neutral pill, avatar */
  --color-neutral-bar: #D5D9E0;     /* empty bar, skeleton */
  --color-ink: #14171F;             /* the mark, the selected filter */
  --color-scrim: rgba(14, 21, 48, 0.55);

  /* ---------- Type ---------- */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* size / line-height pairs. Seven sizes. The seventh (3xl) is for the landing hero and the big price only. */
  --text-xs: 13px;    --leading-xs: 20px;   /* chips, eyebrow, legal lines */
  --text-sm: 14px;    --leading-sm: 20px;   /* meta lines, table cells, help text */
  --text-md: 16px;    --leading-md: 24px;   /* body, inputs, buttons */
  --text-lg: 20px;    --leading-lg: 28px;   /* section title, lead paragraph on desktop */
  --text-xl: 28px;    --leading-xl: 34px;   /* page title; hero title on a phone */
  --text-2xl: 36px;   --leading-2xl: 42px;  /* block title on desktop, the plan price */
  --text-3xl: 52px;   --leading-3xl: 56px;  /* hero title on desktop only */

  --tracking-tight: -0.012em;       /* page title */
  --tracking-tighter: -0.025em;     /* hero title, big numbers */
  --tracking-wide: 0.06em;          /* eyebrow, uppercase */

  /* ---------- Space: 4 px grid ---------- */
  --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;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ---------- Shape ---------- */
  --radius-xs: 6px;                 /* checkbox, small bars, focus ring */
  --radius-sm: 10px;                /* buttons, inputs, inset blocks */
  --radius-md: 16px;                /* cards */
  --radius-lg: 24px;                /* hero panel, dark band card, bottom sheet */
  --radius-full: 999px;             /* chips, pills, avatars */

  /* ---------- Shadow: a list card has none. A featured card has one soft level. Things that float have the overlay. ---------- */
  --shadow-none: none;
  --shadow-raised: 0 1px 2px rgba(14, 21, 48, 0.04), 0 6px 20px -6px rgba(14, 21, 48, 0.10);   /* the hero example, the plan card, the "Precisa de você" card */
  --shadow-lift: 0 2px 4px rgba(14, 21, 48, 0.05), 0 14px 32px -10px rgba(14, 21, 48, 0.16);   /* a raised card under the pointer */
  --shadow-overlay: 0 2px 6px rgba(14, 21, 48, 0.08), 0 20px 48px -12px rgba(14, 21, 48, 0.24); /* menu, dialog, toast, cookie notice */
  --shadow-accent: 0 1px 2px rgba(14, 21, 48, 0.10), 0 6px 16px -6px var(--color-accent-glow); /* the primary button */
  --focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px #2456F0;

  /* ---------- Sizes ---------- */
  --control-h: 44px;                /* buttons, inputs, selects: the tap target */
  --control-h-sm: 36px;             /* small buttons, desktop only (44 px on phones) */
  --control-h-lg: 52px;             /* the one main action of a page on a phone */
  --chip-h: 28px;
  --header-h: 60px;
  --container: 1120px;              /* page content */
  --container-narrow: 720px;        /* text pages, forms */
  --container-form: 440px;          /* login, signup */
  --gutter: 20px;                   /* page side padding on a phone */
  --gutter-md: 40px;                /* page side padding from 960 px */

  /* ---------- Motion (the full rules: design/MOTION.md) ---------- */
  --duration-instant: 90ms;         /* press, colour change under the finger */
  --duration-fast: 150ms;           /* hover, focus ring, checkbox, chip */
  --duration-base: 240ms;           /* dropdown, accordion, banner, tab line, toast */
  --duration-slow: 400ms;           /* dialog, bottom sheet, page entrance, success mark */
  --duration-slower: 700ms;         /* the late entrance of the hero picture */
  --duration-ambient: 2400ms;       /* loops that say "live" or "waiting": the radar dot, the skeleton */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);        /* things that enter or answer the person: the default */
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);         /* things that leave */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);     /* things that move from one place to another on screen */
  --ease-spring: linear(0, 0.36 9%, 0.72 18%, 0.94 27%, 1.06 36%, 1.09 45%, 1.06 55%, 1.02 66%, 1 78%, 1);  /* small parts that pop: switch knob, check mark, chip */
  --move-xs: 2px;                   /* hover lift */
  --move-sm: 8px;                   /* an entrance inside a card */
  --move-md: 16px;                  /* an entrance of a block */
  --move-lg: 32px;                  /* a sheet or a toast from the edge */
  --stagger: 60ms;                  /* the delay between two parts that enter one after the other */

  /* ---------- Layers ---------- */
  --z-header: 100;
  --z-dropdown: 200;
  --z-banner: 300;                  /* cookie notice */
  --z-dialog: 400;
  --z-toast: 500;
}
