/* CityHub preview redesign draft — local only (www-cityhub-preview-next) */

:root {
  color-scheme: light;
  --bg: #eef2f6;
  --bg-deep: #e2e8f0;
  --ink: #10141c;
  --text: var(--ink);
  --muted: #5b6575;
  --line: rgba(16, 20, 28, 0.1);
  --border: var(--line);
  --accent: #1a6dff;
  --accent-ink: #0b3fa0;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --shadow: 0 24px 60px rgba(16, 28, 48, 0.14);
  --radius: 22px;
  --font-brand: "Stalinist One", system-ui, sans-serif;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --safe-inline: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --header-h: 58px;
  --site-header-height: var(--header-h);
  --legal-subnav-height: 52px;
  --section-gap: clamp(72px, 11vw, 120px);
  --page-gap: calc(var(--section-gap) * 0.7);
  --content: 1120px;
  --legal-width: 820px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

body {
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: clip;
}

body.has-site-nav {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
}

body.has-site-nav .site-header {
  top: env(safe-area-inset-top);
}

/* In-app WebView («Первые шаги»): без шапки/футера сайта — в приложении свой toolbar. */
html.is-app-embed body.has-site-nav,
body.is-app-embed {
  padding-top: 0 !important;
}

html.is-app-embed .site-header,
body.is-app-embed .site-header {
  display: none !important;
}

html.is-app-embed .site-footer,
body.is-app-embed .site-footer {
  display: none !important;
}

/* Draft banner removed for preview-ready build */
.draft-banner { display: none !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent); }

.logo-wordmark {
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 900;
  pointer-events: none;
}

.site-header__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px var(--safe-inline) 0;
  padding: 10px 14px;
  min-height: calc(var(--header-h) - 12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(16, 28, 48, 0.06);
}

.site-header__logo {
  margin-left: 40px;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--ink);
}

.site-header__toggle {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.site-header__toggle-icon,
.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-header__toggle-icon::before { top: -6px; }
.site-header__toggle-icon::after { top: 6px; }

.site-header.is-open .site-header__toggle-icon { background: transparent; }
.site-header.is-open .site-header__toggle-icon::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .site-header__toggle-icon::after { top: 0; transform: rotate(-45deg); }

.site-nav-panel {
  margin-left: auto;
}

.site-nav {
  display: none;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav__link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--ink);
  background: rgba(26, 109, 255, 0.08);
}

.site-header.is-open .site-nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: var(--safe-inline);
  right: var(--safe-inline);
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.site-header.is-open .site-nav {
  display: flex;
  flex-direction: column;
}

@media (min-width: 920px) {
  .site-header__toggle { display: none; }
  .site-nav { display: flex; }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: stretch;
  overflow: clip;
}

.hero--copy-only {
  min-height: 0;
}

.hero--copy-only .hero__inner {
  align-items: center;
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px);
}

.hero--copy-only .hero__copy {
  max-width: 38rem;
}

.hero--copy-only .hero__support {
  max-width: 22ch;
}

.hero--copy-only .hero__lede {
  max-width: 42ch;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(26, 109, 255, 0.18), transparent 60%),
    radial-gradient(700px 480px at 88% 12%, rgba(14, 165, 160, 0.14), transparent 55%),
    linear-gradient(165deg, #f7f9fc 0%, #e8eef6 48%, #dfe8f2 100%);
  z-index: 0;
}

.hero__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 20, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 28, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--content), calc(100% - 2 * var(--safe-inline)));
  margin: 0 auto;
  display: grid;
  gap: 28px;
  align-items: end;
  padding: 28px 0 36px;
}

.hero__brand {
  margin: 0;
  font-size: clamp(2.6rem, 11vw, 5.2rem);
  line-height: 0.95;
  color: var(--ink);
}

.hero__support {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 18ch;
}

.hero__lede {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34ch;
}

