/*
 * wegather.fun — one stylesheet for every page.
 *
 * Colours live only in the tokens below, defined once for light and once
 * for dark; components never name a colour. The theme follows the visitor's
 * system setting (prefers-color-scheme). Dark is the app's own palette
 * (gather-app/constants/theme.ts); light is its bright counterpart with the
 * same lavender. Every text/background pair clears WCAG AA (4.5:1).
 */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #F7F6FB;
  --bg-2: #EFEDF8;
  --surface: #FFFFFF;
  --surface-2: #F4F2FC;
  --border: #E4E1EF;
  --border-strong: #D3CFE5;
  --text: #17151F;
  --text-2: #4A4760;
  --muted: #625F78;
  --accent: #896DF2;
  --accent-text: #5B39CE;
  --accent-solid: #6A4ADB;
  --on-accent: #FFFFFF;
  --accent-tint: rgba(137, 109, 242, 0.12);
  --accent-line: rgba(137, 109, 242, 0.45);
  --glow: rgba(137, 109, 242, 0.28);
  --header-bg: rgba(247, 246, 251, 0.82);
  --shadow: 0 1px 2px rgba(23, 21, 31, 0.05), 0 8px 24px rgba(23, 21, 31, 0.07);
  --shadow-lift: 0 2px 4px rgba(23, 21, 31, 0.06), 0 18px 40px rgba(23, 21, 31, 0.12);
  --phone-bezel: #16141F;
  --phone-edge: #3A3550;
  --badge-bg: #000000;
  --badge-text: #FFFFFF;
  --badge-edge: #A6A6A6;
  --success: #138A5E;
  --danger: #C2304D;
  --c-sports: #3E6BE8;
  --c-food: #14A06C;
  --c-night: #9C4FD0;
  --c-games: #1E8FB6;
  --c-outdoor: #4A9A3A;
  --c-culture: #C2861E;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --step-hero: clamp(2.6rem, 6.4vw, 4.6rem);
  --step-h2: clamp(1.9rem, 3.8vw, 2.8rem);
  --step-h3: 1.2rem;
  --step-lead: clamp(1.05rem, 1.6vw, 1.2rem);
  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0B0D16;
    --bg-2: #0F1221;
    --surface: #151829;
    --surface-2: #1B1F35;
    --border: #262B47;
    --border-strong: #353B5E;
    --text: #EEF0FA;
    --text-2: #B9BDDA;
    --muted: #9399C0;
    --accent: #896DF2;
    --accent-text: #B9A6FF;
    --accent-solid: #6D4FE3;
    --on-accent: #FFFFFF;
    --accent-tint: rgba(137, 109, 242, 0.16);
    --accent-line: rgba(137, 109, 242, 0.55);
    --glow: rgba(137, 109, 242, 0.38);
    --header-bg: rgba(11, 13, 22, 0.8);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.35), 0 22px 50px rgba(0, 0, 0, 0.5);
    --phone-bezel: #05060B;
    --phone-edge: #2E3352;
    --badge-bg: #000000;
    --badge-text: #FFFFFF;
    --badge-edge: #5A5F7A;
    --success: #5FE3B0;
    --danger: #F08A9C;
    --c-sports: #4E7CF6;
    --c-food: #2FCB8E;
    --c-night: #B266E0;
    --c-games: #45B6D8;
    --c-outdoor: #7BC46A;
    --c-culture: #E8B95C;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text); text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-hero); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: var(--step-h2); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
h3 { font-size: var(--step-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Show one of a pair by theme: logos and app screenshots. */
.on-dark { display: none; }
@media (prefers-color-scheme: dark) { .on-light { display: none; } .on-dark { display: block; } }

/* ---------- section scaffolding ---------- */
section { padding-block: clamp(64px, 9vw, 112px); }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.band { background: var(--bg-2); }
.section-head { max-width: 720px; display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.eyebrow {
  font: 700 13px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text);
}
.lead { font-size: var(--step-lead); color: var(--text-2); max-width: 62ch; }
.note { font-size: 14px; color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}
.bar { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; flex-shrink: 0; min-height: 44px; align-items: center; gap: 9px; }
.logo img { height: 26px; width: auto; }
.logo .mark { height: 32px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--text); background: var(--accent-tint); }
.nav a[aria-current="page"] { color: var(--text); }
.lang {
  display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface);
}
.lang button {
  font: 700 13px/1 var(--font-body); color: var(--muted); background: none; border: 0;
  border-radius: 999px; padding: 0 12px; min-height: 36px; min-width: 44px; cursor: pointer;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--accent-solid); color: var(--on-accent); }
