/* AUTO-GENERATED by build-css.sh — do not edit directly. */
/* Source modules live in styles/. */

/* ───── styles/01-base.css ───── */
/* Pino — landing styles
 * Aesthetic: Refero/Acctual — clean white canvas, abundant whitespace,
 * Open Runde headlines with tight tracking, charcoal pill buttons,
 * 20px-radius cards. Photo-table hero with collage objects.
 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Caveat — handwritten accent font (byline + footer signature). Self-
 * hosted woff2 subsets pulled from Google Fonts so we don't pay the
 * render-blocking @import roundtrip + extra DNS. latin covers EN, the
 * cyrillic subset covers "сделано на маленьком острове" on /ru/. */
@font-face {
  font-family: 'Caveat';
  font-weight: 600;
  font-style: normal;
  src: url('/fonts/Caveat-600-latin.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-weight: 600;
  font-style: normal;
  src: url('/fonts/Caveat-600-cyrillic.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Open Runde — self-hosted from /fonts/. The lauridskern/open-runde
 * repo doesn't have a public CDN structure that's stable across
 * versions, so we ship the woff2s ourselves. ~640 KB total for 4
 * weights, cached for a year via _headers. */
@font-face {
  font-family: 'Open Runde';
  font-weight: 400;
  font-style: normal;
  src: url('/fonts/OpenRunde-Regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Open Runde';
  font-weight: 500;
  font-style: normal;
  src: url('/fonts/OpenRunde-Medium.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Open Runde';
  font-weight: 600;
  font-style: normal;
  src: url('/fonts/OpenRunde-Semibold.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Open Runde';
  font-weight: 700;
  font-style: normal;
  src: url('/fonts/OpenRunde-Bold.woff2') format('woff2');
  font-display: swap;
}

/* Geologica Roman Bold — display face used for headlines, matching the
 * iOS app's onboarding title style (.custom("GeologicaRoman-Bold")).
 * Self-hosted single weight, ~40 KB woff2. Cached for a year via
 * _headers. Body stays on Open Runde. */
@font-face {
  font-family: 'Geologica Roman';
  font-weight: 700;
  font-style: normal;
  src: url('/fonts/Geologica-Roman-Bold.woff2') format('woff2');
  font-display: swap;
}


:root {
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --ink: #0f0f0f;
  --ink-deep: #000000;
  --slate: #1e1e1e;
  /* Was #8d8d8d — 3.46:1 on white, fails WCAG AA for body text. #6b6b6b
   * lands at 4.7:1 (passes AA) and is visually almost indistinguishable
   * from the old grey on a white background. */
  --ash: #6b6b6b;
  --line: rgba(15, 15, 15, 0.08);
  --button: #0d111b;
  --teal: #0098f2;
  --pink: #f200ca;
  --violet: #6d56fc;
  --teal-soft: #e6f5ff;

  --radius-card: 20px;
  --radius-img: 32px;
  --radius-pill: 100px;

  /* Display = Geologica Roman Bold (matches the iOS app's onboarding
   * titles). Open Runde stays as the fallback so headings still look
   * close to the previous shape if the woff2 fails to load. */
  --font-display: 'Geologica Roman', 'Open Runde', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --font-body: 'Open Runde', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-caveat: 'Caveat', 'Sacramento', cursive;

  --max-w: 1200px;
  --section-gap: clamp(48px, 7vw, 96px);

  /* shadow-subtle is the soft drop on cards. shadow-subtle-2 is
   * Acctual's signature primary-button shadow: a 1px dark ring plus a
   * tight inner highlight. Replicated verbatim from DESIGN.md. */
  --shadow-subtle: 0 2.5px 2.5px rgba(0, 0, 0, 0.06);
  --shadow-subtle-2: rgb(36, 38, 40) 0px 0px 0px 1px, rgba(27, 28, 29, 0.48) 0px 1px 2px 0px;
  --shadow-card: 0 12px 40px rgba(15, 15, 15, 0.06), 0 2px 8px rgba(15, 15, 15, 0.03);
  --shadow-deep: 0 24px 64px rgba(15, 15, 15, 0.12), 0 4px 16px rgba(15, 15, 15, 0.05);

  /* Spring-style easing — bezier baseline so older Safari (<17.2) gets a
   * sensible value. Browsers that support linear() (Chrome 113+, Safari
   * 17.2+) override it inside the @supports block below for a closer
   * SwiftUI spring(response:0.55, damping:0.78) feel. */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.55 10.5%, 0.865, 1.07 19%, 1.123, 1.142, 1.118, 1.071 28.7%, 0.99 32.8%, 0.928, 0.897, 0.886, 0.902, 0.93 47.8%, 1.005 54.4%, 1.039, 1.045, 1.027 70.9%, 1, 0.984 89.3%, 1);
  }
}

/* Open Runde character-variant features per DESIGN.md — these subtly
 * shift digits and a few lowercase glyphs (`a`, `g`) toward the
 * geometric-modern register Acctual uses. Without them the font looks
 * slightly more neutral. */
body, .headline, .subheading {
  font-feature-settings: "blwf" on, "cv03" on, "cv04" on, "cv09" on, "cv11" on;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-weight: 500;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* Typography scale matches Refero/Acctual:
 * display 64/600, heading 32/600, subheading 20/600, body 16/500.
 * Tracking is tighter on big sizes (-2.4px on display) for the
 * crisp accounting-software register. */
/* Letter-spacing values come straight from Acctual's DESIGN.md:
 *   display 64px → -2.368px (-0.037em)
 *   heading-lg 40px → -1.2px (-0.030em)
 *   heading 32px → -0.64px (-0.020em)
 *   subheading 20px → -0.24px (-0.012em)
 * The em form lets us keep the values correct as font-size scales
 * via clamp(). */
.headline {
  font-family: var(--font-display);
  /* Geologica Roman ships as bold-only (700). Open Runde, the fallback,
   * keeps its 600 character at this weight — close enough that the
   * fallback flash isn't jarring. */
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.037em;
  color: var(--ink-deep);
}
.headline-xl { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.037em; }
.headline-lg { font-size: clamp(1.9rem, 4.5vw, 2.5rem); line-height: 1.2; letter-spacing: -0.03em; }
.subheading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.4;
  letter-spacing: -0.012em;
}
.body-lg { font-size: clamp(1rem, 1.6vw, 1.125rem); color: var(--slate); line-height: 1.6; font-weight: 500; }
.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0;
}

/* Handwritten accent — Caveat. Use for short, personal lines:
 * "made on a small island", "by a solo dev", testimonial signatures.
 * Per DESIGN.md role: human touch on otherwise structured interface. */
.handwritten {
  font-family: var(--font-caveat);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--slate);
  letter-spacing: 0;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.section { padding: var(--section-gap) 0; }

/* ── Nav ─────────────────────────────────────────────────────────── */
nav.site-nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
nav.site-nav .nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 16px 10px 22px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-subtle);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-deep);
}
.nav-logo img { width: 28px; height: 28px; border-radius: 6px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ash);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

.btn-pill-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--button);
  color: #fff;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  /* Acctual's signature button shadow: 1px dark outline + tight inner
   * highlight. Subtler and more "designy" than the usual drop shadow. */
  box-shadow: var(--shadow-subtle-2);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
}
.btn-pill-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-subtle-2), 0 6px 20px rgba(13, 17, 27, 0.20); }
.btn-pill-dark svg { width: 16px; height: 16px; fill: #fff; }

/* App Store CTA — large variant for hero / privacy */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--button);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-subtle-2);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
}
.btn-appstore:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-subtle-2), 0 10px 32px rgba(13, 17, 27, 0.22); }
.btn-appstore svg { width: 22px; height: 22px; fill: #fff; }
.btn-appstore-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #fff;
  color: var(--ink-deep);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
}
.btn-appstore-light:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.btn-appstore-light svg { width: 22px; height: 22px; fill: var(--ink-deep); }

