/* WEB_BASE_V1 - the app's type, cards and buttons on the web. Colours only via tokens.css (from AppPalette).
   Fonts as APP_FONT_V2: Exo 2 for Latin and digits; Burmese in Noto Sans Myanmar one weight lighter
   (it carries more ink); letter spacing 0 for Burmese (TRACKING_OFF_MY_V1). */

@font-face { font-family: "Exo 2"; font-weight: 400; font-display: swap; src: url(../assets/fonts/exo-2-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 500; font-display: swap; src: url(../assets/fonts/exo-2-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 600; font-display: swap; src: url(../assets/fonts/exo-2-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 700; font-display: swap; src: url(../assets/fonts/exo-2-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 800; font-display: swap; src: url(../assets/fonts/exo-2-latin-800-normal.woff2) format("woff2"); }
/* "Noto Sans Myanmar VP": the app's weight map (800 -> 700, 600/700 -> 500, 500 -> 400), Myanmar block only */
@font-face { font-family: "Noto Sans Myanmar VP"; font-weight: 400; font-display: swap; unicode-range: U+1000-109F, U+A9E0-A9FF, U+AA60-AA7F, U+200C-200D, U+25CC; src: url(../assets/fonts/noto-sans-myanmar-myanmar-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Myanmar VP"; font-weight: 500; font-display: swap; unicode-range: U+1000-109F, U+A9E0-A9FF, U+AA60-AA7F, U+200C-200D, U+25CC; src: url(../assets/fonts/noto-sans-myanmar-myanmar-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Myanmar VP"; font-weight: 600; font-display: swap; unicode-range: U+1000-109F, U+A9E0-A9FF, U+AA60-AA7F, U+200C-200D, U+25CC; src: url(../assets/fonts/noto-sans-myanmar-myanmar-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Myanmar VP"; font-weight: 700; font-display: swap; unicode-range: U+1000-109F, U+A9E0-A9FF, U+AA60-AA7F, U+200C-200D, U+25CC; src: url(../assets/fonts/noto-sans-myanmar-myanmar-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Myanmar VP"; font-weight: 800; font-display: swap; unicode-range: U+1000-109F, U+A9E0-A9FF, U+AA60-AA7F, U+200C-200D, U+25CC; src: url(../assets/fonts/noto-sans-myanmar-myanmar-700-normal.woff2) format("woff2"); }

:root {
  --font: "Exo 2", "Noto Sans Myanmar VP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --radius-sm: 14px;
  --pill: 999px;
  --gutter: 16px;
  --max: 1120px;
  --t-state: 300ms;      /* the app's state changes */
  --t-breathe: 1500ms;   /* power button breathing */
  --t-stagger: 160ms;    /* cards in: 560 ms + 160 ms each */
  --t-enter: 560ms;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--text); background: linear-gradient(var(--page-top), var(--page-bottom)) fixed, var(--page);
  -webkit-font-smoothing: antialiased; transition: background-color var(--t-state), color var(--t-state);
}
:lang(my), [lang="my"] { letter-spacing: 0 !important; line-height: 1.8; }
/* Burmese glyphs read about one size larger than Exo 2 at the same px: headings one step down, taller lines */
:lang(my) h1 { font-size: clamp(28px, 4.8vw, 48px); line-height: 1.45; }
:lang(my) h2 { font-size: clamp(22px, 3.2vw, 32px); line-height: 1.5; }
:lang(my) h3 { font-size: 18px; line-height: 1.6; }
:lang(my) .eyebrow { text-transform: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(26px, 4vw, 40px); }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-2); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.muted { color: var(--text-3); }
.accent { color: var(--accent); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 72px 0; }

/* the app's Light card: white, hairline border, one soft shadow, radius 20; Dark: glass */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--card-shadow); padding: 24px;
}
[data-theme="dark"] .card { background: rgba(255,255,255,0.04); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .card { background: rgba(255,255,255,0.04); backdrop-filter: blur(18px); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 0 24px; border-radius: var(--pill); border: 1px solid transparent; font: inherit; font-weight: 700;
  cursor: pointer; transition: transform var(--t-state) var(--ease), background-color var(--t-state), box-shadow var(--t-state);
  text-decoration: none !important;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent-ink); color: var(--on-accent); box-shadow: 0 6px 20px rgba(21,128,61,.28); } /* the app's Renew / Server green (home_screen V55: accentInk) */
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--pill);
  font-size: 13px; font-weight: 600; background: var(--accent-wash); color: var(--accent-ink); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.ink { background: var(--ink); color: var(--text-on-ink); border-radius: var(--radius); }
.ink p { color: rgba(242,251,245,.8); }

/* power button (the app's START / STOP) with its 1.5 s breathing glow */
.power {
  --size: 168px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, var(--success), var(--accent-ink) 70%);
  color: #fff; box-shadow: 0 0 0 10px var(--accent-wash), 0 18px 40px rgba(34,197,94,.35);
  animation: breathe var(--t-breathe) ease-in-out infinite alternate;
}
.power svg { width: 44%; height: 44%; }
@keyframes breathe {
  from { box-shadow: 0 0 0 8px var(--accent-wash), 0 14px 32px rgba(34,197,94,.28); }
  to   { box-shadow: 0 0 0 18px var(--accent-wash), 0 22px 48px rgba(34,197,94,.42); }
}

/* cards entering as the app's home: 560 ms + 160 ms per card */
.enter { opacity: 0; transform: translateY(14px); }
.enter.in { opacity: 1; transform: none; transition: opacity var(--t-enter) var(--ease), transform var(--t-enter) var(--ease);
  transition-delay: calc(var(--i, 0) * var(--t-stagger)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .enter { opacity: 1; transform: none; }
}
