/* Shared stylesheet for every page except the home page (which inlines its own copy of these tokens). */
:root {
  --bg: #ffffff; --bg-soft: #f6f5fb; --card: #ffffff; --text: #16131f; --muted: #5f5a70; --line: #e7e4ef;
  --accent: #d6246e; --accent-2: #7b3fe4; --ok: #14925a; --bubble-in: #efedf5; --bubble-out: #7b3fe4;
  --grad: linear-gradient(120deg, #f58529 0%, #dd2a7b 45%, #8134af 100%);
  --shadow: 0 10px 40px -12px rgba(40, 20, 80, .18); --link: #6a2fd6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0d15; --bg-soft: #17141f; --card: #1c1826; --text: #f3f1f8; --muted: #a8a2b8;
    --line: #2c2738; --bubble-in: #2a2536; --shadow: 0 10px 40px -12px rgba(0,0,0,.6); --link: #c3a6ff;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0d15; --bg-soft: #17141f; --card: #1c1826; --text: #f3f1f8; --muted: #a8a2b8;
  --line: #2c2738; --bubble-in: #2a2536; --shadow: 0 10px 40px -12px rgba(0,0,0,.6); --link: #c3a6ff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.btn-primary { background: var(--grad); color: #fff; border: 0; }
.btn-sm { padding: 9px 16px; font-size: .92rem; }

header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: .95rem; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* article layout */
.crumbs { font-size: .82rem; color: var(--muted); margin: 28px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.page-head { padding: 20px 0 8px; max-width: 760px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 16px; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.2; letter-spacing: -.02em; margin: 48px 0 14px; }
h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.sub { font-size: 1.15rem; color: var(--muted); margin: 0 0 16px; }
.meta { font-size: .84rem; color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding-bottom: 72px; }
.prose { max-width: 740px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.answer { border-radius: 18px; padding: 20px 22px; margin: 24px 0 8px; font-size: 1.05rem; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.answer b:first-child { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; min-width: 520px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding: 0 0 0 44px; margin: 16px 0; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.tpl { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 12px 0; background: var(--bg-soft); }
.tpl b { display: block; font-size: .8rem; color: var(--accent); margin-bottom: 4px; }
.note { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; }

/* sidebar */
.side { position: sticky; top: 88px; display: grid; gap: 18px; }
.side-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--card); }
.side-card h4 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-card a { display: block; padding: 5px 0; font-size: .92rem; text-decoration: none; color: var(--text); }
.side-card a:hover { color: var(--accent); }
.side-cta { background: var(--grad); color: #fff; border: 0; }
.side-cta p { color: rgba(255,255,255,.9); font-size: .92rem; margin: 6px 0 14px; }
.side-cta .btn { background: #fff; color: #16131f; border: 0; width: 100%; }

/* static phone mock on feature pages */
.mock { max-width: 320px; margin: 26px 0; background: var(--card); border: 1px solid var(--line); border-radius: 34px; padding: 12px; box-shadow: var(--shadow); }
.mock-screen { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 34px 14px 16px; display: flex; flex-direction: column; position: relative; }
.mock-screen::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 80px; height: 22px; border-radius: 20px; background: #000; }
.m { max-width: 85%; padding: 9px 13px; border-radius: 18px; font-size: .86rem; margin-bottom: 8px; line-height: 1.45; }
.m.in { background: var(--bubble-in); align-self: flex-start; border-bottom-left-radius: 6px; }
.m.out { background: var(--bubble-out); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.m.comment { max-width: 100%; padding: 0 0 8px; font-size: .84rem; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 12px; }
.m.tag { align-self: flex-start; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.m .b { display: block; margin-top: 7px; text-align: center; background: rgba(255,255,255,.2); padding: 6px; border-radius: 10px; font-weight: 700; }

/* hubs and related */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 24px 0 72px; }
.card { display: block; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--card); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.card span { color: var(--muted); font-size: .92rem; }
.cta-box { background: var(--grad); color: #fff; border-radius: 24px; padding: 40px 28px; text-align: center; margin: 56px 0 0; }
.cta-box h2 { margin: 0 0 10px; }
.cta-box p { color: rgba(255,255,255,.9); margin: 0 0 20px; }
.cta-box .btn { background: #fff; color: #16131f; border: 0; }

footer { border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: .92rem; background: var(--bg-soft); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
.foot h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.foot a { display: block; text-decoration: none; color: var(--text); padding: 4px 0; opacity: .85; }
.foot a:hover { opacity: 1; color: var(--accent); }
.foot .logo { display: flex; }
.legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .side { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  h2 { margin-top: 36px; }
  .answer { padding: 16px 18px; font-size: 1rem; }
  table { min-width: 0; font-size: .84rem; }
  th, td { padding: 9px 10px; }
  .mock { margin: 22px auto; }
  .foot { grid-template-columns: 1fr 1fr; gap: 18px; }
  .legal { flex-direction: column; gap: 4px; }
  .cta-box { padding: 32px 20px; }
  .cta-box .btn, .side-cta .btn { width: 100%; }
}
