/* Site stylesheet. No third-party requests: the brand font is self-hosted and every other
   script falls back to the system fonts. Logical properties keep the layout correct if a
   right-to-left language is ever added. Colors are the Dotflick tokens from
   brand/tokens/tokens.css (brand/cores.md, P3), with the same light, dark and high-contrast
   values as the app; contrast pairs are measured by site/test/contrast.ts. */
:root {
  --bg: #F8FAFE;              /* background */
  --surface: #FFFFFF;         /* surface */
  --text: #131B29;            /* textPrimary */
  --muted: #525B6C;           /* textSecondary */
  --link: #194CB1;            /* primaryText */
  --primary: #194CB1;         /* primary */
  --on-primary: #FFFFFF;      /* onPrimary */
  --accent: #D3ECFD;          /* accent: fill of the "what it does" card */
  --on-accent: #131B29;       /* onAccent */
  --border: #6D7B93;          /* border, for controls and frames that carry meaning */
  --hole: #41B0EB;            /* signatureHole: only the hole that jumps */
  --ice: #E4F2FF;             /* icon background (brand/GUIA.md, 4) */
  --grid: #194CB1;            /* icon grid */
  --pattern: url("/pattern-light.svg");
  --radius: 14px;
  /* Brand font Mitr SemiBold (brand/tipografia.md) for the name and headings in Latin and
     Thai. Body text uses the system stack, which on Apple devices is SF and is never hosted
     here; Japanese, Chinese and Korean always use the system fonts. */
  --brand: Mitr, "Mitr Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Thai", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0F16;
    --surface: #161B24;
    --text: #F0F2F6;
    --muted: #A9B2C1;
    --link: #8EC2FD;
    --primary: #8EC2FD;
    --on-primary: #0C0F16;
    --accent: #163F56;
    --on-accent: #F0F2F6;
    --border: #6D7B93;
    --hole: #5CBCF3;
    --pattern: url("/pattern-dark.svg");
  }
}
@media (prefers-contrast: more) {
  :root {
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --text: #000000;
    --muted: #2D3645;
    --link: #08348A;
    --primary: #08348A;
    --on-primary: #FFFFFF;
    --accent: #D9EFFD;
    --on-accent: #000000;
    --border: #3E4D69;
  }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #0C0F16;
    --text: #FFFFFF;
    --muted: #C7CEDB;
    --link: #B8D8FB;
    --primary: #B8D8FB;
    --on-primary: #000000;
    --accent: #113143;
    --on-accent: #FFFFFF;
    --border: #97A5BE;
  }
}
/* Self-hosted WOFF2 subsets made by site/build/fonts.py; the build rewrites these URLs to
   content-hashed names. */
