/* Geist — © 2023 Vercel, in collaboration with basement.studio. SIL Open Font License 1.1;
   full text in assets/geist-latin-OFL.txt. Self-hosted variable woff2, Latin subset: the
   wght axis is continuous 100–900, so the 550 and 650 below are real instances, not synthesis. */
@font-face {
  font-family: Geist;
  src: url("./assets/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+2074, U+20A9, U+20AC, U+20B1, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --navy: #152b35;
  /* Text ramp, brightest first. Ratios are against navy / the surface;
     QA.md's recorded floors for those grounds are 6.99 and 6.63. */
  --paper: #f4f8f8;  /* 13.74 / 13.03 - headings, hover and active states */
  --soft: #d2dcdf;   /* 10.53 /  9.98 - script names */
  --muted: #afc0c5;  /*  7.82 /  7.41 - body copy */
  --faint: #a6b8be;  /*  7.15 /  6.78 - eyebrows, indices */
  --teal: #57c4b8;   /*  6.99 /  6.63 - CTA, the mark, the focus ring */
  --teal-hover: #79d3c9;  /* lifted teal for hover; the base teal returns on :active */
  --line: #344b55;
  --surface: #0f1e26;
  /* 8pt spacing scale. The name is the value in px at the default 16px root;
     the values stay in rem so spacing keeps scaling with text size. */
  --space-4: .25rem;    --space-40: 2.5rem;
  --space-8: .5rem;     --space-48: 3rem;
  --space-12: .75rem;   --space-56: 3.5rem;
  --space-16: 1rem;     --space-64: 4rem;
  --space-20: 1.25rem;  --space-72: 4.5rem;
  --space-24: 1.5rem;   --space-80: 5rem;
  --space-32: 2rem;     --space-88: 5.5rem;
  --space-96: 6rem;     --space-104: 6.5rem;
  --radius: 4px;
  --border: 1px solid var(--line);
  --page-width: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: Geist, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: var(--paper);
  background: var(--navy);
  line-height: 1.6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--space-32); }
body { margin: 0; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; border-radius: var(--radius); }
.shell { width: min(var(--page-width), calc(100% - var(--space-96))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 5; padding: var(--space-12) var(--space-16); background: var(--paper); color: var(--navy); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 106px; display: flex; align-items: center; gap: var(--space-48); border-bottom: var(--border); }
.brand { display: block; margin-right: auto; flex: 0 0 98px; }
/* The lockup is vector and already drawn in light ink, so it needs no filter or blend. */
.brand svg { display: block; width: 98px; height: auto; }
.site-header nav { display: flex; gap: var(--space-32); font-size: .875rem; font-weight: 500; color: var(--muted); }
.site-header nav a { min-height: 44px; display: flex; align-items: center; position: relative; }
.site-header nav a::after { content: ""; position: absolute; bottom: 5px; left: 0; width: 100%; height: 1px; background: var(--paper); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { transform: scaleX(1); }
.site-header nav a:hover, .site-footer a:hover { color: var(--paper); }
.site-header nav a:active, .site-footer a:active { color: var(--teal); }
.site-header nav a:active::after { transform: scaleX(1); }
.language-switch { display: flex; gap: var(--space-4); align-items: center; font-size: .875rem; }
.language-switch > span { color: var(--line); }
.language-switch button { min-width: 44px; min-height: 44px; padding: var(--space-8); border: 0; background: none; color: var(--muted); font-size: .875rem; }
.language-switch button[aria-pressed="true"] { color: var(--paper); font-weight: 650; text-decoration: underline; text-underline-offset: 6px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: var(--space-48); align-items: center; padding-block: var(--space-80) var(--space-104); }
.eyebrow { font-size: .8125rem; font-weight: 550; letter-spacing: .15em; line-height: 1.5; color: var(--faint); }
.hero .eyebrow { margin-bottom: var(--space-32); }
h1 { font-size: clamp(3.5rem, 5.7vw, 5rem); letter-spacing: -.025em; line-height: 1.08; font-weight: 550; }
h1 span { display: block; }
.hero-description { max-width: 27rem; margin-top: var(--space-24); font-size: 1.0625rem; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-12); min-height: 54px; padding: var(--space-12) var(--space-20); border: 1px solid transparent; border-radius: var(--radius); font-size: .9375rem; font-weight: 600; line-height: 1.45; transition: background-color 180ms ease; }
.primary-button { background: var(--teal); color: var(--navy); }
.primary-button:hover { background: var(--teal-hover); }
.primary-button:active { background: var(--teal); transform: translateY(1px); }
.button:active { transform: translateY(1px); }
.hero .button { margin-top: var(--space-32); }
.button-arrow { flex: none; }
.hero-note { font-size: .8125rem; color: var(--muted); margin-top: var(--space-12); }
.script-labels { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-16); font-size: .8125rem; color: var(--muted); margin-top: var(--space-56); }
.label-divider { width: 26px; height: 1px; background: var(--line); }
.hero-visual { position: relative; isolation: isolate; display: grid; place-items: center; }
/* Real dark-theme capture, framed as the device it runs on. */
.hero-device { position: relative; z-index: 1; margin: 0; width: clamp(210px, 52%, 268px); padding: 6px; border: var(--border);
  border-radius: 30px; background: linear-gradient(150deg, #2d4652, #14242c 42%, #0c171d);
  box-shadow: 0 32px 70px -24px rgba(0, 0, 0, .75); }
/* The capture runs from the status bar down to the keyboard (the light gesture strip is cropped).
   The markup width/height and this ratio both describe that 1080x2274 crop. */
.hero-device img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 2274; border-radius: 26px; }
.flow-lines { position: absolute; width: 115%; height: auto; bottom: -8%; left: -7.5%; overflow: hidden; pointer-events: none; z-index: 2; }
.flow-lines path { stroke: var(--teal); stroke-width: 1; opacity: .18; vector-effect: non-scaling-stroke; }
.flow-lines path:nth-child(2) { opacity: .11; }
.flow-lines path:nth-child(3) { opacity: .07; }
.keyboard-section { border-top: var(--border); padding-block: var(--space-88) var(--space-96); }
/* 12 columns: the heading takes 5, the supporting line 4, stepped down rather than
   bottom-aligned so it reads as a follow-on instead of an orphan. */
