/* Sipwire website. Colours follow mobile/brand/phone.json. */
:root {
  --bg: #0F1B2D; --bg-deep: #0A1422; --surface: #18283F; --surface-2: #1F3350; --line: #26395A;
  --accent: #2BD4A4; --accent-deep: #1FB58B; --accent-ink: #062A20;
  --text: #F4F7FB; --muted: #9AA9BC; --missed: #FF6B6B; --warn: #F5C451;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html { overflow-x: clip; }
body { background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #5BE3BC; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 21px/1 var(--font); letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { color: var(--accent-ink); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: #4BE0B6; color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 15px; border-radius: 10px; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(43,212,164,.18); }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(40px, 6.2vw, 68px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; }
.accent { color: var(--accent); }
section { padding: 88px 0; }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 19px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 48px 0 88px; }
.hero h1 { margin: 18px 0 20px; }
.hero .lede { margin-bottom: 30px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art::before { content: ""; position: absolute; inset: 8% 0 0; background: radial-gradient(closest-side, rgba(43,212,164,.22), transparent 70%); filter: blur(10px); z-index: 0; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 24px; } .hero-art .phone { width: 260px; } }

/* Waitlist form */
.join { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.join input[type=email], .join select { flex: 1 1 220px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 400 16px var(--font); }
.join select { flex: 1 1 190px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.join input:focus, .join select:focus { outline: none; border-color: var(--accent); }
.join .btn { flex: 1 0 100%; min-height: 50px; }
.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join-msg { flex-basis: 100%; min-height: 1.4em; font-size: 15px; }
.join-msg.ok { color: var(--accent); }
.join-msg.err { color: var(--missed); }
.join.done input, .join.done select, .join.done .btn { display: none; }
.join.done .join-msg { font-size: 17px; padding: 14px 16px; border-radius: 12px; background: rgba(43,212,164,.1); border: 1px solid rgba(43,212,164,.35); }

/* Phone mockups */
.phone { position: relative; z-index: 1; width: 290px; aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 11px; background: #05090F;
  box-shadow: 0 0 0 1.5px #2A3A52, 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 8px rgba(255,255,255,.02); }
.phone .screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.phone .island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.phone .status { display: flex; justify-content: space-between; padding: 14px 26px 0; font-size: 13px; font-weight: 600; height: 40px; }
.phone.small { width: 250px; border-radius: 40px; padding: 9px; }
.phone.small .screen { border-radius: 32px; }

/* Lock-screen incoming call */
.phone .screen.lock { background: radial-gradient(120% 70% at 50% 0%, #2A4A6E 0%, #142338 55%, #0B1524 100%); text-align: center; }
.lock .who { margin-top: 70px; }
.lock .via { font-size: 13px; color: rgba(244,247,251,.7); display: inline-flex; align-items: center; gap: 6px; }
.lock .via img { width: 16px; height: 16px; border-radius: 4px; }
.lock .name { margin-top: 8px; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.lock .num { margin-top: 4px; font-size: 15px; color: rgba(244,247,251,.72); }
.lock .card { margin: 26px 18px 0; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.08); backdrop-filter: blur(6px); text-align: left; font-size: 12.5px; line-height: 1.45; color: rgba(244,247,251,.85); }
.lock .card b { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.lock .actions { margin-top: auto; padding: 0 30px 40px; display: flex; justify-content: space-between; }
.lock .act { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; }
.lock .act span.c { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.lock .act .dec { background: #FF453A; }
.lock .act .acc { background: #30D158; animation: ring 1.6s ease-in-out infinite; }
.lock .act svg { width: 28px; height: 28px; fill: #fff; }
.lock .act .dec svg { transform: rotate(135deg); }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(48,209,88,.5); } 50% { box-shadow: 0 0 0 14px rgba(48,209,88,0); } }
@media (prefers-reduced-motion: reduce) { .lock .act .acc { animation: none; } html { scroll-behavior: auto; } }

/* In-app screens */
.app-bar { display: flex; align-items: center; gap: 8px; padding: 4px 16px 0; font-size: 14px; font-weight: 700; }
.app-bar img { width: 20px; height: 20px; border-radius: 5px; }
.app-title { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 8px; }
.app-title b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.seg { display: flex; padding: 3px; border-radius: 9px; background: var(--surface); font-size: 12px; }
.seg i { font-style: normal; padding: 4px 10px; border-radius: 7px; color: var(--muted); }
.seg i.on { background: var(--surface-2); color: var(--text); }
.app-link { color: var(--accent); font-size: 13px; }
.rows { padding: 0 16px; flex: 1; }
.row { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.row .t { font-size: 14.5px; font-weight: 600; }
.row .s { font-size: 11.5px; color: var(--muted); }
.row .when { font-size: 11.5px; color: var(--muted); white-space: nowrap; padding-top: 3px; }
.row.missed .t { color: var(--missed); }
.vm { padding: 4px 16px 0; }
.vm .head { display: flex; justify-content: space-between; align-items: baseline; }
.vm .head b { font-size: 15px; display: flex; align-items: center; gap: 7px; }
.vm .head b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.vm .meta { font-size: 11.5px; color: var(--muted); margin-left: 14px; }
.vm p { margin: 8px 0 0 14px; font-size: 13px; line-height: 1.5; }
.vm .player { display: flex; align-items: center; gap: 10px; margin: 12px 0 0 14px; }
.vm .play { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.vm .play svg { width: 12px; height: 12px; fill: var(--accent-ink); margin-left: 2px; }
.vm .bar { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-2); position: relative; }
.vm .bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 38%; border-radius: 4px; background: var(--accent); }
.vm .call-back { margin: 12px 0 0 14px; padding: 9px; text-align: center; border-radius: 10px; background: var(--surface); color: var(--accent); font-size: 13px; }
.tabs { display: flex; justify-content: space-around; padding: 10px 6px 22px; background: var(--bg-deep); font-size: 10.5px; color: var(--muted); }
.tabs i { font-style: normal; position: relative; }
.tabs i.on { color: var(--accent); font-weight: 600; }
.tabs i.badge::after { content: "1"; position: absolute; top: -9px; right: -10px; width: 15px; height: 15px; border-radius: 50%; background: #E5484D; color: #fff; font-size: 9px; display: grid; place-items: center; font-weight: 700; }
.keypad { display: grid; grid-template-columns: repeat(3, 50px); gap: 10px 20px; justify-content: center; padding: 16px 0 6px; }
.keypad i { font-style: normal; width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 22px; font-weight: 500; }
.dial-num { text-align: center; font-size: 22px; font-weight: 600; letter-spacing: .02em; padding-top: 18px; }
.dial-from { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.dial-go { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #30D158; margin: 6px auto 0; display: grid; place-items: center; }
.dial-go svg { width: 26px; height: 26px; fill: #fff; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(43,212,164,.14); color: var(--accent); font-weight: 800; margin-bottom: 18px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Feature showcase */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.show + .show { border-top: 1px solid var(--line); }
.show .copy h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.show .copy p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.show .copy ul { margin-top: 18px; list-style: none; display: grid; gap: 10px; }
.show .copy li { display: flex; gap: 10px; font-size: 16px; }
.show .copy li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: rgba(43,212,164,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232BD4A4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.show .art { display: flex; justify-content: center; }
.show.flip .art { order: -1; }
@media (max-width: 860px) { .show { grid-template-columns: 1fr; gap: 32px; } .show.flip .art { order: 0; } }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tile .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(43,212,164,.14); display: grid; place-items: center; margin-bottom: 16px; }
.tile .ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* Compare */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 16px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 600; }
.compare thead th.us { color: var(--accent); }
.compare tbody th { font-weight: 600; width: 34%; }
.compare td.us { background: rgba(43,212,164,.06); }
.compare .y { color: var(--accent); font-weight: 600; }
.compare .n { color: var(--muted); }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 640px) { .compare { font-size: 14.5px; } .compare th, .compare td { padding: 12px 10px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; }
.plan { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.best { border-color: rgba(43,212,164,.55); box-shadow: 0 0 0 1px rgba(43,212,164,.25), 0 30px 60px -30px rgba(43,212,164,.35); }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.plan .tag.muted { background: var(--surface-2); color: var(--muted); }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 20px 0 26px; display: grid; gap: 10px; font-size: 15.5px; color: var(--muted); }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }
.plan .btn { margin-top: auto; }
.fine { margin-top: 22px; font-size: 15px; color: var(--muted); max-width: 52em; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Soon */
.soon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 28px; border-radius: var(--radius); border: 1px dashed var(--line); }
.soon p { color: var(--muted); max-width: 46em; }
.soon b { color: var(--text); }
.pill { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--warn); border: 1px solid rgba(245,196,81,.4); padding: 4px 10px; border-radius: 999px; margin-right: 8px; }

/* CTA band */
.cta { text-align: center; padding: 64px 28px; border-radius: 28px; background: linear-gradient(160deg, #173B45 0%, #142B44 55%, var(--surface) 100%); border: 1px solid var(--line); }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 19px; margin: 0 auto 28px; max-width: 32em; }
.cta .join { margin: 0 auto; }

/* FAQ / docs */
.doc { max-width: 46em; padding: 40px 0 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 54px); }
.doc .updated { margin-top: 12px; color: var(--muted); font-size: 15px; }
.doc .lede { margin-top: 20px; }
.doc h2 { font-size: 28px; margin: 56px 0 14px; scroll-margin-top: 20px; }
.doc h3 { margin: 30px 0 8px; scroll-margin-top: 20px; }
.doc p, .doc li { color: #D3DCE7; }
.doc p + p, .doc p + ul, .doc ul + p, .doc p + ol, .doc ol + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--text); }
.doc code { font: 500 .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); padding: 2px 6px; border-radius: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--text); }
.toc { margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.toc b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc ul { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 6px; }
.callout { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: rgba(245,196,81,.08); border: 1px solid rgba(245,196,81,.3); font-size: 15.5px; }
.callout.ok { background: rgba(43,212,164,.08); border-color: rgba(43,212,164,.3); }
details.q { border-bottom: 1px solid var(--line); }
details.q summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-size: 18px; font-weight: 600; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; color: var(--accent); }
details.q[open] summary::after { content: "–"; }
details.q > div { padding: 0 0 22px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.cards a { display: block; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.cards a:hover { border-color: var(--accent); }
.cards a span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .doc th, .doc td { display: block; padding: 4px 0; border: 0; } .doc tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; font-size: 15px; color: var(--muted); }
.foot b { display: block; color: var(--text); font-size: 14px; margin-bottom: 10px; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .legal { grid-column: 1 / -1; font-size: 13.5px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* One-tap setup: the setup link page and /ai */
.qr { width: 240px; max-width: 100%; padding: 14px; background: #fff; border-radius: 16px; margin: 18px 0; }
.qr svg { display: block; width: 100%; height: auto; }
.setup-note { color: var(--muted); font-size: 15px; margin-top: 24px; }
pre.prompt { white-space: pre-wrap; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; font: 400 15px/1.5 var(--font); }
.connect { display: grid; gap: 14px; max-width: 520px; margin: 18px 0; }
.connect label { display: grid; gap: 6px; font-weight: 600; }
.connect input:not([type=radio]) { min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 400 16px var(--font); }
.connect input:focus { outline: none; border-color: var(--accent); }
.connect fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 18px; align-items: center; }
.connect legend { font-weight: 600; margin-bottom: 6px; }
.connect .pick { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.connect .small { color: var(--muted); font-size: 14px; margin: 0; }
.connect [data-for] { display: grid; gap: 14px; }
.connect [data-for][hidden] { display: none; }
