@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800&family=Unbounded:wght@500;700;800&display=swap');

:root {
  --bg: #f4f8ff;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --text: #0f1f35;
  --muted: #5e6d85;
  --brand: #2d57e8;
  --brand-dark: #193fc7;
  --accent: #11b7a2;
  --accent-soft: #f0fbf8;
  --hot: #ff8d35;
  --line: #d8e2f5;
  --shadow: 0 20px 48px rgba(32, 70, 170, 0.12);
  --radius: 20px;
  --radius-lg: 30px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 8% 0%, #d7e4ff 0%, rgba(215, 228, 255, 0) 42%),
    radial-gradient(circle at 100% 20%, #cbfff4 0%, rgba(203, 255, 244, 0) 40%),
    linear-gradient(180deg, #f5f9ff 0%, #f9fcff 44%, #ffffff 100%);
  color: var(--text);
  font-family: 'Onest', sans-serif;
  scroll-behavior: smooth;
}

main {
  position: relative;
}

.ambient-orbs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  animation: floatOrb 9s ease-in-out infinite;
}

.orb-a {
  width: 360px;
  height: 360px;
  left: -90px;
  top: 30px;
  background: radial-gradient(circle, rgba(81, 125, 255, 0.32), rgba(81, 125, 255, 0));
}

.orb-b {
  width: 420px;
  height: 420px;
  right: -120px;
  top: 220px;
  background: radial-gradient(circle, rgba(17, 183, 162, 0.26), rgba(17, 183, 162, 0));
  animation-delay: -2.2s;
}

.orb-c {
  width: 280px;
  height: 280px;
  left: 40%;
  top: 660px;
  background: radial-gradient(circle, rgba(255, 141, 53, 0.2), rgba(255, 141, 53, 0));
  animation-delay: -4.4s;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(245, 250, 255, 0.78);
  border-bottom: 1px solid rgba(216, 226, 245, 0.75);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, #4d76ff 0%, #1f4be0 66%, #15359c 100%);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14);
  position: relative;
}

.logo-mark::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  border: 2px solid #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  padding: 0.9rem 1.15rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--brand) 0%, #346dff 52%, #4f3df8 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(45, 87, 232, 0.28);
}

.btn-secondary {
  background: #fbfdff;
  color: var(--text);
  border: 1px solid var(--line);
}

.hero {
  padding: 4.8rem 0 3.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  color: #3b5ebe;
  font-weight: 600;
  font-size: 0.85rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Unbounded', sans-serif;
  line-height: 1.15;
}

h1 {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 60ch;
}

.hero-content {
  position: relative;
}

.hero-content::after {
  content: '';
  position: absolute;
  right: -30px;
  top: 20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 87, 232, 0.2), rgba(45, 87, 232, 0));
  z-index: -1;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.point {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  backdrop-filter: blur(6px);
}

.point b {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.mockup {
  background: linear-gradient(148deg, #f7faff 0%, #ebf4ff 46%, #edfdfa 100%);
  color: #143056;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  border: 1px solid #cfddfb;
}

.mockup::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  top: -72px;
  right: -72px;
  background: radial-gradient(circle, rgba(45, 87, 232, 0.22), rgba(45, 87, 232, 0));
}

.hero-visual {
  border-radius: 16px;
  border: 1px solid #d8e5ff;
  margin-bottom: 1rem;
}

.flow-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #d9e6ff;
  border-radius: 14px;
  padding: 0.9rem;
  margin-top: 0.8rem;
}

.flow-card strong {
  display: block;
  margin-bottom: 0.3rem;
}

.signal-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.signal-grid div {
  border-radius: 12px;
  border: 1px solid #d2e2ff;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.7rem;
}

.signal-grid b {
  display: block;
  font-family: 'Unbounded', sans-serif;
  color: #284ed7;
}

.signal-grid span {
  font-size: 0.82rem;
  color: var(--muted);
}

.section {
  padding: 4.2rem 0;
}

.section-tight {
  padding: 1.1rem 0 2.1rem;
}

.section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
}

.section-head {
  max-width: 72ch;
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--muted);
  line-height: 1.6;
}