.section-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-32); margin-bottom: var(--space-56); }
.section-intro > div { grid-column: 1 / span 5; }
.section-intro h2 { margin-top: var(--space-20); }
.section-intro > p { grid-column: 7 / span 4; margin-top: var(--space-96); color: var(--muted); }
.script-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-48); }
.script-card { border-top: var(--border); display: flex; flex-direction: column; }
.script-copy { padding: var(--space-24) 0 var(--space-32); flex: 1; }
.small-label { color: var(--soft); font-size: .8125rem; font-weight: 500; margin-bottom: var(--space-16); }
.script-copy h3 { margin-bottom: var(--space-16); }
.script-copy > p:last-child { color: var(--muted); font-size: 1rem; max-width: 28rem; }
/* Both captures are the dark keyboard, cropped to its own panel and bottom-anchored,
   so one rule frames either script: same box, same scale, keys aligned to the baseline. */
/* Each panel is shown whole: the two captures now start at the same options row, and their
   heights differ only because Baybayin has one row more. No cropping, so no clipped keys. */
.keyboard-detail { overflow: hidden; padding: var(--space-8); border: var(--border); border-radius: var(--radius); background: var(--surface); }
.keyboard-detail img { display: block; width: 100%; height: auto; border-radius: 2px; }
.detail-caption { font-size: .8125rem; color: var(--muted); margin-top: var(--space-16); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-40); margin-top: var(--space-72); }
.feature-grid article { border-top: var(--border); padding-top: var(--space-24); }
.feature-grid h3 { font-size: 1.2rem; letter-spacing: -.025em; margin-bottom: var(--space-12); }
.feature-grid p { color: var(--muted); font-size: .9375rem; }
.testing-section { background: var(--surface); border-block: var(--border); padding-block: var(--space-88); }
.testing-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-96); align-items: center; }
.testing-copy h2 { margin-top: var(--space-24); max-width: 26rem; }
.testing-copy > p:not(.eyebrow) { margin-top: var(--space-24); color: var(--muted); max-width: 27rem; }
.testing-copy .testing-limit { font-size: .875rem; padding-top: var(--space-24); border-top: var(--border); }
.form-card { padding: 0 0 0 var(--space-40); border-left: var(--border); }
.form-card h3 { margin-bottom: var(--space-16); }
.form-card > p { font-size: .9375rem; color: var(--muted); }
.form-card .button { margin-top: var(--space-20); }
.site-footer { padding-block: var(--space-40); display: flex; align-items: center; justify-content: space-between; gap: var(--space-32); color: var(--muted); font-size: .8125rem; }
.footer-brand svg { display: block; width: 36px; height: auto; }
.footer-brand p { margin-top: var(--space-8); }
.site-footer a { display: inline-flex; gap: var(--space-8); align-items: center; min-height: 44px; }
.footer-brand p a { display: inline; min-height: 0; color: var(--soft); transition: color 180ms ease; }
.footer-brand p a:hover, .footer-brand p a:focus-visible, .footer-brand p a:active { color: var(--paper); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-24); }
.footer-links a[aria-current="page"] { color: var(--paper); }
/* Profile links: a quiet icon pair that wraps with the text links. Teal stays reserved for
   the mark, the CTA and the focus ring, so these move between soft and off-white only. */
