/* TMail · tokens.css
   Token resmi FUSIONIFY UI (css/tokens.css + css/gaya.css "tenang").
   Jangan menulis warna hex baru di file lain; pakai variabel di bawah. */

@font-face { font-family: "Afacad Flux Fallback"; font-weight: 100 1000; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"); size-adjust: 83.76%; ascent-override: 119.39%; descent-override: 39.8%; line-gap-override: 0%; }
@font-face { font-family: "Sansation Fallback"; font-weight: 400; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 102.53%; ascent-override: 88.29%; descent-override: 20.86%; line-gap-override: 0%; }
@font-face { font-family: "Sansation Fallback"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"); size-adjust: 93.86%; ascent-override: 96.45%; descent-override: 22.79%; line-gap-override: 0%; }
@font-face { font-family: "Exo 2 Fallback"; font-weight: 100 900; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 103.93%; ascent-override: 96.12%; descent-override: 19.34%; line-gap-override: 0%; }

:root {
  /* Biru FUSIONIFY */
  --blue: #0d6cd7;
  --blue-deep: #0261cd;
  --blue-light: #539de9;

  /* Tinta dan latar */
  --ink: #0b0f1a;
  --ink-2: #3a4458;
  --ink-3: #566175;
  --surface: #eaf4ff;
  --paper: #f7fbff;
  --white: #ffffff;
  --line: #d3e4f7;
  --night: #071022;

  /* Chip status */
  --go: #157f3b;   --go-bg: #e3f6e9;
  --beta: #9a5b00; --beta-bg: #fff2d8;
  --plan: #0261cd; --plan-bg: #eef7ff;

  /* Huruf */
  --f-head: "Afacad Flux", "Afacad Flux Fallback", system-ui, sans-serif;
  --f-body: "Sansation", "Sansation Fallback", system-ui, sans-serif;
  --f-num: "Exo 2", "Exo 2 Fallback", system-ui, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Bentuk (gaya tenang) */
  --r-s: 10px;
  --r-m: 12px;
  --r-l: 16px;
  --r-pill: 999px;
  --edge-width: 1px;
  --touch-min: 44px;
  --gut: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --h-hero: clamp(40px, 5.4vw, 70px);
  --h-sec: clamp(30px, 3.8vw, 48px);
  --sec-y: clamp(64px, 8vw, 112px);

  /* Lapisan */
  --z-sticky: 30; --z-nav: 60; --z-dialog: 90; --z-toast: 320; --z-offline: 340;

  /* Durasi dan kurva */
  --dur-1: 0.2s; --dur-2: 0.25s; --dur-3: 0.3s; --dur-5: 0.5s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Skala huruf */
  --fs-label: 13px; --fs-kecil: 14px; --fs-teks: 17px; --fs-lead: 20px;
  --fs-judul-s: 24px; --fs-judul-m: 32px;

  /* Token tema */
  --card: #ffffff;
  --field: #ffffff;
  --surface-2: #dcecff;
  --edge: color-mix(in srgb, var(--ink) 26%, var(--card));
  --edge-shadow: var(--ink);
  --text-blue: #0d6cd7;
  --text-blue-deep: #0261cd;
  --inverse-bg: #0b0f1a;
  --inverse-fg: #ffffff;
  --inverse-accent: #8cc0ff;
  --nav-glass: rgba(255, 255, 255, 0.82);
  --hero-glow: #dcedff;
  --seal-tint: #d8eaff;
  --danger: #b4232c; --danger-bg: #fde8ea;
  --placeholder: #707a8c;

  /* Sama di kedua tema */
  --on-dark: #ffffff;
  --on-dark-2: #f2f8ff;
  --danger-fill: #c4323a;
  --warn-fill: #e8a33d;
  --online: #2fbf63;
  --night-ink: #dbe9fb;
  --night-ink-2: #9fb3cd;
  --night-ink-3: #8296b2;
  --night-line: #1d2b45;

  --shadow: 0 1px 0 rgba(13, 108, 215, 0.06), 0 12px 32px -14px rgba(11, 15, 26, 0.18);

  --seal-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M94.0 50.0L95.8 52.4L96.8 54.9L96.5 57.4L94.9 59.5L92.5 61.4L90.1 63.0L88.2 64.7L87.4 66.7L87.5 69.1L88.1 72.0L88.5 75.0L88.1 77.7L86.6 79.6L84.1 80.7L81.1 81.1L78.2 81.3L75.8 81.8L74.1 83.1L72.9 85.3L72.0 88.1L70.8 90.9L69.1 93.0L66.9 93.9L64.2 93.6L61.4 92.5L58.8 91.2L56.4 90.5L54.3 90.7L52.2 92.1L50.0 94.0L47.6 95.8L45.1 96.8L42.6 96.5L40.5 94.9L38.6 92.5L37.0 90.1L35.3 88.2L33.3 87.4L30.9 87.5L28.0 88.1L25.0 88.5L22.3 88.1L20.4 86.6L19.3 84.1L18.9 81.1L18.7 78.2L18.2 75.8L16.9 74.1L14.7 72.9L11.9 72.0L9.1 70.8L7.0 69.1L6.1 66.9L6.4 64.2L7.5 61.4L8.8 58.8L9.5 56.4L9.3 54.3L7.9 52.2L6.0 50.0L4.2 47.6L3.2 45.1L3.5 42.6L5.1 40.5L7.5 38.6L9.9 37.0L11.8 35.3L12.6 33.3L12.5 30.9L11.9 28.0L11.5 25.0L11.9 22.3L13.4 20.4L15.9 19.3L18.9 18.9L21.8 18.7L24.2 18.2L25.9 16.9L27.1 14.7L28.0 11.9L29.2 9.1L30.9 7.0L33.1 6.1L35.8 6.4L38.6 7.5L41.2 8.8L43.6 9.5L45.7 9.3L47.8 7.9L50.0 6.0L52.4 4.2L54.9 3.2L57.4 3.5L59.5 5.1L61.4 7.5L63.0 9.9L64.7 11.8L66.7 12.6L69.1 12.5L72.0 11.9L75.0 11.5L77.7 11.9L79.6 13.4L80.7 15.9L81.1 18.9L81.3 21.8L81.8 24.2L83.1 25.9L85.3 27.1L88.1 28.0L90.9 29.2L93.0 30.9L93.9 33.1L93.6 35.8L92.5 38.6L91.2 41.2L90.5 43.6L90.7 45.7L92.1 47.8Z'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* Mode gelap: dua blok wajib identik */
:root[data-theme="dark"] {
  --ink: #eaf3ff; --ink-2: #c3d4ea; --ink-3: #9db2cf;
  --paper: #071022; --surface: #0c1a33; --line: #1f3459; --white: #0f2040;
  --card: #10203f; --field: #0b1830; --surface-2: #17305a;
  --edge: #2e5592; --edge-shadow: #02060f;
  --text-blue: #8cc0ff; --text-blue-deep: #a9d0ff;
  --inverse-bg: #eaf3ff; --inverse-fg: #071022; --inverse-accent: #0261cd;
  --nav-glass: rgba(10, 22, 44, 0.82);
  --hero-glow: #0f2a55; --seal-tint: #15315c;
  --go: #7fe0a6; --go-bg: #0f3324; --beta: #ffd27a; --beta-bg: #3a2a08;
  --plan: #a9d0ff; --plan-bg: #10264a;
  --danger: #ff9ba1; --danger-bg: #3d1418;
  --placeholder: #8597b3; --online: #3fd277;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eaf3ff; --ink-2: #c3d4ea; --ink-3: #9db2cf;
    --paper: #071022; --surface: #0c1a33; --line: #1f3459; --white: #0f2040;
    --card: #10203f; --field: #0b1830; --surface-2: #17305a;
    --edge: #2e5592; --edge-shadow: #02060f;
    --text-blue: #8cc0ff; --text-blue-deep: #a9d0ff;
    --inverse-bg: #eaf3ff; --inverse-fg: #071022; --inverse-accent: #0261cd;
    --nav-glass: rgba(10, 22, 44, 0.82);
    --hero-glow: #0f2a55; --seal-tint: #15315c;
    --go: #7fe0a6; --go-bg: #0f3324; --beta: #ffd27a; --beta-bg: #3a2a08;
    --plan: #a9d0ff; --plan-bg: #10264a;
    --danger: #ff9ba1; --danger-bg: #3d1418;
    --placeholder: #8597b3; --online: #3fd277;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