.stat-strip {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, #ffffff 0%, #f5f9ff 72%, #f2fffb 100%);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.stat-strip div {
  border: 1px solid #dde7fb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.85rem;
}

.stat-strip strong {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-size: 1.15rem;
  color: #2249d0;
}

.stat-strip span {
  color: var(--muted);
  font-size: 0.88rem;
}

.showcase {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.showcase img {
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.showcase div {
  padding: 1rem 1.2rem 1.2rem;
}

.showcase p {
  color: var(--muted);
  margin-bottom: 0;
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  right: -48px;
  top: -48px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 183, 162, 0.2), rgba(17, 183, 162, 0));
}

.card-visual {
  border: 1px solid #deebff;
  border-radius: 14px;
  margin-bottom: 0.9rem;
}

.card p,
.card li {
  color: var(--muted);
  line-height: 1.55;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.52rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  background: #eef3ff;
  color: #385eda;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.step-index {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-family: 'Unbounded', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(140deg, #11b7a2 0%, #0a9f92 100%);
  margin-bottom: 0.8rem;
}

.cta-band {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid #cce1ff;
  background: linear-gradient(125deg, #2850da 0%, #2d6ef8 58%, #11b7a2 100%);
  color: #f4f8ff;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.demo-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #ffffff 0%, #f6faff 62%, #effcf7 100%);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.demo-tab {
  border: 1px solid #d7e2f8;
  background: #fbfdff;
  color: #3f5d9f;
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.demo-tab.active {
  background: linear-gradient(135deg, #2d57e8 0%, #486dff 100%);
  color: #fff;
  border-color: transparent;
}

.demo-screen-wrap {
  margin-top: 0.9rem;
  border: 1px solid #dce7fb;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  min-height: 220px;
}

.demo-screen {
  display: none;
  width: 100%;
}

.demo-screen.active {
  display: block;
}

.reviews {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
}

.review-card {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.review-card.active {
  display: block;
}

.review-card p {
  margin-top: 0;
  color: #233751;
  line-height: 1.6;
  font-size: 1.02rem;
}

.review-card strong {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.9rem;
}

.review-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.review-nav {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #d7e2f8;
  background: #fff;
  color: #284ed7;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
}

.calc {
  margin-top: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.calc-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.control label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.control select,
.control input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.7rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: #ffffff;
}

.calc-result {
  margin-top: 0.9rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: #ecf9f6;
  color: #0a6b60;
  font-weight: 600;
  border: 1px solid #c7eae3;
}

.quick-quiz {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(130deg, #ffffff 0%, #f8fbff 56%, #f2fffb 100%);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.quiz-head p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.quiz-step {
  display: none;
  margin-top: 0.8rem;
}

.quiz-step.active {
  display: block;
}

.quiz-step strong {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.9rem;
}

.quiz-options {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.quiz-option {
  border: 1px solid #d7e3f8;
  background: #fff;
  color: #2a426f;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.quiz-option:hover,
.quiz-option.is-picked {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #2d57e8 0%, #4c73ff 100%);
}

.quiz-result {
  margin-bottom: 0;
  margin-top: 0.9rem;
  color: #234868;
  font-weight: 600;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: #fff;
  box-shadow: var(--shadow);
}

.post-card time {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── Related articles block ─────────────────────────── */
.related-posts {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.related-posts h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.related-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.related-card:hover {
  box-shadow: 0 4px 20px rgba(45, 87, 232, 0.12);
}

.related-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.related-card h3 a {
  color: var(--brand);
  text-decoration: none;
}

.related-card h3 a:hover {
  text-decoration: underline;
}

.related-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.25), rgba(238, 246, 255, 0));
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) translateY(120%);
  width: min(920px, calc(100% - 1rem));
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(32, 70, 170, 0.2);
  padding: 0.75rem 0.9rem;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  z-index: 60;
  transition: transform 0.3s ease;
}

.sticky-cta.visible {
  transform: translateX(-50%) translateY(0);
}

.sticky-cta p {
  margin: 0;
  font-weight: 700;
}

.sticky-cta-actions {
  display: flex;
  gap: 0.6rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-22px) scale(1.04);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .pipeline,
  .blog-list,
  .calc-controls,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .hero-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .reviews {
    grid-template-columns: 1fr;
  }

  .review-nav {
    width: 100%;
    height: 40px;
  }

  .sticky-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .sticky-cta-actions {
    width: 100%;
  }

  .sticky-cta-actions .btn {
    flex: 1;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 3.2rem;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .logo span:last-child {
    font-size: 0.95rem;
  }
}

/* ══════════════════════════════════════════════════
   NAV AUTH BUTTONS
══════════════════════════════════════════════════ */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--brand);
}

.hero-gift {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0;
}

.footer-app-link,
.footer-dev-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-dev-link { opacity: 0.6; }
.footer-app-link:hover,
.footer-dev-link:hover { color: var(--brand); opacity: 1; }

/* ══════════════════════════════════════════════════
   MODAL BASE
══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 40, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeInOverlay 0.2s ease;
}
.modal-overlay[hidden] { display: none; }

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 2rem 1.8rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 24px 64px rgba(10, 18, 40, 0.18);
  animation: slideUpModal 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-box--sm { max-width: 360px; }

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.25rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--text); background: var(--surface); }

.modal-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand);
  margin-bottom: 1.2rem;
}

.modal-h {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.4rem;
  line-height: 1.5;
}
.modal-sub strong { color: var(--brand); }

/* STEPS */
.modal-step { display: none; }
.modal-step.active { display: block; }

.modal-back {
  background: none;
  border: none;
  color: var(--brand);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
  font-weight: 500;
}
.modal-back:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════
   PHONE INPUT
══════════════════════════════════════════════════ */
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.phone-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 0 0.75rem;
  gap: 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.phone-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45, 87, 232, 0.12);
  background: #fff;
}

.phone-flag { font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.phone-prefix { font-weight: 600; font-size: 0.95rem; color: var(--text); flex-shrink: 0; }

.phone-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 0.75rem 0;
  outline: none;
  min-width: 0;
  letter-spacing: 0.02em;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.4rem 0 1rem;
}

/* ══════════════════════════════════════════════════
   OTP INPUT
══════════════════════════════════════════════════ */
.otp-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.2rem 0 0.5rem;
}