.bar .lang { margin-left: 8px; }

/* Mobile menu: a <details>, so it opens without JavaScript too. */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: var(--text); border: 1px solid var(--border-strong);
  background: var(--surface);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift); padding: 8px; display: grid; gap: 2px;
}
.menu-panel a {
  color: var(--text); text-decoration: none; font-weight: 600; padding: 12px 14px; border-radius: 10px;
  min-height: 44px; display: flex; align-items: center;
}
.menu-panel a:hover { background: var(--accent-tint); }
@media (max-width: 820px) {
  .nav { display: none; }
  .menu { display: block; }
  .bar .lang { margin-left: auto; }
}
@media (max-width: 420px) {
  .bar { gap: 12px; }
  .site-header .logo { gap: 6px; }
  .site-header .logo img { height: 22px; }
  .site-header .logo .mark { height: 26px; }
}

/* ---------- App Store badge ---------- */
/*
 * Coming soon: a <span> with .is-soon, not a link. At launch, change it to
 * <a class="store" href="APP_STORE_URL"> and drop .is-soon and the tag.
 */
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 18px 8px 14px;
  background: var(--badge-bg); color: var(--badge-text); border: 1px solid var(--badge-edge);
  border-radius: 14px; text-decoration: none; position: relative;
}
.store svg { width: 26px; height: 26px; flex-shrink: 0; }
.store .store-lines { display: grid; line-height: 1.1; }
.store .store-small { font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em; }
.store .store-big { font: 600 21px/1.1 -apple-system, "SF Pro Display", var(--font-body); letter-spacing: -0.01em; }
.store.is-soon { cursor: default; padding-top: 14px; }
.store .store-tag {
  position: absolute; top: -11px; left: 12px; background: var(--accent-solid); color: var(--on-accent);
  font: 800 11px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; box-shadow: 0 4px 12px var(--glow);
}
a.store:hover { transform: translateY(-1px); }

/* ---------- phone mockup ---------- */
.phone {
  position: relative; width: min(300px, 74vw); aspect-ratio: 600 / 1305; max-width: 100%;
  border-radius: 46px; padding: 10px; background: var(--phone-bezel);
  border: 1px solid var(--phone-edge); box-shadow: var(--shadow-lift);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.phone.small { width: 100%; max-width: 230px; border-radius: 36px; padding: 8px; }
.phone.small img { border-radius: 29px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero .sub { font-size: var(--step-lead); color: var(--text-2); max-width: 32ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.chips li {
  font-weight: 600; font-size: 15px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow);
}
.chips li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--dot, var(--accent)); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; }
.ghost {
  color: var(--text-2); font-weight: 600; text-decoration: none; min-height: 44px;
  display: inline-flex; align-items: center; border-radius: 8px;
}
.ghost:hover { color: var(--accent-text); }

.hero-visual { position: relative; display: grid; place-items: center; padding: 24px 0; }
.hero-visual::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%); filter: blur(10px);
}
.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-lift);
  font-size: 14px; line-height: 1.3; max-width: 230px;
}
.float b { display: block; font-weight: 700; }
.float span { color: var(--muted); font-size: 13px; }
.float .ic {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-text);
}
.float .ic svg { width: 18px; height: 18px; }
.float img { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; }
.float-1 { top: 16%; left: -2%; }
.float-2 { bottom: 14%; right: -2%; }
@media (prefers-reduced-motion: no-preference) {
  .float-1 { animation: bob 6s ease-in-out infinite; }
  .float-2 { animation: bob 6s ease-in-out -3s infinite; }
}
@keyframes bob { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .hero-visual { padding: 12px 0 8px; }
  .float-1 { left: 0; top: 10%; }
  .float-2 { right: 0; bottom: 10%; }
}
@media (max-width: 480px) {
  .float { max-width: 190px; padding: 8px 10px; font-size: 13px; }
  .float .ic, .float img { width: 30px; height: 30px; }
}

