/* =============================================================
   Pedometeryo — ASO landing (step tracker for iOS)
   Light & dark themes · bilingual · subtle animations.
   ============================================================= */

/* ---------- Reset & tokens ---------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

:root {
  /* Brand ramps */
  --brand-50:  #eef4ff;
  --brand-100: #dbe7ff;
  --brand-200: #b7ceff;
  --brand-300: #8aaefd;
  --brand-400: #5c8afc;
  --brand-500: #2f65f6;   /* primary */
  --brand-600: #1f4ee0;
  --brand-700: #173db2;

  --accent-violet: #7b5cff;
  --accent-orange: #ff9241;
  --accent-pink:   #ff5c7c;
  --accent-mint:   #1ec9a3;
  --accent-amber:  #ffb23d;
  --accent-cyan:   #34c3ff;

  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,.06);
  --shadow-sm: 0 4px 14px rgba(15,23,42,.08);
  --shadow-md: 0 12px 36px rgba(15,23,42,.12);
  --shadow-lg: 0 30px 80px rgba(15,23,42,.18);
}

/* Light theme */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg:        #f6f8fc;
  --bg-elev:   #ffffff;
  --bg-alt:    #eef2f9;
  --bg-muted:  #f2f5fb;
  --surface:   #ffffff;
  --text:      #0b1529;
  --text-soft: #445170;
  --text-mute: #6b7793;
  --border:    #e4e9f2;
  --border-strong: #cfd7e6;
  --ring:      rgba(47,101,246,.22);
  --hero-grad: radial-gradient(1200px 600px at 10% -10%, rgba(47,101,246,.18), transparent 60%),
               radial-gradient(900px 500px at 100% 0%, rgba(123,92,255,.16), transparent 60%),
               radial-gradient(900px 500px at 50% 120%, rgba(255,146,65,.10), transparent 60%);
  --glass:     rgba(255,255,255,.72);
  --glass-brd: rgba(15,23,42,.08);
  --code-bg:   #0b1529;
  --shadow-card: 0 20px 50px rgba(15,23,42,.10);
}

/* Dark theme */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #070a14;
  --bg-elev:   #0d1322;
  --bg-alt:    #0b1121;
  --bg-muted:  #0e1527;
  --surface:   #101a33;
  --text:      #eaf0ff;
  --text-soft: #bcc7e3;
  --text-mute: #8b97b6;
  --border:    #1a2440;
  --border-strong: #253358;
  --ring:      rgba(92,138,252,.35);
  --hero-grad: radial-gradient(1200px 600px at 10% -10%, rgba(47,101,246,.28), transparent 60%),
               radial-gradient(900px 500px at 100% 0%, rgba(123,92,255,.26), transparent 60%),
               radial-gradient(900px 500px at 50% 120%, rgba(255,146,65,.14), transparent 60%);
  --glass:     rgba(13,19,34,.65);
  --glass-brd: rgba(255,255,255,.07);
  --code-bg:   #06091a;
  --shadow-card: 0 20px 60px rgba(0,0,0,.45);
}

/* System preference fallback (when user hasn't chosen) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { color-scheme: dark; }
  :root:not([data-theme]) {
    --bg:        #070a14;
    --bg-elev:   #0d1322;
    --bg-alt:    #0b1121;
    --bg-muted:  #0e1527;
    --surface:   #101a33;
    --text:      #eaf0ff;
    --text-soft: #bcc7e3;
    --text-mute: #8b97b6;
    --border:    #1a2440;
    --border-strong: #253358;
    --ring:      rgba(92,138,252,.35);
    --hero-grad: radial-gradient(1200px 600px at 10% -10%, rgba(47,101,246,.28), transparent 60%),
                 radial-gradient(900px 500px at 100% 0%, rgba(123,92,255,.26), transparent 60%),
                 radial-gradient(900px 500px at 50% 120%, rgba(255,146,65,.14), transparent 60%);
    --glass:     rgba(13,19,34,.65);
    --glass-brd: rgba(255,255,255,.07);
    --shadow-card: 0 20px 60px rgba(0,0,0,.45);
  }
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  margin: 0 0 .4em;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 4.6vw, 4.1rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.8rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p  { margin: 0 0 1em; color: var(--text-soft); }

.gradient-text {
  background: linear-gradient(100deg, var(--brand-500) 10%, var(--accent-violet) 55%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout primitives ---------- */

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.container--narrow { max-width: 820px; }

