/* CardLingo — marketing landing page
   Design tokens follow the app's own design system (see frontend/app/style.css
   for the product UI equivalent). This file is intentionally self-contained. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus_jakarta_sans.ttf') format('truetype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color */
  --bg: #e7e1d7;
  --surface: #f5f1ea;
  --card: #ffffff;
  --card-muted: #faf7f1;
  --border: #ece5d9;
  --border-strong: #e2dacd;
  --ink: #232019;
  --ink-2: #3a352d;
  --ink-3: #6f6656;
  --muted: #9a9184;
  --muted-2: #b3aa9b;
  --accent: #d9633f;
  --accent-light: #ef8462;
  --accent-tint: #fbeee7;
  --accent-tint-border: #f2d5c7;
  --danger: #d9463f;
  --accent-gradient: linear-gradient(160deg, var(--accent-light), var(--accent));
  --success: oklch(0.5 0.13 155);

  /* shadow */
  --shadow-card: 0 4px 14px rgba(38, 35, 32, 0.05);
  --shadow-accent: 0 10px 24px rgba(217, 99, 63, 0.34);
  --shadow-accent-hover: 0 14px 30px rgba(217, 99, 63, 0.34);
  --shadow-float: 0 40px 90px rgba(38, 35, 32, 0.32);
  --shadow-btn-secondary: 0 2px 6px rgba(38, 35, 32, 0.04);
  --shadow-btn-secondary-hover: 0 8px 18px rgba(38, 35, 32, 0.08);

  /* radius */
  --r-pill: 999px;
  --r-card: 22px;
  --r-panel: 28px;
  --r-btn: 18px;
  --r-input: 16px;
  --r-icon-sm: 12px;
  --r-icon-md: 17px;
  --r-icon-lg: 24px;

  /* motion */
  --ease-hover: 180ms ease;
  --ease-reveal: 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- reset / base ---------- */

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  overflow-x: hidden;
}

main { position: relative; z-index: 2; }

p { margin: 0; text-wrap: pretty; }

h1, h2, h3 { margin: 0; }

img { display: block; max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease-hover);
}
a:hover { color: #c04f2d; text-decoration: underline; }

::selection { background: var(--accent-tint-border); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

svg[aria-hidden="true"] { pointer-events: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.section-pad { padding: clamp(72px, 9vw, 120px) 0; }

/* longhand-only vertical padding: safe to combine with .container on the
   same element without clobbering its horizontal gutter (a plain shorthand
   `padding: X 0` would override .container's left/right via specificity or
   source order and remove the side gutter). */
.pad-v {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.section-head h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1.2px;
  line-height: 1.08;
}

.section-head p {
  font-size: clamp(16px, 1.2vw, 17px);
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.5;
}

/* below-the-fold perf hint */
#screens, #pricing, #faq, #cta { content-visibility: auto; }

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  z-index: 90;
}
.skip-link:focus-visible {
  left: 12px;
  top: 12px;
}

/* ---------- trail canvas + scroll progress ---------- */

.trail-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  will-change: contents;
}
@media (max-width: 899px), (pointer: coarse) {
  .trail-canvas { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .trail-canvas { display: none; }
}

.progress-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(217, 99, 63, 0.14);
  z-index: 60;
}
.progress-top__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.rail {
  position: fixed;
  left: 28px;
  top: 15vh;
  bottom: 15vh;
  width: 2px;
  z-index: 40;
  pointer-events: none;
  display: none;
}
@media (min-width: 900px) and (pointer: fine) {
  .rail { display: block; }
}
.rail__track {
  position: absolute;
  inset: 0;
  background: rgba(217, 99, 63, 0.14);
  border-radius: 2px;
}
.rail__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}
.rail__head {
  position: absolute;
  left: -3px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 4px rgba(217, 99, 63, 0.35);
  will-change: transform;
  opacity: 0;
}
.rail__dots { position: absolute; inset: 0; }
.rail__dot {
  position: absolute;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(217, 99, 63, 0.28);
  transition: background 200ms ease, box-shadow 200ms ease;
}
.rail__dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 12px 3px rgba(217, 99, 63, 0.3);
}

/* mobile progress bar (top, collapsed rail) */
@media (max-width: 899px) {
  .progress-top { height: 3px; }
}

/* vertical connector used behind "how" steps and feature list on mobile */
.connector {
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(217, 99, 63, 0.14);
  border-radius: 2px;
  display: none;
}
.connector__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
}
@media (max-width: 899px) {
  .connector { display: block; }
}

/* ---------- header ---------- */

