/* ============================================================
   Scrapomatic marketing site — shared styles
   Brand: electric indigo→blue gradient (#5f66ec → #1e62e3)
   on near-black ink (#0d0f1b). Light & dark themes.
   Space Grotesk + Inter + JetBrains Mono.
   ============================================================ */

:root {
  /* brand voltage */
  --indigo: #5f66ec;
  --blue:   #1e62e3;
  --ink:    #0d0f1b;
  --grad:   linear-gradient(135deg, #5f66ec 0%, #1e62e3 100%);

  --primary: #5f66ec;        /* solid fallback for small accents */
  --primary-hover: #4d54d8;
  --primary-soft: #ecedfd;
  --accent: #1e62e3;

  --fg: #0d0f1b;
  --fg-2: #4a4d5e;
  --fg-3: #80849a;
  --fg-4: #b9bcce;

  --bg: #ffffff;
  --bg-2: #f4f5f9;
  --bg-3: #ebecf3;
  --paper: #ffffff;

  --line: #e6e7ef;
  --line-2: #d3d5e0;

  --tg: #229ED9;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(13,15,27,0.05);
  --shadow: 0 1px 2px rgba(13,15,27,0.04), 0 4px 16px rgba(13,15,27,0.06);
  --shadow-lg: 0 1px 2px rgba(13,15,27,0.04), 0 16px 48px rgba(13,15,27,0.10);

  /* developer-console cadence — uppercase + tracking lift on action labels */
  --cap-tracking: 0.04em;
}

html[data-theme="dark"] {
  --fg: #f4f5fa;
  --fg-2: #b9bcce;
  --fg-3: #80849a;
  --fg-4: #4a4d5e;

  --bg: #0d0f1b;
  --bg-2: #13162a;
  --bg-3: #1a1e36;
  --paper: #13162a;

  --line: #232744;
  --line-2: #2d3252;

  --primary-soft: #1d2347;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 1px 2px rgba(0,0,0,0.4), 0 16px 48px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--primary); color: #fff; }

/* ------- layout ------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 32px; width: 100%; }
main { flex: 1; }

/* ------- typography ------- */
.eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 500;
}
/* Display tier — engineered weight 500 with tight negative tracking.
   The Supabase move: medium weight reads as built, not decorative,
   and the tightened letterforms pull rounded glyphs into editorial
   density. */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; color: var(--fg); }
h1 { font-size: clamp(44px, 6.5vw, 76px); letter-spacing: -0.045em; line-height: 1.02; font-weight: 500; }
h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.035em; line-height: 1.08; font-weight: 500; }
h3 { font-size: 22px; letter-spacing: -0.025em; font-weight: 500; }
h4 { font-size: 16px; letter-spacing: -0.015em; font-weight: 500; }
p { color: var(--fg-2); }

/* ------- nav ------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid 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-family: var(--display); font-weight: 600; letter-spacing: -0.025em;
  font-size: 18px; color: var(--fg);
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 78%; height: 78%; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--fg-2);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--fg); background: var(--bg-2); }
.nav-links a.active { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--fg-2);
  transition: color 0.15s, background 0.15s;
}
.theme-toggle:hover { color: var(--fg); background: var(--bg-2); }
.theme-toggle svg { width: 18px; height: 18px; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }

/* ------- buttons ------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  font-size: 13.5px; font-weight: 600;
  border-radius: 7px;          /* engineered, square-ish; never pill */
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s, color 0.15s, filter 0.15s;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: var(--cap-tracking);
  text-transform: uppercase;
  font-family: var(--display);
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 1px 1px rgba(13,15,27,0.10),
    0 8px 22px rgba(95,102,236,0.32);
}
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 1px 1px rgba(13,15,27,0.12),
    0 12px 28px rgba(95,102,236,0.42);
}
.btn-primary:active { transform: translateY(0); filter: brightness(0.98); }
.btn-ghost {
  color: var(--fg);
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 500;
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--line-2); }
.btn-dark {
  background: var(--ink); color: #fff;
}
html[data-theme="dark"] .btn-dark { background: #fff; color: var(--ink); }
.btn-dark:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 22px; font-size: 14px; border-radius: 8px; }
.btn-sm { padding: 8px 12px; font-size: 12px; border-radius: 6px; letter-spacing: 0.05em; }