.otp-cell {
  width: 46px;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  caret-color: var(--brand);
  appearance: textfield;
  -moz-appearance: textfield;
}
.otp-cell:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45, 87, 232, 0.12);
  background: #fff;
}
.otp-cell.is-filled { border-color: var(--brand); background: #fff; }
.otp-cell::-webkit-outer-spin-button,
.otp-cell::-webkit-inner-spin-button { -webkit-appearance: none; }

.otp-error {
  min-height: 1.2em;
  color: #e53e3e;
  font-size: 0.85rem;
  text-align: center;
  margin: 0.3rem 0 0.8rem;
}

.otp-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

/* ══════════════════════════════════════════════════
   SOCIAL AUTH BUTTONS
══════════════════════════════════════════════════ */
.social-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.2rem 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.social-btns {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-social:hover {
  background: var(--surface);
  border-color: #b8c8ee;
  box-shadow: 0 2px 8px rgba(45, 87, 232, 0.08);
}
.btn-apple { color: #111; }
.btn-telegram {
  color: #1f75e8;
}

.google-slot,
.telegram-slot {
  flex: 1;
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.25rem;
}

#telegram-widget-reg,
#telegram-widget-login {
  margin-top: 0.5rem;
  width: 100%;
  min-height: 0;
  justify-content: flex-start;
  background: transparent;
  border: 0;
  padding: 0;
}

.telegram-slot iframe {
  max-width: 100% !important;
}

.tg-fallback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  border-radius: 8px;
  background: #229ed9;
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.tg-fallback-btn:hover {
  background: #1a8abe;
}

.google-slot > div,
.google-slot iframe,
.telegram-slot > iframe,
.telegram-slot > div {
  max-width: 100% !important;
}

@media (max-width: 520px) {
  .social-btns {
    flex-direction: column;
  }
}

/* ══════════════════════════════════════════════════
   MODAL FORM INPUTS
══════════════════════════════════════════════════ */
.form-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.72rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 0.6rem;
}
.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45, 87, 232, 0.12);
  background: #fff;
}
.form-input::placeholder { color: #aab; }

/* ══════════════════════════════════════════════════
   MODAL UTILITY
══════════════════════════════════════════════════ */
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.8rem;
}

