/*
 * LocalMind site concept. One layout system, four palettes:
 * the company page uses LocalMind's violet, every app page uses
 * the palette approved in that app's own repository.
 */
:root {
  --bg: #08090f;
  --surface: #12131d;
  --line: #1d1f2c;
  --fg: #ececf1;
  --muted: #8b8ea0;
  --faint: #5c5f73;
  --accent: #818cf8;
  --on-accent: #08090f;
  --accent-text: #c7cbff;
  --font: "Onest", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
/* LocalMind Travel — src/travel/travel-routes.css: night + road amber. */
.theme-travel {
  --bg: #0E1116; --surface: #171C23; --line: #252C37;
  --fg: #EDF0F4; --muted: #A3ACB9; --faint: #5B6573;
  --accent: #F2B33D; --on-accent: #1A1204; --accent-text: #F2B33D;
  --sky: #6CC4F0; --money: #7FD6A4;
}
/* LocalMind Family — brand book PTS8EaGGBEsUskGtMfHHJJ: zinc + teal. */
.theme-family {
  --bg: #0f0f12; --surface: #18181b; --line: #27272a;
  --fg: #f4f4f5; --muted: #a1a1aa; --faint: #71717a;
  --accent: #14b8a6; --on-accent: #042f2e; --accent-text: #5eead4;
}
/* LocalMind Study — no approved palette yet; LocalMind violet as placeholder. */
.theme-study {
  --bg: #0b0a12; --surface: #15131f; --line: #24212f;
  --accent: #a78bfa; --on-accent: #120a24; --accent-text: #c4b5fd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 64px; }
.logo { font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -.01em; display: inline-flex; align-items: baseline; }
.logo b { color: #818cf8; font-weight: 700; }
.logo-mark { width: 28px; height: 28px; margin-right: 8px; align-self: center; }
.logo span { color: var(--muted); font-weight: 400; margin-left: 8px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--surface); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero */
.hero { padding-block: 64px 48px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 .dim { color: var(--faint); }
.killer { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.killer li { display: flex; gap: 16px; align-items: center; }
.killer li > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.killer strong { font-size: 18px; font-weight: 500; color: var(--fg); }
.k-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.k-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lead { margin: 0; font-size: 19px; color: var(--muted); max-width: 540px; }
.eyebrow { color: var(--accent-text); }

/* Device boundary diagram */
.device { flex: 1 1 320px; display: flex; justify-content: center; }
.device-box { position: relative; width: 280px; height: 400px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.device-box .tag { position: absolute; top: -10px; left: 32px; padding: 0 10px; background: var(--bg); color: var(--faint); }
.chip { padding: 10px 16px; border-radius: 12px; background: var(--surface); color: var(--accent-text); font-size: 14px; }
.device-box .out { position: absolute; right: -86px; top: 50%; transform: translateY(-50%); color: var(--faint); font-family: var(--mono); font-size: 12px; text-decoration: line-through; }
@media (max-width: 1100px) { .device-box .out { display: none; } }
@media (max-width: 560px) { .device-box { height: 300px; width: 260px; } .hero { padding-block: 40px 32px; gap: 32px; } }

/* iPhone 17 Pro frames with app screens.
   1em = 1pt of the device: 402×874 pt screen, 12 pt bezel. */
.iphone { margin: 0; font-size: .68px; width: 426em; height: 898em; padding: 12em; border-radius: 64em; background: #0a0a0a; box-shadow: 0 0 0 2px #3a3a40, 0 40px 80px -30px rgba(0,0,0,.8); flex: none; }
.iphone-screen { position: relative; width: 402em; height: 874em; border-radius: 52em; overflow: hidden; background: #0f0f12; color: #fff; }
.iphone-status { position: absolute; inset: 0 0 auto; height: 62em; display: flex; align-items: center; justify-content: space-between; padding: 6em 34em 0 46em; z-index: 2; }
.iphone-status span:first-child { font: 600 17em/1 -apple-system, "SF Pro Text", system-ui, sans-serif; }
.iphone-icons { display: inline-flex; gap: 5em; align-items: flex-end; }
.iphone-icons i { display: block; width: 4em; border-radius: 1em; background: #fff; }
.iphone-icons i:nth-child(1) { height: 6em; } .iphone-icons i:nth-child(2) { height: 10em; } .iphone-icons i:nth-child(3) { width: 25em; height: 12em; border-radius: 4em; }
.iphone-island { position: absolute; top: 11em; left: 50%; transform: translateX(-50%); width: 125em; height: 37em; border-radius: 20em; background: #000; z-index: 3; }
.iphone-home { position: absolute; bottom: 8em; left: 50%; transform: translateX(-50%); width: 134em; height: 5em; border-radius: 3em; background: rgba(255,255,255,.85); }

/* Three phones one after another with a small overlap (only the bezels touch),
   Travel first and in front. The group fills its column: 1em = column / 1226. */
.device:has(.trio) { container-type: inline-size; flex: 1 1 560px; min-width: 0; }
.trio { position: relative; font-size: calc(100cqw / 1226); width: 1226em; height: 1000em; }
.trio .iphone { position: absolute; font-size: 1em; }
.trio .p-travel { left: 0; top: 0; z-index: 3; }
.trio .p-family { left: 400em; top: 51em; z-index: 2; }
.trio .p-study { left: 800em; top: 102em; z-index: 1; }
.s-brand { position: absolute; left: 0; right: 0; bottom: 32em; display: flex; align-items: center; justify-content: center; gap: 10em; }
.s-tile { width: 34em; height: 34em; border-radius: 9em; flex: none; display: block; box-shadow: 0 0 0 1em rgba(255,255,255,.08); }
.s-tile-mark { display: grid; place-items: center; background: #0f0f12; }
.s-tile-mark img { width: 24em; height: 24em; }
.s-brand .s-name { font-size: 15em; font-weight: 700; letter-spacing: -.01em; color: var(--fg); }
.s-brand b { color: var(--accent); }
.iphone-screen[class*="theme-"] { background: var(--bg); color: var(--fg); }
.scr { position: absolute; inset: 66em 0 96em; padding: 0 18em; display: flex; flex-direction: column; gap: 12em; overflow: hidden; font-family: var(--font); }
.s-head { display: flex; flex-direction: column; gap: 4em; padding-top: 6em; }
.s-title { font-size: 24em; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.s-sub { font-size: 13em; color: var(--muted); line-height: 1.35; }
.s-label { font-size: 12em; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.s-big { font-size: 30em; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.s-text { font-size: 15em; font-weight: 500; line-height: 1.3; }
.s-num { font-size: 15em; font-weight: 500; font-variant-numeric: tabular-nums; }
.s-warn { color: #facc15; }
.s-src { font-size: 12em; color: var(--accent-text); }
.s-card { background: var(--surface); border: 1em solid var(--line); border-radius: 18em; padding: 14em 16em; display: flex; flex-direction: column; gap: 6em; }
.s-rows { gap: 8em; }
.s-row { display: flex; justify-content: space-between; align-items: baseline; }
.s-col { display: flex; flex-direction: column; gap: 3em; min-width: 0; }
.s-track { height: 8em; border-radius: 99em; background: var(--line); overflow: hidden; flex: none; }
.s-track i { display: block; height: 100%; border-radius: 99em; background: var(--accent); }
.s-op { flex-direction: row; align-items: center; gap: 12em; }
.s-op .s-col { flex: 1; }
.s-ava, .s-chips i { display: grid; place-items: center; border-radius: 50%; color: #111; font-style: normal; font-weight: 700; flex: none; }
.s-ava { width: 36em; height: 36em; font-size: 15em; }
.s-ava { width: 2.4em; height: 2.4em; font-size: 15em; }
.s-seg { display: flex; gap: 4em; padding: 4em; border-radius: 14em; background: var(--surface); }
.s-seg span { flex: 1; text-align: center; padding: 9em 0; border-radius: 10em; font-size: 14em; color: var(--muted); }
.s-seg span.on { background: var(--line); color: var(--fg); font-weight: 500; }
.s-seg span { padding: .64em 0; border-radius: .7em; }
.s-route { position: relative; height: 96em; border-radius: 18em; background: linear-gradient(180deg, #1d2a3a, #171C23); padding: 12em 16em; display: flex; flex-direction: column; justify-content: flex-end; }
.s-route svg { position: absolute; left: 16em; right: 16em; top: 14em; width: calc(100% - 32em); height: 44em; }
.s-chips { display: flex; flex-wrap: wrap; gap: 8em; }
.s-chips span { display: inline-flex; align-items: center; gap: .4em; padding: .3em .7em .3em .3em; border-radius: 99em; background: var(--surface); border: 1px solid var(--line); font-size: 13em; }
.s-chips i { width: 1.6em; height: 1.6em; font-size: .85em; }
.s-check { flex-direction: row; align-items: center; gap: 12em; padding: 12em 14em; }
.s-check > i { width: 22em; height: 22em; border-radius: 50%; border: 2em solid var(--faint); flex: none; }
.s-check > i.ok { border-color: #7FD6A4; background: #7FD6A4 radial-gradient(circle, #0E1116 0 28%, transparent 30%); }

/* App page: one phone in the hero, feature cards, trip types. */
.solo { font-size: .66px; }
@media (max-width: 560px) { .solo { font-size: .6px; } }
.app-title { display: flex; align-items: center; gap: 12px; }
.app-title img { width: 40px; height: 40px; border-radius: 10px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
/* One plate for every store: Google Play's frame (646×192) sets the size,
   the App Store and RuStore marks sit centred on the same black plate. */
.store-badges a { --h: 40px; display: grid; place-items: center; height: var(--h); width: calc(var(--h) * 646 / 192); box-sizing: border-box; background: #000; border: 1px solid #a6a6a6; border-radius: calc(var(--h) * .17); overflow: hidden; }
.store-badges.big a { --h: 48px; }
.store-badges img { height: 100%; width: auto; display: block; }
.store-badges a:has(img[alt="Google Play"]) { border: 0; background: none; }
.store-badges a:has(img[alt="Google Play"]) img { width: 100%; }
.ftiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ftiles li { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.ftiles strong { font-size: 19px; font-weight: 500; }
.ftiles span:not(.ftile-icon) { color: var(--muted); font-size: 15px; }
.ftile-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); margin-bottom: 12px; }
.ftile-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ftiles .ftile-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 16px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.ftile-wide .ftile-icon { margin: 0; }
.ftile-wide > div { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 860px) { .ftiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftiles .ftile-wide { grid-column: span 1; flex-direction: column; align-items: flex-start; } }
@media (max-width: 480px) { .ftiles li { padding: 18px; } .ftiles strong { font-size: 17px; } .ftile-icon { width: 44px; height: 44px; margin-bottom: 8px; } }
.trips { display: flex; flex-wrap: wrap; gap: 10px; }
.trips span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.real-shot { position: absolute; left: 0; top: 62em; width: 100%; height: auto; display: block; }
.iphone-status { background: var(--bg, #0E1116); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.shot-card { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; container-type: inline-size; }
.shot-card figcaption { min-height: 2.8em; display: flex; align-items: flex-end; justify-content: center; font-weight: 500; font-size: 17px; text-align: center; text-wrap: balance; }
.shot-card .iphone { font-size: calc(min(100cqw, 300px) / 426); }
/* «Как это выглядит»: step list + one phone. */
.tour { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: start; }
.tour-side { display: flex; flex-direction: column; gap: 32px; }
.tour-side h2 { margin: 0; }
.tour-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tour-step { width: 100%; display: flex; gap: 16px; align-items: flex-start; text-align: left; font: inherit; color: var(--muted); background: none; border: 1px solid transparent; border-radius: 20px; padding: 18px 20px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.tour-step:hover { color: var(--fg); }
.tour-step[aria-selected="true"] { background: var(--surface); border-color: var(--line); color: var(--fg); }
.tour-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 14px; border: 1px solid var(--line); }
.tour-step[aria-selected="true"] .tour-num { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tour-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tour-text strong { font-size: 20px; font-weight: 500; line-height: 1.3; }
.tour-text span { font-size: 15px; color: var(--muted); line-height: 1.5; }
.tour-step[aria-selected="false"] .tour-text span { display: none; }
.tour-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tour-stage .iphone { font-size: .72px; }
.tour-layer { position: absolute; left: 0; top: 62em; width: 100%; aspect-ratio: 735 / 1424; opacity: 0; transition: opacity .45s ease; }
.tour-layer.on { opacity: 1; }
.tour-layer img { width: 100%; height: 100%; display: block; }
.tour-layer { overflow: hidden; }
/* Spotlight: the screen dims, the block the step is about stays bright and lifts.
   --x/--y/--w/--h are the block's border box in screenshot pixels (735×1424). */
.tour-layer::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .6); pointer-events: none; }
.lens { position: absolute; z-index: 2; overflow: hidden; border-radius: 16em;
        left: calc(var(--x) / 735 * 100%); top: calc(var(--y) / 1424 * 100%);
        width: calc(var(--w) / 735 * 100%); height: calc(var(--h) / 1424 * 100%);
        transform: scale(var(--s, 1.08)); box-shadow: 0 24em 60em rgba(0, 0, 0, .75); }
.lens img { position: absolute; width: calc(735 / var(--w) * 100%); height: auto;
            left: calc(var(--x) / var(--w) * -100%); top: calc(var(--y) / var(--h) * -100%); }

.tour-progress { width: 200px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tour-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
@keyframes tour-fill { from { width: 0; } to { width: 100%; } }
.tour-caption { display: none; margin: 0; }
.tour.is-manual .tour-progress { display: none; }
.tour-step[aria-selected="false"]:hover { background: color-mix(in srgb, var(--surface) 55%, transparent); }
@media (max-width: 860px) {
  .tour { grid-template-columns: 1fr; gap: 24px; }
  .tour-side { display: contents; }
  .tour-side h2 { order: -2; }
  .tour-stage { order: -1; }
  .tour-stage .iphone { font-size: .62px; }
  .tour-steps { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .tour-steps li { flex: 0 0 auto; }
  .tour-step { padding: 6px; border-radius: 999px; }
  .tour-step .tour-text { display: none; }
  .tour-step[aria-selected="true"] { background: none; border-color: transparent; }
  .lens { transform: scale(min(var(--s, 1.08), 1.05)); }
  .tour-caption { display: flex; flex-direction: column; gap: 4px; text-align: center; max-width: 420px; }
  .tour-caption strong { font-size: 20px; }
  .tour-caption span { color: var(--muted); font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .tour-layer { transition: none; } }
/* Principles */
.band { border-block: 1px solid var(--line); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.principles > div { padding: 32px 24px 32px 0; display: flex; flex-direction: column; gap: 6px; }
.principles > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
@media (max-width: 960px) { .principles > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }
.principles strong { font-weight: 500; font-size: 17px; }
.principles p { margin: 0; color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding-block: 64px; display: flex; flex-direction: column; gap: 40px; }
.section h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.section .sub { margin: 0; color: var(--muted); max-width: 560px; font-size: 17px; }

/* App cards on the company page: each card carries its app's palette */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.app-card { background: var(--bg); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; min-height: 340px; transition: transform .2s ease, border-color .2s ease; }
.app-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.app-card .icon { width: 64px; height: 64px; border-radius: 16px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.app-card h3 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.app-card p { margin: 0; color: var(--muted); }
.app-card .status { color: var(--accent-text); }
.app-card .store-badges { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.app-card .store-badges + .more, .app-card .card-actions + .more { margin-top: 4px; }
.app-card .card-actions { margin-top: auto; padding-top: 6px; display: flex; }
.btn-notify { min-height: 44px; padding: 0 18px; font-size: 14px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent-text); }
.btn-notify:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.app-card a.more { text-decoration: none; }
.app-card .more { margin-top: auto; color: var(--accent-text); font-weight: 500; }
.app-card.soon .status { color: var(--faint); }

/* Lists of facts */
.facts { display: flex; flex-direction: column; }
.facts > div { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 24px 0; border-top: 1px solid var(--line); align-items: baseline; }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt, .facts .k { flex: 1 1 300px; font-size: 20px; font-weight: 500; margin: 0; }
.facts dd, .facts .v { flex: 1 1 360px; color: var(--muted); margin: 0; }

/* App page bits */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { background: var(--surface); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step .mono { color: var(--accent-text); }
.step strong { font-size: 20px; font-weight: 500; line-height: 1.3; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.phone { flex: 1 1 320px; display: flex; justify-content: center; }
.screen { width: 320px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 40px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.screen .meta { display: flex; justify-content: space-between; color: var(--faint); font-family: var(--mono); font-size: 11px; }
.bubble { padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; max-width: 240px; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 4px; }
.line-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.line-item span:first-child { color: var(--muted); }
.cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 22px; display: block; }

.stores { padding-block: 64px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.stores h2 { margin: 0; font-size: 40px; letter-spacing: -.02em; }

.note { background: var(--surface); border-radius: 20px; padding: 20px 24px; color: var(--muted); font-size: 14px; }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 40px 56px; display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; color: var(--faint); font-size: 13px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--faint); }
footer a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .app-card { transition: none; } }

/* Company page: how data moves between phones and the server. */
#data { gap: 16px; padding-block: 40px; scroll-margin-top: 65px; }
.how-sub { color: var(--muted); margin: -8px 0 8px; max-width: 640px; }
.how-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.how-box h3 { margin: 0; font-size: 22px; font-weight: 500; }
.how-box ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.how-box p { margin: 0; color: var(--muted); font-size: 14px; }
.how-box.mid { position: relative; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent), 0 30px 80px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
.how-seal { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.how-seal svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.how-tag.srv { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.how-tag { align-self: flex-start; font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.how-tag.ok { color: #7FD6A4; border-color: color-mix(in srgb, #7FD6A4 40%, transparent); }
.how-flow { display: grid; grid-template-columns: 1fr 84px 1fr 84px 1fr; }
.how-wire { position: relative; display: grid; place-items: center; }
.how-wire::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.how-wire span { position: relative; background: var(--bg); padding: 4px 8px; font-family: var(--mono); font-size: 12px; color: var(--accent); text-align: center; }
.how-cipher { font-family: var(--mono); font-size: 13px; line-height: 1.6; color: color-mix(in srgb, var(--accent) 70%, var(--faint)); display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.35); letter-spacing: .06em; }
.how-cipher span:nth-child(2) { opacity: .7; } .how-cipher span:nth-child(3) { opacity: .4; }
.how-princ { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 0; }
.how-princ strong { font-weight: 500; }
@media (max-width: 860px) {
  .how-flow { grid-template-columns: 1fr; }
  .how-wire { height: 48px; }
  .how-wire::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
  .how-princ { grid-template-columns: 1fr 1fr; }
}

/* Company hero: the three app icons. */
.hero-apps { flex: 1 1 420px; display: flex; justify-content: center; gap: 28px; }
.ha { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--fg); text-decoration: none; }
.ha:nth-child(2) { margin-top: 56px; }
.ha-icon { width: 132px; height: 132px; border-radius: 30px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 70px -18px color-mix(in srgb, var(--c) 70%, transparent); margin-bottom: 10px; transition: transform .2s; }
.ha:hover .ha-icon { transform: translateY(-4px); }
.ha-icon img { width: 100%; height: 100%; display: block; }
.ha strong { font-size: 20px; font-weight: 500; }
.ha span:last-child { font-family: var(--mono); font-size: 12px; color: var(--c); }
@media (max-width: 560px) { .hero-apps { gap: 14px; } .ha-icon { width: 92px; height: 92px; border-radius: 22px; } .ha:nth-child(2) { margin-top: 32px; } }

/* Company page: two real phones and the server between them, cipher packets in flight. */
.pipe { display: grid; grid-template-columns: 260px 1fr 260px; align-items: center; justify-items: center; }
.how-phone { font-size: .4px; }
.tube { position: relative; width: 100%; height: 160px; display: grid; place-items: center; }
.tube::before { content: ""; position: absolute; left: -24px; right: -24px; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 60%, transparent) 12%, color-mix(in srgb, var(--accent) 60%, transparent) 88%, transparent); }
.pipe-srv { position: relative; z-index: 1; width: 240px; padding: 22px; border-radius: 22px; text-align: center; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), var(--surface); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
.pipe-srv svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pipe-srv b { display: block; font-size: 18px; font-weight: 500; margin: 8px 0 4px; }
.pipe-srv span { font-size: 13px; color: var(--muted); }
.pkt { position: absolute; top: calc(50% - 11px); left: 0; font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 22%, var(--bg)); color: var(--accent); animation: pkt-fly 4s linear infinite; white-space: nowrap; }
.pkt:nth-of-type(2) { animation-delay: -1.33s; } .pkt:nth-of-type(3) { animation-delay: -2.66s; }
@keyframes pkt-fly { 0% { left: 0; opacity: 0; } 8%, 92% { opacity: 1; } 100% { left: calc(100% - 70px); opacity: 0; } }
.pipe-cap { display: grid; grid-template-columns: 260px 1fr 260px; gap: 16px; text-align: center; color: var(--muted); font-size: 15px; }
.pipe-cap > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pipe-cap .how-tag { align-self: center; }
.pipe-cap strong { color: var(--fg); font-weight: 500; font-size: 18px; }
.how-tag.srv { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
@media (max-width: 860px) {
  .pipe, .pipe-cap { grid-template-columns: 1fr 96px 1fr; gap: 8px; }
  .how-phone { font-size: .3px; }
  .tube { height: 140px; }
  .tube::before { left: -12px; right: -12px; }
  .pkt { font-size: 0; width: 10px; height: 6px; padding: 0; border-radius: 3px; top: calc(50% - 2px); background: var(--accent); box-shadow: 0 0 8px var(--accent); animation-name: pkt-fly-m; }
  .pipe-srv { width: 48px; height: 48px; padding: 0; border-radius: 14px; display: grid; place-items: center; }
  .pipe-srv svg { width: 20px; height: 20px; }
  .pipe-srv b { display: none; }
  .pipe-srv span { display: none; }
  #data .pipe-cap { font-size: 12px; line-height: 1.35; }
  .pipe-cap strong { font-size: 14px; line-height: 1.25; }
  .pipe-cap .how-tag { font-size: 10px; padding: 3px 7px; }
  .pipe-cap .how-tag.srv { display: none; }
}
@keyframes pkt-fly-m { 0% { left: -10px; opacity: 0; } 10%, 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@media (max-width: 860px) {
}
@media (prefers-reduced-motion: reduce) { .pkt { animation: none; } .pkt:nth-of-type(1) { left: 6%; } .pkt:nth-of-type(2) { left: auto; right: 6%; } .pkt:nth-of-type(3) { display: none; } }
#data .how-princ .how-box { padding: 14px 18px; gap: 2px; }
#data .how-princ .how-box p { font-size: 13px; }
#data .pipe-cap { font-size: 14px; }
#data .pipe-cap > div { gap: 4px; }

/* Footer as on localmind.one: about, documents, contacts and company details. */
.pfoot { border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: 15px; color: var(--muted); }
.pfoot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 40px; }
.pfoot-brand p { margin: 16px 0 0; max-width: 420px; line-height: 1.6; }
.pfoot h4 { margin: 0 0 16px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); }
.pfoot-grid > div:not(.pfoot-brand) { display: flex; flex-direction: column; gap: 10px; }
.pfoot-grid p { margin: 0; line-height: 1.5; }
.pfoot a:not(.logo) { color: #a5b4fc; text-decoration: none; }
.pfoot a:not(.logo):hover { text-decoration: underline; }
.pfoot-button { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; color: #a5b4fc; cursor: pointer; text-align: left; }
.pfoot-button:hover { text-decoration: underline; }
.pfoot .faint { color: var(--faint); }
.pfoot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
@media (max-width: 860px) { .pfoot-grid { grid-template-columns: 1fr; gap: 28px; } }
.pfoot .wrap { display: block; padding-block: 0; font-size: inherit; color: inherit; }
.pfoot .logo { color: var(--fg); font-size: 20px; }
.pfoot-brand p { margin-top: 16px; }
.ha span.ha-get { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 7px 14px; border-radius: 999px; background: var(--c); color: #1A1204; font: 600 13px/1 inherit; font-family: inherit; transition: filter .2s; }
.ha span.ha-get svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ha:hover span.ha-get { filter: brightness(1.08); }
@media (max-width: 560px) { .section, .stores { padding-block: 44px; } }

/* One section per screen: the next one never peeks in while you read the current one. */
html { scroll-padding-top: 65px; }
main > section:not(.band) { min-height: calc(100svh - 65px); box-sizing: border-box; }
main > section.section, main > section.stores { justify-content: center; }
main > section.hero { align-content: center; }
main > section.hero:has(+ .band) { min-height: calc(100svh - 65px - 170px); }
main > section.hero:has(+ .band) { padding-block: 24px; }
main > section.hero:has(+ .band) .iphone { font-size: .62px; }
.theme-study main > section.hero:has(+ .band) { min-height: calc(100svh - 65px - 142px); }

/* Download / notify block at the end of the last section, instead of an empty screen of its own. */
.cta-strip { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 32px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 24px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.cta-strip h3 { margin: 0; font-size: 24px; grid-column: 1; }
.cta-strip .sub { grid-column: 1; }
.cta-strip .store-badges, .cta-strip .row { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 860px) { .cta-strip { grid-template-columns: 1fr; padding: 22px; } .cta-strip .store-badges, .cta-strip .row { grid-column: 1; grid-row: auto; margin-top: 8px; } }
.cta-strip.in-hero { grid-template-columns: 1fr; padding: 22px 24px; margin-top: 8px; }
.cta-strip.in-hero h3 { font-size: 20px; }
.cta-strip.in-hero .row { grid-column: 1; grid-row: auto; margin-top: 10px; }

/* A screenshot that carries its own status bar fills the whole screen. */
.real-shot.full { top: 0; height: 100%; object-fit: cover; object-position: top; }
