/* ChalanAI sales page. Colours and type live in :root; change them here. */
:root {
  --ink: #0f1535;
  --ink-2: #3d4664;
  --muted: #66708a;
  --line: #e3e8f2;
  --mist: #f4f6fb;
  --white: #ffffff;
  --violet: #1e3a8a;
  --violet-deep: #0f1535;
  --violet-soft: #e8edf9;
  --pink: #f5a524;
  --pink-soft: #fdf1d8;
  --peach: #f97316;
  --peach-soft: #ffedde;
  --mint: #059669;
  --mint-soft: #dcf5ea;
  --blue: #2563eb;
  --blue-soft: #e3edff;
  --red: #dc2626;
  --grad: linear-gradient(135deg, #1e3a8a 0%, #2c52c4 100%);

  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 21, 53, .04), 0 18px 40px -22px rgba(15, 21, 53, .35);
  --shadow-lg: 0 40px 80px -36px rgba(15, 21, 53, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 112px 0; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.35rem); line-height: 1.02; font-weight: 750; }
h2 { font-size: clamp(2rem, 3.7vw, 3.05rem); line-height: 1.06; font-weight: 720; max-width: 18ch; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; margin-top: 18px; }
.sec-head { margin-bottom: 52px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 28px -14px rgba(30, 58, 138, .8); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -14px rgba(30, 58, 138, .9); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--violet); color: var(--violet); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--violet-deep); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ── header ── */
.site-head {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.25rem/1 var(--display); letter-spacing: -0.02em; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav a:hover { color: var(--violet); }
.head-cta { padding: 11px 20px; font-size: .95rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn .icon { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1.05rem; }
  .menu-btn { display: inline-flex; }
  .head-cta { display: none; }
}

/* ── hero ── */
.hero {
  position: relative; padding: 72px 0 104px; overflow: hidden;
  background:
    radial-gradient(60% 70% at 92% 8%, #fde9c4 0%, transparent 60%),
    radial-gradient(55% 60% at 6% 96%, #d9e3fb 0%, transparent 62%),
    radial-gradient(40% 40% at 70% 100%, #fff0d4 0%, transparent 70%),
    #fbfcff;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { font-size: 1.2rem; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.works-with { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--muted); font-size: .92rem; }
.works-with b { color: var(--ink); font-weight: 700; font-size: 1rem; }

/* the chat → order demo */
.demo { position: relative; min-height: 640px; }
.chat, .order {
  position: absolute; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(30, 58, 138, .08);
}
.chat { left: 0; top: 0; width: 262px; padding: 16px 16px 20px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: var(--pink-soft); color: #9a5b04; flex-shrink: 0; }
.chat-head b { display: block; font-size: .95rem; line-height: 1.2; }
.chat-head small { color: var(--muted); font-size: .8rem; }
.bubble { background: #eef1f7; border-radius: 18px 18px 18px 6px; padding: 9px 13px; font-size: .9rem; line-height: 1.4; margin-bottom: 8px; max-width: 92%; width: fit-content; }
.bubble.me { margin-left: auto; background: var(--violet); color: #fff; border-radius: 18px 18px 6px 18px; }
.spark {
  position: absolute; left: 224px; top: 96px; width: 64px; height: 64px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center; z-index: 3;
  box-shadow: 0 12px 30px -10px rgba(30, 58, 138, .9);
}
.spark .icon { width: 28px; height: 28px; }
.order { right: 0; top: 150px; width: min(304px, 100%); padding: 20px; z-index: 2; }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.order-top b { font: 700 1.02rem/1.2 var(--display); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.chip .icon { width: 13px; height: 13px; }
.chip-violet { background: var(--violet-soft); color: var(--violet-deep); }
.chip-mint { background: var(--mint-soft); color: var(--mint); }
.field { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.field span { color: var(--muted); }
.field strong { font-weight: 650; min-height: 1.4em; }
.items { margin: 12px 0; display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.swatch { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
.sw-pink { background: radial-gradient(circle, #fff 0 3px, transparent 3.5px) 0 0/12px 12px, #ec4899; }
.sw-check { background: linear-gradient(90deg, rgba(255,255,255,.4) 50%, transparent 50%) 0 0/10px 10px, linear-gradient(rgba(255,255,255,.4) 50%, transparent 50%) 0 0/10px 10px, #0d9488; }
.item span { flex: 1; min-width: 0; }
.item b { font-weight: 700; }
.total { display: flex; justify-content: space-between; align-items: center; background: var(--mist); border-radius: 14px; padding: 12px 14px; font-weight: 650; }
.total b { font: 750 1.3rem/1 var(--display); }
.booked { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--mint-soft); color: var(--mint); font-weight: 700; font-size: .92rem; }
.booked .icon { width: 18px; height: 18px; }
.replay { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); font-weight: 600; font-size: .85rem; cursor: pointer; padding: 6px; }
.replay .icon { width: 15px; height: 15px; }
.replay:hover { color: var(--violet); }

/* demo animation states (JS adds .on to steps in order) */
.demo .step { transition: opacity .45s ease, transform .45s ease; }
.demo .step:not(.on) { opacity: 0; transform: translateY(10px); }
.demo .fill { transition: color .3s; }
.demo .fill:not(.on) { color: transparent; background: linear-gradient(90deg, #edf0f6, #f5f7fb); border-radius: 6px; }
.demo .spark.step:not(.on) { transform: scale(.6); }
.demo .spark.pulse { animation: pulse 1s ease-in-out 2; }
@keyframes pulse { 50% { transform: scale(1.12); box-shadow: 0 0 0 14px rgba(30, 58, 138, .12); } }
@media (prefers-reduced-motion: reduce) {
  .demo .step, .demo .fill { transition: none; }
  .demo .spark.pulse { animation: none; }
  .replay { display: none; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .demo { min-height: 640px; max-width: 580px; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 72px; }
  .demo { min-height: auto; display: grid; gap: 14px; }
  .chat, .order, .spark { position: relative; left: auto; right: auto; top: auto; width: 100%; }
  .spark { width: 52px; height: 52px; justify-self: center; }
  .replay { position: static; justify-self: end; }
}

/* ── before / after ── */
.contrast { background: var(--white); }
.contrast-grid { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.col-before { background: #f8f9fc; padding: 40px; }
.col-after { background: var(--ink); color: #fff; padding: 40px; position: relative; }
.col-after::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(245,165,36,.35), transparent 70%); pointer-events: none; }
.contrast h3 { margin-bottom: 22px; font-size: 1.35rem; }
.col-after h3 { color: #fff; }
.contrast ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contrast li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.contrast li .icon { width: 22px; height: 22px; margin-top: 2px; }
.col-before li { color: var(--ink-2); }
.col-before li .icon { color: var(--red); }
.col-after li { color: #e6eaf5; }
.col-after li .icon { color: #5eead4; }
@media (max-width: 820px) { .contrast-grid { grid-template-columns: 1fr; } .col-before, .col-after { padding: 28px 22px; } }

/* ── module viewer ── */
.modules { background: var(--mist); }
.viewer { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; }
.tabs { display: grid; gap: 4px; position: sticky; top: 96px; }
.tab {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 16px;
  border: 0; border-radius: 14px; background: transparent; color: var(--ink-2); font-weight: 650; cursor: pointer;
}
.tab .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--violet); box-shadow: 0 0 0 1px var(--line); flex-shrink: 0; }
.tab .ic .icon { width: 18px; height: 18px; }
.tab:hover { background: rgba(30, 58, 138, .06); color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.tab[aria-selected="true"] .ic { background: var(--violet); color: #fff; box-shadow: none; }
.panel { display: grid; gap: 24px; }
.panel[hidden] { display: none; }
.shot { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.shot-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fff; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e8f1; }
.shot-bar i:nth-child(1) { background: #ff6b6b; } .shot-bar i:nth-child(2) { background: #ffc145; } .shot-bar i:nth-child(3) { background: #3dd68c; }
.shot-bar span { margin-left: 14px; font-size: .78rem; color: var(--muted); background: var(--mist); padding: 3px 12px; border-radius: 8px; }
.shot.plain { box-shadow: none; background: transparent; }
.panel-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.panel-points h3 { font-size: 1.05rem; margin-bottom: 6px; }
.panel-points p { color: var(--ink-2); font-size: .95rem; }
.stack { position: relative; }
.stack .float { position: absolute; right: -18px; bottom: -28px; width: 42%; border-radius: 16px; box-shadow: var(--shadow-lg); }
@media (max-width: 980px) {
  .viewer { grid-template-columns: 1fr; }
  .tabs { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { width: auto; flex-shrink: 0; padding: 9px 14px 9px 9px; }
  .tab .ic { width: 30px; height: 30px; }
  .panel-points { grid-template-columns: 1fr; gap: 16px; }
  .stack .float { right: 8px; bottom: -16px; }
}

/* ── AI order entry ── */
.ai { background: #fff; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.new-tag { display: inline-block; background: var(--pink); color: var(--ink); font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.steps-inline { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.steps-inline li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; counter-increment: s; }
.steps-inline li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet-deep); font: 800 1rem/1 var(--display); }
.steps-inline b { display: block; font-size: 1.05rem; }
.steps-inline span { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ── real profit ── */
.profit { background: var(--mist); }
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 48px; }
.term { display: inline-flex; align-items: center; gap: 9px; background: #fff; border-radius: 999px; padding: 9px 16px 9px 9px; font-weight: 700; font-size: .95rem; box-shadow: 0 0 0 1px var(--line); }
.term .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.term .ic .icon { width: 17px; height: 17px; }
.op { font: 700 1.4rem/1 var(--display); color: var(--violet); }
.term.result { background: var(--mint); color: #fff; box-shadow: 0 14px 30px -16px rgba(5, 150, 105, .8); }
.term.result .ic { background: rgba(255, 255, 255, .2); color: #fff; }
.profit-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.defs { display: grid; gap: 26px; }
.defs h3 { margin-bottom: 4px; }
.defs p { color: var(--ink-2); }
@media (max-width: 900px) { .profit-grid { grid-template-columns: 1fr; } }

/* ── server-side tracking ── */
.track { background: #fff; }
.track-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.flow { position: relative; display: grid; grid-template-columns: 1fr 1.3fr 1fr; grid-template-rows: auto auto; gap: 18px 26px; align-items: center; }
.node { background: #fff; border-radius: var(--r-md); padding: 16px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 4px; }
.node .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 6px; }
.node b { font-size: .98rem; }
.node small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.node.shopper { grid-row: 1 / span 2; }
.node.meta { grid-column: 3; grid-row: 1 / span 2; }
.node.meta .ic { background: var(--mint-soft); color: var(--mint); }
.node.browser { background: var(--mist); box-shadow: 0 0 0 1px var(--line), inset 0 0 0 0 transparent; }
.node.browser .ic { background: #e9edf5; color: var(--muted); }
.node.browser em { font-style: normal; color: var(--red); font-weight: 700; font-size: .8rem; }
.node.server { background: var(--grad); color: #fff; padding: 20px 18px; box-shadow: 0 24px 40px -20px rgba(30, 58, 138, .9); position: relative; }
.node.server .ic { background: rgba(255, 255, 255, .2); color: #fff; }
.node.server b { font: 750 1.2rem/1.15 var(--display); }
.node.server small { color: rgba(255, 255, 255, .88); }
.server-tag { position: absolute; top: -12px; left: 16px; background: #fbbf24; color: var(--ink); font-weight: 800; font-size: .74rem; padding: 3px 10px; border-radius: 999px; }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 14px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { font-weight: 700; color: var(--muted); font-size: .88rem; }
.compare thead th:last-child { color: var(--violet-deep); }
.compare td:first-child { font-weight: 650; }
.compare .no { color: var(--muted); }
.compare .yes { color: var(--mint); font-weight: 700; }
.compare .icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.compare .no .icon { color: var(--red); }
.track-note { margin-top: 18px; color: var(--muted); font-size: .9rem; }
@media (max-width: 980px) { .track-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .node.shopper, .node.meta { grid-row: auto; grid-column: auto; }
  .compare th, .compare td { padding: 12px 6px; font-size: .88rem; }
}

/* ── trust: security + support ── */
.trust { background: var(--ink); color: #fff; }
.trust h2 { color: #fff; }
.trust .lede { color: #c9d0e4; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: 56px; }
.trust-item .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fcc565; margin-bottom: 16px; }
.trust-item h3 { color: #fff; margin-bottom: 6px; }
.trust-item p { color: #b3bbd3; font-size: .97rem; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ── pricing ── */
.pricing {
  background:
    radial-gradient(50% 50% at 0% 0%, #e3eafb 0%, transparent 70%),
    radial-gradient(40% 50% at 100% 30%, #fdf0d5 0%, transparent 70%),
    #fcfdff;
}
.price-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.billing { display: inline-flex; background: #fff; border-radius: 999px; padding: 5px; box-shadow: 0 0 0 1px var(--line); }
.billing button { border: 0; background: transparent; border-radius: 999px; padding: 10px 18px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.billing .save { color: var(--mint); font-size: .8rem; margin-left: 4px; }
.billing button[aria-pressed="true"] .save { color: #6ee7b7; }
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: #fff; border-radius: 22px; padding: 26px 22px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 1.3rem; }
.plan .for { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.price { margin-top: 20px; font: 750 2.1rem/1 var(--display); letter-spacing: -0.03em; }
.per { color: var(--muted); font-size: .88rem; margin-top: 6px; min-height: 2.6em; }
.limits { list-style: none; padding: 16px 0; margin: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; font-weight: 700; font-size: .93rem; }
.feats { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: .92rem; color: var(--ink-2); }
.feats li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.feats .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--violet); }
.plan .btn { margin-top: auto; width: 100%; padding: 13px 18px; }
.plan.growth { box-shadow: 0 0 0 2px var(--violet), var(--shadow-lg); transform: translateY(-10px); }
.plan.pro { background: var(--ink); color: #fff; transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.plan.pro h3 { color: #fcc565; }
.plan.pro .for, .plan.pro .per { color: #b3bbd3; }
.plan.pro .limits { border-color: #2b3358; }
.plan.pro .feats { color: #dfe4f2; }
.plan.pro .feats .icon { color: #fcc565; }
.badge { position: absolute; top: -13px; left: 22px; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: .76rem; color: #fff; background: var(--violet); }
.plan.pro .badge { background: var(--pink); }
.plan.pro .btn-ghost { background: #fff; }
.price-foot { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.foot-box { background: #fff; border-radius: 18px; padding: 20px 22px; box-shadow: 0 0 0 1px var(--line); font-size: .95rem; color: var(--ink-2); }
.foot-box b { color: var(--ink); display: block; margin-bottom: 8px; font-size: 1rem; }
.foot-box ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.nb { margin-top: 18px; font-size: .85rem; color: var(--muted); max-width: 90ch; }
@media (max-width: 1150px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } .plan.growth, .plan.pro { transform: none; } }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; gap: 22px; } .price-foot { grid-template-columns: 1fr; } }

/* ── how to start ── */
.start { background: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; position: relative; }
.timeline::before { content: ""; position: absolute; left: 28px; right: calc((100% - 84px) / 4 - 28px); top: 28px; border-top: 2px dashed #cdd7f0; }
.timeline li { position: relative; counter-increment: step; }
.timeline .ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; margin-bottom: 18px; box-shadow: 0 0 0 8px #fff; position: relative; }
.timeline li:nth-child(2) .ic { background: var(--pink); }
.timeline li:nth-child(3) .ic { background: var(--mint); }
.timeline li:nth-child(4) .ic { background: var(--peach); }
.timeline small { color: var(--muted); font-weight: 700; font-size: .85rem; }
.timeline small::before { content: "Step " counter(step); }
.timeline h3 { margin: 2px 0 6px; }
.timeline p { color: var(--ink-2); font-size: .96rem; }
.need { margin-top: 48px; background: var(--mist); border-radius: 20px; padding: 22px 26px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.need b { font-size: 1.05rem; }
.need ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.need li { background: #fff; padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
}
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

/* ── order form ── */
.order-sec { background: var(--mist); }
.form-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 650; }
.contact-list .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--violet); box-shadow: 0 0 0 1px var(--line); }
.contact-list a:hover { color: var(--violet); }
form.order-form { background: #fff; border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.f { display: grid; gap: 7px; }
.f.full { grid-column: 1 / -1; }
.f label, .f legend { font-weight: 650; font-size: .93rem; }
.f label .opt { color: var(--muted); font-weight: 500; }
.f input, .f select, .f textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; font-size: 1rem;
  transition: border-color .15s;
}
.f textarea { min-height: 96px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.f .err { color: var(--red); font-size: .85rem; font-weight: 600; display: none; }
.f.invalid input, .f.invalid select { border-color: var(--red); }
.f.invalid .err { display: block; }
fieldset.f { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-size: .92rem; font-weight: 600; }
.check input { width: 17px; height: 17px; accent-color: var(--violet); }
.check:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--violet); background: var(--violet-soft); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-actions p { color: var(--muted); font-size: .88rem; }
.done { grid-column: 1 / -1; display: none; background: var(--mint-soft); border-radius: 16px; padding: 18px 20px; color: #065f46; }
.done b { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.done.show { display: block; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { form.order-form { grid-template-columns: 1fr; padding: 22px 18px; } }

/* ── FAQ ── */
.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font: 680 1.12rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--violet); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ── footer ── */
.site-foot { background: var(--ink); color: #c9d0e4; padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-foot .logo { color: #fff; }
.site-foot p { margin-top: 14px; max-width: 38ch; font-size: .95rem; }
.site-foot h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-foot a { color: #c9d0e4; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #262d4d; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; color: #959db8; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  section { padding: 76px 0; }
  .sec-head { margin-bottom: 36px; }
}

/* ── live cards on the module screens (numbers count up, then move like live data) ── */
.stage { position: relative; }
.panel:not([hidden]) .shot { animation: shot-in .45s ease both; }
@keyframes shot-in { from { opacity: 0; transform: translateY(10px); } }
.live-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; min-width: 196px;
  padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -28px rgba(15, 21, 53, .55), 0 0 0 1px rgba(30, 58, 138, .1);
  opacity: 0; transform: translateY(16px) scale(.95);
  transition: opacity .45s ease, transform .5s cubic-bezier(.2, .9, .25, 1.2);
}
.live-card.in { opacity: 1; transform: none; }
.live-card.pos-tl { left: -18px; top: 14%; }
.live-card.pos-tr { right: -18px; top: 12%; }
.live-card.pos-bl { left: -18px; bottom: 10%; }
.live-card.pos-br { right: -18px; bottom: 12%; }
.lc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.lc-ic .icon { width: 19px; height: 19px; }
.lc-body { display: grid; gap: 2px; }
.lc-body small { color: var(--muted); font-size: .8rem; font-weight: 600; line-height: 1.2; }
.num { font: 750 1.6rem/1.05 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); transition: color .35s; }
.live-card.up .num { color: var(--mint); }
.live-card.down .num { color: var(--red); }
.delta { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--muted); min-height: 1.1em; transition: color .3s; }
.live-card.up .delta { color: var(--mint); }
.live-card.down .delta { color: var(--red); }
.live-dot { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); animation: ripple 1.8s ease-out infinite; }
@keyframes ripple { to { transform: scale(3); opacity: 0; } }
.t-violet { background: var(--violet-soft); color: var(--violet); --tone: var(--violet); }
.t-pink { background: var(--pink-soft); color: #a16207; --tone: #d98a06; }
.t-mint { background: var(--mint-soft); color: var(--mint); --tone: var(--mint); }
.t-blue { background: var(--blue-soft); color: var(--blue); --tone: var(--blue); }
.t-peach { background: var(--peach-soft); color: #ea580c; --tone: #ea580c; }
.t-red { background: #fde4e4; color: var(--red); --tone: var(--red); }
/* ring */
.ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; background: none; }
.ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .bg { stroke: #eceff6; }
.ring .fg { stroke: var(--tone); stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1rem; }
/* mini bars */
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 54px; margin-top: 6px; }
.mini-bars i { width: 11px; border-radius: 4px 4px 2px 2px; background: #d6e0f7; height: 0; transition: height .7s cubic-bezier(.2, .8, .2, 1), background .3s; }
.mini-bars i.hi { background: var(--mint); }
.mini-bars i.lo { background: #fcc565; }
.live-card.col { flex-direction: column; align-items: flex-start; gap: 0; }
/* sparkline */
.spark-svg { width: 150px; height: 46px; margin-top: 6px; overflow: visible; }
.spark-svg path.line { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset 1.4s ease; }
.spark-svg path.area { fill: url(#spark-grad); opacity: 0; transition: opacity .8s .8s; }
.live-card.in .spark-svg path.area { opacity: 1; }
.spark-svg circle { fill: var(--violet); stroke: #fff; stroke-width: 2; opacity: 0; transition: opacity .3s 1.3s; }
.live-card.in .spark-svg circle { opacity: 1; }

@media (max-width: 980px) {
  .live-card { min-width: 0; padding: 10px 12px; gap: 9px; border-radius: 14px; }
  .live-card.pos-tl, .live-card.pos-bl { left: 10px; }
  .live-card.pos-tr, .live-card.pos-br { right: 10px; }
  .num { font-size: 1.2rem; }
  .lc-ic { width: 32px; height: 32px; }
  .ring, .ring svg { width: 50px; height: 50px; }
  .ring .num { font-size: .82rem; }
  .spark-svg { width: 110px; height: 36px; }
  .mini-bars { height: 40px; }
}
@media (max-width: 560px) {
  .live-card .lc-body small { font-size: .7rem; }
  .live-card:nth-of-type(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .live-card, .ring .fg, .mini-bars i, .spark-svg path, .spark-svg circle { transition: none; }
  .panel:not([hidden]) .shot { animation: none; }
  .live-dot::after { animation: none; }
}
