/* Invenva marketing site. Mirrors the app's design language: flat surfaces,
   one monochrome accent, hairline dividers, capsule controls, spring-like
   motion. No cards stacked on cards, no colour except for status. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #0a0a0a;
  --ink-2: #2c2c2e;
  --muted: #6e6e73;
  --faint: #aeaeb2;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.2);
  --inverse: #ffffff;
  --fill: linear-gradient(180deg, #2b2b2b 0%, #0a0a0a 100%);
  --fill-flat: #0a0a0a;
  --phone-body: #0d0d0d;
  --phone-edge: rgba(255, 255, 255, 0.09);
  --shadow-phone: 0 60px 90px -40px rgba(0, 0, 0, 0.42), 0 24px 40px -24px rgba(0, 0, 0, 0.3);
  --positive: #34c759;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.3, 0.44, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #111113;
    --ink: #f5f5f7;
    --ink-2: #d1d1d6;
    --muted: #98989d;
    --faint: #636366;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.22);
    --inverse: #000000;
    --fill: linear-gradient(180deg, #f7f7f7 0%, #d2d2d2 100%);
    --fill-flat: #f5f5f7;
    --phone-body: #1a1a1c;
    --phone-edge: rgba(255, 255, 255, 0.14);
    --shadow-phone: 0 60px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(ja) body, :lang(zh-Hans) body, :lang(zh-Hant) body, :lang(ko) body { letter-spacing: 0; }
:lang(ja) .display, :lang(zh-Hans) .display, :lang(zh-Hant) .display, :lang(ko) .display { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.16; letter-spacing: 0; }
:lang(ja) .title, :lang(zh-Hans) .title, :lang(zh-Hant) .title, :lang(ko) .title { line-height: 1.2; letter-spacing: 0; }
:lang(ko) .display, :lang(ko) .title, :lang(ko) .subtitle { word-break: keep-all; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; overflow-wrap: anywhere; }
ul { margin: 0; padding: 0; list-style: none; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--fill-flat); color: var(--inverse); text-decoration: none; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.shell { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.shell-narrow { width: min(100% - var(--gutter) * 2, 820px); margin-inline: auto; }

/* Typography ------------------------------------------------------------- */
.display { font-size: clamp(40px, 5.6vw, 76px); line-height: 0.98; font-weight: 700; letter-spacing: -0.045em; text-wrap: balance; }
.title { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.subtitle { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.18; font-weight: 650; letter-spacing: -0.025em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--line-strong); }
:lang(ja) .eyebrow, :lang(zh-Hans) .eyebrow, :lang(zh-Hant) .eyebrow, :lang(ko) .eyebrow, :lang(ar) .eyebrow { letter-spacing: 0; text-transform: none; }
.lead { color: var(--muted); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; max-width: 640px; }
.lead strong { color: var(--ink); font-weight: 600; }