.hero__proof {
  margin: 16px 0 0;
  color: var(--accent-ink);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero__visual {
  justify-self: center;
  width: min(280px, 72vw);
  filter: drop-shadow(0 28px 50px rgba(16, 28, 48, 0.28));
  animation: floatY 5.5s ease-in-out infinite;
}

.hero__visual img {
  width: 100%;
  border-radius: 28px;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding: 40px 0 48px;
    gap: 40px;
  }
  .hero__visual {
    width: min(340px, 100%);
    justify-self: end;
  }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ——— Category strip ——— */
.strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.strip__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.strip__group {
  display: flex;
  gap: 14px;
  padding-inline: 7px;
}

.strip__item {
  margin: 0;
  width: 148px;
}

.strip__item img {
  width: 148px;
  height: 110px;
  object-fit: cover;
  border-radius: 16px;
}

.strip__item figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .strip__track,
  .hero__visual,
  .reveal { animation: none !important; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(26, 109, 255, 0.28);
}

.btn-primary:hover { background: #0f5cf0; color: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--ink);
}

/* ——— Content ——— */
.wrap {
  width: min(var(--content), calc(100% - 2 * var(--safe-inline)));
  margin: 0 auto;
  padding: 0 0 clamp(64px, 8vw, 96px);
}

.section {
  margin: 0;
  padding: var(--section-gap) 0 0;
}

.section.strip {
  padding: 28px 0;
  margin: var(--section-gap) 0;
}

/* Strip already has bottom margin — less top padding on first content block */
.wrap > .section:first-child {
  padding-top: calc(var(--section-gap) * 0.25);
}

.is-home .wrap > .section + .section {
  padding-top: var(--section-gap);
}

.chapter {
  display: grid;
  gap: 28px;
  align-items: center;
  margin: 56px 0;
}

.chapter__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.chapter__lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
}

.chapter__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.chapter__list li {
  position: relative;
  padding-left: 18px;
  font-weight: 600;
}

.chapter__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.phone-frame {
  width: min(280px, 70vw);
  margin-inline: auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
}

.phone-frame img { width: 100%; }

