/* Semua nilai tampilan ada di sini. app.css cuma boleh pakai var(--...) dari file ini. */

/* Inter di-host sendiri biar tampil sama di HP & PC tanpa manggil Google Fonts. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format("woff2-variations");
  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: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format("woff2-variations");
  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;
}

:root {
  color-scheme: light dark;

  /* Palet sistem iOS; biru, hijau & merah digelapin biar teks kecil lolos WCAG AA (dicek 4.5:1+). */
  --color-bg: #f2f2f7;
  --color-surface: #ffffff;
  --color-text: #000000;
  --color-text-secondary: #6c6c70;
  --color-separator: #d1d1d6;
  --color-fill: #e3e3e8;
  --color-accent: #0062cc;
  --color-accent-fill: #0b64cc;
  --color-on-accent: #ffffff;
  --color-positive: #1f7a37;
  --color-negative: #c4001a;
  --color-bar: rgba(249, 249, 249, 0.86);
  --color-scrim: rgba(0, 0, 0, 0.4);
  --color-raised-shadow: rgba(0, 0, 0, 0.12);
  /* Sheet = satu lapis di atas halaman. Di mode gelap latarnya diangkat biar gak nyatu sama halaman #000. */
  --color-sheet: #f2f2f7;
  --color-sheet-card: #ffffff;
  --color-sheet-fill: #e3e3e8;
  /* Chip tenggat: teks abu gak lolos AA di latar fill, jadi chip pake teks utama / merah. */
  --color-chip: #ededf2;
  /* Pil aktif segmented: di gelap pake abu terangkat biar kebedain dari wadah #2c2c2e (teks putih 5.99:1). */
  --color-segment-active: #ffffff;
  --color-skeleton: #e3e3e8;
  --color-skeleton-shine: rgba(255, 255, 255, 0.6);

  --font-family: "Inter Variable", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --tracking-display: -0.02em;
  --tracking-title: -0.01em;
  --text-caption: 11px;
  --text-footnote: 13px;
  --text-callout: 14px;
  --text-subhead: 15px;
  --text-body: 17px;
  --text-title: 22px;
  --text-large-title: 34px;
  --text-hero: 44px;
  --text-hero-wide: 52px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --leading-tight: 1.1;
  --leading-body: 1.35;

  --space-1: 2px;
  --space-2: 4px;
  --space-3: 8px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 20px;
  --space-7: 24px;
  --space-8: 32px;
  --space-9: 48px;

  /* Skala rounder: tiap tingkat makin gede seiring ukuran wadah; kontrol interaktif pake round (pil). */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-round: 999px;

  --hairline: 0.5px;
  --focus-ring: 2px;
  --tap-min: 44px;
  --row-min: 48px;
  --button-h: 50px;
  --segment-h: 36px;
  --search-h: 40px;
  --tabbar-h: 56px;
  --icon-sm: 14px;
  --icon-segment: 15px;
  --icon-search: 18px;
  --icon-md: 24px;
  --progress-h: 4px;
  --content-max: 680px;
  --content-max-wide: 1040px;
  --login-max: 400px;
  --sheet-max: 480px;
  --sheet-max-h: 85dvh;
  --sr-only-size: 1px;
  --sk-hero-h: 220px;
  --sk-title-h: 12px;
  --sk-title-w: 40%;
  --segmented-max-wide: 440px;
  --tab-max: 160px;
  --tabbar-inset: var(--space-4);
  --tabbar-max: 420px;
  --shadow-raised: 0 1px 3px var(--color-raised-shadow);
  --bar-blur: saturate(180%) blur(20px);
  /* Gerak: cuma transform & opacity. "out" buat yang masuk/geser, "standard" buat tekan & hover,
     "pop" (sedikit lewat lalu balik) khusus angka & icon tab. */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-number: 400ms;
  --duration-enter: 500ms;
  --duration-shimmer: 1.4s;
  --stagger: 40ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-pop: cubic-bezier(0.2, 0.9, 0.3, 1.4);
  --rise: 12px;
  --press-scale: 0.98;
  --pop-scale: 1.12;
  --number-pop-scale: 1.04;
  --sheet-from-scale: 0.96;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #000000;
    --color-surface: #1c1c1e;
    --color-text: #ffffff;
    --color-text-secondary: #98989f;
    --color-separator: #38383a;
    --color-fill: #2c2c2e;
    --color-accent: #409cff;
    --color-accent-fill: #0b64cc;
    --color-positive: #32d74b;
    --color-negative: #ff6961;
    --color-bar: rgba(22, 22, 24, 0.86);
    --color-scrim: rgba(0, 0, 0, 0.6);
    --color-raised-shadow: rgba(0, 0, 0, 0.5);
    --color-sheet: #1c1c1e;
    --color-sheet-card: #2c2c2e;
    --color-sheet-fill: #3a3a3c;
    --color-chip: #2c2c2e;
    --color-segment-active: #636366;
    --color-skeleton: #1c1c1e;
    --color-skeleton-shine: rgba(255, 255, 255, 0.06);
  }
}

@media (min-width: 600px) {
  :root { --text-hero: var(--text-hero-wide); }
}

@media (min-width: 1024px) {
  :root { --tabbar-h: var(--tap-min); }
}