@font-face {
  font-family: Mitr;
  src: url("/assets/fonts/mitr-latin.20a2071dbb.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Mitr;
  src: url("/assets/fonts/mitr-ext.f9b334c695.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-0130, U+0132-0151, U+0154-024F, U+0259, U+0300-0309, U+0323, U+0329, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Mitr;
  src: url("/assets/fonts/mitr-thai.b131b7e7ca.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* Local fallback sized like Mitr SemiBold (metrics printed by fonts.py), so the swap does not
   shift the layout. */
@font-face {
  font-family: "Mitr Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold");
  font-weight: 600;
  size-adjust: 105.94%;
  ascent-override: 108.55%;
  descent-override: 39.64%;
  line-gap-override: 0%;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}
:lang(th) body, body:lang(th) { line-height: 1.8; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
/* Type scale with at least 1.25 between levels (body 17 px). Headings in the brand font. */
h1, h2, h3, .value { font-family: var(--brand); font-weight: 600; line-height: 1.2; }
:lang(ja) :is(h1, h2, h3, .value), :lang(zh-Hans) :is(h1, h2, h3, .value), :lang(ko) :is(h1, h2, h3, .value) { font-family: var(--font); font-weight: 700; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
.skip {
  position: absolute;
  inset-inline-start: 0.5rem;
  inset-block-start: -4rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { inset-block-start: 0.5rem; }
.bar, main, .foot { max-inline-size: 68rem; margin-inline: auto; padding-inline: 1.25rem; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
/* The logo never flips; it only moves to the start edge. */
.brand { display: inline-flex; min-block-size: 44px; align-items: center; }
.brand img { display: block; }
.lang { position: relative; }
.lang summary { display: inline-flex; align-items: center; gap: 0.4rem; min-block-size: 44px; padding-inline: 0.75rem; cursor: pointer; color: var(--link); border: 1px solid var(--border); border-radius: 999px; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul {
  position: absolute;
  inset-inline-end: 0;
  z-index: 5;
  margin-block: 0.4rem 0;
  margin-inline: 0;
  padding: 0.4rem;
  list-style: none;
  min-inline-size: 14rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lang li a { display: block; padding: 0.5rem 0.75rem; min-block-size: 44px; border-radius: 8px; }
.lang a[aria-current] { font-weight: 700; }
main { padding-block: 1rem 3rem; }
/* Hero: the icon, the name and the value line on the start side; the real screen on the
   end side, on the "grade com um ponto fora" pattern. Stacked on small screens. Text stays
   aligned to the start edge. */
.hero { display: grid; gap: 2rem; align-items: center; padding-block: 1rem 2rem; }
@media (min-width: 52rem) { .hero { grid-template-columns: 1.1fr 1fr; } }
.icon-app { display: block; border-radius: 16px; }
.icon-app .ice { fill: var(--ice); }
.icon-app circle { fill: var(--grid); }
.icon-app .hole { fill: var(--hole); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 3.6rem); margin-block: 1rem 0; }
.value { font-size: clamp(1.4rem, 3.5vw, 1.8rem); color: var(--link); margin-block: 0.25rem 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-inline-size: 36rem; }
.soon { font-weight: 600; margin-block: 1.5rem 0; }
.badge { margin-block: 1.5rem 0; }
.badge a { display: inline-block; padding: 10px; }
.badge img { display: block; block-size: 40px; inline-size: auto; }
.stage { display: flex; justify-content: center; padding: 2rem 1rem; background: var(--pattern) center / 186px 372px repeat var(--ice); border-radius: 28px; }
@media (prefers-color-scheme: dark) { .stage { background-color: #0F1E3B; } }
/* Real screen in a neutral rounded frame. Not a drawn device: the official Apple bezel comes
   with the real captures in F7 (site/README.md). */
picture img { display: block; max-inline-size: 100%; block-size: auto; }
.stage img, .shot img { border: 1px solid var(--border); border-radius: 26px; }
.stage img { inline-size: 270px; }
.features > ul { list-style: none; margin: 0; padding: 0; }
.row { display: grid; gap: 1.25rem; align-items: center; padding-block: 1.75rem; }
.shot img { inline-size: 190px; margin-inline: auto; }
.copy h3 { margin-block: 0 0.5rem; }
.copy p { margin: 0; color: var(--muted); max-inline-size: 34rem; }
@media (min-width: 52rem) {
  .row { grid-template-columns: 16rem 1fr; gap: 3rem; }
  .row:nth-child(even) .shot { order: 2; }
  .row:nth-child(even) { grid-template-columns: 1fr 16rem; }
}
/* The honest limit: two plain blocks; only "what it does" sits on the accent fill. */
.limit { margin-block-start: 2rem; }
.pair { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .pair { grid-template-columns: 1fr 1fr; } }
.pair > div { padding: 0.25rem 1.25rem 0.75rem; border-radius: var(--radius); }
.does { background: var(--accent); color: var(--on-accent); }
.doesnt { border: 1px solid var(--border); }
.private { margin-block-start: 2.5rem; max-inline-size: 46rem; }
.checks { padding: 0; list-style: none; }
.checks li { position: relative; padding-inline-start: 1.6rem; margin-block: 0.5rem; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0.2rem; inset-block-start: 0.55em; inline-size: 0.6rem; block-size: 0.6rem; border-radius: 50%; background: var(--primary); }
.doc { max-inline-size: 46rem; }
.doc h2 { margin-block-start: 2rem; }
.legal-version, .legal-notice { color: var(--muted); font-size: 0.95rem; }
.langs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding: 0; list-style: none; }
.langs a { display: inline-block; min-block-size: 44px; line-height: 44px; }
.foot { padding-block: 1.5rem 2.5rem; border-block-start: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }
.links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; padding: 0; margin-block: 0 0.75rem; list-style: none; }
.links a { display: inline-block; min-block-size: 44px; line-height: 44px; }
.org { margin: 0; }
.org a { display: inline-block; min-block-size: 44px; line-height: 44px; }
/* The single orchestrated moment (brand/movimento.md, token "pop"): on load the top right
   hole of the icon leaves the grid diagonally, 112 units up and to the right, and turns sky
   blue, once, 450 ms. Only when the visitor has not asked for reduced motion; otherwise the
   icon simply stands still in its final state. */
@media (prefers-reduced-motion: no-preference) {
  .icon-app .hole { animation: jump 0.45s cubic-bezier(0.3, 1.15, 0.45, 1) 0.3s both; }
  @keyframes jump { from { transform: translate(-112px, 112px); fill: var(--grid); } }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