@media (min-width: 860px) {
  .chapter {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .chapter--flip .chapter__text { order: 2; }
  .chapter--flip .chapter__media { order: 1; }
}

.cta-band {
  margin: 0;
  padding: clamp(32px, 5vw, 56px);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(135deg, rgba(26, 109, 255, 0.12), rgba(14, 165, 160, 0.1)),
    var(--surface-solid);
  border: 1px solid var(--line);
  text-align: center;
}

/* Keep CTA internal padding; section gap comes from .section + .section */
.section.cta-band {
  padding: clamp(32px, 5vw, 56px);
  margin-top: var(--section-gap);
}

.cta-band__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cta-band__proof {
  margin: 0 0 10px;
  color: var(--accent-ink);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cta-band__text {
  margin: 12px auto 22px;
  max-width: 54ch;
  color: var(--muted);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.site-footer {
  margin-top: var(--section-gap);
  padding: 20px var(--safe-inline) 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer p { margin: 0; }

.wrap > .site-footer {
  padding-inline: 0;
}

/* ——— Inner pages ——— */
.page-tagline,
.about-hero h1,
.wrap > h1 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.about-hero__lead,
.wrap > .lead,
.page-lead {
  color: var(--muted);
  max-width: 54ch;
}

/* About page: compact page rhythm (−30% vs home), except «Сейчас» */
.about-page {
  padding-top: clamp(20px, 3vw, 32px);
}

.about-page .about-hero {
  margin: 0;
  padding: 0 0 calc(var(--page-gap) * 0.35);
  text-align: left;
}

.about-page .about-hero__lead {
  margin: 0;
  font-size: clamp(1rem, 2.6vw, 1.08rem);
  line-height: 1.55;
}

.about-page > .section {
  padding-top: var(--page-gap);
}

.about-page > .section:first-of-type {
  padding-top: calc(var(--page-gap) * 0.85);
}

/* «Сейчас» — полный ритм главной */
.about-page > .section.about-now {
  padding-top: var(--section-gap);
}

.about-page .section-title {
  margin: 0 0 16px;
}

.about-goal__text,
.about-benefits__text,
.about-media__lead,
.about-media__bridge,
.about-media__closing,
.about-now__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.about-benefits__panel {
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
}

.about-media__bridge {
  margin: 18px 0 12px;
  color: var(--ink);
  font-weight: 700;
}

.about-media__closing {
  margin-top: 20px;
}

.about-now__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.about-contact-note {
  margin: var(--page-gap) 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.about-page .about-principles__list {
  margin-top: 4px;
}

.note,
.note-beta,
.about-goal__panel,
.business-benefits__item,
.about-principles__item {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.note-beta { margin: calc(var(--page-gap) * 0.45) 0 0; }
.note-beta__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.steps {
  margin: 14px 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

/* Download page — product screen */
.download-page {
  padding-top: clamp(20px, 3vw, 32px);
}

.download-page .page-tagline {
  margin: 0 0 10px;
  text-align: center;
}

.download-page .page-lead {
  margin: 10px auto 0;
  max-width: 36ch;
  text-align: center;
}

.dl-hero {
  display: grid;
  gap: 28px;
  align-items: center;
}

.dl-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateX(-30px);
}

.dl-hero__proof {
  margin: 0;
  color: var(--accent-ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.dl-hero__actions {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  justify-items: center;
  width: min(100%, 36ch);
  text-align: center;
}

.dl-hero__visual {
  display: flex;
  justify-content: center;
  align-items: end;
}

.dl-phone {
  margin: 0;
  width: min(220px, 52vw);
  filter: drop-shadow(0 20px 40px rgba(16, 28, 48, 0.22));
}

.dl-phone img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.dl-qr {
  margin: 6px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
  box-shadow: 0 10px 28px rgba(16, 28, 48, 0.1);
  text-align: center;
  justify-self: center;
}

.dl-qr img {
  width: 132px;
  height: 132px;
  margin: 0 auto;
}

.dl-qr figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.dl-steps {
  list-style: none;
  margin: var(--page-gap) 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.dl-steps__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-solid);
}

.dl-steps__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-solid));
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.dl-steps__text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.dl-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.download-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  .dl-hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
  }

  .dl-phone {
    width: min(240px, 100%);
  }

  .dl-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .dl-steps__item {
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
  }
}

@media (max-width: 419px) {
  .dl-phone {
    width: min(200px, 70vw);
  }
}

/* Shared content column: About + Download = same as guide/contacts */
.wrap.about-page,
.wrap.download-page {
  width: min(var(--legal-width), calc(100% - 2 * var(--safe-inline)));
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.platform-intro__lead {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.08rem);
  line-height: 1.6;
}

.feature-block__head {
  margin: 0 0 24px;
  max-width: 52ch;
}

.feature-block__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feature-block__lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.shot-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 200px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  margin: 0 0 24px;
  -webkit-overflow-scrolling: touch;
}

.shot-rail__item {
  margin: 0;
  scroll-snap-align: start;
}

.shot-rail__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-solid);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 14px 32px rgba(16, 28, 48, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shot-rail__btn img {
  width: 100%;
  height: auto;
  vertical-align: top;
}

.shot-rail__item figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 860px) {
  .shot-rail {
    grid-auto-flow: unset;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .shot-rail__btn:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    box-shadow: 0 18px 40px rgba(16, 28, 48, 0.16);
  }
}

.feature-block__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-block__points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.feature-block__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-block__points strong {
  color: var(--ink);
}

.about-principles__list,
.business-benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.about-principles__item-title,
.business-benefits__item-title {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.about-principles__item-text,
.business-benefits__item-text {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— Inner pages: guide / contacts / legal ——— */
.page-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-lead {
  margin: 0 0 calc(var(--page-gap) * 0.4);
  max-width: 42em;
  color: var(--muted);
  font-size: clamp(0.98rem, 2.6vw, 1.06rem);
  line-height: 1.55;
}

.legal-page {
  width: min(var(--legal-width), calc(100% - 2 * var(--safe-inline)));
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) 0 56px;
}

.legal-page--with-brand {
  padding-top: 28px;
}

.legal-page h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-page h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.6;
}

.legal-page .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-details {
  margin: 1.25rem 0 0.75rem;
  padding: 0;
}

.legal-details__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.legal-details__row:first-child { padding-top: 0; }
.legal-details__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-details__label {
  flex: 0 0 11rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.legal-details__value {
  flex: 1 1 16rem;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

.legal-section {
  scroll-margin-top: calc(var(--header-h) + var(--legal-subnav-height) + 20px + env(safe-area-inset-top));
}

.legal-section + .legal-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

body.has-legal-subnav {
  padding-top: calc(var(--header-h) + var(--legal-subnav-height) + env(safe-area-inset-top));
}

body.has-legal-subnav .site-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  pointer-events: none;
}

body.has-legal-subnav .site-header__top {
  pointer-events: none;
}

body.has-legal-subnav .site-header__top .site-header__bar {
  pointer-events: auto;
}

.legal-subnav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  margin: 8px var(--safe-inline) 0;
  padding: 8px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
}

.legal-subnav__link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.legal-subnav__link:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.legal-subnav__link.is-active {
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: rgba(26, 109, 255, 0.1);
}

.contacts-page {
  padding-top: calc(clamp(20px, 3vw, 32px) + 100px);
}

.contacts-page .page-lead {
  margin-bottom: calc(var(--page-gap) * 0.55);
}

.contacts-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  overflow: hidden;
}