/* Buttons ---------------------------------------------------------------- */
.button {
  --pad: 22px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 var(--pad);
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--fill);
  color: var(--inverse);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 260ms var(--spring), opacity 200ms var(--ease), background-color 200ms var(--ease);
  will-change: transform;
}
.button:hover { transform: translateY(-1px) scale(1.01); }
.button:active { transform: scale(0.985); }
.button svg { width: 18px; height: 18px; flex: none; }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-quiet:hover { border-color: var(--ink); }
.button-ghost { background: transparent; color: var(--muted); border-color: transparent; padding-inline: 12px; }
.button-ghost:hover { color: var(--ink); transform: none; }
.button-large { min-height: 56px; --pad: 26px; font-size: 17px; }
.button-on-dark { background: var(--inverse); color: var(--ink); }
.store-badge { gap: 12px; }
.store-badge svg { width: 22px; height: 22px; }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 60; transition: background-color 260ms var(--ease), border-color 260ms var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom-color: var(--line); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); }
.header-row { min-height: 68px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.brand-mark { width: 24px; height: 30px; object-fit: contain; }
@media (prefers-color-scheme: light) { .brand-mark { filter: brightness(0); } }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: 8px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--bg-soft); }
.header-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.language-wrap { position: relative; display: inline-flex; align-items: center; }
.language-wrap svg { position: absolute; inset-inline-start: 12px; width: 16px; height: 16px; pointer-events: none; color: var(--muted); }
.language-select { appearance: none; -webkit-appearance: none; max-width: 160px; min-height: 40px; padding: 0 14px 0 34px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
[dir="rtl"] .language-select { padding: 0 34px 0 14px; }
.language-select:hover { border-color: var(--line-strong); }
.header-cta { min-height: 40px; --pad: 16px; font-size: 14px; }
.menu-button { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; place-items: center; }
.menu-button svg { width: 18px; height: 18px; }
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-menu { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }

/* Language suggestion ------------------------------------------------------ */
.lang-banner { display: none; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: 14px; }
.lang-banner.is-visible { display: block; }
.lang-banner-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lang-banner a { font-weight: 600; }
.lang-banner button { margin-inline-start: auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.lang-banner button:hover { color: var(--ink); }
.lang-banner button svg { width: 14px; height: 14px; }

/* Phone frame ------------------------------------------------------------ */
.phone {
  --phone-w: 300px;
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 1206 / 2622;
  padding: calc(var(--phone-w) * 0.03);
  border-radius: calc(var(--phone-w) * 0.17);
  background: var(--phone-body);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px var(--phone-edge);
  flex: none;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--phone-w) * 0.145); background: #000; }
.phone picture { display: block; height: 100%; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { max-width: 580px; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--ink); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-phones { position: relative; width: min(100%, 520px); height: 640px; }
.hero-phones .phone { position: absolute; top: 0; }
.phone-front { --phone-w: 286px; inset-inline-start: 36%; z-index: 2; animation: float 9s ease-in-out infinite; }
.phone-back { --phone-w: 250px; inset-inline-start: 3%; top: 46px; z-index: 1; transform: rotate(-6deg); opacity: 0.92; animation: float-back 11s ease-in-out infinite; }
[dir="rtl"] .phone-front { inset-inline-start: auto; inset-inline-end: 36%; }
[dir="rtl"] .phone-back { inset-inline-start: auto; inset-inline-end: 3%; transform: rotate(6deg); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes float-back { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
.hero-glow { position: absolute; inset: auto 0 -30% 0; height: 60%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 7%, transparent), transparent 70%); }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head.is-centered .lead { margin-inline: auto; }

/* Story (sticky phone + steps) ------------------------------------------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-steps { display: grid; }
.story-step { position: relative; min-height: 56vh; display: grid; align-content: center; padding-block: 6vh; transition: opacity 400ms var(--ease); }
.story-step:not(.is-active) { opacity: 0.38; }
.story-step:first-child { min-height: 40vh; padding-top: 2vh; }
.story-step-index { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 22px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease); }
.story-step.is-active .story-step-index { background: var(--fill-flat); color: var(--inverse); border-color: transparent; }
.story-step p { margin-top: 14px; color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 460px; }
.story-step .phone { display: none; }
.story-stage { position: sticky; top: clamp(60px, 10vh, 110px); display: grid; place-items: center; height: min(82vh, 760px); }
.story-stage .phone { --phone-w: clamp(250px, 28vw, 320px); }
.story-shots { position: relative; width: 100%; height: 100%; }
.story-shot { position: absolute; inset: 0; opacity: 0; transform: scale(0.985) translateY(10px); transition: opacity 520ms var(--ease), transform 640ms var(--spring); }
.story-shot.is-active { opacity: 1; transform: none; }
.story-shot img { width: 100%; height: 100%; object-fit: cover; }
.story-progress { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.story-progress span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: width 300ms var(--spring), background-color 300ms var(--ease); }
.story-progress span.is-active { width: 22px; background: var(--ink); }

/* Feature grid ----------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.feature { display: grid; align-content: start; gap: 14px; min-height: 250px; padding: clamp(22px, 2.6vw, 34px); background: var(--bg); transition: background-color 260ms var(--ease); }
.feature:hover { background: var(--bg-soft); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--bg-soft); color: var(--ink); margin-bottom: 8px; transition: transform 400ms var(--spring); }
.feature:hover .feature-icon { transform: translateY(-3px) rotate(-3deg); }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.feature p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }

/* Audience marquee -------------------------------------------------------- */
.audiences { padding-block: clamp(56px, 7vw, 96px); }
.marquee { position: relative; overflow: hidden; margin-top: 28px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; padding-block: 6px; animation: marquee 46s linear infinite; }
.marquee-track.is-reverse { animation-direction: reverse; animation-duration: 54s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 16px; font-weight: 500; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: 0.6; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
[dir="rtl"] .marquee-track.is-reverse { animation-direction: normal; }

/* Pricing ---------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: grid; align-content: start; gap: 22px; padding: clamp(26px, 3.2vw, 40px); border: 1px solid var(--line); border-radius: 28px; background: var(--bg); }
.plan-pro { background: var(--fill); color: var(--inverse); border-color: transparent; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.plan-pro .plan-name { color: color-mix(in srgb, var(--inverse) 70%, transparent); }
.plan-badge { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--inverse) 16%, transparent); font-size: 12px; font-weight: 600; }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price strong { font-size: clamp(40px, 5vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan-price span { color: var(--muted); font-size: 16px; }
.plan-pro .plan-price span { color: color-mix(in srgb, var(--inverse) 70%, transparent); }
.plan-tagline { font-size: 17px; font-weight: 500; }
.plan-sub { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.plan-pro .plan-sub { color: color-mix(in srgb, var(--inverse) 72%, transparent); }
.plan-list { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.plan-pro .plan-list { border-top-color: color-mix(in srgb, var(--inverse) 16%, transparent); }
.plan-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.4; }
.plan-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.plan .button { width: 100%; margin-top: 8px; }
.plan-pro .button { background: var(--inverse); color: var(--ink); }
.pricing-note { margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 760px; }

/* FAQ -------------------------------------------------------------------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; letter-spacing: -0.015em; }
.faq-item summary:hover { color: var(--ink-2); }
.faq-item summary::after { content: ""; flex: none; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23808080' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 1v10M1 6h10'/%3E%3C/svg%3E"); transition: transform 360ms var(--spring), background-color 200ms var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 24px; max-width: 720px; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.faq-item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }

/* Final CTA -------------------------------------------------------------- */
.cta { padding: clamp(80px, 11vw, 150px) 0; text-align: center; }
.cta .lead { margin: 18px auto 34px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) 0 40px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)); gap: 36px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand .brand { color: var(--ink); }
.footer-brand p { max-width: 320px; line-height: 1.5; }
.footer-col h4 { margin-bottom: 14px; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }

/* Inner pages ------------------------------------------------------------ */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(36px, 5vw, 64px); }
.page-hero .lead { margin-top: 20px; }
.legal-wrap { width: min(100% - var(--gutter) * 2, 760px); margin: 0 auto; padding: clamp(56px, 8vw, 96px) 0 120px; }
.legal-updated { margin-top: 14px; color: var(--muted); font-size: 14px; }
.legal-lead { margin-top: 28px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.legal-section { padding: 32px 0; border-top: 1px solid var(--line); }
.legal-section:first-of-type { margin-top: 44px; }
.legal-section h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 12px; }
.legal-section p { color: var(--ink-2); line-height: 1.75; }
.support-contact { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; text-decoration: none; }
.support-contact svg { width: 16px; height: 16px; }

