/* Geoglot — site styles. No build step, no dependencies. */

:root {
  --navy: #0b4f7c;
  --blue: #2e9fe6;
  --sky: #6fd3ff;

  --bg: #f5f9fc;
  --surface: #ffffff;
  --surface-2: #eaf3fa;
  --ink: #0e2233;
  --ink-soft: #4a6176;
  --line: #d6e4ef;
  --accent: #0b6fb5;          /* links, primary buttons */
  --accent-ink: #ffffff;
  --accent-strong: #08588f;
  --heading: #0b4f7c;
  --good: #1f9d55;
  --good-bg: #dcf5e6;
  --bad: #d64545;
  --bad-bg: #fde4e4;
  --shadow: 0 1px 2px rgba(11, 79, 124, .06), 0 8px 24px rgba(11, 79, 124, .08);
  --shadow-lg: 0 2px 4px rgba(11, 79, 124, .08), 0 24px 60px rgba(11, 79, 124, .18);

  --hero-a: #0a2f4d;
  --hero-b: #0b4f7c;
  --hero-c: #1a7fc4;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07131d;
    --surface: #0e2030;
    --surface-2: #132a3d;
    --ink: #e6f0f8;
    --ink-soft: #9db4c6;
    --line: #1d3a52;
    --accent: #4db3f0;
    --accent-ink: #04172a;
    --accent-strong: #7cc8f5;
    --heading: #8fd0f8;
    --good: #4cd68a;
    --good-bg: #0f3a25;
    --bad: #ff7b7b;
    --bad-bg: #4a1b1b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .5);
    --hero-a: #04101a;
    --hero-b: #08283f;
    --hero-c: #0e4f7e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--heading); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .75rem; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: var(--surface-2); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); }
.brand img { width: 44px; height: auto; }
.brand-word { font-family: "Trajan Pro", "Cinzel", "Optima", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; color: var(--heading); }
.brand-word span { color: var(--blue); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--ink); text-decoration: none; padding: .5rem .85rem; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface-2); color: var(--heading); }
.nav .nav-cta { background: var(--accent); color: var(--accent-ink); }
.nav .nav-cta:hover { background: var(--accent-strong); color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 1rem; font-size: 1.05rem; }
}
/* no-JS: let the nav simply wrap */
.no-js .nav-toggle { display: none; }
.no-js .nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; box-shadow: none; border: 0; padding: 0; }
.no-js .site-header .wrap { flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; font-family: inherit; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(11, 111, 181, .3); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.btn-store { background: #000; color: #fff; padding: .7rem 1.2rem .7rem 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.35); text-align: left; gap: .75rem; }
.btn-store:hover { background: #111; color: #fff; }
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store small { display: block; font-size: .68rem; font-weight: 500; opacity: .85; letter-spacing: .02em; }
.btn-store strong { display: block; font-size: 1.1rem; line-height: 1.1; }
.btn-light { background: #fff; color: #08283f; }
.btn-light:hover { background: #eaf6ff; color: #08283f; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 80% -10%, var(--hero-c), transparent 60%), linear-gradient(160deg, var(--hero-a), var(--hero-b)); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 80px; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.08)); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero .lead { color: rgba(255,255,255,.82); max-width: 34ch; }
.hero .btn-row { margin-top: 1.75rem; }
.hero-note { margin-top: 1.25rem; font-size: .92rem; color: rgba(255,255,255,.7); }
.hero-phones { position: relative; height: clamp(360px, 52vw, 560px); }
.phone { position: absolute; width: 46%; }
.phone--a { left: -1%; top: 14%; width: 41%; transform: rotate(-6deg); z-index: 1; }
.phone--b { left: 28%; top: 0; width: 46%; z-index: 3; }
.phone--c { right: -1%; top: 11%; width: 41%; transform: rotate(6deg); z-index: 2; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-phones { height: clamp(320px, 80vw, 480px); order: 2; }
  .hero .lead { max-width: none; }
}

/* ---------- Pillars ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem 0; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.pillar .num { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; font-weight: 800; margin-bottom: 1rem; }
.pillar p { color: var(--ink-soft); }
.pillar-shot { margin-top: auto; padding-top: 1rem; max-height: 300px; overflow: hidden; }
.pillar-shot .device-wrap { width: min(230px, 74%); margin: 0 auto; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .pillar-shot { max-height: 260px; } }

/* ---------- Play teaser ---------- */
.play-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.checks { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .65rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--good); margin-top: .2rem; }
@media (max-width: 860px) { .play-teaser { grid-template-columns: 1fr; } }

/* ---------- Languages ---------- */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.lang-grid li { display: flex; align-items: center; gap: .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .55rem .8rem .55rem .55rem; font-weight: 600; font-size: .95rem; }
.lang-grid img, .lang-badge { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.lang-badge { display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; font-weight: 800; font-size: .95rem; }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature { padding: 1.25rem 0; border-top: 3px solid var(--blue); }
.feature h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.feature p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ---------- Page header & prose ---------- */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .4rem; }
.page-head p { margin: 0; max-width: 60ch; color: var(--ink-soft); font-size: 1.15rem; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 1rem 1.25rem; margin: 0 0 2rem; }
.notice p:last-child { margin: 0; }

/* ---------- App lists ---------- */
.app-family { margin-bottom: 3.5rem; }
.app-family > header { margin-bottom: 1.25rem; max-width: 70ch; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.app-card { display: flex; align-items: center; gap: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .8rem 1rem .8rem .8rem; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; height: 100%; }
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue); color: var(--ink); }
.app-card img, .app-card .lang-badge { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.app-card .lang-badge { font-size: 1.4rem; border-radius: 14px; }
.app-card strong { display: block; line-height: 1.25; }
.app-card span { color: var(--ink-soft); font-size: .88rem; }

/* ---------- Support form ---------- */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field label .req { color: var(--bad); }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 25%, transparent); }
.hp { position: absolute; left: -5000px; height: 0; width: 0; overflow: hidden; }
.form-status { padding: .9rem 1.1rem; border-radius: 12px; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--good-bg); color: var(--good); }
.form-status.err { background: var(--bad-bg); color: var(--bad); }

/* ---------- Footer ---------- */
.site-footer { background: var(--hero-a); color: rgba(255,255,255,.75); padding: 3rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #cfe9fb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); font-family: var(--font); margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer .brand-word { color: #fff; }
.site-footer .brand-word span { color: var(--sky); }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .85rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: clamp(64px, 14vw, 160px) 0; }
.not-found .big { font-size: clamp(5rem, 20vw, 10rem); font-weight: 900; line-height: 1; color: var(--sky); font-family: var(--font-display); }

/* ---------- Misc ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
kbd { font: inherit; font-size: .85em; font-weight: 700; background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: .05em .45em; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1.1rem; }
details summary { cursor: pointer; }
details[open] summary { margin-bottom: .1rem; }
.cta-band { background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem; }

/* ---------- Device frames (CSS-drawn; screenshots are plain images) ---------- */
.device-wrap { container-type: inline-size; }
.device { background: #0b1620; border-radius: 13cqw; padding: 2.6cqw; box-shadow: 0 0 0 .6cqw #3a4a58, 0 24px 48px rgba(7, 25, 40, .35); }
.device img { width: 100%; height: auto; border-radius: 10.6cqw; display: block; background: #fff; }
.device--ios { border-radius: 15cqw; }
.device--ios img { border-radius: 12.4cqw; }

/* ---------- Screenshot gallery ---------- */
.shots { display: flex; gap: clamp(1rem, 3vw, 2rem); overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem 0 1.5rem; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; align-items: flex-start; scroll-padding-left: var(--gutter); }
.shots .device img { aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.shot { flex: 0 0 auto; width: min(220px, 62vw); margin: 0; scroll-snap-align: start; }
.shot figcaption { margin-top: 1rem; text-align: center; }
.shot figcaption strong { display: block; color: var(--heading); }
.shot figcaption span { display: block; color: var(--ink-soft); font-size: .92rem; line-height: 1.4; }
@media (min-width: 1000px) { .shots { justify-content: center; overflow: visible; } }

/* ---------- Home: app-styled teaser card ---------- */
.teaser-card { --t-bg: #f2f2f7; --t-card: #fff; --t-ink: #000; --t-soft: #8a8a8e; --t-line: #e5e5ea; --t-a: #a8131c; --t-good: #1f8a3b; --t-good-bg: #d9efe0;
  display: block; max-width: 400px; width: 100%; justify-self: center; background: var(--t-bg); color: var(--t-ink); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 1.1rem 1.1rem 1.25rem; text-decoration: none; transition: transform .15s; }
.teaser-card:hover { transform: translateY(-3px); color: var(--t-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .teaser-card { --t-bg: #000; --t-card: #1c1c1e; --t-ink: #fff; --t-soft: #98989f; --t-line: #38383a; --t-a: #ff6b6b; --t-good: #5bd67e; --t-good-bg: #12351d; } }
.tc-top { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: .8rem; font-size: 1rem; }
.tc-top b { text-align: center; }
.tc-top span:last-child { text-align: right; color: var(--t-soft); font-weight: 600; }
.tc-back { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--t-a) 12%, var(--t-card)); color: var(--t-a); font-size: 1.6rem; line-height: 1; padding-bottom: 3px; }
.tc-bar { height: 7px; border-radius: 4px; background: var(--t-line); overflow: hidden; }
.tc-bar i { display: block; width: 30%; height: 100%; background: var(--t-a); border-radius: 4px; }
.tc-stats { display: flex; justify-content: space-between; margin: .7rem 0 .9rem; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--t-soft); }
.tc-stats strong { color: var(--t-a); font-size: .95rem; letter-spacing: 0; }
.tc-prompt { background: var(--t-card); border: 1px solid var(--t-line); border-radius: 20px; text-align: center; padding: 1.1rem .8rem 1rem; margin-bottom: .75rem; }
.tc-prompt small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--t-soft); }
.tc-prompt b { display: block; font-size: 1.6rem; margin: .6rem 0 .3rem; }
.tc-prompt span { color: var(--t-soft); font-size: 1.3rem; }
.tc-opt { position: relative; background: var(--t-card); border: 1px solid var(--t-line); border-radius: 20px; text-align: center; padding: 1.05rem; font-size: 1.3rem; font-weight: 700; margin-top: .65rem; color: var(--t-soft); opacity: .65; }
.tc-opt.is-right { opacity: 1; background: var(--t-good-bg); border: 2.5px solid var(--t-good); color: var(--t-good); }
.tc-opt.is-right::after { content: "\2713"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Screenshot strip on the app pages ---------- */
@media (min-width: 1040px) { .shots--center { justify-content: center; overflow: visible; } }
.shots-note { text-align: center; color: var(--ink-soft); font-size: .9rem; margin: .25rem 0 0; }
