/* HUSH — iOS-style system design. Light + dark follow the device setting. */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --fill: rgba(120,120,128,.12);
  --fill-2: rgba(120,120,128,.2);
  --label: #000000;
  --label-2: rgba(60,60,67,.6);
  --label-3: rgba(60,60,67,.3);
  --sep: rgba(60,60,67,.18);
  --tint: #007aff;
  --green: #34c759;
  --orange: #ff9500;
  --red: #ff3b30;
  --indigo: #5856d6;
  --teal: #30b0c7;
  --bar: rgba(242,242,247,.8);
  --key: #e5e5ea;
  --key-press: #c7c7cc;
  --device: #1c1c1e;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.05);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'IBM Plex Mono', Menlo, monospace;
  --r: 14px;
  --spring: cubic-bezier(.34, 1.36, .64, 1);
}
html[data-theme="dark"] {
    --bg: #000000; --card: #1c1c1e; --fill: rgba(118,118,128,.24); --fill-2: rgba(118,118,128,.36);
    --label: #ffffff; --label-2: rgba(235,235,245,.6); --label-3: rgba(235,235,245,.3); --sep: rgba(84,84,88,.6);
    --tint: #0a84ff; --green: #30d158; --orange: #ff9f0a; --red: #ff453a; --indigo: #5e5ce6; --teal: #40c8e0;
    --bar: rgba(10,10,10,.75); --key: #333336; --key-press: #5a5a5e; --device: #2c2c2e;
    --shadow: none;
  }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--label); font-family: var(--font); font-size: 17px; line-height: 1.35; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--tint); text-decoration: none; }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
.wrap, .sheet { width: min(1080px, 100% - 40px); margin: 0 auto; }