.join-page { min-height: 100svh; display: grid; place-items: center; padding: 28px; }
.join-card { width: min(100%, 460px); text-align: center; }
.join-logo { width: 52px; height: 66px; margin: 0 auto 24px; object-fit: contain; }
@media (prefers-color-scheme: light) { .join-logo { filter: brightness(0); } }
.join-card h1 { font-size: 32px; letter-spacing: -0.03em; }
.join-card p { margin-top: 12px; color: var(--muted); }
.invite-code { min-height: 52px; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 28px 0; }
.invite-code span { min-width: 40px; height: 50px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; font-weight: 700; }
.join-card .button { width: 100%; }
.join-hint { margin-top: 16px; font-size: 13px; }

.not-found { min-height: 80svh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.not-found .lead { margin: 16px auto 28px; }

/* Reveal ----------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 800ms var(--spring); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1040px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-phones { height: 600px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; margin-top: 12px; }
  .hero-phones { width: min(100%, 440px); height: 580px; margin-inline: auto; }
  .phone-front { --phone-w: 256px; inset-inline-start: 38%; }
  .phone-back { --phone-w: 224px; top: 40px; inset-inline-start: 0; }
  .story-grid { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .story-step { min-height: 0; padding-block: 28px; opacity: 1 !important; }
  .story-step .phone { display: block; --phone-w: min(280px, 72vw); margin: 0 auto 26px; }
  .story-step .story-step-index { background: var(--fill-flat); color: var(--inverse); border-color: transparent; }
  .plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-cta { display: none; }
}
@media (max-width: 720px) {
  .header-row { min-height: 62px; gap: 10px; }
  .menu-button { display: grid; }
  .nav { display: none; position: absolute; inset: 62px var(--gutter) auto; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); z-index: 70; }
  .nav.is-open { display: grid; }
  .nav a { padding: 13px 14px; font-size: 16px; }
  .language-select { max-width: 128px; }
  .header-cta { display: none; }
  .hero { padding-top: 28px; }
  .hero-phones { height: 500px; }
  .phone-front { --phone-w: 216px; inset-inline-start: auto; inset-inline-end: 2%; }
  .phone-back { --phone-w: 184px; inset-inline-start: 2%; }
  .feature-grid { grid-template-columns: 1fr; border-radius: 20px; }
  .feature { min-height: 0; }
  .hero-actions .button, .cta-actions .button { width: 100%; }
  .trust { gap: 8px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 400px) {
  .hero-phones { height: 470px; }
  .phone-front { --phone-w: 200px; }
  .phone-back { --phone-w: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone-front, .phone-back, .marquee-track { animation: none; }
  .story-shot, .story-step, .button, .feature-icon { transition: none; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .lang-banner, .menu-button { display: none !important; }
  body { background: #fff; color: #000; }
}
