/* Origin41 — studio.scriptogenerator.com */
:root {
  --bg: #09090c;
  --card: #111116;
  --card-2: #15151c;
  --line: #23232c;
  --line-2: #30303b;
  --text: #f5f5f7;
  --muted: #a1a1ad;
  --dim: #6f6f7c;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --lav: #c9bcff;
  --cyan: #3fd6f0;
  --teal: #5eead4;
  --green: #34d399;
  --grad: linear-gradient(90deg, #8b5cf6 0%, #7b7ff8 48%, #3fd2f0 100%);
  --grad-head: linear-gradient(90deg, #5fe6f4 0%, #d9dcf7 34%, #c6b9ff 66%, #f6f4ff 100%);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -12%, rgba(139, 92, 246, 0.13), transparent 70%),
    radial-gradient(700px 420px at 92% 8%, rgba(63, 214, 240, 0.05), transparent 70%);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 12, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 28px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ff6a5c 0%, #e0479e 45%, #7b5cf6 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 6px 18px rgba(224, 71, 158, .25);
  font-weight: 800; font-size: 15px; color: #fff;
}
.nav {
  display: flex; gap: 4px; padding: 4px;
  background: #121218; border: 1px solid var(--line); border-radius: 12px;
}
.nav a {
  padding: 6px 13px; border-radius: 8px; font-size: 14px; color: #c9c9d2;
  transition: background .15s, color .15s;
}
.nav a:hover { color: #fff; background: #1b1b23; }
.nav a.active { color: #fff; background: var(--grad); font-weight: 600; box-shadow: 0 4px 16px rgba(139, 92, 246, .35); }
.hdr-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.login {
  background: none; border: 0; padding: 6px 4px;
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #e7e7ee;
}
.login:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: -0.005em; text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-grad {
  background: var(--grad); color: #fff; border: 0;
  box-shadow: 0 8px 26px rgba(139, 92, 246, .35), 0 2px 10px rgba(63, 210, 240, .18);
}
.btn-grad:hover { box-shadow: 0 10px 34px rgba(139, 92, 246, .5), 0 2px 14px rgba(63, 210, 240, .28); }
.btn-dark { background: #17171e; border-color: var(--line-2); color: #fff; }
.btn-dark:hover { background: #1d1d26; border-color: #3c3c49; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: #fff; }
.btn-ghost:hover { background: #15151c; }
.btn-sm {
  min-height: 0; padding: 9px 18px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.btn-block { width: 100%; }

/* ---------- Pills & type ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.pill-violet { color: #cbbcff; background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .45); }
.pill-cyan { color: #7ce9f7; background: rgba(45, 212, 191, .06); border: 1px solid rgba(63, 214, 240, .35); }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #cfcfd8; }
.g-head {
  background: var(--grad-head);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.h-hero {
  margin: 22px auto 14px;
  max-width: 960px;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.h-sec {
  margin: 14px 0 12px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.lead { margin: 0 auto; max-width: 680px; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); }
.sec { padding: 96px 0 0; }
.sec-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }

/* ---------- Cards / grid ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card h3 { margin: 14px 0 8px; font-size: 19px; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(63,214,240,.12));
  border: 1px solid rgba(139, 92, 246, .35);
  color: #d9d0ff;
}
.ico svg { width: 20px; height: 20px; }
.step-n { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--violet-2); }

/* ---------- Checks ---------- */
.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.45; color: #e6e6ec; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l2.9 2.9 6-6.3' fill='none' stroke='%230b1f17' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.checks.mute li::before { background-color: #d6d6de; }

/* ---------- Pricing hero / toggle ---------- */
.p-hero { padding: 54px 0 0; }
.p-hero .lead { margin-top: 4px; }
.p-hero .pill-cyan { margin-top: 14px; }
.seg {
  display: inline-flex; gap: 4px; margin-top: 34px; padding: 5px;
  background: #121218; border: 1px solid var(--line); border-radius: 999px;
}
.seg-btn {
  border: 0; background: transparent; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #c4c4cf; white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
}
.seg-btn:hover { color: #fff; }
.seg-btn.active { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(139, 92, 246, .4); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 22px 22px;
  transition: border-color .25s, box-shadow .25s, background .25s, transform .25s;
}
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.plan-name { margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #dedee6; }
.plan-sub { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.badge {
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.badge-grad { background: linear-gradient(90deg, #8b5cf6, #5b8cf8); color: #fff; }
.badge-light { background: #d9d9e1; color: #26262e; }
.price { display: flex; align-items: baseline; gap: 4px; margin-top: 22px; }
.price .amt { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price .per { color: var(--muted); font-size: 15px; letter-spacing: -0.02em; }
.fixed { margin: 12px 0 0; color: var(--green); font-size: 14px; font-weight: 600; }
.plan .checks { flex: 1; margin-bottom: 26px; }
.plan .btn { width: 100%; }
.plan.featured {
  background: linear-gradient(180deg, rgba(139, 92, 246, .09), rgba(139, 92, 246, .02) 45%), var(--card);
  border-color: rgba(139, 92, 246, .75);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, .25), 0 20px 60px -20px rgba(139, 92, 246, .45);
}
.plan .btn-plan { background: #17171e; border: 1px solid var(--line-2); color: #fff; box-shadow: none; }
.plan .btn-plan:hover { background: #1d1d26; }
.plan.featured .btn-plan { background: var(--grad); border-color: transparent; box-shadow: 0 8px 26px rgba(139, 92, 246, .4); }

/* managed / self info strip */
.howto {
  margin-top: 18px; padding: 22px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start;
}
.howto h3 { margin: 6px 0 4px; font-size: 18px; letter-spacing: -0.015em; }
.howto p { margin: 0; color: var(--muted); font-size: 14px; }
.howto ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.howto li { padding: 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); font-size: 14px; color: #dcdce4; }
.howto li b { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--violet-2); }
[data-show] { display: none; }
[data-mode="self"] [data-show="self"], [data-mode="managed"] [data-show="managed"] { display: revert; }
[data-mode="self"] .howto[data-show="self"], [data-mode="managed"] .howto[data-show="managed"] { display: grid; }

/* ---------- Calculator ---------- */
.calc {
  margin-top: 22px;
  display: grid; grid-template-columns: 1fr 1.07fr; gap: 28px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 24px 24px 24px 26px;
}
.calc h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.vol { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 18px; }
.vol-n { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.vol-u { color: var(--muted); font-size: 16px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 0; }
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6, #3fd2f0) 0 0 / var(--fill, 0%) 100% no-repeat, #24242e;
}
.range::-moz-range-track { height: 6px; border-radius: 999px; background: #24242e; }
.range::-moz-range-progress { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #8b5cf6, #3fd2f0); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; margin-top: -9px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 4px solid #7c5cf0;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .22), 0 4px 14px rgba(0, 0, 0, .5);
}
.range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 4px solid #7c5cf0;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .22);
}
.ticks { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: #9a9aa6; }
.ticks button { background: none; border: 0; padding: 2px; color: inherit; font: inherit; }
.ticks button:hover { color: #fff; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  padding: 16px 14px; border-radius: 14px; background: #0e0e13; border: 1px solid var(--line);
}
.stat-l { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9b9ba7; }
.stat-v { margin-top: 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-v.green { color: var(--green); }
.calc .btn { padding: 14px 22px; min-height: 58px; line-height: 1.3; }

/* ---------- FAQ ---------- */
.faq { margin-top: 70px; max-width: 800px; display: grid; gap: 12px; }
.faq-h { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.02em; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 700; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-size: 22px; font-weight: 400; line-height: 1; color: var(--violet-2);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* ---------- Home: hero + phones ---------- */
.h-hero-l { text-align: center; padding: 70px 0 0; }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.chip {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: #121218;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: #c8c8d2; text-transform: uppercase;
}
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.phone {
  position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
  isolation: isolate;
}
.phone::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ph); }
.phone::after {
  content: ""; position: absolute; left: 50%; top: 34%; width: 46%; aspect-ratio: 1; z-index: -1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.35), rgba(255,255,255,.06) 60%, transparent 70%);
  filter: blur(1px);
}
.phone:nth-child(2) { transform: translateY(26px); }
.phone:nth-child(3) { transform: translateY(-10px); }
.phone:nth-child(4) { transform: translateY(18px); }
.ph-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; }
.ph-tag { padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #fff; }
.ph-cap {
  position: absolute; left: 14px; right: 14px; bottom: 54px;
  font-weight: 800; font-size: clamp(14px, 1.35vw, 17px); line-height: 1.25; letter-spacing: -0.01em; color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}
.ph-wave { position: absolute; left: 14px; right: 14px; bottom: 18px; height: 22px; display: flex; align-items: center; justify-content: space-between; }
.ph-wave i { flex: 0 0 4px; border-radius: 2px; background: rgba(255, 255, 255, .8); }
.ph-play {
  position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px);
}
.ph-play svg { width: 16px; height: 16px; margin-left: 3px; color: #fff; }

.mini-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini-plan { display: flex; flex-direction: column; gap: 6px; }
.mini-plan .price { margin-top: 10px; }
.mini-plan .price .amt { font-size: 38px; }
.mini-plan.featured { border-color: rgba(139, 92, 246, .7); background: linear-gradient(180deg, rgba(139, 92, 246, .08), transparent 60%), var(--card); }

.cta-band {
  margin-top: 96px; padding: 54px 28px; border-radius: 26px; text-align: center;
  border: 1px solid rgba(139, 92, 246, .45);
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(139, 92, 246, .22), transparent 70%),
    radial-gradient(500px 220px at 100% 100%, rgba(63, 214, 240, .1), transparent 70%),
    var(--card);
}
.cta-band .h-sec { margin-top: 0; }
.cta-band .hero-cta { margin-top: 24px; }

/* ---------- Studio mock ---------- */
.app {
  margin-top: 56px; border-radius: 22px; overflow: hidden; text-align: left;
  border: 1px solid var(--line-2); background: #0d0d12;
  box-shadow: 0 40px 100px -40px rgba(139, 92, 246, .45);
}
.app-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #111117; }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c2c36; }
.app-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.app-body { display: grid; grid-template-columns: 1fr 1.5fr 1fr; }
.app-col { padding: 20px; border-right: 1px solid var(--line); }
.app-col:last-child { border-right: 0; }
.app-lbl { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8d8d99; margin-bottom: 10px; }
.field-fake { padding: 11px 12px; border-radius: 10px; background: #15151c; border: 1px solid var(--line); font-size: 13.5px; color: #d7d7e0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-fake + .app-lbl { margin-top: 18px; }
.hook { padding: 12px; border-radius: 12px; background: #15151c; border: 1px solid var(--line); font-size: 13.5px; color: #e4e4ea; }
.hook + .hook { margin-top: 10px; }
.hook b { display: inline-block; margin-right: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(139, 92, 246, .2); color: #d4c8ff; font-family: var(--mono); font-size: 11px; }
.hook.on { border-color: rgba(139, 92, 246, .7); box-shadow: 0 0 0 1px rgba(139, 92, 246, .25); }
.script-body { margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.opt { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #15151c; font-size: 13.5px; }
.opt + .opt { margin-top: 8px; }
.opt.on { border-color: rgba(63, 214, 240, .55); }
.opt .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #4a4a57; }
.opt.on .dot { border-color: var(--cyan); background: radial-gradient(circle, var(--cyan) 40%, transparent 46%); }
.fmt { display: flex; gap: 6px; flex-wrap: wrap; }
.fmt span { padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; color: #cfcfd8; }
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); background: #111117; }
.app-foot .mono { font-size: 13px; color: #cfcfd8; }
.app-foot .btn { min-height: 0; padding: 9px 18px; font-size: 14px; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.timeline .card { position: relative; }

/* ---------- Lab ---------- */
.matrix-wrap { overflow-x: auto; }
.matrix { display: grid; grid-template-columns: 110px repeat(10, minmax(34px, 1fr)); gap: 6px; min-width: 560px; max-width: 780px; margin: 0 auto; }
.matrix-note { max-width: 780px; margin-left: auto !important; margin-right: auto; }
.matrix .mh { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #8f8f9b; text-align: center; align-self: end; }
.matrix .ml { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: #d3d3dc; text-transform: uppercase; align-self: center; }
.matrix .cell { aspect-ratio: 1; border-radius: 7px; background: var(--c); opacity: .9; border: 1px solid rgba(255,255,255,.08); }
.matrix-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags span { padding: 4px 9px; border-radius: 999px; background: #17171e; border: 1px solid var(--line-2); font-size: 12.5px; color: #cfcfd8; }

/* ---------- Footer ---------- */
.ftr { margin-top: 110px; border-top: 1px solid var(--line); padding: 34px 0 40px; }
.ftr-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.ftr p { margin: 10px 0 0; color: var(--dim); font-size: 14px; max-width: 360px; }
.ftr nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.ftr nav a:hover, .ftr nav button:hover { color: #fff; }
.ftr nav button { background: none; border: 0; padding: 0; color: var(--muted); font-size: 14px; }
.ftr .copy { margin-top: 26px; color: var(--dim); font-size: 13px; }

/* ---------- Modal ---------- */
.modal {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px);
  padding: 0; border: 1px solid var(--line-2); border-radius: 22px;
  background: #101015; color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 0 1px rgba(139, 92, 246, .15);
}
.modal::backdrop { background: rgba(5, 5, 8, .72); backdrop-filter: blur(4px); }
.modal-in { padding: 28px; }
.modal-x {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-2); background: #17171e; color: #cfcfd8; font-size: 18px; line-height: 1;
}
.modal h2 { margin: 6px 0 6px; font-size: 24px; letter-spacing: -0.02em; padding-right: 30px; }
.modal .sub { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #cfcfd8; }
.form input, .form select, .form textarea {
  width: 100%; padding: 11px 12px; border-radius: 11px;
  border: 1px solid var(--line-2); background: #15151c; color: #fff;
  font: inherit; font-size: 15px;
}
.form textarea { min-height: 84px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .22); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.est { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(139, 92, 246, .08); border: 1px solid rgba(139, 92, 246, .3); font-size: 14px; }
.est b { font-size: 18px; letter-spacing: -0.02em; }
.form-msg { grid-column: 1 / -1; margin: 0; font-size: 14px; color: #ff9b9b; min-height: 0; }
.form .btn { grid-column: 1 / -1; margin-top: 4px; }
.form .fine { grid-column: 1 / -1; margin: 0; color: var(--dim); font-size: 12.5px; text-align: center; }
.form .fine a { text-decoration: underline; }
.done { text-align: center; padding: 18px 0 6px; }
.done .ico { margin: 0 auto 14px; width: 54px; height: 54px; border-radius: 50%; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding-top: 60px; }
.prose h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; margin: 16px 0 10px; }
.prose h2 { font-size: 20px; margin: 34px 0 8px; letter-spacing: -0.015em; }
.prose p, .prose li { color: #c9c9d3; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4, .timeline { grid-template-columns: repeat(2, 1fr); }
  .howto { grid-template-columns: 1fr; }
  .howto ol { grid-template-columns: repeat(2, 1fr); }
  .app-body { grid-template-columns: 1fr 1fr; }
  .app-col:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .plans, .grid-3, .mini-plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .calc { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .phones { grid-template-columns: repeat(2, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
  .phone:nth-child(n) { transform: none; }
}
@media (max-width: 760px) {
  .hdr-in { grid-template-columns: 1fr auto; padding: 10px 16px; row-gap: 10px; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; overflow-x: auto; max-width: 100%; }
  .login { display: none; }
  .wrap { padding: 0 16px; }
  .sec { padding-top: 72px; }
  .app-body { grid-template-columns: 1fr; }
  .app-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .app-col:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .grid-4, .timeline, .howto ol { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .modal-in { padding: 22px 18px; }
  .seg { width: 100%; }
  .seg-btn { flex: 1; padding: 10px 8px; font-size: 13px; }
  .calc { padding: 20px 16px; }
  .calc .btn { grid-column: 1 / -1; min-height: 52px; }
  .stat-v { font-size: 22px; }
  .phones { gap: 12px; }
  .ph-cap { font-size: 13px; bottom: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