.footer-social { display: inline-flex; align-items: center; gap: var(--space-4); }
.footer-social a { min-width: 44px; min-height: 44px; justify-content: center; gap: 0; color: var(--soft); transition: color 180ms ease; }
.footer-social a:hover, .footer-social a:focus-visible, .footer-social a:active { color: var(--paper); }
.footer-social svg { display: block; width: 20px; height: 20px; }
/* Privacy policy: long-form reading on the shared tokens, one measure for every block. */
.policy { padding-block: var(--space-80) var(--space-104); }
.policy > * { max-width: 42rem; }
.policy h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.policy-effective { margin-top: var(--space-16); font-size: .875rem; color: var(--faint); }
.policy-lede { margin-top: var(--space-32); font-size: 1.0625rem; color: var(--soft); }
.policy section { margin-top: var(--space-56); padding-top: var(--space-32); border-top: var(--border); }
.policy h2 { font-size: 1.5rem; letter-spacing: -.025em; }
.policy section > * + * { margin-top: var(--space-16); }
.policy section p, .policy li { color: var(--muted); }
.policy ul { margin-bottom: 0; padding-left: var(--space-20); }
.policy li + li { margin-top: var(--space-12); }
.policy-contact { font-style: normal; color: var(--muted); }
.policy-contact span { display: block; }
/* Links are unstyled site-wide; inside running legal copy they need an underline to read as links. */
.policy section p a { color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.policy section p a:hover { text-decoration-thickness: 2px; }
/* Content is visible by default; only an active observer enables entrance motion. */
.motion-ready [data-reveal]:not(.is-visible):not(:focus-within) { opacity: 0; transform: translateY(10px); }
.motion-ready [data-reveal] { transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
/* The hero is above the fold, so its lines draw once on load rather than waiting for an observer. */
.motion-ready .flow-lines path { animation: line-arrive 1400ms var(--ease) both; }
.motion-ready .flow-lines path:nth-child(2) { animation-delay: 100ms; }
.motion-ready .flow-lines path:nth-child(3) { animation-delay: 200ms; }
@keyframes line-arrive { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@media (max-width: 1000px) {
  .shell { width: calc(100% - var(--space-64)); }
  .hero { gap: var(--space-24); padding-block: var(--space-72); }
  h1 { font-size: 3.6rem; }
  .section-intro { column-gap: var(--space-24); }
  .testing-layout { gap: var(--space-48); }
  .form-card { padding-left: var(--space-24); }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - var(--space-48)); }
  .site-header { gap: var(--space-16); min-height: 86px; flex-wrap: wrap; padding-block: var(--space-12); }
  .brand { flex-basis: 84px; }
  .brand svg { width: 84px; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; border-top: var(--border); gap: var(--space-12); padding-top: var(--space-8); }
  .hero { grid-template-columns: 1fr; gap: var(--space-24); padding-block: var(--space-48) var(--space-56); }
  h1 { font-size: clamp(2.75rem, 10vw, 4rem); }
  .hero-copy { max-width: 34rem; }
  .hero-description { font-size: 1.0625rem; }
  .hero-visual { justify-self: center; }
  .hero-device { width: min(248px, 66vw); }
  .flow-lines { width: 100%; left: 0; }
  .script-labels { margin-top: var(--space-32); gap: var(--space-12); }
  .section-intro, .script-grid, .testing-layout { grid-template-columns: 1fr; }
  .section-intro > div, .section-intro > p { grid-column: auto; }
  .section-intro > p { margin-top: 0; }
  .keyboard-section { padding-block: var(--space-56) var(--space-64); }
  .section-intro { gap: var(--space-20); margin-bottom: var(--space-32); }
  .feature-grid { grid-template-columns: 1fr; gap: var(--space-24); margin-top: var(--space-40); }
  .testing-section { padding-block: var(--space-56); }
  .testing-layout { gap: var(--space-40); }
  .testing-copy h2 { max-width: 28rem; }
  .form-card { padding: var(--space-32) 0 0; border-left: 0; border-top: var(--border); }
  .site-footer { flex-wrap: wrap; gap: var(--space-20); padding-block: var(--space-32); }
  .site-footer > p { order: 3; width: 100%; }
  .policy { padding-block: var(--space-48) var(--space-64); }
}
@media (max-width: 380px) {
  .shell { width: calc(100% - var(--space-32)); }
  .script-labels { gap: var(--space-8); }
  .label-divider { width: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .motion-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}