.section      { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  margin-bottom: 18px;
}
:root[data-theme="dark"] .section__eyebrow,
:root:not([data-theme]) .section__eyebrow {
  color: var(--brand-300);
  background: rgba(47,101,246,.12);
  border-color: rgba(92,138,252,.3);
}
.section__lede { font-size: 1.1rem; color: var(--text-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--primary {
  background: linear-gradient(120deg, var(--brand-500), var(--brand-600));
  color: #fff;
  box-shadow: 0 10px 24px rgba(47,101,246,.38);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(47,101,246,.48); }
.btn--ghost {
  background: var(--bg-elev);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-2px); }
:root[data-theme="dark"] .btn--ghost:hover,
:root:not([data-theme]) .btn--ghost:hover { color: var(--brand-300); }
.btn--dark {
  background: #0b1529;
  color: #fff;
}
:root[data-theme="dark"] .btn--dark,
:root:not([data-theme]) .btn--dark { background: #fff; color: #0b1529; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--text-soft);
}
.nav__links a { transition: color .2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-soft);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  transition: color .2s ease, background .2s ease;
}
.lang-toggle button.is-active {
  background: var(--brand-500);
  color: #fff;
}
.theme-toggle .icon--sun { display: none; }
.theme-toggle .icon--moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--sun,
:root:not([data-theme]) .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon,
:root:not([data-theme]) .theme-toggle .icon--moon { display: none; }

.nav__brand-mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: #000;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  color: #fff;
  font-size: 18px;
  overflow: hidden;
}
.nav__brand-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile burger */
.nav__burger { display: none; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--hero-grad);
  pointer-events: none;
}
.hero__blob {
  position: absolute; z-index: -1;
  width: 520px; height: 520px;
  filter: blur(80px);
  opacity: .55;
  border-radius: 50%;
  animation: float 14s ease-in-out infinite;
}
.hero__blob--a { top: -120px; left: -120px; background: radial-gradient(circle, rgba(47,101,246,.55), transparent 60%); }
.hero__blob--b { bottom: -180px; right: -120px; background: radial-gradient(circle, rgba(123,92,255,.55), transparent 60%); animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(20px,-30px) scale(1.08); }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero__chips { justify-content: center; }
  .hero__cta { justify-content: center; }
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  margin-bottom: 22px;
}
:root[data-theme="dark"] .hero__eyebrow,
:root:not([data-theme]) .hero__eyebrow {
  color: var(--brand-300);
  background: rgba(47,101,246,.12);
  border-color: rgba(92,138,252,.3);
}
.hero__eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-500); box-shadow: 0 0 0 4px rgba(47,101,246,.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(47,101,246,.02); }
}

.hero__title {
  margin-bottom: 18px;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--text-soft);
  max-width: 560px;
}
@media (max-width: 900px) { .hero__lede { margin-inline: auto; } }

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px;
}
.hero__chips {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  font-size: 14px; color: var(--text-mute);
}
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero__chips strong { color: var(--text); font-weight: 700; }
.hero__chips li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-400);
}

/* ---------- Phone mock ---------- */

.phone-stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 560px;
}
.phone-stage::before {
  content: "";
  position: absolute; inset: 10% 10%;
  background: conic-gradient(from 120deg, rgba(47,101,246,.25), rgba(123,92,255,.25), rgba(255,146,65,.22), rgba(47,101,246,.25));
  filter: blur(50px);
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  animation: morph 12s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes morph {
  0%   { border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; transform: rotate(0deg); }
  100% { border-radius: 55% 45% 40% 60% / 45% 55% 40% 60%; transform: rotate(18deg); }
}

.phone {
  position: relative;
  width: min(300px, 80%);
  aspect-ratio: 9 / 19.5;
  background: #0b1529;
  border-radius: 46px;
  padding: 10px;
  box-shadow:
    0 40px 100px rgba(15,23,42,.35),
    0 0 0 2px rgba(255,255,255,.03) inset;
  z-index: 1;
  transform: rotate(-4deg);
  transition: transform .4s ease;
}
.phone:hover { transform: rotate(0deg) translateY(-6px); }
.phone--sm { width: min(230px, 70%); transform: rotate(6deg) translate(30%, 8%); }
.phone--sm:hover { transform: rotate(4deg) translate(30%, 4%); }

.phone__notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 26px;
  background: #000;
  border-radius: 13px;
  z-index: 2;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  background: var(--bg-elev);
  overflow: hidden;
  position: relative;
}
.phone__screen img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.phone-stage__b {
  position: absolute;
  right: -40px; bottom: -20px;
  z-index: 0;
}