header#header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(231, 225, 215, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease-hover);
}
header#header.is-scrolled { border-bottom-color: var(--border-strong); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  height: clamp(60px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 26px; width: auto; }
.logo:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 30px; }
@media (max-width: 899px) {
  .nav { display: none; }
}
.nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
}
.nav a:hover { color: var(--accent); text-decoration: none; }

.btn-header {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(217, 99, 63, 0.28);
  transition: transform var(--ease-hover), box-shadow var(--ease-hover);
  white-space: nowrap;
}
.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(217, 99, 63, 0.34);
  text-decoration: none;
  color: #fff;
}

/* ---------- buttons (shared) ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding: 0 28px;
  border: none;
  border-radius: var(--r-btn);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-accent);
  transition: transform var(--ease-hover), box-shadow var(--ease-hover);
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding: 0 26px;
  border-radius: var(--r-btn);
  background: var(--card);
  border: 1.5px solid var(--accent-tint-border);
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-btn-secondary);
  transition: transform var(--ease-hover), box-shadow var(--ease-hover);
  cursor: pointer;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-secondary-hover);
  text-decoration: none;
  color: var(--accent);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-border);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- reveal-on-scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--ease-reveal), transform var(--ease-reveal);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- phone mockups (shared parts) ---------- */

.phone-frame {
  background: var(--surface);
  border-radius: 44px;
  border: 9px solid #262320;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.status-bar {
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px 0 28px;
}
.status-bar__time { font-size: 14px; font-weight: 700; color: #2c2825; }
.status-bar__icons { display: flex; align-items: center; gap: 7px; }

.gesture-bar {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gesture-bar__pill {
  width: 128px;
  height: 5px;
  border-radius: 3px;
  background: #2c2825;
  opacity: 0.32;
}

.back-tile {
  width: 38px;
  height: 38px;
  border-radius: var(--r-icon-sm);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(38, 35, 32, 0.05);
  flex-shrink: 0;
}

.mini-lang-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 15px 16px;
  box-shadow: var(--shadow-card);
}
.mini-lang-card--muted { background: var(--card-muted); box-shadow: none; }
.mini-lang-card--dashed {
  border: 1.5px dashed #d8cfbf;
  background: transparent;
  box-shadow: none;
}
.mini-lang-card__avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--r-icon-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  flex-shrink: 0;
}
.mini-lang-card__body { flex: 1; min-width: 0; }
.mini-lang-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mini-lang-card__name { font-size: 17px; font-weight: 700; color: var(--ink); }
.mini-lang-card__meta { font-size: 12.5px; font-weight: 500; color: var(--muted); margin: 3px 0 9px; }
.mini-lang-card__bar { height: 6px; border-radius: 3px; background: #efe9df; overflow: hidden; }
.mini-lang-card__bar-fill { height: 100%; }
.mini-lang-card__open {
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-border);
  padding: 8px 13px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- hero ---------- */

#hero {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(64px, 8vw, 110px);
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
}

.hero-content {
  flex: 1 1 440px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero-content h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: clamp(-2px, -0.14vw, -1px);
  line-height: 1.02;
}

.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 520px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.hero-note { font-size: 13px; font-weight: 500; color: var(--muted); }

.hero-visual { flex: 0 1 420px; min-width: 300px; display: flex; justify-content: center; }
.hero-visual__stage { position: relative; width: 300px; height: 640px; }

.phone--hero {
  position: absolute;
  left: 0;
  top: 0;
  width: 400px;
  height: 852px;
  transform: scale(0.75) rotate(-3deg);
  transform-origin: top left;
  box-shadow: var(--shadow-float);
}

.phone--hero .status-bar__time { }
.phone-header {
  padding: 14px 22px 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}
