:root {
  color-scheme: light dark;
  --background: #cce8ff;
  --text: #072f55;
  --accent: #005cbd;
  --muted: #385d7c;
  --border: #91bfe4;
  --surface: #d4ecff;
  --button-text: #fff;
  --dialog-surface: #f4faff;
  --dialog-hover: #e6f1fa;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #00060b;
    --text: #d8edff;
    --accent: #33d1ff;
    --muted: #9cb7cc;
    --border: #164759;
    --surface: #040e17;
    --button-text: #00060b;
    --dialog-surface: #0c1924;
    --dialog-hover: #162b3a;
  }
}
* { box-sizing: border-box; }
body { margin: 0 auto; padding: 42px 0 24px; width: min(1320px, 84%); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.6; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.page-header { padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 15px; font-size: 27px; font-weight: 750; letter-spacing: -0.8px; text-decoration: none; }
.brand img { border-radius: 12px; }
main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 100px; padding: 60px 0 52px; }
h1 { overflow-wrap: anywhere; font-size: clamp(50px, 6.2vw, 98px); line-height: 1.03; letter-spacing: -3.5px; hyphens: auto; margin: 0 0 30px; font-weight: 800; }
.lead { font-size: 21px; line-height: 1.5; margin: 0; max-width: 530px; }
.app-store { display: inline-block; padding: 14px; margin: 14px 0 0 -14px; }
.app-store img { display: block; width: 162px; height: 54px; }
.app-features { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 12px 0 0; }
.speedometer { border: 1px solid var(--border); border-radius: 28px; background: var(--surface); padding: 34px 36px 24px; text-align: center; min-width: 0; }
h2 { font-size: 27px; letter-spacing: -0.8px; margin: 0; line-height: 1.25; }
.readout { margin: 20px 0 28px; color: var(--accent); }
#speed { display: block; font-size: clamp(85px, 10vw, 132px); font-weight: 650; line-height: 0.85; letter-spacing: -6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.unit { display: block; font-size: 26px; font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.stats > div { padding: 0 5px; min-width: 0; }
.stats > div + div { border-inline-start: 1px solid var(--border); }
dt { font-size: 16px; overflow-wrap: anywhere; }
dd { margin: 6px 0 0; font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
dd .unit { font-size: 18px; color: var(--muted); }
.reset { color: var(--accent); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; min-width: 80px; font-size: 14px; padding: 10px; margin: 13px 0 12px; }
.start { display: block; width: 100%; min-height: 54px; padding: 14px 12px; border: 0; border-radius: 15px; background: var(--accent); color: var(--button-text); font-size: 17px; font-weight: 650; }
.start:hover { filter: brightness(0.92); }
#status { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 18px 0 0; min-height: 45px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; border-top: 1px solid var(--border); padding-top: 26px; font-size: 14px; line-height: 1.5; color: var(--muted); }
footer p { margin: 0; }
footer a { text-underline-offset: 3px; }
.footer-links { display: flex; align-items: center; gap: 28px; margin-top: -12px; }
.footer-links > a { text-decoration: none; }
.footer-links > a:hover { text-decoration: underline; }
.language-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-inline-end: -10px; padding: 8px 10px; border: 0; border-radius: 20px; background: none; color: inherit; font-size: inherit; }
.language-toggle::after { content: ""; width: 5px; height: 5px; margin-inline-start: 2px; margin-top: -3px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
.language-toggle:hover { color: var(--text); background: var(--surface); }
.language-toggle svg { flex-shrink: 0; }
dialog { width: min(620px, calc(100% - 48px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--border); border-radius: 24px; background: var(--dialog-surface); color: var(--text); box-shadow: 0 24px 64px rgb(0 20 40 / 18%); }
dialog::backdrop { background: rgb(0 12 24 / 18%); backdrop-filter: blur(3px); }
.language-panel { padding: 24px; }
.language-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 10px 12px; border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
.language-header h2 { font-size: 20px; font-weight: 650; letter-spacing: -0.3px; }
.language-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.language-close:hover { background: var(--dialog-hover); color: var(--text); }
.language-list { display: grid; grid-auto-flow: column; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); gap: 4px 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.language-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; height: 100%; padding: 10px; border-radius: 10px; text-decoration: none; font-size: 15px; line-height: 1.5; }
.language-list svg { flex-shrink: 0; }
.language-list a[aria-current="page"] { background: var(--dialog-hover); color: var(--accent); font-weight: 600; }
.language-list a:hover { background: var(--dialog-hover); }
@media (max-width: 680px) {
  .footer-links { width: 100%; justify-content: space-between; margin-top: 0; }
  dialog { width: calc(100% - 24px); max-width: none; max-height: calc(100dvh - 24px - env(safe-area-inset-bottom)); margin: auto 12px max(12px, env(safe-area-inset-bottom)); }
  .language-panel { padding: 16px 16px 20px; }
  .language-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); gap: 2px 4px; }
  .language-list a { min-height: 44px; font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog[open], dialog[open]::backdrop { animation: language-enter 180ms ease-out; }
  @keyframes language-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
.trademarks { flex-basis: 100%; font-size: 12px; }
.trademarks summary { width: fit-content; cursor: pointer; padding: 12px 0; margin-top: -12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  body { width: calc(100% - 48px); padding-top: 26px; }
  main { gap: 40px; padding: 46px 0; }
  h1 { font-size: 58px; letter-spacing: -2.5px; }
  .lead { font-size: 18px; }
  .speedometer { padding: 28px 20px 20px; }
  h2 { font-size: 24px; }
  dt { font-size: 14px; }
}
@media (max-width: 680px) {
  .brand { font-size: 23px; }
  .brand img { width: 36px; height: 36px; border-radius: 9px; }
  .page-header { padding-bottom: 20px; }
  main { grid-template-columns: 1fr; gap: 32px; padding: 36px 0; }
  h1 { font-size: clamp(48px, 10vw, 64px); margin-bottom: 22px; }
  .lead { max-width: 480px; }
  .app-features { font-size: 14px; margin-top: 4px; }
  .speedometer { padding: 28px 20px 20px; }
  #speed { font-size: 124px; }
  footer { padding-top: 20px; gap: 12px; }
}

:lang(ar) h1, :lang(ur) h1, :lang(hi) h1, :lang(bn) h1 { letter-spacing: normal; line-height: 1.3; }
:lang(ar) h2, :lang(ur) h2 { letter-spacing: normal; }
.language-list a { overflow-wrap: anywhere; }

.footer-resources { display: flex; align-items: center; flex-wrap: wrap; flex-basis: 100%; gap: 0 20px; font-size: 12px; }
.footer-resources > a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-resources > a:hover { text-decoration: underline; }
.footer-resources .trademarks { flex-basis: auto; }
.footer-resources .trademarks[open] { flex-basis: 100%; }
.footer-resources .trademarks summary { min-height: 44px; padding: 13px 0; margin-top: 0; }
.document-page main { display: block; width: min(100%, 740px); margin-inline: auto; padding: 48px 0; }
.document-page h1, .support-page h1 { font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 24px; }
.document-meta, .eyebrow { color: var(--muted); font-size: 14px; }
.document-meta { margin: 0 0 28px; }
.document-copy { font-size: 17px; line-height: 1.65; }
.document-copy h2 { font-size: 22px; margin: 32px 0 12px; }
.document-copy p { margin: 0 0 16px; }
.eyebrow { margin: 0 0 16px; }
.support-contact { padding: 32px; border: 1px solid var(--border); border-radius: 28px; background: var(--surface); }
.support-contact h2 { font-size: 24px; }
.support-email { display: inline-block; padding: 12px 0; color: var(--accent); font-size: clamp(22px, 3vw, 30px); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.support-contact p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 8px 0 0; }
.support-guidance { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 24px; }
.support-page main { gap: 40px 64px; }
.support-guidance h2 { font-size: 22px; }
.support-guidance p { max-width: 740px; font-size: 17px; line-height: 1.6; margin: 12px 0 0; }
.language-dialog--short { width: min(400px, calc(100% - 48px)); }
.language-list--short { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
@media (max-width: 680px) {
  .document-page main { padding: 36px 0; }
  .support-contact { padding: 24px; }
  .language-dialog--short { width: calc(100% - 24px); max-width: 400px; margin-inline: auto; }
}