/* Floating badges around phone */
.float-badge {
  position: absolute;
  z-index: 2;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY {
  50% { transform: translateY(-10px); }
}
.float-badge--a { top: 8%; left: -10px; animation-delay: -2s; }
.float-badge--b { top: 38%; right: -20px; animation-delay: -1s; }
.float-badge--c { bottom: 12%; left: -20px; animation-delay: -3s; }
.float-badge__dot {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-violet));
}
.float-badge__dot--orange { background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink)); }
.float-badge__dot--mint   { background: linear-gradient(135deg, var(--accent-mint), var(--accent-cyan)); }

/* ---------- Trust bar ---------- */

.trust {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.trust__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
@media (max-width: 720px) { .trust__inner { grid-template-columns: repeat(2, 1fr); } }
.trust__num {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--brand-500), var(--accent-violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.trust__label { color: var(--text-mute); font-size: 14px; }

/* ---------- Feature grid ---------- */

.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius-lg);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(520px 200px at 0% 0%, var(--feature-glow, rgba(47,101,246,.1)), transparent 60%);
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.feature:hover::before { opacity: 1; }
.feature__icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 22px;
  color: #fff;
  margin-bottom: 18px;
  background: var(--icon-bg, linear-gradient(135deg, var(--brand-500), var(--accent-violet)));
  box-shadow: 0 10px 24px rgba(47,101,246,.28);
}
.feature h3 { margin-bottom: 8px; }
.feature p  { color: var(--text-soft); font-size: 15px; margin: 0; }