/* Lang switcher (compact pill) */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  color: var(--ash);
  cursor: pointer;
  transition: all .2s;
}
.lang-btn:hover { border-color: rgba(15, 15, 15, .25); color: var(--ink); }
.lang-btn .flag { font-size: 1rem; line-height: 1; }
.lang-btn svg { width: 12px; height: 12px; opacity: .5; transition: transform .2s; }
.lang-switcher.open .lang-btn svg { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(15, 15, 15, .1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
  z-index: 200;
}
.lang-switcher.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ash);
  cursor: pointer;
  transition: all .15s;
  border: none;
  background: transparent;
  width: 100%;
  font-family: var(--font-body);
}
.lang-option:hover { background: rgba(15, 15, 15, .04); color: var(--ink); }
.lang-option.active { background: var(--teal-soft); color: var(--teal); }
.lang-option .flag { font-size: 1.1rem; }

/* ── Hero — photo-table collage ──────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(96px, 13vh, 144px) 0 clamp(16px, 3vw, 32px);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  text-align: center;
  z-index: 2;
}
.hero h1 {
  max-width: 820px;
  margin: 0 auto 20px;
}
.hero-sub {
  max-width: 540px;
  margin: 0 auto 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 3vw, 32px);
}

/* Decorative photo objects positioned absolutely around the hero.
 * Sizes match the Acctual reference: keyboard takes ~1/4 of the
 * viewport width, polaroid stack is hefty in the lower-left, MacBook
 * corner peeks in from the right edge, smaller props (paperclip,
 * binder, sticky, latte, iPhone) fill the gaps. On mobile, only the
 * lightest props survive — heavy hardware crowds the headline. */
.hero-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  filter: drop-shadow(0 12px 32px rgba(15, 15, 15, 0.10));
}
.hero-decor img { width: 100%; height: auto; display: block; }

/* Big anchors (one per corner-ish) — sized as % of viewport so they
 * scale with screen, not container. */
/* Big anchors: scaled UP to ~Acctual reference. Keyboard takes
 * ~38% of viewport width and sits at hero-text vertical level so it
 * crowds the headline like in the reference. MacBook corner peeks
 * from upper-right — same beefy size. Polaroid stack gets the
 * lower-right anchor. */
.decor-keyboard {
  top: 28%;
  left: -10%;
  width: clamp(440px, 42vw, 720px);
  transform: rotate(-14deg);
}
.decor-macbook {
  top: -6%;
  right: -10%;
  width: clamp(420px, 40vw, 680px);
  transform: rotate(8deg);
}
.decor-polaroid {
  top: 68%;
  right: -2%;
  width: clamp(320px, 30vw, 480px);
  transform: rotate(12deg);
}
.decor-latte {
  top: 60%;
  left: 8%;
  width: clamp(170px, 16vw, 250px);
  transform: rotate(-6deg);
}
.decor-iphone {
  top: 18%;
  left: 16%;
  width: clamp(140px, 13vw, 210px);
  transform: rotate(-24deg);
}

/* Small props (paperclip, binder, sticky) — accents */
.decor-paperclip {
  top: 26%;
  left: 6%;
  width: clamp(100px, 10vw, 160px);
  transform: rotate(-32deg);
}
.decor-binder-clip {
  /* Sits low-left so it doesn't collide with the App Store CTA, which
   * lives center-bottom of the hero. Was left: 42% — landed under the
   * button on desktop, see screenshot 2026-05-11. */
  top: 82%;
  left: 14%;
  width: clamp(80px, 8vw, 130px);
  transform: rotate(24deg);
}
.decor-sticky {
  top: 14%;
  right: 18%;
  width: clamp(120px, 12vw, 190px);
  transform: rotate(-8deg);
}

@media (max-width: 1100px) {
  .decor-keyboard { width: 360px; left: -14%; }
  .decor-macbook { width: 340px; right: -14%; }
  .decor-polaroid { width: 250px; right: -4%; }
  .decor-latte { width: 140px; }
  .decor-iphone { display: none; }
  .decor-binder-clip { display: none; }
}
@media (max-width: 900px) {
  .decor-keyboard, .decor-polaroid, .decor-macbook { opacity: 0.6; }
  .decor-keyboard { width: 260px; left: -16%; top: 50%; }
  .decor-macbook { width: 260px; right: -18%; top: 4%; }
  .decor-polaroid { width: 200px; right: -10%; top: 62%; }
  .decor-latte, .decor-sticky { display: none; }
}
@media (max-width: 600px) {
  .decor-keyboard, .decor-polaroid, .decor-macbook, .decor-paperclip { display: none; }
}