/* ───────── frosted nav bar */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: .5px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--sep); }
.nav .wrap { height: 52px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.nav-title { font-weight: 600; font-size: 17px; text-align: center; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.nav.scrolled .nav-title { opacity: 1; transform: none; }
.nav-right { justify-self: end; display: flex; gap: 10px; align-items: center; }
.nav-links { display: flex; gap: 20px; font-size: 15px; margin-right: 8px; }
.nav-links a { color: var(--label-2); }
.nav-links a:hover { color: var(--label); }
@media (max-width: 820px) { .nav-links { display: none; } }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--label); }
.logo-mark { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(180deg, #3a3a3c, #1c1c1e); display: grid; place-items: center; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.15); }
.logo-mark i { width: 14px; height: 4px; border-radius: 2px; background: #fff; display: block; }

/* ───────── buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; font-family: var(--font); font-size: 17px; font-weight: 600; letter-spacing: -.01em; padding: 14px 22px; border-radius: 14px; background: var(--tint); color: #fff; transition: transform .25s var(--spring), opacity .15s; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.btn.alt, .btn.ghost { background: var(--fill); color: var(--tint); }
.btn.signal { background: var(--tint); color: #fff; }
.btn.sm { font-size: 15px; padding: 7px 14px; border-radius: 999px; }
.btn.block { width: 100%; }

/* ───────── hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 34px 0 80px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 50px; padding-bottom: 50px; } }
.hero h1 { font-size: clamp(44px, 6.6vw, 76px); font-weight: 700; letter-spacing: -.04em; line-height: 1.0; }
.hero h1 .muted { color: var(--label-3); }
.hero p.sub { font-size: clamp(19px, 2vw, 22px); color: var(--label-2); max-width: 500px; margin-top: 18px; letter-spacing: -.015em; line-height: 1.32; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.chip { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--card); color: var(--label-2); box-shadow: var(--shadow); display: inline-flex; gap: 6px; align-items: center; }
.chip::before { content: '✓'; color: var(--green); font-weight: 700; }

/* device */
.device { justify-self: center; width: 320px; max-width: 100%; aspect-ratio: 320 / 670; background: #0d0d0e; border-radius: 56px; padding: 11px; position: relative; box-shadow: inset 0 0 0 2px #3a3a3c, 0 0 0 1px #000, 0 50px 90px -30px rgba(0,0,0,.45); }
.screen { background: var(--card); border-radius: 46px; height: 100%; overflow: hidden; position: relative; display: flex; flex-direction: column; padding: 56px 22px 30px; }
html[data-theme="dark"] .screen { background: #000; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 100px; height: 30px; background: #000; border-radius: 20px; z-index: 2; transition: width .5s var(--spring); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #fff; font-size: 11px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.island span { opacity: 0; transition: opacity .2s; }
.island.live { width: 196px; }
.island.live span { opacity: 1; transition-delay: .2s; }
.island .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.sbar { position: absolute; top: 17px; left: 32px; right: 28px; display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.sbar i { font-style: normal; letter-spacing: .05em; font-size: 11px; }
.dial-num { text-align: center; font-size: 32px; letter-spacing: .01em; min-height: 42px; margin-top: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dial-sub { text-align: center; font-size: 12px; color: var(--tint); min-height: 34px; font-family: var(--mono); word-break: break-all; line-height: 1.4; padding: 0 6px; }
.dial-sub.muted { color: var(--label-3); font-family: var(--font); font-size: 14px; }
.keypad { display: grid; grid-template-columns: repeat(3, 70px); gap: 13px 20px; justify-content: center; margin-top: auto; }
.key { width: 70px; height: 70px; border-radius: 50%; border: 0; background: var(--key); color: var(--label); font-family: var(--font); font-size: 31px; font-weight: 400; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; cursor: pointer; transition: background .35s; -webkit-tap-highlight-color: transparent; }
.key small { font-size: 9px; font-weight: 700; letter-spacing: .14em; margin-top: 2px; min-height: 10px; }
.key:active, .key.hit { background: var(--key-press); transition: none; }
.key.blank { background: transparent; cursor: default; }
.key.pay { background: var(--green); color: #fff; }
.key.pay svg { width: 28px; height: 28px; }
.key.del { background: transparent; }
.key.del svg { width: 26px; height: 26px; }

/* ───────── sections */
.section { padding: 64px 0; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--tint); margin-bottom: 8px; }
.section h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; max-width: 720px; }
.section h2 .muted { color: var(--label-3); }
.section p.lede { font-size: 19px; color: var(--label-2); max-width: 600px; margin-top: 12px; }
.section-head { margin-bottom: 32px; }

/* grouped inset list */
.group-label { font-size: 13px; color: var(--label-2); text-transform: uppercase; letter-spacing: .02em; padding: 0 16px 7px; }
.group-foot { font-size: 13px; color: var(--label-2); padding: 8px 16px 0; }
.group { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 14px; padding: 11px 16px; min-height: 52px; position: relative; }
.row + .row::before { content: ''; position: absolute; top: 0; right: 0; left: 60px; border-top: .5px solid var(--sep); }
.group.plain .row + .row::before { left: 16px; }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-weight: 400; font-size: 17px; }
.row .t span { display: block; font-size: 14px; color: var(--label-2); margin-top: 2px; line-height: 1.35; }
.row .v { color: var(--label-2); font-size: 16px; text-align: right; }
.row .v.good { color: var(--green); font-weight: 500; }
.row .v.bad { color: var(--red); }
.icon { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; flex: none; color: #fff; }
.icon svg { width: 18px; height: 18px; }
.i-blue { background: var(--tint); } .i-green { background: var(--green); } .i-orange { background: var(--orange); }
.i-red { background: var(--red); } .i-indigo { background: var(--indigo); } .i-teal { background: var(--teal); } .i-gray { background: #8e8e93; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }

/* contact cards */
.contact { background: var(--card); border-radius: 22px; padding: 26px 20px 8px; text-align: center; box-shadow: var(--shadow); }
.contact .badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; color: var(--label-2); background: var(--fill); }
.contact .badge.good { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.avatar { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 12px; background: linear-gradient(180deg, #a5a9b3, #868a94); display: grid; place-items: center; color: #fff; font-size: 36px; font-weight: 500; }
.contact h3 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.contact .roles { color: var(--label-2); font-size: 15px; margin: 2px 0 18px; }
.contact .rows { text-align: left; border-top: .5px solid var(--sep); }
.contact .rows div { padding: 11px 2px; border-bottom: .5px solid var(--sep); }
.contact .rows div:last-child { border-bottom: 0; }
.contact .rows small { display: block; font-size: 13px; color: var(--label-2); }
.contact .rows span { color: var(--tint); font-size: 17px; }
.blur { filter: blur(7px); user-select: none; display: inline-block; }
.contact.chain .avatar { background: var(--fill-2); color: var(--label-3); }
.contact.chain .rows span { font-family: var(--mono); font-size: 13.5px; color: var(--label); word-break: break-all; }

/* segmented control */
.segmented, .tabs, .seg { display: inline-flex; background: var(--fill); border-radius: 9px; padding: 2px; max-width: 100%; overflow-x: auto; }
.segmented button, .tab, .seg button { flex: 1; border: 0; background: transparent; font-family: var(--font); font-size: 14px; font-weight: 500; padding: 7px 16px; border-radius: 7px; cursor: pointer; color: var(--label); white-space: nowrap; transition: background .2s; }
.segmented button.on, .tab.active, .seg button.on { background: var(--card); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); font-weight: 600; }
html[data-theme="dark"] .segmented button.on, html[data-theme="dark"] .tab.active, html[data-theme="dark"] .seg button.on { background: #636366; }
.segmented { margin-bottom: 16px; }

/* widgets */
.widgets { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .widgets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .widgets { grid-template-columns: 1fr; } }
.widget { background: var(--card); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 170px; }
.widget.token { grid-row: span 2; background: linear-gradient(165deg, #2c2c2e, #000); color: #fff; }
.widget h4 { font-size: 14px; font-weight: 600; color: var(--label-2); display: flex; align-items: center; gap: 8px; }
.widget.token h4 { color: rgba(255,255,255,.55); }
.widget .big { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: auto 0 6px; }
.widget.token .big { font-size: clamp(64px, 8vw, 92px); }
.widget p { font-size: 15px; color: var(--label-2); }
.widget.token p { color: rgba(255,255,255,.6); }
.ca { display: flex; align-items: center; gap: 10px; margin-top: 18px; background: rgba(255,255,255,.1); border-radius: 12px; padding: 11px 13px; cursor: pointer; font-size: 13px; }
.ca b { font-weight: 600; color: rgba(255,255,255,.5); }
.ca span { font-family: var(--mono); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.widget.token .btn.alt { background: rgba(255,255,255,.14); color: #fff; }

/* FAQ disclosure rows */
.faq details { position: relative; }
.faq details + details::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--sep); }
.faq summary { list-style: none; cursor: pointer; padding: 15px 16px; display: flex; justify-content: space-between; gap: 14px; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '›'; color: var(--label-3); font-size: 24px; line-height: .7; transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(90deg); }
.faq p { padding: 0 16px 16px; color: var(--label-2); font-size: 15px; }

footer { padding: 30px 0 60px; color: var(--label-2); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: .5px solid var(--sep); padding-top: 20px; }
footer a { margin-left: 18px; }

.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .9s var(--spring); }
.rv.in { opacity: 1; transform: none; }

.toast { position: fixed; top: 12px; left: 50%; transform: translate(-50%, -90px); background: var(--card); color: var(--label); padding: 12px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; box-shadow: 0 10px 40px rgba(0,0,0,.18); z-index: 200; transition: transform .55s var(--spring); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); }

/* ───────────────────────── APP & DEPLOY */
.app-shell { padding: 14px 0 90px; }
.app-grid { display: grid; grid-template-columns: 1fr 330px; gap: 34px; align-items: start; }
@media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; } }
.panel { background: transparent; }
.panel.side { background: var(--card); border-radius: 20px; padding: 16px 18px 20px; box-shadow: var(--shadow); }
.tabs { display: flex; margin: 6px 0 22px; width: 100%; max-width: 420px; }
.view { display: none; }
.view.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.view h2 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.view > p.sub { color: var(--label-2); font-size: 16px; margin: 6px 0 24px; max-width: 560px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; color: var(--label-2); text-transform: uppercase; letter-spacing: .02em; padding: 0 16px 7px; }
.input, select.input, textarea.input { width: 100%; background: var(--card); border: 0; border-radius: 12px; padding: 14px 16px; font-family: var(--font); font-size: 17px; color: var(--label); outline: none; box-shadow: var(--shadow); transition: box-shadow .2s; -webkit-appearance: none; }
.input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint) 35%, transparent); }
.input::placeholder { color: var(--label-3); }
.input.big { font-size: 40px; font-weight: 600; letter-spacing: -.02em; padding: 16px; }
.otp { letter-spacing: .5em; text-align: center; font-family: var(--mono); }
.seg { display: flex; width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chain-sees { font-size: 13px; color: var(--label-2); padding: 0 16px; margin: -14px 0 22px; word-break: break-all; }
.chain-sees b { font-family: var(--mono); font-weight: 500; color: var(--green); }
.check { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 12px 16px; font-size: 15px; margin-bottom: 12px; cursor: pointer; box-shadow: var(--shadow); }
.check span { flex: 1; }
.check input { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 999px; background: var(--fill-2); position: relative; flex: none; cursor: pointer; transition: background .25s; order: 2; }
.check input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15); transition: transform .35s var(--spring); }
.check input:checked { background: var(--green); }
.check input:checked::after { transform: translateX(20px); }
.status { font-size: 14px; padding: 12px 16px; border-radius: 12px; margin-top: 14px; display: none; word-break: break-word; }
.status.show { display: block; }
.status.info { background: var(--fill); color: var(--label); }
.status.ok { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--label); }
.status.err { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.list { background: var(--card); border-radius: 12px; overflow: hidden; margin: 0 0 22px; box-shadow: var(--shadow); }
.list:empty { display: none; }
.item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; position: relative; }
.item + .item::before { content: ''; position: absolute; top: 0; left: 48px; right: 0; border-top: .5px solid var(--sep); }
.item input { accent-color: var(--tint); width: 20px; height: 20px; }
.item .amt { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.item .meta { font-size: 13px; color: var(--label-2); margin-top: 1px; }
.item .grow { flex: 1; min-width: 0; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--fill); color: var(--label-2); }
.pill.ok { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.empty { padding: 22px 16px; color: var(--label-2); font-size: 15px; text-align: center; }
.side h3 { font-size: 13px; color: var(--label-2); text-transform: uppercase; letter-spacing: .02em; margin: 6px 0 4px; font-weight: 400; }
.side .kv { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; padding: 11px 0; border-bottom: .5px solid var(--sep); }
.side .kv span:last-child { color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.side p { font-size: 15px; color: var(--label-2); margin: 6px 0 14px; }
.secret { background: color-mix(in srgb, var(--orange) 14%, transparent); border-radius: 12px; padding: 14px; font-family: var(--mono); font-size: 12px; word-break: break-all; margin: 0 0 10px; }
.banner { background: color-mix(in srgb, var(--orange) 16%, transparent); border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .rv { opacity: 1; transform: none; } }
.dial-num { font-size: 28px; letter-spacing: 0; }
.sbar { transition: opacity .2s; }
.island.live + .sbar { opacity: 0; }
.dial-sub { font-size: 13px; min-height: 20px; }
html[data-theme="dark"] .device { box-shadow: inset 0 0 0 2px #48484a, 0 0 0 1px #2c2c2e, 0 50px 90px -30px rgba(0,0,0,.6); }

/* theme toggle */
.theme-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--fill); color: var(--label); display: grid; place-items: center; cursor: pointer; transition: transform .35s var(--spring), background .2s; -webkit-tap-highlight-color: transparent; }
.theme-btn:hover { background: var(--fill-2); }
.theme-btn:active { transform: scale(.9) rotate(-20deg); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .moon { display: block; }
html.theme-anim, html.theme-anim * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }
.nav-links a, .nav-right .btn { white-space: nowrap; }
.nav-right { flex-wrap: nowrap; }

/* sound toggle */
.sound-btn .off-i { display: none; }
.sound-btn.off .on-i { display: none; }
.sound-btn.off .off-i { display: block; }
.sound-btn.off { color: var(--label-2); }

/* "someone hushed you" banner */
.hushed-banner { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 16px; padding: 14px 16px; margin-bottom: 20px; box-shadow: var(--shadow); animation: drop .6s var(--spring); }
.hushed-banner b { display: block; font-size: 17px; }
.hushed-banner span:not(.hb-dot) { font-size: 14px; color: var(--label-2); }
.hb-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); animation: ping 1.6s infinite; }
@keyframes drop { from { transform: translateY(-14px) scale(.97); opacity: 0; } }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* "you've been hushed" sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); animation: fadein .3s ease; }
.sheet-card { width: min(400px, 100%); background: var(--card); border-radius: 28px; padding: 34px 26px 22px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: rise .7s var(--spring); }
@media (max-width: 560px) { .sheet-wrap { place-items: end center; padding: 10px; } .sheet-card { border-radius: 32px; } }
@keyframes fadein { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px) scale(.94); opacity: 0; } }
.done-mark { width: 84px; height: 84px; margin: 0 auto 18px; }
.done-mark svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done-mark circle { stroke: var(--green); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s .1s ease forwards; fill: color-mix(in srgb, var(--green) 12%, transparent); }
.done-mark path { stroke: var(--green); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .65s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-kicker { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--green); }
.sheet-card h2 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 10px; line-height: 1.05; }
.done-amt { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.done-sub { font-size: 15px; color: var(--label-2); margin: 8px 0 24px; word-break: break-word; }
.done-sub a { font-weight: 500; }

/* mobile tap behaviour: no double-tap zoom or tap delay, no text selection on keys */
button, .btn, .key, .tab, .seg button, .segmented button, .theme-btn, label.check { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.keypad, .key, .seg, .tabs, .segmented { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* fixed heights so the dialer never jumps as text changes */
.dial-num { height: 42px; line-height: 42px; }
.dial-sub { height: 20px; line-height: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dial-sub.muted { font-size: 14px; }

/* country code picker — a native select under an iOS-style button */
.phone-row { display: flex; gap: 8px; align-items: stretch; }
.phone-row .input { flex: 1; min-width: 0; }
.phone-row .cc, .field .phone-row label.cc { position: relative; text-transform: none; letter-spacing: -.01em; display: flex; margin: 0; align-items: center; gap: 6px; background: var(--card); border-radius: 12px; padding: 0 12px; box-shadow: var(--shadow); cursor: pointer; flex: none; font-size: 17px; color: var(--label); margin: 0; }
.cc:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint) 35%, transparent); }
.cc-flag { font-size: 22px; line-height: 1; }
.cc-code { font-variant-numeric: tabular-nums; }
.cc-chev { width: 12px; height: 12px; color: var(--label-2); }
.cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; -webkit-appearance: none; appearance: none; border: 0; }
.phone-row.is-email .cc { display: none; }