.phone-header__title { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
.phone-header__meta { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.phone-header__count {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  background: #efe8dc;
  padding: 6px 12px;
  border-radius: var(--r-pill);
}

.phone-progress { padding: 0 24px 4px; flex-shrink: 0; }
.phone-progress__track { height: 6px; border-radius: 3px; background: #e6ddcf; overflow: hidden; }
.phone-progress__fill { height: 100%; border-radius: 3px; background: var(--accent-gradient); }

.phone-card-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 30px 0;
}
.phone-card-deck { position: relative; width: 300px; height: 380px; }
.phone-card-deck__back {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateY(26px);
  width: 82%;
  height: 100%;
  background: #fbf8f2;
  border: 1px solid #efe9df;
  border-radius: 28px;
  opacity: 0.6;
}
.phone-card-deck__mid {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateY(13px);
  width: 91%;
  height: 100%;
  background: #fefdfa;
  border: 1px solid #efe9df;
  border-radius: 28px;
  opacity: 0.85;
}
.phone-card-deck__top {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: var(--card);
  border: 1px solid #efe9df;
  border-radius: 28px;
  box-shadow: 0 20px 44px rgba(38, 35, 32, 0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.phone-card-deck__lang {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--muted-2);
}
.phone-card-deck__audio {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: var(--r-icon-sm);
  background: #faf5ee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-card-deck__word { font-size: 44px; font-weight: 800; color: var(--accent); letter-spacing: -0.8px; }
.phone-card-deck__rule { width: 44px; height: 3px; border-radius: 2px; background: #efe9df; margin: 18px 0; }
.phone-card-deck__translation { font-size: 27px; font-weight: 600; color: var(--ink-2); }
.phone-card-stage__hint { font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 26px; }

.phone-actions { padding: 12px 22px 22px; display: flex; gap: 12px; flex-shrink: 0; }
.phone-actions__btn {
  flex: 1;
  height: 56px;
  border-radius: var(--r-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
}
.phone-actions__btn--ghost {
  background: var(--card);
  border: 1.5px solid var(--accent-tint-border);
  color: var(--accent);
}
.phone-actions__btn--fill {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(217, 99, 63, 0.32);
}

.streak-card {
  position: absolute;
  left: -18px;
  bottom: 34px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 13px;
}
.streak-card__num {
  width: 44px;
  height: 44px;
  border-radius: var(--r-icon-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.streak-card__label { font-size: 15px; font-weight: 700; color: var(--ink); }
.streak-card__meta { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }

@media (max-width: 899px) {
  .hero-grid { flex-direction: column; text-align: center; }
  .hero-content { align-items: center; }
  .hero-sub { max-width: none; }
  .cta-row { flex-direction: column; width: 100%; max-width: 360px; }
  .cta-row .btn-primary,
  .cta-row .btn-secondary { width: 100%; }
  .hero-visual { width: 100%; overflow: hidden; }
  .hero-visual__stage { transform: scale(0.86); margin-bottom: -90px; }
  .phone--hero { transform: scale(0.75) rotate(0deg); }
}

/* ---------- value ---------- */

#value { background: var(--surface); border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); position: relative; }

.value-grid {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 4vw, 56px);
  position: relative;
}

.value-item { display: flex; flex-direction: column; gap: 14px; position: relative; }
@media (max-width: 899px) {
  .value-item { padding-left: 56px; }
}

.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: var(--r-icon-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 899px) {
  .icon-tile { position: absolute; left: 0; top: 0; }
}

.value-item__title { font-size: 20px; font-weight: 700; color: var(--ink); }
.value-item p { font-size: 16px; font-weight: 500; color: var(--ink-3); line-height: 1.5; }

/* ---------- features ---------- */

#features {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card__title { font-size: 20px; font-weight: 700; color: var(--ink); }
.card p { font-size: 15.5px; font-weight: 500; color: var(--ink-3); line-height: 1.5; }

.card--wide {
  grid-column: 1 / -1;
  padding: clamp(22px, 2.4vw, 32px);
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
.card--wide .card__copy { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.card--wide .card__title { font-size: clamp(20px, 1.8vw, 24px); }
.card--wide .icon-tile { width: 54px; height: 54px; border-radius: var(--r-icon-md); }
.card--wide .icon-tile svg { width: 26px; height: 26px; }

.card .icon-tile { width: 54px; height: 54px; border-radius: var(--r-icon-md); }
.card .icon-tile svg { width: 26px; height: 26px; }

.card--wide__preview { flex: 0 0 auto; width: 200px; height: 300px; position: relative; overflow: hidden; }
.phone--card {
  position: absolute;
  left: 0;
  top: 0;
  width: 400px;
  height: 600px;
  transform: scale(0.5);
  transform-origin: top left;
  border-radius: 44px 44px 0 0;
  border-bottom: none;
}

@media (max-width: 899px) {
  .card--wide { flex-direction: column; align-items: flex-start; }
  .card--wide__preview { align-self: center; }
}

/* ---------- how ---------- */

#how { background: var(--surface); border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }

.how-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 3vw, 44px);
}

.how-step { display: flex; flex-direction: column; gap: 12px; position: relative; }
.how-step__num {
  font-size: 56px;
  font-weight: 800;
  color: var(--border-strong);
  letter-spacing: -2px;
  line-height: 1;
}
.how-step__title { font-size: 22px; font-weight: 700; color: var(--ink); }
.how-step p { font-size: 16px; font-weight: 500; color: var(--ink-3); line-height: 1.5; }

@media (max-width: 899px) {
  .how-step { padding-left: 12px; }
}

/* ---------- screens ---------- */

#screens { padding: clamp(64px, 9vw, 120px) 0; }

.screens-track {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px clamp(20px, 4vw, 40px) 40px;
  justify-content: safe center;
  scrollbar-width: none;
}
.screens-track::-webkit-scrollbar { display: none; }

.screen-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.screen-item__stage { width: 248px; height: 528px; position: relative; }
.phone--screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 400px;
  height: 852px;
  transform: scale(0.62);
  transform-origin: top left;
  box-shadow: var(--shadow-float);
}
.screen-item__caption { font-size: 14px; font-weight: 700; color: var(--ink-3); }

@media (min-width: 900px) {
  .screen-item:nth-child(2) .screen-item__stage { transform: translateY(-14px); }
  .screen-item:nth-child(1) .screen-item__stage,
  .screen-item:nth-child(3) .screen-item__stage { transform: scale(0.94) translateY(10px); }
}

.screens-dots { display: none; justify-content: center; gap: 8px; margin-top: -16px; }
.screens-dots__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background var(--ease-hover), transform var(--ease-hover);
}
.screens-dots__dot.is-active { background: var(--accent); transform: scale(1.3); }

@media (max-width: 899px) {
  .screens-track { justify-content: flex-start; }
  .screens-dots { display: flex; }
}

/* ---------- pricing ---------- */

#pricing { background: var(--surface); border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  padding: clamp(24px, 2.6vw, 34px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.price-card--pro { border: 1.5px solid var(--accent); box-shadow: var(--shadow-accent); }

.price-card__head { display: flex; flex-direction: column; gap: 8px; }
.price-card__title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-card__name { font-size: 20px; font-weight: 700; color: var(--ink); }
.price-card__amount { display: flex; align-items: baseline; gap: 8px; }
.price-card__amount-num { font-size: 46px; font-weight: 800; color: var(--ink); letter-spacing: -1.6px; line-height: 1; }
.price-card__amount-unit { font-size: 14px; font-weight: 600; color: var(--muted); }
.price-card__desc { font-size: 15px; font-weight: 500; color: var(--ink-3); line-height: 1.5; }

.price-card__features { display: flex; flex-direction: column; gap: 13px; }
.price-card__feature { display: flex; align-items: flex-start; gap: 11px; }
.price-card__feature svg { flex-shrink: 0; margin-top: 2px; }
.price-card__feature span { font-size: 15.5px; font-weight: 600; color: var(--ink-2); }

.price-card__cta { margin-top: auto; }

/* ---------- faq ---------- */

#faq { max-width: 860px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 40px); }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  width: 100%;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__sign {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--ease-hover);
}
.faq-item[open] .faq-item__sign { transform: rotate(180deg); }
.faq-item__sign::before { content: '+'; }
.faq-item[open] .faq-item__sign::before { content: '\2212'; }

.faq-item p {
  padding: 0 22px 22px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ---------- final cta ---------- */

#cta { padding-bottom: clamp(64px, 9vw, 120px); }
.cta-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-panel);
  padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.cta-panel h2 {
  max-width: 640px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1.2px;
  line-height: 1.08;
}
.cta-panel p { max-width: 520px; font-size: clamp(16px, 1.2vw, 17px); font-weight: 500; color: var(--ink-3); line-height: 1.5; }
.cta-panel .cta-row { justify-content: center; margin-top: 8px; }
.cta-panel__note { font-size: 13px; font-weight: 500; color: var(--muted); max-width: 460px; line-height: 1.5; }

@media (max-width: 899px) {
  .cta-panel .cta-row { flex-direction: column; width: 100%; max-width: 360px; }
  .cta-panel .cta-row .btn-primary,
  .cta-panel .cta-row .btn-secondary { width: 100%; }
}

/* ---------- footer ---------- */

footer {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-top: 1px solid var(--border-strong);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(44px, 5vw, 72px) clamp(20px, 4vw, 40px) 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(28px, 3vw, 48px);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { height: 24px; width: auto; }
.footer-brand p { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.5; max-width: 260px; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 40px) 36px;
  border-top: 1px solid var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
.footer-bottom__group { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 500; color: var(--muted); }
.footer-bottom__group a { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; }
.footer-bottom__group a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- no-js fallback ---------- */

.no-js [data-reveal] { opacity: 1; transform: none; }