/* Subtle warm glow under the hero — barely there, like Acctual */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 30%, rgba(0, 152, 242, 0.04) 0%, transparent 50%),
              radial-gradient(ellipse at 30% 60%, rgba(242, 0, 202, 0.025) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Feature rows ────────────────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(64px, 10vw, 128px);
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reversed .feature-text { order: 2; }
.feature-row.reversed .feature-visual { order: 1; }
.feature-text .eyebrow { margin-bottom: 16px; }
.feature-text h2 { margin-bottom: 16px; }
.feature-text p { margin-bottom: 20px; max-width: 480px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  color: var(--slate);
  font-weight: 500;
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 8px;
}
.feature-visual { position: relative; display: flex; justify-content: center; }

/* ── Bento grid ──────────────────────────────────────────────────── */
.bento-section .section-header { text-align: center; margin-bottom: clamp(48px, 6vw, 72px); }
.bento-section .section-header p { max-width: 540px; margin: 16px auto 0; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bento-card {
  background: var(--bg-soft);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
}
.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.bento-card.span-2 { grid-column: span 2; }
.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.bento-icon svg {
  /* SF-Symbols style outline icons — stroke is the visual weight, not
   * fill. Slightly thicker stroke than default to read well at 24px. */
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
/* Per-card tint rotation so the 6 bento icons don't all look teal.
 * Order matches the layout order (span-2, span-2, 1, 1, 1, 1) so the
 * two big cards get the primary brand colours. */
.bento-card:nth-child(1) .bento-icon { background: rgba(0, 152, 242, 0.12); color: #0098f2; }
.bento-card:nth-child(2) .bento-icon { background: rgba(109, 86, 252, 0.12); color: #6d56fc; }
.bento-card:nth-child(3) .bento-icon { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.bento-card:nth-child(4) .bento-icon { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.bento-card:nth-child(5) .bento-icon { background: rgba(236, 72, 153, 0.12); color: #db2777; }
.bento-card:nth-child(6) .bento-icon { background: rgba(20, 184, 166, 0.12); color: #0d9488; }
.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  margin-bottom: 6px;
}
.bento-card p {
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.55;
  font-weight: 500;
}

/* ── Privacy block — dark card with stamp + network-monitor ──────── */
.privacy-section { padding: clamp(48px, 8vw, 80px) 0; }
.privacy-card {
  background: var(--ink-deep);
  color: #fff;
  border-radius: var(--radius-img);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.privacy-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(0, 152, 242, 0.22) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 80%, rgba(109, 86, 252, 0.15) 0%, transparent 55%);
  pointer-events: none;
}
.privacy-card > * { position: relative; z-index: 1; }
.privacy-card .eyebrow { background: rgba(0, 152, 242, 0.18); color: #6db3f2; margin-bottom: 20px; }
.privacy-card h2 { color: #fff; margin-bottom: 16px; }
.privacy-card .privacy-lead {
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

/* Stamp graphic — rotated rubber-stamp look. Sits in upper-right
 * corner of the card, pure CSS, no image. Reinforces "verified /
 * approved by your phone, not by us". */
.privacy-stamp {
  position: absolute;
  top: clamp(20px, 4vw, 40px);
  right: clamp(16px, 4vw, 48px);
  transform: rotate(8deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(110px, 12vw, 150px);
  height: clamp(110px, 12vw, 150px);
  border: 3px solid rgba(0, 152, 242, 0.55);
  border-radius: 50%;
  color: rgba(0, 152, 242, 0.85);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.8rem, 1.4vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  z-index: 2;
}
.privacy-stamp small {
  display: block;
  font-size: .55em;
  letter-spacing: 0.15em;
  margin-top: 4px;
  font-weight: 500;
  opacity: 0.7;
}

/* Network-monitor block: visual showing what Pino sends and what it
 * doesn't send. Two columns of pills/lines, the "doesn't send" side
 * has more items and uses muted strikethrough — communicates "the
 * absence of data flow" stronger than icons alone. */
.privacy-monitor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 32px);
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: left;
}
.privacy-col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: clamp(16px, 2.5vw, 24px);
}
.privacy-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.privacy-col-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.privacy-col-out .privacy-col-title { color: #ff6b6b; }
.privacy-col-out .privacy-col-title .dot { background: #ff6b6b; box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15); }
.privacy-col-in .privacy-col-title { color: #4ade80; }
.privacy-col-in .privacy-col-title .dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15); }
.privacy-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.privacy-col li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}
/* Was line-through. Removed — the "vs" layout now reads as a
 * comparison of practices, not a list of denials, so strike-through
 * was confusing (read as "Pino crossed these off"). */
.privacy-col li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 8px;
}
.privacy-col-out li::before { background: #ff6b6b; opacity: 0.7; }
.privacy-col-in li::before { background: #4ade80; }

/* Bottom pill row — the four hard guarantees. Kept from before but
 * restyled to match the monitor block. */
.privacy-features {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 36px);
  flex-wrap: wrap;
  margin: 0 auto 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 700px;
}
.privacy-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.privacy-feature .pf-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4ade80;
  color: var(--ink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.privacy-feature .pf-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

@media (max-width: 700px) {
  .privacy-monitor { grid-template-columns: 1fr; }
  .privacy-stamp { top: 16px; right: 16px; }
}

/* ── Final CTA ───────────────────────────────────────────────────── */
.final-cta { text-align: center; padding: clamp(48px, 8vw, 80px) 0; }
.final-cta h2 { margin-bottom: 12px; }
.final-cta p { max-width: 480px; margin: 0 auto 28px; }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: .85rem; color: var(--ash); transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: .8rem; color: var(--ash); }

/* ── Reveal animations ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── Mobile ──────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger span + span { margin-top: 6px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}
.mobile-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-close svg { width: 24px; height: 24px; stroke: var(--ink); stroke-width: 2; }

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reversed .feature-text { order: 1; }
  .feature-row.reversed .feature-visual { order: 2; }
  /* span-2 is already the default at line 554 — no override needed at
   * this breakpoint since the grid stays 2-col here. */
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links li:not(.lang-item) { display: none; }
  .nav-links li.lang-item { display: list-item; }
}
@media (max-width: 640px) {
  /* On phones the lang dropdown is unreachable from the pill (no room
   * to show it on the right). Move it into the hamburger sheet. */
  .nav-links { display: none !important; }
  .hamburger { display: flex; flex-direction: column; }
  .bento-grid { grid-template-columns: 1fr; gap: 12px; }
  .bento-card { padding: 22px 20px; }
  .bento-card.span-2 { grid-column: span 1; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 16px; }
}



/* ───── styles/02-demos.css ───── */
/* ════════════════════════════════════════════════════════════════════
 * Animated feature demos — Search / Screenshots / Places.
 * Ported from the iOS onboarding flow (see Views/Onboarding/*) so the
 * marketing page sells the same "show, don't tell" moments. Each demo
 * renders inside a .demo-stage card the size of a phone-frame.
 * ════════════════════════════════════════════════════════════════════ */

.demo-stage {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  position: relative;
}

/* The capsule mimics the in-app glass search bar. */
.demo-search {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15,15,15,.06);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(15,15,15,.04);
  font-size: .95rem;
}
.demo-search svg { width: 16px; height: 16px; color: var(--ash); flex-shrink: 0; }
.demo-search .demo-query { color: var(--ink-deep); font-weight: 500; min-height: 1em; letter-spacing: -0.01em; }
.demo-search .demo-caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  background: var(--teal);
  vertical-align: -2px;
  margin-left: 1px;
  animation: caretBlink 1s steps(2, end) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* 3×3 grid for Search demo, 2×3 for Screenshots demo. */
.demo-grid {
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
}
.demo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
.demo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }

.demo-tile {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
  /* Stagger via --i set inline. transition fires when .hide flips. */
  transition: transform .55s var(--spring, ease-out),
              opacity .35s ease-out;
  transition-delay: calc(var(--i, 0) * 28ms);
  transform-origin: center;
  will-change: transform, opacity;
}
.demo-tile.hide {
  opacity: 0;
  transform: scale(.82);
}

/* Visual-search tiles: real photos. The img fills the tile and is
 * cropped via object-fit. Neutral background = the soft canvas color
 * so corners don't bleed an unrelated tint while jpeg loads. */
.demo-tile.tile-photo {
  background: #eaeef2;
}
.demo-tile.tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit; /* match the tile's rounded corners */
}

/* OCR tiles: render a stylized snippet of the underlying screenshot
 * text so the OCR claim is visible at a glance. The frame mimics a
 * phone screenshot (subtle status-bar strip on top) so it reads as a
 * captured image, not abstract text — earlier the wall-of-text
 * presentation made the OCR feature feel theoretical. */
.demo-tile.tile-screen {
  background: #fff;
  border: 1px solid rgba(15,15,15,.08);
  padding: 14px 9px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  font-size: 9px;
  line-height: 1.25;
  color: var(--ink-deep);
  text-align: left;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.03) inset,
    0 6px 16px -8px rgba(15, 20, 40, 0.12);
  position: relative;
}
.demo-tile.tile-screen::before {
  /* Faux iOS status bar — three tiny grey bars suggest "this is a
   * screenshot," giving the OCR demo a visual anchor. */
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: rgba(15, 15, 30, 0.18);
  border-radius: 2px;
}
/* Highlight the matched line inside a screenshot. Looks like a marker
 * pen swipe — yellow tint + faint underline. JS adds .ts-hit to the
 * exact ts-line that contains the queried text. */
.demo-tile.tile-screen .ts-line.ts-hit {
  background: linear-gradient(180deg, transparent 50%, rgba(255, 222, 50, 0.55) 50%);
  color: var(--ink-deep);
  opacity: 1;
  font-weight: 600;
  padding: 0 2px;
  border-radius: 2px;
  transition: background .25s ease;
}
.demo-tile.tile-screen .ts-head {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: -0.005em;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-tile.tile-screen .ts-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--slate);
  opacity: .82;
}
.demo-tile.tile-screen .ts-pill {
  display: inline-block;
  padding: 1px 5px;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 4px;
  font-weight: 600;
  font-size: 8.5px;
  letter-spacing: 0;
  margin-top: auto;
  align-self: flex-start;
}

/* Places demo: SVG world + dropping pins + ticker + country list. */
.demo-places {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.demo-map {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--bg-soft);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.demo-map svg.world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #d6dde4;
  stroke: #fff;
  stroke-width: 0.4;
}
.demo-pin {
  position: absolute;
  /* x/y set as inline style. 0,0 is top-left of .demo-map. */
  left: var(--x);
  top: var(--y);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -14px; /* anchor at the tip */
  transform: translateY(-180px);
  opacity: 0;
  pointer-events: none;
}
.demo-pin svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(15,15,15,.25)); }
.demo-places.run .demo-pin {
  animation: pinDrop .7s var(--spring-overshoot) both;
  animation-delay: calc(var(--i) * 220ms);
}
@keyframes pinDrop {
  0%   { transform: translateY(-180px); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(0);      opacity: 1; }
}
.demo-counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.025em;
  color: var(--ink-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.demo-counter-label {
  font-size: .78rem;
  color: var(--ash);
  margin-top: 2px;
}
/* Landmark cards under the map — replace the old country list with
 * actual recognisable places. Square thumbnails with a flag+city
 * caption, staggered fade-in after the map pins land. */
.demo-landmarks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: auto;
}
.demo-landmark {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(10px) scale(.96);
}
.demo-landmark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Flag-only badge in the top-right corner. City names were being
 * truncated on narrow screens and looked clipped — the flag alone
 * reads as "Paris/Rome/etc." once paired with a recognisable image. */