.feature[data-c="violet"] { --feature-glow: rgba(123,92,255,.14); --icon-bg: linear-gradient(135deg, var(--accent-violet), #a788ff); }
.feature[data-c="orange"] { --feature-glow: rgba(255,146,65,.14); --icon-bg: linear-gradient(135deg, var(--accent-orange), var(--accent-pink)); }
.feature[data-c="mint"]   { --feature-glow: rgba(30,201,163,.14); --icon-bg: linear-gradient(135deg, var(--accent-mint), var(--accent-cyan)); }
.feature[data-c="cyan"]   { --feature-glow: rgba(52,195,255,.14); --icon-bg: linear-gradient(135deg, var(--accent-cyan), var(--brand-500)); }
.feature[data-c="pink"]   { --feature-glow: rgba(255,92,124,.14); --icon-bg: linear-gradient(135deg, var(--accent-pink), var(--accent-orange)); }
.feature[data-c="amber"]  { --feature-glow: rgba(255,178,61,.14); --icon-bg: linear-gradient(135deg, var(--accent-amber), var(--accent-orange)); }

/* ---------- Showcase (big screenshot gallery) ---------- */

.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .showcase { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .showcase { grid-template-columns: 1fr; } }

.shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  padding: 22px;
  background: linear-gradient(160deg, var(--shot-a, #dbe7ff), var(--shot-b, #b7ceff));
  box-shadow: var(--shadow-card);
  transition: transform .4s ease;
  overflow: hidden;
}
.shot:hover { transform: translateY(-6px); }
.shot__phone {
  background: #0b1529;
  border-radius: 28px;
  padding: 6px;
  box-shadow: 0 20px 50px rgba(15,23,42,.22);
  max-width: 230px;
  margin: 0 auto;
}
.shot__phone img {
  display: block;
  border-radius: 22px;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}
.shot figcaption {
  text-align: center;
  margin-top: 16px;
  font-weight: 600;
  color: rgba(11,21,41,.78);
  letter-spacing: -0.01em;
}
.shot[data-tint="violet"] { --shot-a: #ece1ff; --shot-b: #d2bdff; }
.shot[data-tint="orange"] { --shot-a: #ffe5d1; --shot-b: #ffc49a; }
.shot[data-tint="mint"]   { --shot-a: #d4f5ec; --shot-b: #a8eadd; }
.shot[data-tint="pink"]   { --shot-a: #ffdfe7; --shot-b: #ffbccb; }
.shot[data-tint="amber"]  { --shot-a: #ffeccc; --shot-b: #ffd991; }
.shot[data-tint="cyan"]   { --shot-a: #d4edff; --shot-b: #a4d8ff; }

:root[data-theme="dark"] .shot figcaption,
:root:not([data-theme]) .shot figcaption { color: rgba(11,21,41,.9); }

/* ---------- Walkthrough (storytelling rows) ---------- */

.walk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0;
}
.walk + .walk { border-top: 1px dashed var(--border); }
@media (max-width: 900px) {
  .walk { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .walk__art { order: -1; }
}
.walk--reverse .walk__copy { order: 2; }
.walk--reverse .walk__art  { order: 1; }
@media (max-width: 900px) {
  .walk--reverse .walk__copy,
  .walk--reverse .walk__art { order: unset; }
}
.walk__num {
  display: inline-block;
  padding: 6px 12px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
:root[data-theme="dark"] .walk__num,
:root:not([data-theme]) .walk__num {
  background: rgba(47,101,246,.14);
  color: var(--brand-300);
}
.walk__art {
  display: grid; place-items: center;
  min-height: 360px;
}
.walk__phone {
  background: #0b1529;
  border-radius: 36px;
  padding: 8px;
  box-shadow: var(--shadow-card);
  max-width: 280px;
  transition: transform .6s ease;
}
.walk__phone img {
  border-radius: 28px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  width: 100%;
}
.walk:hover .walk__phone { transform: translateY(-6px) rotate(-1deg); }

/* ---------- Comparison table ---------- */

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}
.compare th, .compare td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.compare th:first-child,
.compare td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}
.compare thead th {
  background: var(--bg-muted);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.compare thead th.is-us {
  background: linear-gradient(120deg, var(--brand-500), var(--accent-violet));
  color: #fff;
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td { background: var(--bg-muted); }
.compare td.is-us { color: var(--brand-600); font-weight: 600; }
:root[data-theme="dark"] .compare td.is-us,
:root:not([data-theme]) .compare td.is-us { color: var(--brand-300); }
.check { color: var(--accent-mint); font-weight: 700; }
.cross { color: var(--text-mute); }

.compare-wrap { overflow-x: auto; }

/* ---------- Blog preview cards ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.post-card__cover {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-violet));
}
.post-card__cover::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,.18), transparent 60%);
}
.post-card__cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-card[data-tint="orange"] .post-card__cover { background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink)); }
.post-card[data-tint="mint"]   .post-card__cover { background: linear-gradient(135deg, var(--accent-mint), var(--accent-cyan)); }
.post-card[data-tint="amber"]  .post-card__cover { background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange)); }

.post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__tag {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-600);
  width: fit-content;
}
:root[data-theme="dark"] .post-card__tag,
:root:not([data-theme]) .post-card__tag { color: var(--brand-300); }
.post-card h3 { margin: 0; font-size: 1.18rem; letter-spacing: -0.015em; }
.post-card p  { font-size: 14px; color: var(--text-soft); margin: 0; flex: 1; }
.post-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-mute);
  margin-top: 4px;
}
.post-card__read { color: var(--brand-600); font-weight: 600; }
:root[data-theme="dark"] .post-card__read,
:root:not([data-theme]) .post-card__read { color: var(--brand-300); }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 12px; }
.faq {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq[open] { border-color: var(--brand-400); box-shadow: var(--shadow-sm); }
.faq summary {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  list-style: none;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--bg-muted);
  display: grid; place-items: center;
  font-size: 18px;
  transition: transform .3s ease, background .2s ease;
  color: var(--brand-600);
}
.faq[open] summary::after { content: "–"; transform: rotate(180deg); background: var(--brand-500); color: #fff; }
.faq__body {
  padding: 0 24px 22px;
  color: var(--text-soft);
  font-size: 15px;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: clamp(64px, 8vw, 110px) 0;
  background: linear-gradient(130deg, var(--brand-600) 0%, var(--brand-500) 45%, var(--accent-violet) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  filter: blur(90px);
  opacity: .45;
}
.cta-band::before { background: #ffe08a; top: -180px; left: -150px; }
.cta-band::after  { background: #ff6ea8; bottom: -200px; right: -150px; }
.cta-band h2 { color: #fff; }
.cta-band p  { color: rgba(255,255,255,.85); }
.cta-band .btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.cta-band .btn--primary {
  background: #fff;
  color: var(--brand-600);
  box-shadow: 0 15px 30px rgba(0,0,0,.18);
}
.cta-band .btn--primary:hover { color: var(--brand-700); }

/* ---------- Footer ---------- */

.footer {
  padding: 64px 0 28px;
  background: var(--bg-alt);
  color: var(--text-soft);
  font-size: 14px;
  border-top: 1px solid var(--border);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a:hover { color: var(--brand-500); }
.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.footer__brand p { margin: 10px 0 0; font-size: 14px; max-width: 320px; }

/* ---------- Article (blog post) ---------- */

.article {
  width: min(780px, calc(100% - 48px));
  margin: clamp(40px, 6vw, 80px) auto;
}
.article__head { text-align: center; margin-bottom: 48px; }
.article__meta {
  display: inline-flex; gap: 10px; align-items: center;
  color: var(--text-mute);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.article__title { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.article__sub  { color: var(--text-soft); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.article p { font-size: 1.02rem; line-height: 1.75; color: var(--text-soft); }
.article h2, .article h3 { margin-top: 1.8em; }
.article h2::before {
  content: "";
  display: block; width: 40px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-violet));
  margin-bottom: 16px;
}
.article blockquote {
  border-left: 4px solid var(--brand-500);
  padding: 12px 22px;
  margin: 28px 0;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-style: italic;
}
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: 8px; color: var(--text-soft); }
.article figure {
  margin: 34px 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.article figcaption {
  margin-top: 10px;
  color: var(--text-mute);
  font-size: 13px;
  text-align: center;
}
.callout {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(47,101,246,.08), rgba(123,92,255,.08));
  border: 1px solid var(--brand-100);
  color: var(--text);
}
:root[data-theme="dark"] .callout,
:root:not([data-theme]) .callout { border-color: rgba(92,138,252,.24); }
.callout strong { color: var(--brand-600); }
:root[data-theme="dark"] .callout strong,
:root:not([data-theme]) .callout strong { color: var(--brand-300); }

.article__cta {
  margin: 48px 0 20px;
  text-align: center;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, var(--brand-500), var(--accent-violet));
  color: #fff;
}
.article__cta h3 { color: #fff; margin-bottom: 8px; }
.article__cta p { color: rgba(255,255,255,.85); margin-bottom: 18px; }
.article__cta .btn--primary { background: #fff; color: var(--brand-600); }

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-mute); font-size: 14px;
  margin-bottom: 20px;
}
.back-link:hover { color: var(--brand-500); }

/* SVG charts within articles / blog previews */
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--text-soft); font-family: inherit; font-size: 11px; }
.chart .grid-line { stroke: var(--border); stroke-dasharray: 2 3; }
.chart .axis { stroke: var(--border-strong); }
.chart .bar { fill: var(--brand-500); rx: 4; transition: fill .3s ease; }
.chart .bar--accent { fill: var(--accent-orange); }
.chart .bar:hover { fill: var(--brand-600); }
.chart .line { fill: none; stroke: var(--brand-500); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .line--accent { stroke: var(--accent-orange); }
.chart .dot { fill: var(--brand-500); }
.chart .area { fill: url(#areaGrad); opacity: .25; }

/* Legend */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-soft); margin-top: 10px; justify-content: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend .is-brand { background: var(--brand-500); }
.legend .is-accent { background: var(--accent-orange); }
.legend .is-mute  { background: var(--text-mute); }

/* ---------- Reveal animations ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__blob, .phone-stage::before, .float-badge, .hero__eyebrow-dot { animation: none !important; }
}

/* ---------- Testimonials ---------- */

.tm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.tm {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s ease, border-color .3s ease;
}
.tm:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.tm__stars { color: var(--accent-amber); letter-spacing: 2px; }
.tm__quote { margin: 12px 0 18px; color: var(--text); font-size: 1rem; line-height: 1.6; }
.tm__user { display: flex; align-items: center; gap: 12px; }
.tm__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-violet));
}
.tm__name { font-weight: 600; font-size: 14px; color: var(--text); }
.tm__role { font-size: 13px; color: var(--text-mute); }

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.plan:hover { transform: translateY(-4px); }
.plan--pro {
  border-color: var(--brand-400);
  box-shadow: 0 16px 48px rgba(47,101,246,.18);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(47,101,246,.12), transparent 60%),
    var(--bg-elev);
}
.plan__badge {
  position: absolute; top: -12px; right: 26px;
  padding: 6px 12px;
  background: linear-gradient(120deg, var(--brand-500), var(--accent-violet));
  color: #fff;
  border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
}
.plan h3 { margin-bottom: 8px; }
.plan__price { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 20px; }
.plan__price small { font-size: 14px; color: var(--text-mute); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.plan li {
  display: flex; gap: 10px; align-items: center;
  color: var(--text-soft); font-size: 15px;
}
.plan li::before {
  content: "✓"; color: var(--accent-mint); font-weight: 700;
  width: 18px; height: 18px; display: grid; place-items: center;
  background: rgba(30,201,163,.12); border-radius: 50%; font-size: 11px;
}

/* Small helpers */
.text-center { text-align: center; }
.mt-6 { margin-top: 48px; }

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