/* no double-tap zoom anywhere (pinch zoom still works) */
html { touch-action: manipulation; }
.device, .device * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }

/* country chip in the dialer mockup */
.dial-cc { position: relative; align-self: center; margin-top: 16px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: var(--fill); color: var(--tint); font-size: 15px; font-weight: 500; cursor: pointer; transition: opacity .2s; }
.dial-cc .cc-flag { font-size: 17px; line-height: 1; }
.dial-cc .cc-chev { width: 11px; height: 11px; color: var(--tint); }
.dial-cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; -webkit-appearance: none; appearance: none; }
.dial-cc.dim { opacity: .35; }
.dial-cc + .dial-num { margin-top: 8px; }

/* little shake when a phone number is already full */
.full { animation: full-shake .32s ease; }
@keyframes full-shake { 20% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
.dial-num .pfx { color: var(--label); }
.dial-num .pfx.empty { color: var(--label-3); }

/* home-screen app: keep the nav clear of the status bar / notch */
.nav { padding-top: env(safe-area-inset-top); }

/* ───────── Apple Cash-style amount entry */
.amount-card { background: var(--card); border-radius: 22px; padding: 22px 18px 18px; margin-bottom: 22px; box-shadow: var(--shadow); text-align: center; }
.amount-line { display: flex; align-items: baseline; justify-content: center; gap: 10px; min-height: 76px; }
.amount-input { border: 0; outline: none; background: transparent; color: var(--label); font-family: var(--font); font-size: 64px; font-weight: 700; letter-spacing: -.045em; text-align: right; width: 1ch; min-width: 1ch; max-width: 80%; padding: 0; caret-color: var(--tint); font-variant-numeric: tabular-nums; }
.amount-input::placeholder { color: var(--label-3); }
.amount-unit { font-size: 24px; font-weight: 600; color: var(--label-2); letter-spacing: -.02em; }
.amount-meta { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 14px; color: var(--label-2); margin: 4px 0 16px; min-height: 26px; }
.amount-meta.over { color: var(--red); }
.amount-max { border: 0; background: var(--fill); color: var(--tint); font-family: var(--font); font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; cursor: pointer; }
.amt-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 330px; margin: 0 auto; }
.amt-keypad button { height: 56px; border: 0; border-radius: 14px; background: transparent; color: var(--label); font-family: var(--font); font-size: 28px; font-weight: 500; cursor: pointer; display: grid; place-items: center; transition: background .3s; -webkit-user-select: none; user-select: none; }
.amt-keypad button svg { width: 26px; height: 26px; }
.amt-keypad button:active, .amt-keypad button.hit { background: var(--fill-2); transition: none; }
@media (pointer: fine) { .amt-keypad button:hover { background: var(--fill); } }