.btn-tg {
  background: var(--tg); color: #fff;
}
.btn-tg:hover { background: #1c8cc4; transform: translateY(-1px); }

/* telegram glyph */
.tg-glyph { width: 16px; height: 16px; fill: currentColor; }

/* ------- footer ------- */
.foot {
  margin-top: 120px;
  background: var(--bg-2);
  padding: 0 0 32px;
}
.foot > .container { padding-top: 56px; }

/* Signature element — a gradient squiggle sits above the footer in
   place of a 1px hairline. Render <div class="squiggle-wrap"><svg
   class="squiggle">…</svg></div> as the FIRST child of <footer>. */
.squiggle-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  /* nudge so the squiggle's centerline sits on the section seam */
  transform: translateY(-50%);
}
.squiggle {
  display: block;
  width: 100%;
  height: 22px;
  opacity: 0.95;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
}
.foot-brand { max-width: 320px; }
.foot-brand p { margin-top: 14px; font-size: 14px; color: var(--fg-2); line-height: 1.6; }
.foot-col h5 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 500;
  margin-bottom: 14px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--fg-2); font-size: 14px; transition: color 0.15s; }
.foot-col a:hover { color: var(--fg); }
.foot-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; color: var(--fg-3);
  letter-spacing: 0.02em;
}
.foot-bottom .support a { color: var(--fg-2); }
.foot-bottom .support a:hover { color: var(--fg); }

/* ------- hero ------- */
.hero {
  padding: 96px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
  color: var(--fg-2);
  margin-bottom: 28px;
}
.hero-tag .dot {
  width: 22px; height: 22px; border-radius: 99px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

/* Keyword highlight chip — wraps ONE word in the hero headline,
   reading like a syntax-highlighted token in console output.
   Inline so it flows; box-decoration-break clones the chip across
   wrap-lines if it ever needs to. */
.kw-chip {
  background: var(--grad);
  color: #fff;
  padding: 0 0.22em;
  border-radius: 6px;
  margin: 0 0.02em;
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  /* sit a hair below baseline so the chip never grazes the line above */
  position: relative;
  top: 0.05em;
  box-shadow: 0 8px 26px -8px rgba(95,102,236,0.55);
}
.hero .sub {
  font-size: 19px; color: var(--fg-2);
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 32px; margin-top: 36px;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-3); letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.hero-meta .item { display: flex; align-items: center; gap: 8px; }
.hero-meta .item::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 99px; background: var(--indigo);
  flex-shrink: 0;
}

/* ------- hero visual (telegram channel preview) ------- */
.hero-visual {
  background: #17212B;
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-visual::after {
  content: '';
  position: absolute; inset: -30%;
  background: radial-gradient(circle at 50% 0%, rgba(95,102,236,0.22), transparent 45%);
  pointer-events: none;
}
.tg-channel-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 6px 6px 16px;
  border-bottom: 1px solid #243140;
}
.tg-avatar {
  width: 44px; height: 44px;
  border-radius: 99px;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  /* optical lift — visually align the avatar's vertical centre
     with the channel-name cap height instead of the [name + sub]
     block centre */
  margin-top: -2px;
}
.tg-avatar svg { width: 64%; height: 64%; }
.tg-channel-meta { padding-top: 1px; }
.tg-channel-meta .name { color: #fff; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.tg-channel-meta .name svg { width: 14px; height: 14px; color: #5BC0DE; }
.tg-channel-meta .sub { color: #7d8e9e; font-size: 12.5px; margin-top: 2px; }
.tg-feed { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.tg-msg {
  background: #182533;
  border-radius: 12px;
  padding: 12px 14px;
  color: #e1e9f0;
  font-size: 13px;
  max-width: 86%;
}
.tg-msg .src {
  font-family: var(--mono); font-size: 10.5px;
  color: #7d8e9e;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; justify-content: space-between;
  margin-bottom: 6px;
}
.tg-msg .src .when { color: #5b6b7b; }
.tg-msg .body { line-height: 1.45; }
.tg-msg .body strong { color: #fff; font-weight: 500; }
.tg-msg.bot {
  border-left: 2px solid var(--primary);
  background: #1c2a3a;
}

/* Floating overlay card on the channel preview — the "composited
   product mockups · stacked panes" pattern. A small live-stats
   pane crops in front of the chat feed at the lower-right.
   Hidden under 980px so the hero stays clean on mobile. */
.hero-visual { position: relative; }     /* parent re-declared safely */
.tg-overlay-card {
  position: absolute;
  right: -18px;
  bottom: 28px;
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 190px;
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.35);
}
html[data-theme="dark"] .tg-overlay-card {
  background: var(--paper);
  border-color: var(--line-2);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.6);
}
.tg-overlay-card .ovr-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tg-overlay-card .ovr-lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 4px;
}
.tg-overlay-card .ovr-foot {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-2);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.tg-overlay-card .ovr-dot {
  width: 7px; height: 7px; border-radius: 99px;
  background: var(--indigo);
  box-shadow: 0 0 0 3px rgba(95,102,236,0.18);
  flex-shrink: 0;
}
@media (max-width: 980px) {
  .tg-overlay-card { display: none; }
}

/* Terminal command line — the "code-block · developer DNA visible
   in every snippet" pattern. A single dark mono row sitting under
   the hero CTAs, showing the bot in action. */
.hero-term {
  margin-top: 28px;
  background: var(--ink);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(255,255,255,0.86);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,0.06);
  max-width: 540px;
}
.hero-term .prompt {
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 500;
}
.hero-term .cmd { color: #fff; font-weight: 500; }
.hero-term .ok {
  color: rgba(255,255,255,0.55);
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 0.02em;
}
.hero-term .ok::before {
  content: '';
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--indigo);
  box-shadow: 0 0 8px rgba(95,102,236,0.7);
  flex-shrink: 0;
}
.hero-term .sep {
  color: rgba(255,255,255,0.20);
  user-select: none;
}

/* ------- sections ------- */
.section {
  padding: 96px 0;
}
.section.tight { padding: 64px 0; }
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head h2 { margin: 14px 0 16px; }
.section-head p { font-size: 17px; color: var(--fg-2); max-width: 600px; }

/* ------- feature row (3) ------- */
.features3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.fcard {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.15s, transform 0.15s;
}
.fcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.fcard .ficon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
}
.fcard .ficon svg { width: 22px; height: 22px; }
.fcard h3 { font-size: 20px; }
.fcard p { font-size: 14.5px; line-height: 1.6; }
.fcard .note {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ------- how it works ------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  counter-reset: step;
  position: relative;
}
.step {
  padding: 28px 24px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--fg-3);
}
.step h4 { font-size: 17px; }
.step p { font-size: 13.5px; line-height: 1.55; }
.step .sicon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--bg-2);
  color: var(--fg);
  display: grid; place-items: center;
}
.step .sicon svg { width: 18px; height: 18px; }

