/* ============================================================
   SaveChat AI — landing styles
   one file for index / privacy / terms
   ============================================================ */

/* --- tokens ---------------------------------------------------*/
:root {
  /* palette — dark only */
  --bg-0:      #07080b;
  --bg-1:      #0c0e13;
  --bg-2:      #12151c;
  --bg-3:      #181c26;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.12);

  --ink:       #f1f3f8;
  --ink-dim:   #aab0bd;
  --ink-mute:  #6c7280;

  --accent-1:  #9b5cff;
  --accent-2:  #ff5cae;
  --accent-grad: linear-gradient(135deg, #9b5cff 0%, #ff5cae 100%);
  --accent-glow: 0 10px 40px -10px rgba(155,92,255,.55), 0 4px 14px -4px rgba(255,92,174,.45);

  --success:   #3ddc97;
  --danger:    #ff5a6b;

  /* type */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* radii + shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;

  --shadow-1: 0 1px 0 0 rgba(255,255,255,.04) inset, 0 12px 32px -16px rgba(0,0,0,.7);
  --shadow-2: 0 1px 0 0 rgba(255,255,255,.06) inset, 0 30px 60px -30px rgba(0,0,0,.9);

  /* layout */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 10vw, 120px);
}

/* --- reset ---------------------------------------------------*/
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01','cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg,video { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(123,92,255,.35); color: #fff; }

/* ambient bg — subtle gradient orbs */
body::before {
  content: '';
  position: fixed;
  inset: -20vh -10vw auto auto;
  width: 60vw; height: 60vw;
  background: radial-gradient(closest-side, rgba(123,92,255,.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: auto auto -30vh -10vw;
  width: 55vw; height: 55vw;
  background: radial-gradient(closest-side, rgba(74,163,255,.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- container ------------------------------------------------*/
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* --- nav ------------------------------------------------------*/
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--bg-0) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand svg { width: 28px; height: 28px; }
.brand-name { font-size: 15px; }
.brand-name span { color: var(--ink-dim); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* --- buttons --------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease, border-color .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--accent-grad);
  color: white;
  box-shadow: var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 44px -10px rgba(123,92,255,.75), 0 6px 18px -4px rgba(74,163,255,.55);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255,255,255,.03);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }

/* --- headings -------------------------------------------------*/
h1, h2, h3, h4 {
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
h1 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: 0;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(61,220,151,.18);
}

/* --- hero -----------------------------------------------------*/
.hero {
  padding: clamp(48px, 9vw, 96px) 0 clamp(48px, 7vw, 80px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy h1 { margin-top: 18px; }
.hero-sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-dim);
  max-width: 540px;
  line-height: 1.55;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-mute);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--success); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* --- hero visual / phone frame -------------------------------*/
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
}
.hero-visual::before {
  content: '';
  position: absolute;
  width: 120%; height: 120%;
  background: radial-gradient(closest-side, rgba(123,92,255,.22), transparent 65%);
  filter: blur(30px);
  z-index: 0;
}

.phone {
  position: relative;
  width: 320px;
  height: 640px;
  border-radius: 48px;
  background: linear-gradient(180deg, #1a1d25 0%, #0e1016 100%);
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 30px 80px -20px rgba(0,0,0,.8),
    0 10px 28px -10px rgba(123,92,255,.35);
  z-index: 1;
}
.phone::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 5;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  background: #17212b; /* tg dark bg */
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* tg chat header */
.tg-header {
  padding: 14px 14px 12px;
  padding-top: 44px;
  background: #212d3b;
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.tg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600; font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}
.tg-avatar.bot { background: linear-gradient(135deg,#9b5cff,#ff5cae); }
.tg-avatar.alex { background: linear-gradient(135deg,#ff8f6b,#ff5a6b); }
.tg-name { font-weight: 600; color: #fff; font-size: 14px; }
.tg-status { font-size: 11px; color: #7d8a9a; }

.tg-body {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.15) 100%),
    #17212b;
}
.tg-day {
  align-self: center;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.25);
  color: #cfd8e3;
  font-size: 11px;
  margin-bottom: 8px;
}
.bubble {
  max-width: 78%;
  padding: 8px 11px 6px;
  border-radius: 14px;
  position: relative;
  word-wrap: break-word;
  animation: bubble-in .4s ease both;
}
.bubble-in  { align-self: flex-start; background: #182533; color: #e6ecf3; border-bottom-left-radius: 4px; }
.bubble-out { align-self: flex-end;   background: #2b5278; color: #fff;     border-bottom-right-radius: 4px; }
.bubble .time {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  margin-left: 8px;
  float: right;
  margin-top: 3px;
}
.bubble-in .time { color: #7d8a9a; }

.bubble.is-deleting { animation: bubble-fade .6s .2s ease both; }
.bubble.is-edited {
  padding-bottom: 20px;
}
.bubble.is-edited::after {
  content: 'edited';
  position: absolute;
  right: 10px; bottom: 4px;
  font-size: 10px;
  color: rgba(255,255,255,.55);
  font-style: italic;
}

/* bot notification bubble */
.bubble.bot-alert {
  background: linear-gradient(135deg, rgba(74,163,255,.18), rgba(123,92,255,.18));
  border: 1px solid rgba(123,92,255,.35);
  color: #e6ecf3;
  font-size: 12px;
  max-width: 90%;
}
.bubble.bot-alert strong { color: #a9c8ff; }
.bubble.bot-alert .crossed {
  display: block;
  color: #ff8a95;
  text-decoration: line-through;
  margin-top: 3px;
}
.bubble.bot-alert .fresh {
  display: block;
  color: #9cffc7;
  margin-top: 2px;
}

/* keyframes */
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes bubble-fade {
  0%   { opacity: 1; filter: none; }
  60%  { opacity: .3; filter: blur(2px) grayscale(.4); transform: scale(.98); }
  100% { opacity: 0; filter: blur(4px) grayscale(1); transform: scale(.96); height: 0; margin: 0; padding: 0; }
}

/* terminal variant */
.terminal {
  width: 100%; max-width: 480px;
  background: #0b0d13;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  z-index: 1;
}
.terminal-head {
  padding: 10px 14px;
  background: #0f121a;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-mute);
}
.terminal-head .dots { display: flex; gap: 6px; }
.terminal-head .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a2d35;
}
.terminal-body {
  padding: 16px;
  min-height: 300px;
  color: #c7ccd6;
  line-height: 1.7;
}
.term-line { display: block; }
.term-line .muted { color: var(--ink-mute); }
.term-line .ok    { color: #9cffc7; }
.term-line .warn  { color: #ffd08a; }
.term-line .err   { color: #ff8a95; }
.term-line .accent{ color: #a9c8ff; }
.term-cursor::after {
  content: '▍';
  color: var(--accent-1);
  animation: blink 1s steps(1) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* split variant */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  z-index: 1;
}
.split-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.split-card h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: 12px;
  font-weight: 600;
}
.split-card.before h4 { color: #ff8a95; }
.split-card.after  h4 { color: #9cffc7; }
.split-msg {
  padding: 8px 11px;
  border-radius: 12px;
  background: #182533;
  color: #e6ecf3;
  font-size: 13px;
  margin-bottom: 6px;
  position: relative;
}
.split-msg.sent { background: #2b5278; color: #fff; margin-left: auto; max-width: 80%; }
.split-msg.rcvd { margin-right: auto; max-width: 80%; }
.split-msg.gone {
  background: rgba(255,138,149,.08);
  border: 1px dashed rgba(255,138,149,.35);
  color: rgba(255,138,149,.6);
  font-style: italic;
  text-align: center;
}
.split-msg.kept {
  background: rgba(156,255,199,.08);
  border: 1px solid rgba(156,255,199,.3);
  color: #cfeedd;
}
.split-msg .label {
  display: block;
  font-size: 10px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

@media (max-width: 560px) {
  .split { grid-template-columns: 1fr; }
  .phone { transform: scale(.9); transform-origin: top center; }
  /* scenarios live inside .phone — phone scales down, so we explicitly
     size the scenarios ribbon to fit within the scaled viewport */
  .phone-scenarios {
    width: fit-content;
    max-width: 272px;
    padding: 3px 4px;
    gap: 1px;
    justify-content: center;
    overflow: visible;
  }
  .phone-scenarios .scn {
    padding: 6px 6px;
    font-size: 9.5px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    gap: 2px;
  }
  .phone-scenarios .scn svg { width: 9px; height: 9px; }
}

/* --- section generic -----------------------------------------*/
section.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 60px);
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p {
  margin-top: 16px;
  color: var(--ink-dim);
  font-size: 17px;
}

/* --- feature grid --------------------------------------------*/
.feat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.feat {
  grid-column: span 4;
  background: linear-gradient(180deg, rgba(255,255,255,.025) 0%, rgba(255,255,255,.01) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.feat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feat.span-6 { grid-column: span 6; }
.feat.span-8 { grid-column: span 8; }
.feat.span-12 { grid-column: span 12; }
.feat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.feat-tag.free { background: rgba(61,220,151,.12); color: var(--success); }
.feat-tag.pro  { background: linear-gradient(135deg, rgba(74,163,255,.18), rgba(123,92,255,.18)); color: #bfd3ff; border: 1px solid rgba(123,92,255,.35); }
.feat h3 { margin-bottom: 8px; }
.feat p { color: var(--ink-dim); font-size: 14.5px; }
.feat-visual {
  margin-top: 22px;
  border-radius: var(--r-md);
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  padding: 16px;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

/* tiny chat mockup inside feat */
.mini-chat {
  display: flex; flex-direction: column; gap: 4px; font-size: 12px;
}
.mini-bubble {
  max-width: 85%;
  padding: 6px 9px;
  border-radius: 10px;
  background: #182533; color: #e6ecf3;
}
.mini-bubble.out { align-self: flex-end; background: #2b5278; color: #fff; }
.mini-bubble.bot {
  align-self: stretch;
  background: linear-gradient(135deg, rgba(74,163,255,.15), rgba(123,92,255,.15));
  border: 1px solid rgba(123,92,255,.3);
  font-size: 11px; color: #cfe0ff;
}
.mini-bubble.typing {
  display: inline-flex; gap: 3px; padding: 10px;
  width: 42px;
}
.mini-bubble.typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  animation: dot 1.2s infinite;
}
.mini-bubble.typing span:nth-child(2) { animation-delay: .2s; }
.mini-bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes dot {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

@media (max-width: 900px) {
  .feat { grid-column: span 6; }
  .feat.span-6, .feat.span-8, .feat.span-12 { grid-column: span 12; }
}
@media (max-width: 560px) {
  .feat { grid-column: span 12; }
}

/* --- how it works --------------------------------------------*/
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  position: relative;
  counter-increment: step;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.step-num::before { content: '0' counter(step); color: var(--accent-1); font-weight: 600; margin-right: 6px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--ink-dim); font-size: 14px; }
.step-kbd {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #cfd8e3;
  line-height: 1.6;
}
.step-kbd b { color: #a9c8ff; font-weight: 500; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* --- compare -------------------------------------------------*/
.compare {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.compare-row:first-child { border-top: 0; }
.compare-row > div {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare-row .c-feat { color: var(--ink); font-weight: 500; }
.compare-row .c-other { color: var(--ink-dim); background: rgba(0,0,0,.2); }
.compare-row .c-us { color: var(--ink); background: linear-gradient(180deg, rgba(123,92,255,.08), rgba(74,163,255,.04)); }
.compare-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  font-weight: 600;
}
.compare-header .us-brand {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 500;
}
.chip.free  { background: rgba(61,220,151,.12); color: var(--success); }
.chip.paid  { background: rgba(255,208,138,.12); color: #ffd08a; }
.chip.no    { background: rgba(255,138,149,.10); color: #ff9ba5; }
.chip svg { width: 12px; height: 12px; }

@media (max-width: 700px) {
  .compare-header { display: none; }
  .compare-row {
    grid-template-columns: 1fr;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--line);
    margin-bottom: 10px;
  }
  .compare-row > div { padding: 0; border: 0; }
  .compare-row .c-feat {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 10px;
    grid-column: 1 / -1;
  }
  .compare-row .c-other,
  .compare-row .c-us {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
  }
  .compare-row .c-other::before {
    content: 'Другие боты';
    font-size: 12px;
    color: var(--ink-mute);
  }
  .compare-row .c-us::before {
    content: 'SaveChat AI';
    font-size: 12px;
    font-weight: 600;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .compare-row .c-us {
    border-top: 1px dashed var(--line);
    margin-top: 4px;
    padding-top: 10px;
  }
}

/* --- pricing -------------------------------------------------*/
.pricing-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0 auto 36px;
}
.pricing-toggle-wrap { text-align: center; }
.pricing-toggle button {
  border: 0; background: transparent;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s ease, background .25s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.pricing-toggle button.active {
  background: rgba(255,255,255,.06);
  color: var(--ink);
}
.pricing-toggle .save-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(61,220,151,.15);
  color: var(--success);
  font-weight: 600;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.plan {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.pro {
  background: linear-gradient(180deg, rgba(123,92,255,.06) 0%, rgba(74,163,255,.02) 100%);
  border-color: rgba(123,92,255,.28);
  box-shadow: 0 20px 60px -30px rgba(123,92,255,.5);
}
.plan-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 8px;
}
.plan.pro .plan-name {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plan-desc { font-size: 14px; color: var(--ink-mute); margin-top: 4px; }
.plan-price {
  margin: 22px 0 6px;
  font-size: 48px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-price .per { font-size: 15px; color: var(--ink-mute); font-weight: 500; letter-spacing: 0; }
.plan-price .strike { font-size: 18px; color: var(--ink-mute); text-decoration: line-through; margin-right: 6px; font-weight: 500; }
.plan-note { font-size: 13px; color: var(--ink-mute); min-height: 20px; }
.plan ul {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.plan li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
}
.plan li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--accent-1); }
.plan .btn { margin-top: 26px; width: 100%; }
.plan-tag {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-2);
  color: var(--ink-dim);
  font-weight: 500;
}
.plan.pro .plan-tag {
  background: var(--accent-grad);
  color: white;
  border-color: transparent;
}

@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* --- FAQ ------------------------------------------------------*/
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab0bd' stroke-width='2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p {
  margin-top: 12px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* --- social proof --------------------------------------------*/
.social {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.social::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(123,92,255,.12), transparent 60%);
  pointer-events: none;
}
.social .placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255,208,138,.1);
  color: #ffd08a;
  border: 1px solid rgba(255,208,138,.25);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 18px;
}
.social-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.social-stat {
  padding: 20px;
  background: rgba(0,0,0,.2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}
.social-stat .num {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.03em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.social-stat .label {
  font-size: 13px;
  color: var(--ink-dim);
  margin-top: 4px;
}
.review-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.review-slot {
  aspect-ratio: 3/4;
  background: rgba(0,0,0,.25);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--ink-mute);
  position: relative;
}
.review-slot::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(74,163,255,.06), rgba(123,92,255,.06));
}
.review-slot span { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .social-stats, .review-slots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .social-stats, .review-slots { grid-template-columns: 1fr; }
}

/* --- final CTA ------------------------------------------------*/
.cta-final {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 56px);
  background:
    radial-gradient(ellipse at top, rgba(123,92,255,.18), transparent 60%),
    var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  position: relative;
  overflow: hidden;
}
.cta-final h2 { max-width: 700px; margin: 0 auto; }
.cta-final p { margin: 18px auto 0; color: var(--ink-dim); max-width: 520px; }
.cta-final .btn { margin-top: 32px; }

/* --- footer ---------------------------------------------------*/
.footer {
  margin-top: var(--section-y);
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-brand p {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.55;
}
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-dim);
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-mute);
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* --- reveal on scroll ----------------------------------------*/
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bubble, .bubble.is-deleting { animation: none; }
}

/* ============================================================
   NEW: scenario switcher, spotlight, orbs, morph, edited-anim
   ============================================================ */

/* hero scenario buttons under phone */
.phone-scenarios {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 18px;
  padding: 4px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.phone-scenarios .scn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font: 500 13px 'Inter', sans-serif;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.phone-scenarios .scn svg { width: 14px; height: 14px; }
.phone-scenarios .scn:hover { color: var(--ink); }
.phone-scenarios .scn.active {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(155,92,255,.5);
}

/* edited-animation marker (distinct from static .is-edited) */
.bubble.is-edited-anim {
  animation: edit-pulse .6s ease;
  padding-bottom: 20px;
}
.bubble.is-edited-anim::after {
  content: 'edited';
  position: absolute;
  right: 10px; bottom: 4px;
  font-size: 10px;
  color: rgba(255,255,255,.5);
  font-style: italic;
}
.bubble.is-edited-anim .time { display: none; }
@keyframes edit-pulse {
  0%   { background: #182533; }
  40%  { background: rgba(155,92,255,.35); }
  100% { background: #182533; }
}

/* bubble fade-in via .in class (more controllable than keyframe auto-run) */
.bubble.in { opacity: 1; transform: none; }

/* media bubble: mini photo */
.bubble-media {
  padding: 4px 4px 4px 4px !important;
  overflow: hidden;
}
.bubble-media .mini-photo {
  width: 180px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
}
.bubble-media .mini-photo svg {
  width: 100%;
  height: 100%;
  display: block;
}
.bubble-media .time {
  position: absolute;
  right: 10px;
  bottom: 6px;
  background: rgba(0,0,0,.4);
  padding: 1px 6px;
  border-radius: 6px;
  color: #fff !important;
}
.bubble.is-self-destruct {
  background: rgba(155,92,255,.2);
  border: 1px dashed rgba(155,92,255,.5);
}

/* feature-card spotlight */
.feat {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.feat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my),
              rgba(155,92,255,.18), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: -1;
}
.feat:hover::before { opacity: 1; }

/* price morph */
#price-num, #price-per {
  display: inline-block;
  transition: transform .26s cubic-bezier(.2,.7,.2,1), opacity .22s ease;
}
.price-morph-out { transform: translateY(-8px); opacity: 0; }
.price-morph-in  { animation: price-in .3s cubic-bezier(.2,.7,.2,1) both; }
@keyframes price-in {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* count-up target */
.social-stat .num {
  font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}
.social-stat .num.cu-done { color: var(--ink); }

/* compare row stagger (disabled — always visible; stagger effect on reveal
   was fragile with header hidden on mobile). Keep .in class for any future
   hook but no longer tie visibility to it. */
.compare .compare-row {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.compare .compare-row.compare-header {
  transform: none;
}
.compare .compare-row.in {
  opacity: 1;
  transform: none;
}

/* gradient orbs on hero background */
.hero {
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: .45;
}
.hero::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--accent-1), transparent 65%);
  top: -140px; left: -80px;
  animation: orb-drift-a 26s ease-in-out infinite;
}
.hero::after {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--accent-2), transparent 65%);
  bottom: -160px; right: -60px;
  animation: orb-drift-b 30s ease-in-out infinite;
}
.hero > .container { position: relative; z-index: 1; }
@keyframes orb-drift-a {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(80px, 60px); }
}
@keyframes orb-drift-b {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-70px, -50px); }
}

/* brand logo pulse on hover (nav) */
.brand-pulse svg {
  transition: transform .3s ease, filter .3s ease;
}
.brand-pulse:hover svg {
  transform: rotate(-4deg) scale(1.06);
  filter: drop-shadow(0 6px 20px rgba(155,92,255,.6));
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
  .price-morph-in, .price-morph-out { animation: none; transition: none; opacity: 1; transform: none; }
}

/* --- legal page ----------------------------------------------*/
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) var(--gutter);
}
.legal h1 {
  font-size: clamp(32px, 4.5vw, 44px);
  margin-bottom: 8px;
}
.legal-meta {
  color: var(--ink-mute);
  font-size: 13px;
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.legal h3 {
  font-size: 16px;
  margin: 20px 0 8px;
  color: var(--ink);
  font-weight: 600;
}
.legal p, .legal li {
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 10px 0;
}
.legal ul, .legal ol { padding-left: 22px; }
.legal strong { color: var(--ink); }
.legal a {
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(74,163,255,.35);
}
.legal a:hover { text-decoration-color: var(--accent-1); }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-dim);
  margin-bottom: 24px;
}
.legal-back:hover { color: var(--ink); }

/* --- tweaks panel (only visible when edit mode active) -------*/
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 280px;
  background: rgba(18,21,28,.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 16px;
  z-index: 100;
  box-shadow: var(--shadow-2);
  font-size: 13px;
  display: none;
}
.tweaks.is-open { display: block; }
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.tweaks-head button {
  border: 0; background: transparent; color: var(--ink-mute);
  cursor: pointer; font-size: 18px; line-height: 1;
}
.tweak-row { margin-bottom: 12px; }
.tweak-row label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin-bottom: 6px;
  font-weight: 600;
}
.tweak-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.tweak-options button {
  padding: 8px 4px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-dim);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
}
.tweak-options button:hover { color: var(--ink); border-color: var(--line-2); }
.tweak-options button.active {
  background: var(--accent-grad);
  color: white;
  border-color: transparent;
}

/* ff utility classes used by JS */
.hidden { display: none !important; }

/* =========================================================
   Mobile overrides (must come AFTER base rules for specificity)
   ========================================================= */
@media (max-width: 560px) {
  .phone-scenarios {
    max-width: 272px !important;
    padding: 3px 4px !important;
    gap: 1px !important;
  }
  .phone-scenarios .scn {
    padding: 6px 6px !important;
    font-size: 9.5px !important;
    letter-spacing: -0.01em !important;
    gap: 2px !important;
    white-space: nowrap;
  }
  .phone-scenarios .scn svg { width: 9px !important; height: 9px !important; }
}