.modal-legal {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}
.modal-legal a { color: var(--brand); text-decoration: none; }
.modal-legal a:hover { text-decoration: underline; }

.link-btn {
  background: none;
  border: none;
  color: var(--brand);
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.link-btn:hover { opacity: 0.8; }


/* ── Pricing section ───────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.pricing-skeleton {
  height: 320px;
  background: linear-gradient(110deg, #edf2ff 25%, #f4f8ff 50%, #edf2ff 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.plan-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(32, 70, 170, 0.16);
}

.plan-card.is-popular {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow);
}

.plan-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.plan-price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  font-family: 'Unbounded', sans-serif;
}

.plan-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  font-family: 'Onest', sans-serif;
}

.plan-divider {
  height: 1px;
  background: var(--line);
  margin: 0.4rem 0;
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.plan-features li {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.plan-cta {
  margin-top: 0.8rem;
  width: 100%;
}

.plan-card.is-popular .plan-cta {
  background: linear-gradient(130deg, var(--brand) 0%, #346dff 52%, #4f3df8 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(45, 87, 232, 0.35);
}

/* ── Pipeline Visual (replaces ai-flow.svg) ───────────────────── */
.pipeline-visual {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding: 20px 20px 16px;
  overflow-x: auto;
}

.pv-box {
  flex: 1;
  min-width: 210px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1.5px solid transparent;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.pv-box--blue  { border-color: #e0e7ff; background: linear-gradient(160deg,#fff 60%,#f5f7ff); }
.pv-box--green { border-color: #d1fae5; background: linear-gradient(160deg,#fff 60%,#f0fdf8); }
.pv-box--orange{ border-color: #fde68a; background: linear-gradient(160deg,#fff 60%,#fffbf0); }

.pv-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
}
.pv-box--blue::before  { background: linear-gradient(90deg,#6366f1,#818cf8); }
.pv-box--green::before { background: linear-gradient(90deg,#10b981,#34d399); }
.pv-box--orange::before{ background: linear-gradient(90deg,#f59e0b,#fbbf24); }

/* SVG icon in colored circle */
.pv-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.pv-icon-wrap--blue   { background: #e0e7ff; color: #4f46e5; }
.pv-icon-wrap--green  { background: #d1fae5; color: #059669; }
.pv-icon-wrap--orange { background: #fef3c7; color: #d97706; }

.pv-icon-wrap svg { width: 28px; height: 28px; }

.pv-step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  opacity: .5;
}

.pv-box-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.pv-box-sub {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.pv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.pv-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
}

.pv-tag--blue   { background: #eff6ff; color: #3b82f6; }
.pv-tag--green  { background: #ecfdf5; color: #059669; }
.pv-tag--sky    { background: #e0f2fe; color: #0284c7; }
.pv-tag--purple { background: #f5f3ff; color: #7c3aed; }
.pv-tag--orange { background: #fff7ed; color: #c2410c; }

.pv-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.pv-check {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.pv-check-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d1fae5;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pv-check-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #059669;
}

.pv-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 10px;
}

.pv-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  flex-shrink: 0;
}

.pv-arrow-label {
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
  background: #e0e7ff;
  padding: 3px 9px;
  border-radius: 8px;
  letter-spacing: .03em;
}

@media (max-width: 700px) {
  .pipeline-visual { flex-direction: column; padding: 14px; }
  .pv-arrow { transform: rotate(90deg); margin: 4px 0; }
}

/* ── Email auth forms ────────────────────────────────────────────────────── */
#login-email-form,
#reg-email-form,
#reg-email-verify-form {
  margin-top: 16px;
  border-top: 1px solid #e8edf3;
  padding-top: 14px;
}
#login-email-form .form-input,
#reg-email-form .form-input,
#reg-email-verify-form .form-input {
  display: block;
  width: 100%;
}