/* ------- social proof ------- */
.quote-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}
.quote-block blockquote {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--fg);
  font-weight: 500;
}
.quote-block blockquote::before { content: '“'; color: var(--primary); margin-right: 4px; font-size: 1.2em; line-height: 0; }
.quote-block .cite {
  margin-top: 18px;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-3); letter-spacing: 0.06em;
}
.proof-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px;
}
.proof-stats .s .num {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.proof-stats .s .lbl {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ------- pricing ------- */
.toggle-row {
  display: inline-flex; padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 99px;
  margin-bottom: 48px;
}
.toggle-row button {
  padding: 8px 18px;
  font-size: 14px; font-weight: 500;
  border-radius: 99px;
  color: var(--fg-2);
  transition: color 0.15s, background 0.15s;
}
.toggle-row button.active { background: var(--paper); color: var(--fg); box-shadow: var(--shadow-sm); }
.toggle-row .badge {
  font-family: var(--mono); font-size: 10px;
  background: var(--accent); color: #fff;
  border-radius: 99px;
  padding: 2px 6px;
  margin-left: 8px;
  letter-spacing: 0.06em;
}

.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.price-card {
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
.price-card.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  /* re-scope text tokens so children invert via the cascade */
  --fg: #fff;
  --fg-2: rgba(255,255,255,0.72);
  --fg-3: rgba(255,255,255,0.50);
  box-shadow: 0 24px 48px -16px rgba(13,15,27,0.45);
}
html[data-theme="dark"] .price-card.featured {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  --fg: #0d0f1b;
  --fg-2: #4a4d5e;
  --fg-3: #80849a;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.55);
}
.price-card.featured .pill {
  background: rgba(255,255,255,0.10);
  color: #fff;
}
html[data-theme="dark"] .price-card.featured .pill {
  background: var(--primary-soft);
  color: var(--primary);
}
.price-card.featured li svg { color: var(--indigo); }
html[data-theme="dark"] .price-card.featured li svg { color: var(--indigo); }
.price-card .pc-head { display: flex; justify-content: space-between; align-items: flex-start; }
.price-card .pc-name { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.price-card .pill {
  font-family: var(--mono); font-size: 10.5px;
  background: var(--primary-soft); color: var(--primary);
  padding: 3px 8px; border-radius: 99px;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 500;
}
.price-card .pc-price {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--display);
  font-weight: 600; letter-spacing: -0.03em;
}
.price-card .pc-price .num { font-size: 52px; color: var(--fg); line-height: 1; }
.price-card .pc-price .cur { font-size: 24px; color: var(--fg-2); }
.price-card .pc-price .per { font-size: 14px; color: var(--fg-3); font-family: var(--sans); font-weight: 400; letter-spacing: 0; margin-left: 4px; }
.price-card .pc-tag { font-size: 14px; color: var(--fg-2); line-height: 1.55; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.price-card li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--fg);
}
.price-card li svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.price-card li .muted { color: var(--fg-3); }
.price-card .pc-cta { margin-top: auto; }
.price-card .pc-cta .btn { width: 100%; justify-content: center; }

.tax-note {
  margin-top: 24px;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-3);
  display: flex; align-items: flex-start; gap: 10px;
}
.tax-note svg { width: 14px; height: 14px; color: var(--fg-3); flex-shrink: 0; margin-top: 2px; }