/* ---------- how it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent-line) 0 8px, transparent 8px 16px);
}
.step { display: grid; gap: 14px; justify-items: center; text-align: center; position: relative; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-solid); color: var(--on-accent); font: 800 18px/1 var(--font-display);
  box-shadow: 0 0 0 8px var(--bg), 0 8px 20px var(--glow);
}
.step p { color: var(--text-2); max-width: 30ch; }
.step .phone { margin-top: 10px; }
@media (max-width: 680px) {
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .steps::before { left: 22px; right: auto; top: 0; bottom: 0; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--accent-line) 0 8px, transparent 8px 16px); }
  .step { justify-items: start; text-align: left; padding-left: 64px; }
  .step-num { position: absolute; left: 0; top: 0; }
  .step .phone { max-width: 190px; }
}

/* ---------- activities ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  --c: var(--accent);
  position: relative; overflow: hidden; display: grid; gap: 6px; align-content: start;
  padding: 22px; border-radius: var(--radius); min-height: 150px;
  background: color-mix(in srgb, var(--c) 13%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 30%, var(--border));
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile .tile-ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px;
  background: var(--c); color: var(--on-accent);
}
.tile .tile-ic svg { width: 24px; height: 24px; }
.tile p { color: var(--text-2); font-size: 15px; }
.tile::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: var(--c); opacity: .12;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.t-sports { --c: var(--c-sports); } .t-food { --c: var(--c-food); } .t-night { --c: var(--c-night); }
.t-games { --c: var(--c-games); } .t-outdoor { --c: var(--c-outdoor); } .t-culture { --c: var(--c-culture); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .tiles { gap: 10px; }
  .tile { min-height: 0; padding: 16px; }
  .tile .tile-ic { width: 40px; height: 40px; border-radius: 12px; }
  .tile p { font-size: 14px; }
}

.ticker {
  margin-top: 40px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: 12px; width: max-content; }
.ticker ul { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ticker li {
  white-space: nowrap; font-weight: 600; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px;
}
.ticker li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; background: var(--dot, var(--accent)); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 48s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@keyframes ticker { to { transform: translateX(calc(-50% - 6px)); } }
/* Still: one wrapped row, no copy, no mask. */
@media (prefers-reduced-motion: reduce) {
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker-track, .ticker ul { width: auto; flex-wrap: wrap; justify-content: center; }
  .ticker ul[aria-hidden="true"] { display: none; }
}
.d-sports { --dot: var(--c-sports); } .d-food { --dot: var(--c-food); } .d-night { --dot: var(--c-night); }
.d-games { --dot: var(--c-games); } .d-outdoor { --dot: var(--c-outdoor); } .d-culture { --dot: var(--c-culture); }

/* ---------- safety ---------- */
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--border); }
.safe {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start;
  padding: 30px 28px 30px 0; border-bottom: 1px solid var(--border);
}
.safe:nth-child(odd) { border-right: 1px solid var(--border); }
.safe:nth-child(even) { padding-left: 28px; padding-right: 0; }
.safe-ic {
  grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-text);
}
.safe-ic svg { width: 26px; height: 26px; }
.safe p { color: var(--text-2); }
@media (max-width: 760px) {
  .safety-grid { grid-template-columns: 1fr; }
  .safe, .safe:nth-child(even) { padding: 24px 0; border-right: 0; }
}