.demo-landmark-label {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 2px 5px;
  line-height: 1;
  font-size: .9rem;
}
.demo-landmark-label .flag { line-height: 1; }
.demo-landmark-label .city-name { display: none; }
.demo-places.run .demo-landmark {
  animation: landmarkIn .55s var(--spring) both;
  /* Landmark cards start after the map pins land (7 × 220ms ≈ 1540ms),
   * then stagger 140ms apart. */
  animation-delay: calc(1540ms + var(--li, 0) * 140ms);
}
@keyframes landmarkIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero objects subtle float — out-of-phase via per-element delays. */
.decor-keyboard, .decor-macbook, .decor-polaroid, .decor-latte,
.decor-iphone, .decor-paperclip, .decor-binder-clip, .decor-sticky {
  animation: heroFloat var(--float-dur, 3.6s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  will-change: transform;
}
.decor-keyboard    { --float-dur: 3.4s; --float-delay: -0.4s; }
.decor-macbook     { --float-dur: 4.1s; --float-delay: -1.7s; }
.decor-polaroid    { --float-dur: 3.7s; --float-delay: -0.9s; }
.decor-latte       { --float-dur: 3.2s; --float-delay: -2.1s; }
.decor-iphone      { --float-dur: 3.9s; --float-delay: -1.3s; }
.decor-paperclip   { --float-dur: 2.8s; --float-delay: -0.6s; }
.decor-binder-clip { --float-dur: 3.5s; --float-delay: -2.4s; }
.decor-sticky      { --float-dur: 4.3s; --float-delay: -1.0s; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* Hero headline blur-reveal on first paint — SwiftUI .blurReplace look. */
.hero h1, .hero .hero-sub {
  animation: blurIn .55s cubic-bezier(0.23, 1, 0.32, 1) both;
}
.hero .hero-sub { animation-delay: .12s; }
@keyframes blurIn {
  from { filter: blur(8px); opacity: 0; transform: scale(.985); }
  to   { filter: blur(0);   opacity: 1; transform: scale(1); }
}

/* ── Reduced motion: dampen, don't kill informational fades ───────── */
@media (prefers-reduced-motion: reduce) {
  /* Stop all looping/transform-heavy animations; preserve opacity-only
   * reveals so the page still has a sense of arrival. */
  .demo-tile, .demo-pin, .demo-landmark, .demo-caret,
  .decor-keyboard, .decor-macbook, .decor-polaroid, .decor-latte,
  .decor-iphone, .decor-paperclip, .decor-binder-clip, .decor-sticky {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .demo-pin { transform: translateY(0); opacity: 1; }
  .demo-landmark { opacity: 1; transform: none; }
  .demo-caret { background: transparent; }
  .hero h1, .hero .hero-sub { animation: none; filter: none; opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .demo-stage { max-width: 280px; padding: 18px 14px; }
}



/* ───── styles/03-utility-pages.css ───── */
/* ════════════════════════════════════════════════════════════════════
 * Utility pages (privacy, help)
 * ────────────────────────────────────────────────────────────────────
 * Single 760px column, white canvas, sky-teal accents. Lifted out of
 * the four inline <style> blocks in privacy.html / privacy-ru.html /
 * help.html / ru/help.html so they share one source of truth.
 * Privacy and help diverge in three component blocks:
 *   .policy-card    — used by privacy pages only
 *   .faq-card       — used by help pages only
 *   .contact-form   — used by help pages only
 *   .thanks-card    — help "submitted" confirmation
 * They're all defined here regardless; an unused rule on a utility
 * page is harmless and keeps the override surface small.
 * ════════════════════════════════════════════════════════════════════ */
:root { --priv-max-w: 760px; }

.priv-nav { padding: 16px 0; }
.priv-nav .container {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--priv-max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.priv-nav .nav-logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.priv-nav .nav-logo img { width: 32px; height: 32px; border-radius: 7px; }

.priv-content {
  max-width: var(--priv-max-w);
  margin: 0 auto;
  padding: 60px clamp(20px, 4vw, 48px) 120px;
}
.priv-content h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.13;
  letter-spacing: -0.037em;
  color: var(--ink-deep);
  margin-bottom: 8px;
}
.priv-content .lede {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 48px;
}
.priv-content .updated {
  font-size: .9rem;
  color: var(--ash);
  margin-bottom: 48px;
}
.priv-content > p {
  color: var(--slate);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.priv-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink-deep);
  margin-top: 56px;
  margin-bottom: 16px;
}
.priv-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.012em;
  color: var(--ink-deep);
  margin-top: 20px;
  margin-bottom: 10px;
}
.priv-content h3:first-child { margin-top: 0; }
.priv-content ul {
  list-style: none;
  margin-bottom: 16px;
  padding: 0;
}
.priv-content ul li {
  position: relative;
  padding-left: 20px;
  color: var(--slate);
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.6;
}
.priv-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.priv-content a { color: var(--teal); }
.priv-content a:hover { text-decoration: underline; }
.priv-content code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .9em;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
}
.priv-content strong { color: var(--ink-deep); font-weight: 600; }

.policy-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  margin: 24px 0;
}
.policy-card p { color: var(--slate); margin-bottom: 12px; font-size: 1rem; line-height: 1.65; }
.policy-card p:last-child { margin-bottom: 0; }

.faq-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin: 16px 0;
}
.faq-card p { color: var(--slate); font-size: 1rem; line-height: 1.65; margin: 0; }

.priv-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  color: var(--ash);
  margin-bottom: 32px;
}
.priv-back:hover { color: var(--ink); }

.priv-footer {
  text-align: center;
  padding: 32px 20px;
  font-size: .85rem;
  color: var(--ash);
  border-top: 1px solid var(--line);
}