/* ------- "why subscribe via telegram" ------- */
.why-tg {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 80px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px;
  align-items: center;
}
.why-tg h2 { font-size: 32px; margin-bottom: 12px; }
.why-tg p { font-size: 15px; line-height: 1.6; }
.why-tg ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.why-tg ul li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.why-tg ul li .icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.why-tg ul li .icon svg { width: 16px; height: 16px; }
.why-tg ul li .t { font-weight: 500; color: var(--fg); margin-bottom: 2px; }
.why-tg ul li .d { color: var(--fg-2); font-size: 14px; line-height: 1.5; }

/* ------- features page ------- */
.feat-group {
  border-top: 1px solid var(--line);
  padding: 64px 0;
}
.feat-group:first-child { border-top: 0; padding-top: 0; }
.feat-grid {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 56px;
}
.feat-head h3 { font-size: 30px; letter-spacing: -0.025em; }
.feat-head p { margin-top: 14px; font-size: 14.5px; }
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.feat-item {
  display: flex; gap: 14px;
  font-size: 14.5px;
}
.feat-item .ficon-sm {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--bg-2); color: var(--fg);
  display: grid; place-items: center; flex-shrink: 0;
}
.feat-item .ficon-sm svg { width: 14px; height: 14px; }
.feat-item .t { font-weight: 500; margin-bottom: 4px; }
.feat-item .d { color: var(--fg-2); font-size: 13.5px; line-height: 1.5; }

/* ------- legal pages ------- */
.legal-head {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--line);
}
.legal-head .eyebrow { margin-bottom: 14px; }
.legal-head .meta {
  margin-top: 18px;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-3); letter-spacing: 0.04em;
  display: flex; gap: 24px; flex-wrap: wrap;
}
.legal-head .meta span::before { content: '· '; margin-right: 6px; color: var(--fg-4); }
.legal-head .meta span:first-child::before { display: none; }
.legal-body {
  padding: 56px 0;
  max-width: 760px;
}
.legal-body h2 {
  font-size: 22px;
  margin-top: 48px; margin-bottom: 14px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 17px; margin-top: 28px; margin-bottom: 10px; font-family: var(--display); font-weight: 600; }
.legal-body p { font-size: 15px; line-height: 1.7; color: var(--fg-2); margin-bottom: 14px; }
.legal-body p strong, .legal-body li strong { color: var(--fg); font-weight: 600; }
.legal-body ul { padding-left: 22px; margin-bottom: 18px; }
.legal-body li { font-size: 15px; line-height: 1.7; color: var(--fg-2); margin-bottom: 6px; }
.legal-body .callout {
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14px; line-height: 1.6;
  color: var(--fg);
  margin: 20px 0;
  display: flex; gap: 14px; align-items: flex-start;
}
.legal-body .callout svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.legal-body .callout strong { color: var(--fg); }

/* ------- contact page ------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-card h3 { font-size: 18px; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--fg-2); margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: var(--sans); font-size: 14.5px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--primary);
  background: var(--paper);
}
.field textarea { min-height: 140px; resize: vertical; }

.contact-meta { display: flex; flex-direction: column; gap: 16px; }
.contact-meta .row {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.contact-meta .row:first-of-type { border-top: 0; padding-top: 0; }
.contact-meta .row .k {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.12em;
  text-transform: uppercase;
  width: 96px; flex-shrink: 0;
  padding-top: 2px;
}
.contact-meta .row .v { color: var(--fg); }
.contact-meta .row .v a { color: var(--primary); }

/* ------- CTA banner ------- */
.cta-banner {
  margin-top: 96px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(95,102,236,0.34), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(30,98,227,0.22), transparent 55%);
  pointer-events: none;
}
/* faint starfield over the banner — atmospheric, not decorative */
.cta-banner::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.cta-banner .cta-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: center;
}
.cta-banner h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.72); font-size: 16px; max-width: 480px; }

/* ------- responsive ------- */
@media (max-width: 980px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .features3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .why-tg { grid-template-columns: 1fr; padding: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .feat-grid { grid-template-columns: 1fr; gap: 24px; }
  .feat-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .quote-block { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .cta-banner { padding: 40px; }
  .cta-banner .cta-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 4px;
  }
}
@media (max-width: 640px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .container, .container-sm { padding: 0 20px; }
  .section { padding: 56px 0; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .price-card { padding: 24px; }
  .hero-meta { gap: 16px; font-size: 11px; }
}

/* mobile menu button */
.menu-btn {
  display: none;
  width: 36px; height: 36px;
  border-radius: 8px;
  align-items: center; justify-content: center;
  color: var(--fg-2);
}
.menu-btn:hover { background: var(--bg-2); color: var(--fg); }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
}
