/* Copied from design/v8-glass by site/scripts/sync_v8.py: edit it there. */
/* OrroFi Glass v8 — design tokens. Dark only (owner's rule): there is no light theme and no theme switch.
   Source of truth for the app interface v8 (iOS SwiftUI, Android Compose, the web showcase).
   tokens.json is generated from this file: python3 design/v8-glass/build_tokens.py.

   White-label: every operator colour, the logo and the name live in --brand-* only. An operator build replaces
   that block and nothing else (see brands/ghofi.css). Everything below --brand-* derives from it.
   Gold is the accent of the main action only: one Primary button per screen. Nothing else is gold. */

:root {
  /* ---------- Brand (white-label: the only block an operator replaces) ---------- */
  --brand-name: "OrroFi";
  --brand-logo: url("assets/logo/orrofi-lockup.svg");   /* relative to the page (read by kit.js) */
  --brand-app-icon: url("assets/logo/app-icon.png");   /* notifications, lock screen (relative to the page) */
  --brand-logo-w: 104px;            /* logo box in the brand row, height 40 (aspect of the file) */
  --brand-tech-line: "";            /* operator builds: «con tecnología OrroFi»; OrroFi itself: none */
  --brand-bg: #0A0E14;              /* base of every screen */
  --brand-accent: #E2BC62;          /* main action fill (gold of orrofi.com) */
  --brand-accent-pressed: #C99A3E;
  --brand-accent-highlight: #F6DC96; /* top light of the primary button */
  --brand-on-accent: #0D1526;       /* text and icons on the accent: 9.9:1 */
  --brand-blob-1: #E2BC62;          /* live background under the glass: three colour fields */
  --brand-blob-2: #2B4FA0;
  --brand-blob-3: #8A6A24;
  --brand-chart: #9CBDFF;           /* data: lines, rings, bars (never the accent) */
  --brand-chart-2: #E9EEF8;

  /* ---------- Neutrals and roles (dark) ---------- */
  --color-bg: var(--brand-bg);
  --color-text: #F6F4EE;            /* on the darkest glass over the brightest blob: ≥ 12:1 (README › Contrast) */
  --color-text-2: #D3DAE8;          /* secondary text: ≥ 9:1 */
  --color-muted: #AEB8CC;           /* captions, placeholders: ≥ 6.4:1 */
  --color-separator: rgb(255 255 255 / 0.09);
  --color-track: rgb(255 255 255 / 0.12);
  --color-ok: #74D99F;
  --color-warn: #FFAE6B;
  --color-error: #FF8B91;
  --color-info: #9CBDFF;
  --color-switch-on: #74D99F;       /* system switch green, not the accent */
  --color-scrim: rgb(5 7 10 / 0.56);

  /* ---------- Glass: three materials ---------- */
  /* fill = dark tint so text keeps AA over any blob; highlight = top light of the 1 px rim; blur + saturate. */
  --glass-thin-fill: rgb(22 28 40 / 0.40);
  --glass-thin-blur: blur(20px) saturate(160%);
  --glass-regular-fill: rgb(20 26 38 / 0.55);
  --glass-regular-blur: blur(30px) saturate(180%);
  --glass-thick-fill: rgb(16 21 31 / 0.72);
  --glass-thick-blur: blur(40px) saturate(200%);
  --glass-lift: rgb(255 255 255 / 0.06);           /* a selected thing on glass: capsule, segment thumb */
  --glass-lift-strong: rgb(255 255 255 / 0.14);
  --glass-rim-top: rgb(255 255 255 / 0.30);       /* 1 px rim: bright at the top edge … */
  --glass-rim-bottom: rgb(255 255 255 / 0.05);    /* … fading to the bottom */
  --glass-inner-highlight: inset 0 1px 0 rgb(255 255 255 / 0.10);
  /* noise: white grain, alpha = 0.09 × noise (≈ 4.5 % on average), a background layer of every glass */
  --glass-noise: url("assets/noise.svg");   /* a file, not a data: URI (the site's CSP: img-src 'self') */

  /* ---------- Depth ---------- */
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.28), 0 8px 24px rgb(0 0 0 / 0.24);      /* cards, rows on the page */
  --shadow-2: 0 2px 8px rgb(0 0 0 / 0.32), 0 20px 48px rgb(0 0 0 / 0.36);     /* floating: tab bar, toast, sheet */
  --shadow-accent: 0 8px 24px color-mix(in srgb, var(--brand-accent) 28%, transparent);                        /* primary button only */

  /* ---------- Grid: 8 pt with a 4 pt half-step ---------- */
  --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;
  --gutter: 20px;                  /* iOS screen margin */
  --gutter-android: 16px;
  --stack-gap: 16px;               /* between blocks of a screen */
  --card-pad: 16px;
  --hero-pad: 20px;

  /* ---------- Radii (continuous corners on iOS: RoundedRectangle(style: .continuous)) ---------- */
  --radius-sm: 12px;               /* icon tiles, OTP cells, chips' inner */
  --radius-md: 16px;               /* buttons, fields */
  --radius-lg: 20px;               /* cards, list groups, chat bubbles */
  --radius-xl: 28px;               /* hero card, bottom sheet, tab bar */
  --radius-full: 999px;            /* capsules: tab capsule, chips, badges */

  /* ---------- Type (Inter on the web and on Android — the Android app repeats the frames pixel for pixel; SF Pro on iOS) ---------- */
  /* --dt = Dynamic Type scale: 1 = Large (default), 1.118 = XL (body 19), checked in README › Dynamic Type. */
  --dt: 1;
  --font: "Inter", "SF Pro Text", system-ui, -apple-system, sans-serif;
  --type-hero: 700 calc(56px * var(--dt)) / calc(60px * var(--dt)) var(--font);
  --type-large-title: 700 calc(34px * var(--dt)) / calc(41px * var(--dt)) var(--font);
  --type-title-1: 700 calc(28px * var(--dt)) / calc(34px * var(--dt)) var(--font);
  --type-title-2: 700 calc(22px * var(--dt)) / calc(28px * var(--dt)) var(--font);
  --type-title-3: 600 calc(20px * var(--dt)) / calc(25px * var(--dt)) var(--font);
  --type-headline: 600 calc(17px * var(--dt)) / calc(22px * var(--dt)) var(--font);
  --type-body: 400 calc(17px * var(--dt)) / calc(22px * var(--dt)) var(--font);
  --type-callout: 400 calc(16px * var(--dt)) / calc(21px * var(--dt)) var(--font);
  --type-subhead: 400 calc(15px * var(--dt)) / calc(20px * var(--dt)) var(--font);
  --type-footnote: 400 calc(13px * var(--dt)) / calc(18px * var(--dt)) var(--font);
  --type-tab: 600 calc(10px * var(--dt)) / calc(12px * var(--dt)) var(--font);   /* system tab bar label only (iOS 10 pt) */
  --type-caption: 500 calc(12px * var(--dt)) / calc(16px * var(--dt)) var(--font);
  --tracking-tight: -0.02em;       /* hero, large title */
  --tracking-caps: 0.06em;         /* overlines in caption caps */

  /* ---------- Sizes ---------- */
  --hit: 44px;                     /* minimum tap target (Android 48dp: --hit-android) */
  --hit-android: 48px;
  --control-h: 52px;               /* buttons, fields */
  --control-h-sm: 36px;            /* small buttons and chips (hit area extended to 44) */
  --row-h: 52px;
  --row-h-2: 64px;                 /* row with a subtitle */
  --tile: 36px;                    /* icon tile in rows */
  --quick: 56px;                   /* round quick action */
  --tabbar-h: 64px;
  --navbar-h: 44px;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;

  /* ---------- Motion (spring = response / damping as in SwiftUI .spring) ---------- */
  --motion-fast: 160ms;            /* crossfades, press */
  --motion-base: 280ms;            /* push, sheet, title collapse */
  --motion-slow: 420ms;            /* hero number, chart draw-in */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: linear(0, 0.157, 0.494, 0.81, 1.006, 1.079, 1.074, 1.04, 1.012, 0.998, 0.995, 0.998, 1);  /* response 0.35, damping 0.8 */
  --scale-pressed: 0.96;
  --shimmer-period: 1400ms;
}