/* Contact form (help pages only) ────────────────────────────────── */
.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px clamp(22px, 4vw, 36px);
  margin-top: 16px;
}
.contact-form .field { margin-bottom: 18px; }
.contact-form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-deep);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.contact-form input[type=email],
.contact-form input[type=text],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink-deep);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236b6b6b' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.contact-form textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,152,242,0.15);
}
.contact-form .field.invalid input,
.contact-form .field.invalid textarea {
  border-color: #d34141;
  background: #fff7f7;
}
.contact-form .field.invalid input:focus,
.contact-form .field.invalid textarea:focus {
  box-shadow: 0 0 0 3px rgba(211,65,65,0.15);
}
.contact-form .field-error {
  display: none;
  font-size: .85rem;
  color: #d34141;
  margin-top: 6px;
  line-height: 1.4;
}
.contact-form .field.invalid .field-error { display: block; }
.contact-form .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.contact-form .submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.contact-form button[type=submit] {
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--ink-deep);
  border: 0;
  border-radius: 100px;
  padding: 13px 26px;
  cursor: pointer;
  transition: transform .12s ease, opacity .15s ease;
}
.contact-form button[type=submit]:hover { transform: translateY(-1px); }
.contact-form button[type=submit]:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.contact-form .form-status { font-size: .92rem; color: var(--ash); }
.contact-form .form-status.err { color: #d34141; }

.thanks-card {
  text-align: center;
  padding: 48px 24px;
}
.thanks-card .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
.thanks-card h3 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.thanks-card p { color: var(--slate); font-size: 1rem; line-height: 1.6; }

@media (max-width: 600px) {
  .policy-card { padding: 20px 22px; }
  .faq-card { padding: 20px 22px; }
  .contact-form { padding: 24px 22px; }
}



/* ───── styles/04-hero-travel.css ───── */
/* ════════════════════════════════════════════════════════════════════
 * Travel hero — replaces the photo-table collage on the landing page.
 * The page lead is now "your photos already mapped the world". The
 * collage props (keyboard / polaroid / macbook) still ship but only
 * appear on a few inner pages; the landing uses a clean centered
 * headline + a stat strip + a landmark gallery below.
 * ════════════════════════════════════════════════════════════════════ */
.hero-travel {
  padding: clamp(96px, 11vh, 124px) 0 clamp(28px, 4vw, 48px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,152,242,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(242,0,202,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 60%, rgba(109,86,252,0.05) 0%, transparent 50%);
}
.hero-travel .hero-inner { max-width: 940px; margin: 0 auto; }
/* Override base `.hero h1 { max-width: 820px }`. The new RU H1
 * ("Каждая страна, где вы были") is 27 characters — at 4rem it needs
 * ~960px to render on one line. Bump width and clamp font down a tick
 * so it consistently fits in two lines instead of wrapping to three. */
.hero-travel h1 {
  max-width: 100%;
  font-size: clamp(2.2rem, 5.4vw, 3.6rem) !important;
  line-height: 1.12;
}
html[lang="ru"] .hero-travel h1,
html[lang="de"] .hero-travel h1 {
  /* RU & DE strings are the longest. Pull the headline tighter so the
   * `<br>`-separated two-line layout doesn't wrap into three. */
  font-size: clamp(2rem, 4.8vw, 3.2rem) !important;
}

/* Free chip next to the App Store button — the one place that
 * unambiguously says "this app is free, forever, no asterisk." The
 * eyebrow above the H1 says it too but reads as fine print; the chip
 * sits right against the CTA so the offer is impossible to miss. */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.free-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #15803d;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.free-chip-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
  animation: free-chip-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes free-chip-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25); }
  50%      { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}
/* Dark-card variant — the same chip placed under the privacy section
 * sits on a near-black background, so flip text + dot to brighter
 * green and ease the contrast. */
.free-chip-dark {
  background: rgba(74, 222, 128, 0.16);
  border-color: rgba(74, 222, 128, 0.55);
  color: #6ee7a0;
}
.bottom-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; gap: 12px; }
  .bottom-cta-row { flex-direction: column; gap: 12px; }
  .free-chip { font-size: .85rem; padding: 7px 12px; }
}
.hero-travel h1 em {
  font-style: italic;
  color: var(--teal);
  background: linear-gradient(120deg, var(--teal) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Italic Geologica clipped Cyrillic ascenders (й, у, р) at the right
   * edge of the gradient mask. Fix needs three things:
   *   - looser letter-spacing so the italic slant doesn't push glyph
   *     ink past the next character's left bearing
   *   - inline-block so padding-right actually extends the clip box
   *     (padding-right on an inline element is ignored at line wrap)
   *   - overflow: visible to let the italic overshoot render */
  display: inline-block;
  letter-spacing: -0.015em;
  padding-right: 0.12em;
  margin-right: -0.05em;
  overflow: visible;
}
/* Cyrillic headlines: Geologica bold at -0.037em chops the right edge
 * of letters with high ascenders (й, у, р). Cyrillic and CJK pages get
 * a looser tracking value. Latin pages keep the tight display look. */
html[lang="ru"] .headline,
html[lang="zh"] .headline,
html[lang="ja"] .headline,
html[lang="ko"] .headline {
  letter-spacing: -0.02em;
}
html[lang="ru"] .headline-xl,
html[lang="zh"] .headline-xl,
html[lang="ja"] .headline-xl,
html[lang="ko"] .headline-xl {
  letter-spacing: -0.02em;
  line-height: 1.18;
}
html[lang="ru"] .hero-travel h1 em,
html[lang="zh"] .hero-travel h1 em,
html[lang="ja"] .hero-travel h1 em,
html[lang="ko"] .hero-travel h1 em {
  /* Cyrillic + CJK italics need even more breathing room. The clipping
   * of "й" / "у" / "р" was caused by the italic glyph extending past
   * the gradient mask bounding box. */
  letter-spacing: -0.005em;
  padding-right: 0.16em;
}

/* Pretitle above the stat strip — answers "are these my numbers?"
 * before the user has to ask. Tiny eyebrow-style label so the stats
 * don't read as a marketing flex. */
.hero-stats-pretitle {
  margin: clamp(28px, 4vw, 44px) auto 6px;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ash);
}

/* Stat strip — the headline visual. Four big numbers that count up
 * when scrolled into view. On phones it wraps to 2×2. */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 20px);
  max-width: 820px;
  /* Was `clamp(28px, 4vw, 48px) auto 8px`. Pretitle now sits above so
   * the top margin moves to the pretitle and the grid hugs it. */
  margin: 0 auto 8px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 2.4vw, 24px) clamp(14px, 2vw, 22px);
  text-align: center;
  box-shadow: var(--shadow-subtle);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--ink-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-label {
  margin-top: 6px;
  font-size: clamp(.78rem, 1.4vw, .92rem);
  color: var(--ash);
  font-weight: 500;
  line-height: 1.3;
}
.hero-stats-caption {
  margin: 14px auto 0;
  font-size: .82rem;
  color: var(--ash);
  text-align: center;
}