/* ───────── app status island */
.app-island { position: fixed; z-index: 80; left: 50%; top: calc(env(safe-area-inset-top) + 9px); transform: translateX(-50%) scale(.6); height: 36px; min-width: 36px; max-width: calc(100% - 120px); padding: 0 16px 0 12px; display: flex; align-items: center; gap: 9px; background: #000; color: #fff; border-radius: 22px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; opacity: 0; pointer-events: none; transition: transform .55s var(--spring), opacity .25s ease; box-shadow: 0 8px 30px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.08); }
.app-island.open { opacity: 1; transform: translateX(-50%) scale(1); }
.app-island .ai-text { overflow: hidden; text-overflow: ellipsis; }
.app-island .ai-icon { width: 18px; height: 18px; display: grid; place-items: center; flex: none; }
.app-island .ai-icon svg { width: 18px; height: 18px; }
.ai-dot { width: 9px; height: 9px; border-radius: 50%; display: block; }
.ai-orange { background: #ff9f0a; animation: ai-pulse 1.2s ease-in-out infinite; }
@keyframes ai-pulse { 50% { opacity: .35; } }
.ai-spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; display: block; animation: ai-rot .8s linear infinite; }
@keyframes ai-rot { to { transform: rotate(360deg); } }
.app-island.ok { box-shadow: 0 8px 30px rgba(0,0,0,.25), 0 0 0 1px rgba(48,209,88,.35); }

/* ───────── live feed */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: 1px; animation: ping 1.6s infinite; box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); }
.live-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.live-stats .widget { min-height: 0; padding: 18px 20px; }
.live-stats .big { font-size: clamp(34px, 5vw, 48px); margin: 8px 0 0; }
#liveList .row .t span.mono { font-family: var(--mono); font-size: 12.5px; }
#liveList .pill { font-size: 12px; }
.row.fresh { animation: fresh-in .8s var(--spring); }
.row.fresh::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--green) 12%, transparent); animation: fresh-glow 2.5s ease forwards; pointer-events: none; }
@keyframes fresh-in { from { transform: translateY(-10px); opacity: 0; } }
@keyframes fresh-glow { to { opacity: 0; } }