/* ---------- free vs plus ---------- */
.plans { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 20px; align-items: stretch; }
.plan {
  border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); background: var(--surface);
  border: 1px solid var(--border); display: grid; gap: 18px; align-content: start; box-shadow: var(--shadow);
}
.plan .price { color: var(--muted); }
.plan-head { display: grid; gap: 6px; }
.plan h3 { font-size: 1.5rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text); }
.plan li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--success); }
.plan.plus {
  position: relative; border: 2px solid var(--accent-line);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--accent-tint), transparent 60%),
    var(--surface);
  box-shadow: 0 20px 50px var(--glow);
}
.plan.plus li svg { color: var(--accent-text); }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.prices > div {
  position: relative; display: grid; gap: 2px; align-content: start;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px;
}
.prices b { font: 800 1.35rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.prices span { color: var(--muted); font-size: 14px; }
.prices .best { border: 2px solid var(--accent); background: var(--accent-tint); }
.prices .best-tag {
  position: absolute; top: -11px; left: 12px; background: var(--accent-solid); color: var(--on-accent);
  font: 800 10.5px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px;
}
.prices .saving { color: var(--accent-text); font-weight: 700; font-size: 13px; margin-top: 4px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .prices { grid-template-columns: 1fr; } .prices .best { margin-top: 6px; } }

/* ---------- support + FAQ ---------- */
.support-grid .section-head { margin-bottom: 0; }
.support-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 4px; }
.mail code {
  font: 600 17px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  user-select: all; overflow-wrap: anywhere;
}
.copy {
  font: 700 15px/1 var(--font-body); color: var(--on-accent); background: var(--accent-solid);
  border: 0; border-radius: 12px; padding: 0 18px; min-height: 46px; cursor: pointer;
}
.copy:hover { filter: brightness(1.08); }
.faq { display: grid; gap: 10px; margin: 0; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 18px; transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--accent-line); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; min-height: 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex-shrink: 0; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { color: var(--text-2); padding-bottom: 16px; margin-top: -4px; }
.faq .more { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; margin-top: 4px; }
@media (max-width: 820px) { .support-grid { grid-template-columns: 1fr; } }

/* ---------- closing download ---------- */
.final { padding-block: clamp(56px, 8vw, 96px); }
.final-card {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center;
  background:
    radial-gradient(90% 120% at 0% 0%, var(--accent-tint), transparent 60%),
    radial-gradient(70% 100% at 100% 100%, var(--accent-tint), transparent 60%),
    var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.final-copy { display: grid; gap: 18px; justify-items: start; }
.final-copy h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.final-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 30px var(--glow); }
.final-visual { display: grid; place-items: center; }
.final-visual .phone { width: min(250px, 60vw); transform: rotate(4deg); }
@media (max-width: 820px) {
  .final-card { grid-template-columns: 1fr; text-align: left; }
  .final-visual { margin-bottom: -120px; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 56px calc(32px + env(safe-area-inset-bottom, 0px)); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand p { color: var(--text-2); max-width: 30ch; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--text-2); border: 1px solid var(--border-strong); background: var(--surface);
}
.socials a:hover { color: var(--accent-text); border-color: var(--accent-line); }
.socials svg { width: 20px; height: 20px; }
.footer-col { display: grid; gap: 4px; align-content: start; }
.footer-col h3 { font: 700 13px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.footer-col a {
  color: var(--text); text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center;
}
.footer-col a:hover { color: var(--accent-text); }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- support page ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(24px, 4vw, 40px); }
.page-hero .section-head { margin-bottom: 0; }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
.page-hero h1 em { font-style: normal; color: var(--accent-text); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow);
}
.card p { color: var(--text-2); }
.card.urgent { border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); }
.card.urgent h3 { color: var(--danger); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--text-2); }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.checklist svg { width: 20px; height: 20px; margin-top: 3px; color: var(--success); }
.faq-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.faq-group h3 { font: 700 13px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.doclinks { display: grid; gap: 10px; }
.doclinks a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none;
  color: var(--text); font-weight: 700; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px; min-height: 56px;
}
.doclinks a:hover { border-color: var(--accent-line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .faq-groups { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .cards, .split { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
.lift { transition: transform .2s ease, box-shadow .2s ease; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
/* Hidden only once JS has said it will reveal them; visible without JS. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
section.tight { padding-top: 8px; }
.faq-group .faq { gap: 8px; }
.split .section-head { margin-bottom: 0; }
@media (max-width: 820px) { .lang button { min-height: 44px; } }