.contacts-list__item {
  display: block;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.contacts-list__item:last-child {
  border-bottom: none;
}

.contacts-list__label {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
}

.contacts-list__email {
  display: block;
  margin-top: 4px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.contacts-list__email:hover {
  text-decoration: underline;
}

.contacts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0;
}

.contacts-table th,
.contacts-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.contacts-table thead th {
  background: rgba(127, 127, 127, 0.08);
  font-weight: 700;
}

.contacts-table tbody th[scope="row"] {
  width: 34%;
  min-width: 9rem;
  background: rgba(127, 127, 127, 0.05);
  font-weight: 600;
  color: var(--ink);
}

.contacts-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-page {
  padding-top: clamp(20px, 3vw, 32px);
}

.guide-page .page-lead {
  margin-bottom: calc(var(--page-gap) * 0.35);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}

.guide-section__title {
  margin: var(--page-gap) 0 8px;
  padding-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.5vw, 1.2rem);
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

.guide-section__title:first-child {
  margin-top: 0;
}

.guide-step {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: calc(var(--page-gap) * 0.45) 0;
  border-bottom: 1px solid var(--line);
}

.guide-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.guide-step__content {
  min-width: 0;
}

.guide-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-solid));
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.guide-step__title {
  margin: 0 0 8px;
  font-size: clamp(1rem, 3.2vw, 1.12rem);
  font-weight: 700;
  text-wrap: balance;
}

.guide-step__text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 3vw, 1rem);
  line-height: 1.55;
}

.guide-step__inline-icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin: 0 0.1em;
  vertical-align: -0.22em;
  object-fit: contain;
}

.guide-step__media {
  margin: 0;
  display: flex;
  justify-content: center;
}

.guide-step__shot-btn {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-step__shot {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.guide-step--crop .guide-step__shot-btn {
  max-width: 100%;
  border-radius: 12px;
}

@media (min-width: 720px) {
  .guide-step {
    grid-template-columns: 1fr min(240px, 36%);
    gap: 32px;
    padding: calc(var(--page-gap) * 0.5) 0;
  }

  .guide-step--reverse {
    grid-template-columns: min(240px, 36%) 1fr;
  }

  .guide-step--reverse .guide-step__content { order: 2; }
  .guide-step--reverse .guide-step__media { order: 1; }

  .guide-step__shot-btn { max-width: 240px; }

  .guide-step--crop {
    grid-template-columns: 1fr min(320px, 44%);
  }

  .guide-step--crop.guide-step--reverse {
    grid-template-columns: min(320px, 44%) 1fr;
  }

  .guide-step--crop .guide-step__shot-btn { max-width: 320px; }
}

@media (hover: hover) and (pointer: fine) {
  .guide-step__shot-btn:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  }
}

.legal-doc,
.wrap.legal {
  width: min(var(--legal-width), calc(100% - 2 * var(--safe-inline)));
  margin-inline: auto;
  padding: 24px 0 56px;
}

.legal-doc h1,
.legal-doc h2,
.wrap.legal h1,
.wrap.legal h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-doc p,
.legal-doc li,
.wrap.legal p,
.wrap.legal li {
  color: var(--muted);
}

.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.92);
}

.screenshot-lightbox[hidden] {
  display: none;
}

