/* Marketing site and legal pages. Builds on base.css tokens. */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { min-height: 100vh; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 650; transition: top 0.15s;
}
.skip:focus { top: 12px; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50; padding-top: var(--safe-top);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.nav-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.nav-links { display: none; gap: 4px; margin-left: 20px; }
.nav-links a { color: var(--text-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; gap: 6px; }
@media (min-width: 860px) { .nav-links { display: flex; } }
@media (max-width: 380px) { .nav-cta .btn-ghost { display: none; } }

/* ---- shared ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent);
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rx); box-shadow: 0 0 0 0 var(--rx); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rx) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.section-head.left { text-align: left; justify-items: start; align-content: start; margin: 0; }
h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.sub { color: var(--text-2); font-size: 18px; max-width: 620px; }
.fine { color: var(--text-3); font-size: 14px; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 48px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 70% 30%, rgba(139, 108, 255, 0.28), transparent 70%),
    radial-gradient(35% 40% at 20% 10%, rgba(34, 211, 238, 0.18), transparent 70%);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-in > * { min-width: 0; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: clamp(42px, 9vw, 76px); font-weight: 850; letter-spacing: -0.045em; line-height: 1.02; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--text-2); font-size: 15px; font-weight: 550; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { width: 18px; height: 18px; fill: none; stroke: var(--rx); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .hero-cta, .hero-cta .btn { width: 100%; } .hero-cta .btn { white-space: normal; text-align: center; } }
@media (min-width: 960px) {
  .hero { padding: 72px 0 112px; }
  .hero-in { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

/* ---- phone demo ---- */
.hero-demo { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.ph-head > div { min-width: 0; flex: 1; }
.ph-head strong, .ph-head small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 359px) { .phone { padding-inline: 12px; border-radius: 38px; } .ph-ptt { width: 148px; height: 148px; } .ph-people span:nth-child(n+6) { display: none; } }
.phone {
  position: relative; width: min(100%, 340px); padding: 54px 18px 22px; border-radius: 46px;
  background: linear-gradient(180deg, #151a2e, #0b0e1a); color: #f3f5ff;
  border: 1px solid #2c3354; box-shadow: 0 40px 90px rgba(10, 8, 40, 0.55), inset 0 0 0 6px #0a0c16, inset 0 0 0 7px #262c47;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
}
.phone-notch { position: absolute; top: 16px; left: 50%; translate: -50% 0; width: 96px; height: 26px; border-radius: 20px; background: #05060c; }
.ph-head { display: flex; align-items: center; gap: 10px; }
.ph-head strong { display: block; font-size: 17px; }
.ph-head small { color: #8890b3; font-size: 13px; }
.ph-hash { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #242a44; color: #b9c0dd; font-weight: 800; font-size: 18px; }
.ph-live { white-space: nowrap; flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: #1fe3b0; background: rgba(31, 227, 176, 0.12); padding: 5px 10px; border-radius: 99px; }
.ph-live span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ph-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px;
  background: rgba(31, 227, 176, 0.1); border: 1.5px solid rgba(31, 227, 176, 0.55);
  transition: background 0.2s, border-color 0.2s;
}
.ph-card > div:not(.ph-eq) { min-width: 0; flex: 1; }
.ph-card strong { display: block; font-size: 15px; }
.ph-card small { display: block; font-size: 13px; color: #b9c0dd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-av, .ph-people span {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 28%, #141829); color: var(--c); font-weight: 750; font-size: 14px;
  border: 1.5px solid color-mix(in srgb, var(--c) 60%, transparent);
}
.ph-eq { display: flex; align-items: center; gap: 3px; height: 26px; flex: none; }
.ph-eq i { width: 4px; height: 100%; border-radius: 2px; background: #1fe3b0; animation: eq 0.9s ease-in-out infinite; transform-origin: center; }
.ph-eq i:nth-child(2) { animation-delay: -0.2s; } .ph-eq i:nth-child(3) { animation-delay: -0.45s; }
.ph-eq i:nth-child(4) { animation-delay: -0.1s; } .ph-eq i:nth-child(5) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.ph-card.me { background: rgba(255, 77, 106, 0.12); border-color: rgba(255, 77, 106, 0.7); }
.ph-card.me .ph-eq i { background: #ff4d6a; }
.ph-card.me .ph-av { --c: #ff4d6a !important; }
.ph-people { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 6px; }
.ph-people span { width: 36px; height: 36px; font-size: 12px; }
.ph-dock { display: grid; justify-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid #242a44; }
.ph-ptt {
  position: relative; width: 168px; height: 168px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-content: center; justify-items: center; gap: 6px; color: #fff;
  background: radial-gradient(circle at 50% 30%, #9d84ff, #6a4cf5 60%, #4b34c9);
  box-shadow: 0 18px 40px rgba(106, 76, 245, 0.5), inset 0 -6px 16px rgba(0, 0, 0, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.25);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform 0.15s var(--ease), background 0.2s, box-shadow 0.2s;
}
.ph-ptt:focus-visible { border-radius: 50%; box-shadow: 0 0 0 4px #0b0e1a, 0 0 0 7px #8b6cff; }
.ph-ptt.live {
  transform: scale(0.96);
  background: radial-gradient(circle at 50% 30%, #ff8095, #ff4d6a 60%, #d42a48);
  box-shadow: 0 18px 50px rgba(255, 77, 106, 0.6), inset 0 -6px 16px rgba(0, 0, 0, 0.25);
}
.ph-mic svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ph-label { font-weight: 750; font-size: 15px; }
.ph-rings { position: absolute; inset: 0; pointer-events: none; }
.ph-rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ff4d6a; opacity: 0; }
.ph-ptt.live .ph-rings i { animation: ring 1.6s var(--ease) infinite; }
.ph-ptt.live .ph-rings i:nth-child(2) { animation-delay: 0.5s; }
.ph-ptt.live .ph-rings i:nth-child(3) { animation-delay: 1s; }
@keyframes ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.45); opacity: 0; } }
.ph-hint { color: #8890b3; font-size: 12.5px; text-align: center; }

/* ---- audience strip ---- */
.strip { border-block: 1px solid color-mix(in srgb, var(--border) 60%, transparent); background: var(--bg-2); }
.strip-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding-block: 22px; color: var(--text-3); font-weight: 650; font-size: 15px; }

/* ---- features ---- */
.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } .feature.big { grid-column: span 2; grid-row: span 2; } .feature:last-child { grid-column: span 2; } }
.feature {
  display: grid; align-content: start; gap: 10px; padding: 24px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--border); transition: border-color 0.2s, transform 0.2s var(--ease);
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature h3 { font-size: 19px; }
.feature p { color: var(--text-2); font-size: 15.5px; }
.f-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.f-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature.big {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(139, 108, 255, 0.22), transparent 70%),
    var(--surface);
  align-content: end; min-height: 260px;
}
.feature.big h3 { font-size: clamp(24px, 3vw, 32px); }
.feature.big p { font-size: 17px; max-width: 440px; }
.feature.big .f-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; }
.feature.big .f-ic svg { width: 32px; height: 32px; }

/* ---- steps ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: grid; gap: 10px; padding: 28px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--border); }
.steps h3 { font-size: 20px; }
.steps p { color: var(--text-2); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; }

/* ---- security ---- */
.sec-grid { display: grid; gap: 40px; align-items: start; }
.sec-grid > div { display: grid; gap: 14px; }
@media (min-width: 960px) { .sec-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } .sec-grid > div { position: sticky; top: 110px; } }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sec-list li {
  display: grid; gap: 4px; padding: 20px 20px 20px 56px; position: relative;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.sec-list li::before {
  content: ""; position: absolute; left: 20px; top: 22px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--rx-soft) no-repeat center / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318c99c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.sec-list strong { font-size: 17px; }
.sec-list span { color: var(--text-2); font-size: 15.5px; }

/* ---- pricing ---- */
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); gap: 4px; }
.seg button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px;
  border: 0; background: transparent; color: var(--text-2); font-weight: 650; cursor: pointer;
}
.seg button[aria-checked="true"] { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow); }
.save { font-size: 12px; font-weight: 750; color: var(--rx); background: var(--rx-soft); padding: 2px 8px; border-radius: 99px; }
.pricing { display: grid; gap: 16px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--border);
}
.price-card h3 { font-size: 22px; }
.p-sub { color: var(--text-3); font-size: 15px; margin-top: -8px; }
.p-amt { display: grid; gap: 6px; margin: 4px 0 6px; }
.p-amt strong { font-size: 46px; font-weight: 850; letter-spacing: -0.04em; line-height: 1; }
.p-amt span { color: var(--text-3); font-size: 14px; }
.price-card ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.price-card li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 15.5px; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) no-repeat center / 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b6cff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.price-card.featured {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  box-shadow: 0 24px 60px rgba(91, 108, 255, 0.22);
}
@media (min-width: 900px) { .price-card.featured { transform: translateY(-10px); } }
.ribbon {
  position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 99px;
  background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 750;
}
.p-sales { margin-top: auto; padding-top: 6px; font-weight: 650; font-size: 15px; }
.pricing + .fine { text-align: center; margin-top: 28px; }

