:root {
  --ink: #0b1b33;
  --ink-2: #26364f;
  --muted: #5b6b82;
  --line: #e4eaf2;
  --bg: #f6f8fb;
  --card: #ffffff;
  --mint: #12b886;
  --mint-2: #0c8f69;
  --mint-soft: #e6f8f1;
  --sky: #3b82f6;
  --sky-soft: #eaf2ff;
  --sun: #ffb020;
  --sun-soft: #fff5e0;
  --rose: #ef4f6b;
  --rose-soft: #ffeef1;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(11, 27, 51, 0.06), 0 8px 24px rgba(11, 27, 51, 0.06);
  --shadow-lg: 0 2px 4px rgba(11, 27, 51, 0.06), 0 24px 60px rgba(11, 27, 51, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mint-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(720px, 100% - 40px); margin: 0 auto; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246, 248, 251, 0.85); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(228, 234, 242, 0.7); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a.btn-primary { color: #fff; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease; text-decoration: none !important; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--mint); color: #fff; box-shadow: 0 6px 18px rgba(18, 184, 134, 0.35); }
.btn-primary:hover { background: var(--mint-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 640px; background: radial-gradient(600px 320px at 20% 20%, rgba(18, 184, 134, 0.16), transparent 70%), radial-gradient(520px 300px at 85% 10%, rgba(59, 130, 246, 0.14), transparent 70%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 36px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.03; letter-spacing: -0.035em; margin: 18px 0 16px; font-weight: 800; }
h1 .hl { background: linear-gradient(90deg, var(--mint), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 560px; margin: 0 0 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.check { width: 18px; height: 18px; border-radius: 50%; background: var(--mint-soft); color: var(--mint-2); display: inline-grid; place-items: center; font-size: 12px; font-weight: 900; }

/* Phone mockup */
.phone { width: min(340px, 100%); margin: 0 auto; background: #0b1b33; border-radius: 46px; padding: 12px; box-shadow: var(--shadow-lg); position: relative; }
.phone-screen { background: #fff; border-radius: 36px; overflow: hidden; min-height: 560px; display: flex; flex-direction: column; }
.phone-top { padding: 14px 18px 10px; text-align: center; border-bottom: 1px solid #eef1f5; background: #fafbfc; }
.phone-top .avatar { width: 42px; height: 42px; margin: 6px auto 4px; border-radius: 50%; overflow: hidden; }
.phone-top .who { font-size: 12px; color: var(--muted); font-weight: 600; }
.phone-notch { width: 110px; height: 26px; background: #0b1b33; border-radius: 0 0 16px 16px; margin: -14px auto 6px; }
.thread { padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.stamp { text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 18px; font-size: 14px; line-height: 1.4; white-space: pre-line; }
.bubble.in { background: #eef1f5; color: var(--ink); border-bottom-left-radius: 6px; }
.bubble.out { background: var(--mint); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
.bubble b { font-weight: 700; }
.float-card { position: absolute; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; }
.float-a { left: -40px; top: 28px; }
.float-b { right: -34px; bottom: -18px; }
@media (max-width: 480px) { .float-a { left: -4px; top: -16px; } .float-b { right: -4px; bottom: -22px; } }

/* Sections */
section { padding: 72px 0; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint-2); }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 10px 0 14px; font-weight: 800; }
h3 { font-size: 20px; letter-spacing: -0.01em; margin: 0 0 8px; }
.sub { color: var(--muted); font-size: 18px; max-width: 640px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.step-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--ink); margin-bottom: 16px; }
.time { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--mint-2); background: var(--mint-soft); padding: 4px 10px; border-radius: 999px; }
.icon-tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; font-size: 22px; }
.t-mint { background: var(--mint-soft); color: var(--mint-2); }
.t-sky { background: var(--sky-soft); color: var(--sky); }
.t-sun { background: var(--sun-soft); color: #b77400; }
.t-rose { background: var(--rose-soft); color: var(--rose); }

.band { background: var(--ink); color: #fff; border-radius: 28px; padding: 48px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(18, 184, 134, 0.35), transparent 70%); }
.band h2 { color: #fff; }
.band .sub { color: #b9c6d8; }
@media (max-width: 600px) { .band { padding: 30px 22px; } }
.quote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; position: relative; z-index: 1; }
@media (max-width: 860px) { .quote-row { grid-template-columns: 1fr; } }
.quote { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; padding: 18px; font-size: 16px; color: #e8eef7; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.range { margin: 18px 0; }
.range label { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.range label b { color: var(--mint-2); }
input[type="range"] { width: 100%; accent-color: var(--mint); height: 28px; }
.result { background: linear-gradient(135deg, var(--mint), #0fa3b1); color: #fff; border-radius: 24px; padding: 30px; box-shadow: var(--shadow-lg); }
.result .big { font-size: clamp(44px, 7vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.result p { color: rgba(255, 255, 255, 0.88); margin: 10px 0 0; }

/* Privacy list */
.list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.x { width: 18px; height: 18px; border-radius: 50%; background: var(--rose-soft); color: var(--rose); display: inline-grid; place-items: center; font-size: 11px; font-weight: 900; flex: none; margin-top: 3px; }
.list .check { flex: none; margin-top: 3px; }

/* Pricing */
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 30px auto 0; }
@media (max-width: 700px) { .price-wrap { grid-template-columns: 1fr; } }
.price { position: relative; }
.price.best { border: 2px solid var(--mint); }
.price .tag { position: absolute; top: -12px; right: 20px; background: var(--mint); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.price .amt { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; }
.price .amt small { font-size: 16px; color: var(--muted); font-weight: 600; }

/* Forms */
.form-card { max-width: 560px; margin: 30px auto 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-weight: 500; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="number"], input[type="password"], select {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 17px; color: var(--ink); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus { border-color: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--bg); padding: 6px; border-radius: 16px; border: 1px solid var(--line); }
.seg input { display: none; }
.seg label { margin: 0; text-align: center; padding: 11px 8px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.seg label small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.seg input:checked + label { background: #fff; box-shadow: var(--shadow); color: var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 18px; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--mint); flex: none; }
.error { background: var(--rose-soft); color: #b3263f; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px; margin-bottom: 14px; display: none; }
.notice { background: var(--sun-soft); color: #7a5200; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.small { font-size: 13px; color: var(--muted); }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: "+"; font-weight: 800; color: var(--mint-2); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer { padding: 40px 0 60px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer a { color: var(--ink-2); }

/* App pages (welcome, dashboard, admin) */
.app-head { padding: 28px 0 10px; }
.app-head h1 { font-size: clamp(30px, 6vw, 42px); margin: 8px 0 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .stat-grid { gap: 10px; } .stat { padding: 12px; } .stat .v { font-size: 21px; } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.meter { height: 14px; background: #edf1f6; border-radius: 999px; overflow: hidden; margin: 12px 0 6px; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), #0fa3b1); border-radius: 999px; transition: width 0.6s ease; }
.meter.over > i { background: linear-gradient(90deg, var(--sun), var(--rose)); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 14px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .b i { width: 100%; max-width: 34px; background: var(--mint); border-radius: 8px 8px 4px 4px; min-height: 4px; opacity: 0.9; }
.bars .b span { font-size: 12px; color: var(--muted); font-weight: 600; }
.cat-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; margin: 12px 0; }
.cat-row .bar { grid-column: 1 / -1; height: 8px; background: #edf1f6; border-radius: 999px; overflow: hidden; }
.cat-row .bar i { display: block; height: 100%; border-radius: 999px; }
.tx { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #eef1f5; gap: 12px; }
.tx:last-child { border-bottom: 0; }
.tx .m { font-weight: 700; }
.tx .c { font-size: 13px; color: var(--muted); }
.tx .amt { font-weight: 800; white-space: nowrap; }
.tx button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; padding: 4px 6px; }
.tip { display: flex; gap: 12px; background: var(--mint-soft); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; color: var(--ink-2); font-weight: 500; }
.tip b { color: var(--mint-2); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps > li { position: relative; padding: 0 0 18px 48px; }
.steps > li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.steps > li > b { display: block; }
.steps > li > span { color: var(--muted); font-size: 15px; }
.steps ol li { margin-bottom: 6px; }
.copybox { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px dashed #c9d4e2; border-radius: 14px; padding: 10px 10px 10px 14px; margin: 10px 0; }
.copybox code { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.status-chip.wait { background: var(--sun-soft); color: #7a5200; }
.status-chip.ok { background: var(--mint-soft); color: var(--mint-2); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.5); } 100% { box-shadow: 0 0 0 10px rgba(255, 176, 32, 0); } }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eef1f5; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.scroll-x { overflow-x: auto; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.active { background: var(--mint-soft); color: var(--mint-2); }
.badge.pending, .badge.preview { background: var(--sun-soft); color: #7a5200; }
.badge.canceled, .badge.failed { background: var(--rose-soft); color: #b3263f; }
.badge.test { background: var(--sky-soft); color: var(--sky); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }
.hidden { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); z-index: 50; }
.prose h2 { font-size: 24px; margin-top: 30px; }
.prose p, .prose li { color: var(--ink-2); }