.screenshot-lightbox__image {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.screenshot-lightbox__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.screenshot-lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-out;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s ease forwards;
}

.reveal--delay-1 { animation-delay: 0.12s; }
.reveal--delay-2 { animation-delay: 0.22s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Legacy bridges */
.hero-fade { animation: rise 0.7s ease both; }
.badge { display: none; }
.category-carousel { display: none; }
.contacts a { font-weight: 600; }

/* ——— Showcase carousel (users / business) ——— */
.showcase {
  margin-top: 0;
}

.showcase__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.showcase__lead {
  margin: 0 0 28px;
  max-width: 42em;
  color: var(--muted);
  font-size: clamp(0.98rem, 3.2vw, 1.08rem);
  line-height: 1.55;
  text-wrap: balance;
}

.showcase__grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.showcase__points {
  display: grid;
  gap: 10px;
  align-content: start;
  height: 100%;
}

.showcase__point {
  display: block;
  width: 100%;
  margin: 0;
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: 14px;
  background: var(--surface-solid);
  cursor: pointer;
  opacity: 0.72;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.showcase__point-title {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.showcase__point-text {
  display: block;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.showcase__point.is-active {
  opacity: 1;
  border-left-color: var(--accent);
  background: rgba(26, 109, 255, 0.08);
  box-shadow: 0 4px 16px rgba(16, 28, 48, 0.08);
}

.showcase__carousel {
  display: flex;
  align-self: stretch;
  min-height: 100%;
}

.showcase__stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.showcase__slide {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 52%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s ease,
    filter 0.5s ease;
  will-change: transform, opacity;
}

.showcase__slide img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(16, 28, 48, 0.2);
  user-select: none;
  -webkit-user-drag: none;
}

.showcase__slide.is-active {
  z-index: 3;
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
  cursor: zoom-in;
}

.showcase__slide.is-prev {
  z-index: 1;
  opacity: 0.88;
  transform: translateX(calc(-50% - 36%)) scale(0.8);
  pointer-events: auto;
  cursor: pointer;
  filter: brightness(0.92);
}

.showcase__slide.is-next {
  z-index: 1;
  opacity: 0.88;
  transform: translateX(calc(-50% + 36%)) scale(0.8);
  pointer-events: auto;
  cursor: pointer;
  filter: brightness(0.92);
}

/* Desktop: carousel from title top to points bottom */
@media (min-width: 800px) {
  .showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 36px;
    align-items: stretch;
  }

  .showcase__title {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 12px;
  }

  .showcase__lead {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 24px;
  }

  .showcase__grid {
    display: contents;
  }

  .showcase__points {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
  }

  .showcase__carousel {
    grid-column: 2;
    grid-row: 1 / -1;
    min-height: 0;
    align-self: stretch;
  }

  .showcase__stage {
    min-height: 100%;
  }

  /* Business: phone left, copy right */
  .showcase--business {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

  .showcase--business .showcase__title,
  .showcase--business .showcase__lead,
  .showcase--business .showcase__points {
    grid-column: 2;
  }

  .showcase--business .showcase__carousel {
    grid-column: 1;
    grid-row: 1 / -1;
  }

  .showcase__slide {
    width: 48%;
  }

  .showcase__slide.is-prev {
    transform: translateX(calc(-50% - 40%)) scale(0.78);
  }

  .showcase__slide.is-next {
    transform: translateX(calc(-50% + 40%)) scale(0.78);
  }
}

@media (max-width: 799px) {
  .showcase__carousel,
  .showcase__stage {
    min-height: clamp(340px, 72vw, 520px);
  }

  .showcase__slide {
    width: 58%;
  }

  .showcase__slide.is-prev {
    transform: translateX(calc(-50% - 32%)) scale(0.76);
  }

  .showcase__slide.is-next {
    transform: translateX(calc(-50% + 32%)) scale(0.76);
  }
}

@media (hover: hover) and (pointer: fine) {
  .showcase__point:hover {
    opacity: 0.92;
  }

  .showcase__slide.is-prev:hover,
  .showcase__slide.is-next:hover {
    filter: brightness(1);
    opacity: 0.96;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase__slide {
    transition: none;
  }
}