/* ---- faq ---- */
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 0.7fr 1.3fr; gap: 64px; } }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 650; font-size: 17px; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--text-3); border-bottom: 2.5px solid var(--text-3);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 20px 20px; color: var(--text-2); }

/* ---- cta ---- */
.cta { padding: 24px 0 88px; }
.cta-in {
  display: grid; justify-items: center; gap: 14px; text-align: center; padding: 56px 24px; border-radius: 32px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(139, 108, 255, 0.35), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
}
.cta-in p { color: var(--text-2); font-size: 18px; }
.cta-in .btn { margin-top: 8px; }
.cta-in.wrap { width: calc(100% - 40px); max-width: 1116px; }
@media (min-width: 720px) { .cta-in.wrap { width: calc(100% - 64px); padding: 72px 32px; } }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--border); padding: 32px 0 calc(32px + var(--safe-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: var(--text-2); font-weight: 550; }
.foot .fine { margin-left: auto; }
@media (max-width: 600px) { .foot .fine { margin-left: 0; width: 100%; } }

/* ---- legal and error pages ---- */
.doc { max-width: 760px; padding-block: 48px 88px; }
.doc h1 { font-size: clamp(34px, 6vw, 48px); font-weight: 850; letter-spacing: -0.035em; margin-bottom: 8px; }
.doc .updated { color: var(--text-3); margin-bottom: 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--text-2); font-size: 16.5px; line-height: 1.65; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.doc strong { color: var(--text); }
.notfound { min-height: calc(100vh - 68px - 120px); display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 48px 20px; }
.notfound .code { font-size: clamp(88px, 22vw, 160px); font-weight: 900; letter-spacing: -0.06em; line-height: 1; }
.notfound p { color: var(--text-2); font-size: 18px; max-width: 440px; }
.notfound .code.grad-text { color: transparent; }
.notfound .hero-cta { justify-content: center; }

/* Light theme: tone down dark-only glows. */
:root[data-theme="light"] .hero::before { opacity: 0.6; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .hero::before { opacity: 0.6; } }
.notfound h1 { font-size: clamp(26px, 4vw, 34px); }