/* ── Landmark gallery — masonry-like grid of unlockable badges ────── */
.landmarks-section { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.landmark-gallery {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: clamp(10px, 1.4vw, 16px);
}
.lm { align-self: stretch; }
.lm {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  /* Soft tinted gradient so the watercolor PNGs (which sit on white)
   * don't visually merge with the caption pill below them. Earlier the
   * cell was solid white → captions floated in a sea of white with no
   * boundary to the image. */
  background: linear-gradient(160deg, #f6f8fb 0%, #eef1f6 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-subtle);
  transition: transform .35s var(--spring, ease-out), box-shadow .35s;
}
/* Per-cell hue rotation — 6 subtle tints applied via :nth-child(6n+N)
 * so the 24-cell gallery doesn't read as a wall of grey. Each tint is
 * a faint pastel gradient kept inside the watercolor palette so the
 * landmark art still dominates. Refactor candidate: if we add a 7th
 * landmark per row, bump to 7n and add a tint. */
.lm:nth-child(6n+1) { background: linear-gradient(160deg, #fff5f1 0%, #ffe6db 100%); }
.lm:nth-child(6n+2) { background: linear-gradient(160deg, #f1f8ff 0%, #d9e9ff 100%); }
.lm:nth-child(6n+3) { background: linear-gradient(160deg, #f6fff1 0%, #def5d9 100%); }
.lm:nth-child(6n+4) { background: linear-gradient(160deg, #fffbed 0%, #fdeec0 100%); }
.lm:nth-child(6n+5) { background: linear-gradient(160deg, #f9f1ff 0%, #ebd9ff 100%); }
.lm:nth-child(6n+6) { background: linear-gradient(160deg, #f0fdfa 0%, #c8efe6 100%); }
.lm:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.lm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lm figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.96) 35%, rgba(255,255,255,1) 100%);
  padding: 22px 12px 10px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.005em;
  text-align: center;
}

@media (max-width: 1100px) { .landmark-gallery { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px)  { .landmark-gallery { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  {
  .landmark-gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lm figcaption { font-size: .7rem; padding: 18px 8px 8px; }
}
@media (max-width: 400px)  { .landmark-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Mobile lang grid inside the hamburger sheet */
.mobile-lang-grid {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 8px 10px;
  justify-content: center;
  max-width: 320px;
}
.mobile-lang-grid a {
  font-family: var(--font-body) !important;
  font-size: .85rem !important;
  font-weight: 500 !important;
  color: var(--ash) !important;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  white-space: nowrap;
}


/* ───── styles/05-mobile.css ───── */
/* ════════════════════════════════════════════════════════════════════
 * Mobile rescue — the previous build broke below ~640px. Issues
 * fixed here:
 *   1. Hero overflow on phones (sub copy clipped)
 *   2. nav-pill could overflow viewport width
 *   3. Demo stages were too tall (16/9 = 569px on 320px width)
 *   4. Container padding too aggressive on narrow phones
 *   5. Bento grid not stacking cleanly
 *   6. Feature visual demo cards spilling off-screen
 * Single source: this block. Don't add new mobile rules elsewhere.
 * ════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .container { padding: 0 18px; }

  /* Nav pill: shrink and snap to a single line. Download CTA stays
   * visible on mobile — it's the page's primary action and burying
   * it in the hamburger lost taps. The hamburger keeps the
   * section/lang menu. */
  nav.site-nav { top: 10px; padding: 0 10px; }
  nav.site-nav .nav-pill {
    width: 100%;
    max-width: 100%;
    gap: 8px;
    padding: 8px 8px 8px 14px;
  }
  .nav-logo { font-size: .98rem; }
  .nav-logo img { width: 24px; height: 24px; }
  /* Override base @media rule that hides the CTA — keep it visible. */
  .nav-pill .nav-cta-btn {
    display: inline-flex !important;
    padding: 7px 12px;
    font-size: .82rem;
    gap: 4px;
    margin-left: auto;
    white-space: nowrap;
  }
  .nav-pill .nav-cta-btn svg { width: 14px; height: 14px; }
  .hamburger { display: flex !important; flex-direction: column !important; margin-left: 0; }

  /* Hero typography sizes down. clamp() floors were too high. */
  .hero-travel { padding: 84px 0 36px; }
  .headline-xl { font-size: 2.1rem !important; line-height: 1.12; }
  .headline-lg { font-size: 1.55rem !important; line-height: 1.18; }
  .hero h1 { padding: 0 4px; }
  .hero-sub { font-size: 1rem !important; padding: 0 8px; }
  .hero .handwritten { font-size: 1.15rem; }

  /* Stats: 2×2 grid */
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px 10px; border-radius: 14px; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: .72rem; }

  /* Feature rows already stack at 900px. Tighten the spacing for phones. */
  .feature-row { margin-bottom: 56px; gap: 24px; }
  .feature-text p { font-size: .98rem; line-height: 1.55; }
  .feature-list li { font-size: .92rem; }
  .feature-visual { padding: 0; }

  /* Demo stages: shrink the phone-frame so it doesn't blow the layout
   * height. aspect-ratio kept but max-width clamped tighter. */
  .demo-stage { max-width: 260px; padding: 16px 12px; }
  .demo-tile.tile-screen { font-size: 8px; padding: 6px 7px; }
  .demo-tile.tile-screen .ts-head { font-size: 9px; }
  .demo-tile.tile-screen .ts-pill { font-size: 7.5px; padding: 1px 4px; }
  .demo-counter { font-size: 1.3rem; }
  .demo-counter-label { font-size: .68rem; }

  /* Bento single-column with tighter padding */
  .bento-section .section-header p { font-size: .95rem; }
  .bento-card h3 { font-size: 1rem; }
  .bento-card p { font-size: .88rem; }

  /* Privacy card readability on small screens */
  .privacy-card { padding: 36px 22px; border-radius: 24px; }
  .privacy-lead { font-size: .98rem; margin-bottom: 28px; }
  .privacy-col li { font-size: .88rem; }
  .privacy-stamp { display: none; }

  /* Final CTA spacing */
  .final-cta { padding: 48px 0 64px; }

  /* App Store buttons: full width to avoid stranded short pills */
  .btn-appstore { padding: 13px 22px; font-size: .95rem; }
  .hero-actions .btn-appstore { width: auto; min-width: 220px; justify-content: center; }

  /* Owner-approved "no animations on mobile if needed". The hero blurIn
   * + reveal stack creates a perceptible delay on first paint on slower
   * phones; for the marketing hit the user just needs to see the map
   * immediately. Free-chip pulse loops forever and burns battery. */
  .hero h1, .hero .hero-sub { animation: none !important; filter: none; opacity: 1; transform: none; }
  .free-chip-dot { animation: none !important; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }
  /* Caret blink keeps it readable as a "live demo" affordance but tile
   * shuffle transitions are reduced — they were the main jank source. */
  .demo-tile { transition-duration: .2s !important; transition-delay: 0ms !important; }

  /* OCR tile text was 8px from the earlier rule above — bumped slightly
   * so the text stays legible on small phones. Container is fixed width
   * (max 260px stage) so a 9px head + 8.5px body still fits without
   * wrapping (all rows have white-space:nowrap + ellipsis). */
  .demo-tile.tile-screen .ts-head { font-size: 9.5px; }
  .demo-tile.tile-screen .ts-line { font-size: 8.5px; }
}

@media (max-width: 700px) {
  /* Tap target: hamburger was 22×~34px (below 44px). Bump padding so
   * the hit area meets iOS guidance without changing the visible bars. */
  .hamburger { padding: 11px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
}

@media (max-width: 380px) {
  .headline-xl { font-size: 1.85rem !important; }
  .hero-stats { gap: 8px; }
  .demo-stage { max-width: 220px; }
}

/* Larger-than-iPhone-but-still-touch: keep the desktop spacing but
 * cap the hero so it doesn't read as wasted space. */
@media (min-width: 641px) and (max-width: 900px) {
  .hero-travel { padding: 110px 0 48px; }
  .landmark-gallery { gap: 10px; }
}

/* Ensure backdrop-filter cards still look OK when blur is unsupported
 * (older Android browsers). Solid white fallback. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  nav.site-nav .nav-pill { background: rgba(255, 255, 255, 0.97); }
  .demo-search { background: #fff; }
  .demo-landmark-label { background: #fff; }
}

/* Tap targets: ensure interactive controls meet 44px minimum */
.lang-option, .nav-links a, .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.lang-option { padding: 10px 12px; }

/* "Nothing." block — punchline + supporting bullets in the Pino column.
 * The big green word does the emotional lift; the small list grounds
 * it with concrete claims so the column doesn't read as a one-liner
 * stunt. */
.privacy-nothing-wrap { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.privacy-nothing-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  letter-spacing: -0.035em;
  color: #4ade80;
  line-height: 1;
  margin-top: 4px;
}
.privacy-nothing-sub {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.privacy-nothing-sub li {
  font-size: .98rem;
  color: rgba(255,255,255,0.78);
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}
.privacy-nothing-sub li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #4ade80;
  font-weight: 700;
}

/* Legacy single-line variant — kept for templates that still ship the
 * old `ul.privacy-nothing` markup. */
.privacy-nothing { display: flex; align-items: center; justify-content: center; height: 100%; }
.privacy-nothing li {
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  color: #4ade80;
  padding-left: 0;
  text-align: center;
}
.privacy-nothing li::before { display: none; }


/* ───── styles/06-hero-worldmap.css ───── */
/* ════════════════════════════════════════════════════════════════════
 * Hero worldmap — big visible world map immediately under the H1.
 * Replaces the earlier pure-CSS iPhone frame, which felt cramped and
 * required scrolling to see. The map uses world.svg as a flat
 * silhouette with country-flag emojis dropped at rough lat/lon. Pure
 * HTML/CSS so it renders sharp at any DPR.
 * ════════════════════════════════════════════════════════════════════ */
.hero-worldmap {
  margin: clamp(28px, 4vw, 48px) auto 8px;
  max-width: 940px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hwm-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 50%, #e8f1fb 0%, #d9e6f5 70%, #c9d8eb 100%);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 24px 48px -16px rgba(20, 40, 80, 0.18),
    0 8px 16px -8px rgba(20, 40, 80, 0.12);
}
/* Filled overlay highlighting countries the demo "user" has visited.
 * Sits between the grey base silhouette and the flag pins. Same
 * viewBox (360×180) as world-equi.svg so country paths register
 * exactly on top of the base. Each country fades in on its own delay
 * (matched to the flag-pop sequence) so the map fills like a
 * progress-reveal, not all at once. */
.hwm-fill {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hwm-fill svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hwm-fill svg g {
  /* Bright green for "checked off / visited". Painted statically —
   * only motion in hero map is flag-pop. Earlier had staggered
   * country fades but they competed visually with the flags; user
   * preferred single source of motion. */
  fill: #22c55e;
  fill-opacity: 1;
  filter:
    drop-shadow(0 0 6px rgba(74, 222, 128, 0.85))
    drop-shadow(0 0 2px rgba(34, 197, 94, 0.65));
}
/* Locale-targeted highlights. The SVG ships 16 countries (the 12
 * stock visited + RU/PT/KR/CN). The 4 locale-specific ones are
 * hidden by default and revealed only on the matching locale page —
 * a Russian visitor sees Russia highlighted, etc., so the map is
 * always provably "you've been here" instead of generic. */
.hwm-fill svg #c-RU,
.hwm-fill svg #c-PT,
.hwm-fill svg #c-KR,
.hwm-fill svg #c-CN { display: none; }
html[lang="ru"] .hwm-fill svg #c-RU,
html[lang="pt"] .hwm-fill svg #c-PT,
html[lang="ko"] .hwm-fill svg #c-KR,
html[lang="zh"] .hwm-fill svg #c-CN { display: inline; }
.hwm-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/world-equi.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
  /* world-equi.svg is a pure equirectangular (Plate Carrée) projection
   * generated from Natural Earth 1:50m countries. viewBox is 360×180
   * where each unit = 1°. We stretch to exactly fill the canvas, so
   * flag pin coordinates map 1:1 from (lon, lat):
   *   left% = (lon + 180) / 360 * 100
   *   top%  = (90 - lat)  / 180 * 100
   * That formula is what the inline `style="left:X%;top:Y%"` on each
   * .hwm-flag uses below. */
  filter: brightness(0) saturate(100%) invert(34%) sepia(85%) saturate(1800%) hue-rotate(195deg) brightness(85%) contrast(90%);
  opacity: 0.72;
}
.hwm-flag {
  position: absolute;
  transform: translate(-50%, -50%);
  /* Smaller than the original 22-34px range — European countries are
   * physically tiny on a world map and oversized flags pile on top of
   * each other and obscure the country shape. */
  font-size: clamp(15px, 1.6vw, 20px);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.30)) drop-shadow(0 1px 2px rgba(0,0,0,0.22));
  animation: hwm-flag-pop 700ms var(--spring, ease-out) backwards;
  will-change: transform, opacity;
  cursor: pointer;
  z-index: 2;
}
/* Tooltip on hover/tap. Shows "City · N photos" so the flags read as a
 * live demo of the Places feature, not just decor. Uses ::after on the
 * flag span so no extra DOM nodes per flag. .is-open class toggled by
 * JS handles tap (no :hover on touch). */
.hwm-flag::after {
  content: attr(data-city) " · " attr(data-count);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
  /* Frosted-glass pill: 75% white + blur reads as premium on the blue
   * map. Was solid ink-deep, which felt heavy. backdrop-filter is
   * supported on all current Safari/Chrome; older browsers fall back
   * to the translucent white background without blur — still legible. */
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow:
    0 6px 14px -4px rgba(10, 20, 50, 0.20),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  z-index: 3;
}
.hwm-flag::before {
  /* Arrow under the tooltip pill — translucent white to match ::after.
   * border-top-color drives the colour. */
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translate(-50%, 4px);
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 3;
}
.hwm-flag:hover::after,
.hwm-flag:hover::before,
.hwm-flag.is-open::after,
.hwm-flag.is-open::before,
.hwm-flag.always-on::after,
.hwm-flag.always-on::before {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* Always-on tooltip — used for the Japan flag as the "exemplary"
 * label so the hover affordance is visible without interaction. The
 * flag pop-in animation should finish before the tooltip appears, so
 * delay it slightly past the flag-pop end time (700ms total). */
.hwm-flag.always-on::after,
.hwm-flag.always-on::before {
  animation: hwm-flag-tooltip-in 500ms ease-out 1100ms backwards;
  animation-fill-mode: both;
}
@keyframes hwm-flag-tooltip-in {
  0%   { opacity: 0; transform: translate(-50%, 4px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}
.hwm-flag:hover,
.hwm-flag.is-open {
  /* Bump the flag itself slightly so the tooltip looks attached. */
  z-index: 4;
}
.hwm-f1  { animation-delay: 150ms; }
.hwm-f2  { animation-delay: 230ms; }
.hwm-f3  { animation-delay: 310ms; }
.hwm-f4  { animation-delay: 390ms; }
.hwm-f5  { animation-delay: 470ms; }
.hwm-f6  { animation-delay: 550ms; }
.hwm-f7  { animation-delay: 630ms; }
.hwm-f8  { animation-delay: 710ms; }
.hwm-f9  { animation-delay: 790ms; }
.hwm-f10 { animation-delay: 870ms; }
.hwm-f11 { animation-delay: 950ms; }
.hwm-f12 { animation-delay: 1030ms; }
.hwm-f13 { animation-delay: 1110ms; }
.hwm-f14 { animation-delay: 1110ms; }
.hwm-f15 { animation-delay: 1110ms; }
.hwm-f16 { animation-delay: 1110ms; }
/* Locale-specific flags. Hidden by default — only the one matching
 * the page's lang attribute shows. Pairs with the locale country
 * fill above so a Russian visitor sees both a green RU shape and a
 * Moscow flag. */
.hwm-locale { display: none; }
html[lang="ru"] .hwm-locale-ru,
html[lang="pt"] .hwm-locale-pt,
html[lang="ko"] .hwm-locale-ko,
html[lang="zh"] .hwm-locale-zh { display: inline; }
@keyframes hwm-flag-pop {
  0%   { transform: translate(-50%, -120%) scale(0); opacity: 0; }
  60%  { transform: translate(-50%, -45%)  scale(1.25); opacity: 1; }
  100% { transform: translate(-50%, -50%)  scale(1); opacity: 1; }
}
.hero-worldmap-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  color: var(--ink-deep);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  font-weight: 500;
  max-width: 92%;
  text-align: center;
}

@media (max-width: 640px) {
  .hwm-canvas { aspect-ratio: 16 / 11; border-radius: 18px; }
  .hwm-flag { font-size: 14px; }
  .hero-worldmap-tagline { font-size: .82rem; padding: 8px 14px; }

  /* Owner: "можно без анимаций" on mobile to guarantee it works.
   * Staggered flag-pop (up to 1110ms) competes with scroll on phones —
   * users see the map mid-animation, half-empty. Snap flags to final
   * position; the visited-country fill is already static. */
  .hwm-flag {
    animation: none !important;
    transform: translate(-50%, -50%);
    opacity: 1;
  }
  .hwm-flag.always-on::after,
  .hwm-flag.always-on::before {
    animation: none !important;
    opacity: 1;
    transform: translate(-50%, 0);
  }
  /* Tagline dot pulse — kill the looping shadow flare on mobile. */
  .hmt-dot { animation: none !important; box-shadow: 0 0 0 3px rgba(74,222,128,0.25); }

  /* Tooltip clipping: any flag past 70% left would push its centered
   * ::after off the right edge of the canvas. Re-anchor those tooltips
   * to the right side of the flag (pill extends left from the flag,
   * arrow stays centred under the flag). Targeted by .hwm-fN class
   * since the inline left% lives on the markup. Tokyo (88.33%) is the
   * always-on case — without this fix the "1,204 photos" pill clips
   * past the canvas edge at any width under ~640px. */
  .hwm-flag.hwm-f7::after,    /* Tokyo  88.33% */
  .hwm-flag.hwm-f11::after,   /* Sydney 87.22% */
  .hwm-flag.hwm-f15::after,   /* Seoul  85.92% */
  .hwm-flag.hwm-f16::after,   /* Beijing 82.78% */
  .hwm-flag.hwm-f8::after {   /* Bangkok 78.06% */
    left: auto;
    right: -6px;
    transform: translate(0, 4px);
  }
  .hwm-flag.hwm-f7:hover::after,
  .hwm-flag.hwm-f11:hover::after,
  .hwm-flag.hwm-f15:hover::after,
  .hwm-flag.hwm-f16:hover::after,
  .hwm-flag.hwm-f8:hover::after,
  .hwm-flag.hwm-f7.is-open::after,
  .hwm-flag.hwm-f11.is-open::after,
  .hwm-flag.hwm-f15.is-open::after,
  .hwm-flag.hwm-f16.is-open::after,
  .hwm-flag.hwm-f8.is-open::after,
  .hwm-flag.hwm-f7.always-on::after,
  .hwm-flag.hwm-f11.always-on::after,
  .hwm-flag.hwm-f15.always-on::after,
  .hwm-flag.hwm-f16.always-on::after,
  .hwm-flag.hwm-f8.always-on::after {
    transform: translate(0, 0);
  }
  /* Mirror the arrow under the right-anchored tooltip pill so it still
   * points to the flag (centred under the flag, not under the pill). */
  .hwm-flag.hwm-f7::before,
  .hwm-flag.hwm-f11::before,
  .hwm-flag.hwm-f15::before,
  .hwm-flag.hwm-f16::before,
  .hwm-flag.hwm-f8::before {
    left: 50%;
  }
}

/* Old iPhone-mockup styles kept for templates that still reference
 * .hero-mockup / .hero-phone; safe to delete if the markup is gone. */
.hero-mockup {
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-phone {
  position: relative;
  width: clamp(260px, 32vw, 360px);
  aspect-ratio: 9 / 19.5;
  background: #0a0a14;
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    0 30px 60px -20px rgba(10, 10, 30, 0.35),
    0 12px 24px -10px rgba(10, 10, 30, 0.25),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.hp-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: #0a0a14;
  border-radius: 14px;
  z-index: 2;
}
.hp-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f8fb 0%, #eef1f6 100%);
  padding: 50px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hp-status {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: #0a0a14;
  z-index: 3;
}
.hp-status-right { display: flex; gap: 4px; align-items: center; }
.hp-app-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink-deep);
  letter-spacing: -0.02em;
  padding: 4px 4px 0;
}
.hp-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 2px;
}
.hp-mini-stats > div {
  background: #fff;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
}
.hp-mini-stats b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-deep);
  display: block;
  line-height: 1;
}
.hp-mini-stats span {
  font-size: 9px;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
  display: block;
}
.hp-map {
  position: relative;
  flex: 1;
  background:
    linear-gradient(180deg, #cfe2ff 0%, #e6f0ff 100%);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}
.hp-map-svg {
  position: absolute;
  inset: 6px;
  background-image: url('/images/world.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) saturate(100%) invert(34%) sepia(91%) saturate(2050%) hue-rotate(190deg) brightness(95%) contrast(95%);
  opacity: 0.85;
}
.hp-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 16px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  animation: hp-pin-pop 600ms var(--spring, ease-out) backwards;
}
.hp-pin-1 { animation-delay: 200ms; }
.hp-pin-2 { animation-delay: 320ms; }
.hp-pin-3 { animation-delay: 440ms; }
.hp-pin-4 { animation-delay: 560ms; }
.hp-pin-5 { animation-delay: 680ms; }
.hp-pin-6 { animation-delay: 800ms; }
@keyframes hp-pin-pop {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  60%  { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.hp-card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hp-card {
  background: #fff;
  border-radius: 10px;
  padding: 7px 6px;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hp-card-flag { font-size: 14px; line-height: 1; }
.hp-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--ink-deep);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 2px;
}
.hp-card-meta { font-size: 9px; color: var(--ash); }

.hero-mockup-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  color: var(--ink-deep);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  font-weight: 500;
  max-width: 90%;
  text-align: center;
}
.hmt-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.2);
  animation: hmt-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes hmt-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74,222,128,0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
}

@media (max-width: 640px) {
  .hero-phone { width: 240px; }
  .hero-mockup-tagline { font-size: .82rem; padding: 8px 14px; }
}

/* ───── styles/08-faq.css ───── */
/* ════════════════════════════════════════════════════════════════════
 * FAQ section — added for GEO (Generative Engine Optimization).
 *
 * Why a visible FAQ block: AI search engines (Perplexity, ChatGPT,
 * Gemini) parse FAQPage JSON-LD as discrete Q&A chunks and prefer
 * citing the answer when the same Q&A also appears in the rendered
 * DOM (it reads as a confirmation that the structured data isn't
 * spam). FAQ pages with both signals see roughly 2× the AI-citation
 * volume of pages with neither.
 *
 * The list uses native <details>/<summary> so the JS bundle stays at
 * zero for this section and screen readers handle it correctly.
 * ════════════════════════════════════════════════════════════════════ */

.faq-section {
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  padding: 88px 0 96px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  text-align: center;
  margin: 0 0 40px;
  color: #0b1320;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.faq-item[open] {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.08);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #0b1320;
  position: relative;
  letter-spacing: -0.005em;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  background: #22c55e;
  color: #fff;
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: rgba(11, 19, 32, 0.78);
  line-height: 1.6;
  font-size: .98rem;
}

@media (max-width: 640px) {
  .faq-section { padding: 56px 0 64px; }
  .faq-item summary { padding: 16px 48px 16px 18px; font-size: 1rem; }
  .faq-item p { padding: 0 18px 18px; font-size: .94rem; }
}

/* ───── styles/09-cross-promo.css ───── */
/* Cross-promo card (Zebra) — appears after FAQ, before footer.
   Promotes the sibling project zebra.tg to the photo-minded audience. */

.cross-promo-section { padding: 24px 0 96px; }
.cross-promo {
  display: block;
  text-decoration: none;
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid #ebeef2;
  border-radius: var(--radius-img);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cross-promo:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(15, 15, 15, 0.10), 0 4px 12px rgba(15, 15, 15, 0.05);
}
.cross-promo .eyebrow { margin-bottom: 18px; }
.cross-promo .headline { margin: 0 0 14px; }
.cross-promo-lead {
  max-width: 52ch;
  margin: 0 auto 28px;
  color: var(--ash);
  font-size: 1.0625rem;
  line-height: 1.55;
}
.cross-promo-btn svg { stroke: #fff; fill: none; }