/* ───────── claim-link welcome */
.welcome { text-align: center; max-width: 460px; margin: 10px auto 0; animation: rise .7s var(--spring); }
.w-mark { width: 76px; height: 76px; border-radius: 19px; background: #000; margin: 0 auto 18px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.2), inset 0 0 0 1px rgba(255,255,255,.08); }
.w-mark::after { content: ''; position: absolute; left: 17px; right: 17px; top: 33px; height: 11px; border-radius: 6px; background: #fff; }
.w-mark i { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--bg); animation: ping 1.6s infinite; z-index: 1; }
.welcome h2 { font-size: 38px; font-weight: 700; letter-spacing: -.035em; margin: 6px 0 8px; line-height: 1.05; }
.welcome .done-amt { min-height: 46px; }
.w-steps { text-align: left; margin: 6px 0 22px; }
.w-n { width: 28px; height: 28px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 14px; font-weight: 700; flex: none; color: var(--tint); }
.w-steps .row + .row::before { left: 58px; }
.w-foot { font-size: 13px; color: var(--label-2); margin-top: 14px; }
/* island sits just under the nav so it never covers buttons */
.app-island { top: calc(env(safe-area-inset-top) + 62px); }
@media (max-width: 600px) { .nav-title { display: none; } .nav .wrap { grid-template-columns: auto 1fr; } .nav-right { gap: 8px; } }

/* Telegram bot verification card */
.tg-box { background: var(--card); border-radius: 18px; padding: 20px 18px 18px; margin-bottom: 20px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tg-box.hidden { display: none; }
.tg-icon { width: 52px; height: 52px; border-radius: 50%; background: #2aabee; display: grid; place-items: center; margin-bottom: 6px; }
.tg-icon svg { width: 28px; height: 28px; margin-left: -2px; }
.tg-box b { font-size: 18px; }
.tg-box span { font-size: 14px; color: var(--label-2); max-width: 340px; }
.tg-btn { margin-top: 10px; background: #2aabee; }
.handle-note { font-size: 13px; color: var(--label-2); padding: 10px 16px 0; text-align: center; }
.seg button.hidden { display: none; }
/* country picker only for phone numbers (beats the label.cc rule above) */
.field .phone-row.is-email label.cc, .phone-row.is-email .cc { display: none; }
/* "coming soon" option in a segmented control */
.seg button.soon { color: var(--label-3); cursor: default; }
.seg button.soon::after { content: 'Soon'; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-left: 5px; padding: 2px 5px; border-radius: 5px; background: var(--fill); color: var(--label-2); vertical-align: 1px; }
.toast { white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
