:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17181c;
  background: #f5f6f8;
  font-synthesis: none;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #17181c;
  --muted: #747782;
  --border: #e4e6eb;
  --border-strong: #d4d7de;
  --soft: #f0f2f5;
  --accent: #5a5cf0;
  --accent-strong: #4749da;
  --success: #1f9d61;
  --warning: #d39124;
  --danger: #c84b55;
  --shadow: 0 10px 32px rgba(23, 24, 28, .05);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% -10%, rgba(90, 92, 240, .10), transparent 34rem),
    radial-gradient(circle at 100% 15%, rgba(82, 178, 255, .07), transparent 28rem),
    var(--bg);
  color: var(--text);
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(90, 92, 240, .22); outline-offset: 2px; }
.hidden { display: none !important; }

.app-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 22px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.brand-block { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 36px; height: 36px; display: block; flex: none; border-radius: 11px; box-shadow: 0 7px 20px rgba(90, 92, 240, .20); }
h1 { font-size: clamp(25px, 3.4vw, 33px); letter-spacing: -0.045em; margin: 1px 0 0; line-height: 1; }
h2 { margin: 0; letter-spacing: -0.03em; font-size: 19px; }
.eyebrow, .section-label { margin: 0; font-size: 9px; font-weight: 800; letter-spacing: .13em; color: #7a7d88; }
.section-label { margin-bottom: 4px; }
.muted { color: var(--muted); line-height: 1.42; }
.center { text-align: center; }

.status-area { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.status-row { display: flex; align-items: center; gap: 6px; }
.role-pill { padding: 6px 8px; border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid var(--border); color: #676a74; font-size: 10px; font-weight: 750; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.9); font-size: 11px; font-weight: 760; white-space: nowrap; box-shadow: 0 3px 14px rgba(0,0,0,.02); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #aaaeb7; }
.badge.connected .dot { background: var(--success); box-shadow: 0 0 0 3px rgba(31,157,97,.10); }
.badge.connecting .dot { background: var(--warning); animation: pulse 1.45s infinite; }
.badge.failed .dot { background: var(--danger); }
.transport-info { color: #72757f; font-size: 10px; font-weight: 750; padding-right: 4px; }
.transport-info.direct::before { content: '●'; color: var(--success); margin-right: 4px; }
.transport-info.relay::before { content: '●'; color: var(--warning); margin-right: 4px; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211,145,36,.16); }
  50% { box-shadow: 0 0 0 4px rgba(211,145,36,.08); }
}

.card { background: rgba(255,255,255,.94); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.pairing-grid { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: 12px; margin-bottom: 12px; transition: opacity .18s ease, transform .18s ease; }
.mobile-invite-notice { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid #dfe0ff; border-radius: 14px; background: linear-gradient(120deg, rgba(242,243,255,.98), rgba(255,255,255,.96)); box-shadow: 0 7px 22px rgba(90,92,240,.06); }
.invite-copy { min-width: 0; }
.invite-copy h2 { font-size: 17px; }
.invite-copy p:last-child { margin: 5px 0 0; color: #717580; font-size: 11px; line-height: 1.4; }
.mobile-invite-notice .button { flex: none; }
.qr-card, .instructions-card { padding: 17px; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.step-pill { flex: none; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: #f0f1ff; color: var(--accent); font-size: 10px; font-weight: 850; }
.qr-wrap { width: min(188px, 100%); aspect-ratio: 1; display: grid; place-items: center; margin: 10px auto 7px; padding: 7px; background: #fff; border: 1px solid #eceef2; border-radius: 13px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.03); }
.qr-wrap img { width: 100%; height: 100%; display: block; }
.qr-card .muted { margin: 5px auto 0; max-width: 330px; font-size: 11px; }
.instructions-card { display: flex; flex-direction: column; }
.feature-list { display: grid; gap: 6px; margin: 11px 0 10px; }
.feature-row { display: grid; grid-template-columns: 25px 1fr; gap: 8px; align-items: start; padding: 7px 9px; border-radius: 10px; background: #f8f9fb; }
.feature-check { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #eaf7f0; color: var(--success); font-size: 11px; font-weight: 900; }
.feature-row strong { display: block; font-size: 11px; margin: 0 0 1px; }
.feature-row small { color: #81848e; font-size: 10px; line-height: 1.3; }
.url-box { margin-top: auto; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 9px; align-items: center; }
.url-box > span { grid-column: 1 / -1; color: #858891; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.url-box code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #4d5059; }

/* Once paired, the QR has done its job. Bring transfers above the fold. */
.peer-connected:not(.phone-view) #creatorPanel { display: none !important; }

.transfer-card { padding: 10px; overflow: hidden; }
.drop-zone { position: relative; border: 1.5px dashed #cbd0db; border-radius: 12px; min-height: 164px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 17px; outline: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; overflow: hidden; }
.drop-zone::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 20%, rgba(90,92,240,.055), transparent 42%); opacity: 0; transition: opacity .18s ease; pointer-events: none; }
.drop-zone.ready::before { opacity: 1; }
.drop-zone.dragging { border-color: var(--accent); background: #f7f7ff; transform: scale(.997); }
.drop-zone:focus-visible { border-color: var(--accent); }
.drop-zone h2 { font-size: 20px; position: relative; }
.drop-zone p { color: #777b86; margin: 5px 0 10px; position: relative; font-size: 12px; }
.drop-zone small { color: #8c909a; margin-top: 8px; position: relative; font-size: 10px; }
.upload-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #e9eafe; color: var(--accent); font-size: 19px; font-weight: 900; margin-bottom: 9px; position: relative; }
.drop-zone.ready .upload-icon { background: linear-gradient(145deg, #6668ff, #4b4ddc); color: #fff; box-shadow: 0 7px 18px rgba(90,92,240,.18); }
.button { border: 0; border-radius: 9px; padding: 9px 13px; font-weight: 770; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 6px; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; position: relative; font-size: 12px; }
.button:not(:disabled):active { transform: translateY(1px); }
.button.primary { background: var(--accent); color: #fff; box-shadow: 0 5px 14px rgba(90,92,240,.14); }
.button.primary:hover:not(:disabled) { background: var(--accent-strong); }
.button.secondary { background: var(--soft); color: #34363d; }
.button.secondary:hover:not(:disabled) { background: #e7e9ed; }
.button.compact { padding: 7px 10px; border-radius: 8px; font-size: 11px; box-shadow: none; }
.button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.text-button { border: 0; background: transparent; padding: 4px; color: #61646e; font-size: 10px; font-weight: 760; border-radius: 6px; }
.text-button:hover { color: var(--accent); background: rgba(90,92,240,.055); }

.transfers-section { margin-top: 14px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 7px; padding: 0 2px; }
.section-heading h2 { font-size: 17px; }
.empty-state { border: 1px dashed #d8dbe2; border-radius: 12px; padding: 16px; text-align: center; color: #898c95; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.empty-state strong { color: #656872; font-size: 11px; }
.empty-state span:last-child { font-size: 10px; }
.empty-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #eceef2; color: #8c8f99; margin-bottom: 2px; }
.transfer-list { display: grid; gap: 7px; }
.transfer-item { background: rgba(255,255,255,.96); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 7px 10px; align-items: center; box-shadow: 0 4px 16px rgba(23,24,28,.02); }
.transfer-item.complete { border-color: #dce9e1; }
.transfer-item.failed { border-color: #eedcdf; }
.file-type { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #f0f1ff; color: var(--accent); font-size: 8px; font-weight: 900; letter-spacing: .04em; overflow: hidden; }
.transfer-item.incoming .file-type { background: #eaf7f0; color: var(--success); }
.transfer-main { min-width: 0; }
.transfer-title-row { display: flex; align-items: center; gap: 6px; }
.transfer-name { font-weight: 760; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.direction-pill { flex: none; font-size: 8px; font-weight: 850; letter-spacing: .07em; border-radius: 999px; padding: 3px 5px; background: #f0f1ff; color: var(--accent); }
.transfer-item.incoming .direction-pill { background: #eaf7f0; color: var(--success); }
.transfer-meta { color: #838690; font-size: 9px; margin-top: 3px; display: flex; gap: 7px; flex-wrap: wrap; }
.progress-track { grid-column: 2 / -1; height: 4px; background: #eceef2; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #7779ff); transition: width .15s linear; }
.transfer-item.incoming .progress-bar { background: linear-gradient(90deg, #2ea96e, #62c38f); }
.transfer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.transfer-status { font-size: 9px; color: #6e717b; font-weight: 680; max-width: 165px; text-align: right; }
.download-link { text-decoration: none; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: #898c96; font-size: 9px; margin-top: 14px; line-height: 1.4; padding: 0 3px; }
.privacy-note, .footer-actions { display: flex; align-items: center; gap: 6px; }
.lock-mark { color: var(--success); font-size: 7px; }

.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 12px); z-index: 20; background: #24262d; color: #fff; padding: 9px 12px; border-radius: 10px; font-size: 11px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; max-width: min(420px, calc(100% - 32px)); text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.success { background: #216a4b; }
.toast.error { background: #8c3740; }

.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.compact-card { width: min(460px, 100%); padding: 28px; text-align: center; }
.compact-card h1 { font-size: 30px; }
.compact-card p { color: var(--muted); margin: 13px 0 20px; }
.compact-brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; font-size: 15px; letter-spacing: -.02em; }
.compact-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; }

/* Public landing page */
.landing-body { background: #f7f8fa; }
.landing-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.landing-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.landing-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 18px; letter-spacing: -.025em; }
.landing-brand .brand-mark { width: 38px; height: 38px; }
.landing-nav { display: flex; align-items: center; gap: 28px; }
.landing-nav > a { color: #656974; text-decoration: none; font-size: 13px; font-weight: 700; }
.landing-nav > a:hover { color: var(--accent); }
.landing-nav form, .hero-actions form, .landing-final-cta form { margin: 0; }

.landing-hero { min-height: 620px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(410px, .98fr); gap: clamp(42px, 7vw, 92px); align-items: center; padding: 76px 0 92px; }
.landing-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #707482; font-size: 10px; line-height: 1.3; font-weight: 850; letter-spacing: .15em; }
.landing-kicker > span { width: 22px; height: 2px; background: var(--accent); border-radius: 999px; }
.hero-copy h1 { max-width: 680px; margin: 0; font-size: clamp(46px, 5.6vw, 72px); line-height: .99; letter-spacing: -.064em; }
.hero-copy h1 em { display: block; color: var(--accent); font-style: normal; }
.hero-lead { max-width: 610px; margin: 25px 0 0; color: #686c77; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.62; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 31px; }
.hero-actions > span { color: #878b95; font-size: 11px; font-weight: 650; }
.landing-cta { min-height: 50px; padding: 13px 19px; border-radius: 12px; font-size: 13px; box-shadow: 0 10px 28px rgba(90,92,240,.2); }
.landing-cta span { font-size: 17px; line-height: 1; }

.hero-demo { position: relative; min-height: 440px; display: grid; grid-template-columns: minmax(230px, 1fr) 54px minmax(142px, .62fr); align-items: center; padding: 42px 0 58px; isolation: isolate; }
.demo-glow { position: absolute; inset: 5% 0 0; z-index: -2; border-radius: 46%; background: radial-gradient(circle, rgba(90,92,240,.16), rgba(90,92,240,0) 68%); filter: blur(8px); }
.hero-demo::before { content: ''; position: absolute; inset: 38px 8px 30px; z-index: -1; border: 1px solid rgba(90,92,240,.1); border-radius: 36px; background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(239,240,255,.65)); transform: rotate(-3deg); }
.demo-device { position: relative; border: 1px solid #dde0e8; background: #fff; box-shadow: 0 24px 55px rgba(31,33,45,.11); }
.demo-computer { padding: 12px; border-radius: 18px; }
.demo-computer::after { content: ''; position: absolute; left: 37%; right: 37%; bottom: -23px; height: 23px; border-bottom: 5px solid #d9dce4; border-left: 8px solid transparent; border-right: 8px solid transparent; }
.demo-phone { z-index: 2; padding: 9px; border-radius: 23px; transform: translateY(29px) rotate(2deg); }
.demo-label { display: block; margin: 0 0 7px 3px; color: #91949e; font-size: 7px; font-weight: 850; letter-spacing: .14em; }
.demo-screen { min-height: 222px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 11px; background: linear-gradient(160deg, #fafaff, #f4f5f9); text-align: center; }
.demo-phone .demo-screen { min-height: 245px; border-radius: 16px; }
.demo-screen img { width: 47px; height: 47px; margin-bottom: 13px; border-radius: 14px; box-shadow: 0 9px 24px rgba(90,92,240,.18); }
.demo-screen strong { font-size: 13px; }
.demo-screen small { margin-top: 5px; color: #8b8e97; font-size: 9px; }
.demo-progress { width: 68%; height: 5px; margin-top: 17px; overflow: hidden; border-radius: 999px; background: #e5e7ed; }
.demo-progress span { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #8385ff); }
.demo-check { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 50%; background: #e9f7f0; color: var(--success); font-size: 20px; font-weight: 900; }
.demo-transfer-mark { z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--accent); font-size: 17px; font-weight: 900; text-shadow: 0 2px 10px rgba(90,92,240,.15); }
.demo-transfer-mark span:last-child { color: #a1a3b0; }
.demo-privacy { position: absolute; left: 50%; bottom: 5px; z-index: 4; transform: translateX(-50%); width: max-content; max-width: 90%; padding: 9px 13px; border: 1px solid #e4e6ec; border-radius: 999px; background: rgba(255,255,255,.94); color: #686b75; box-shadow: 0 8px 25px rgba(31,33,45,.07); font-size: 9px; font-weight: 750; }
.demo-privacy span { margin-right: 6px; color: var(--success); font-size: 7px; }

.landing-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e1e3e9; border-bottom: 1px solid #e1e3e9; }
.landing-facts div { min-height: 118px; display: flex; flex-direction: column; justify-content: center; padding: 23px 36px; border-right: 1px solid #e1e3e9; }
.landing-facts div:first-child { padding-left: 0; }
.landing-facts div:last-child { border-right: 0; }
.landing-facts strong { margin-bottom: 6px; font-size: 14px; }
.landing-facts span { color: #7b7e88; font-size: 11px; line-height: 1.5; }

.landing-section { padding: 112px 0; }
.section-intro { max-width: 650px; margin-bottom: 42px; }
.section-intro h2, .privacy-panel h2, .landing-final-cta h2 { margin: 0; font-size: clamp(31px, 4vw, 46px); line-height: 1.08; letter-spacing: -.05em; }
.section-intro > p:last-child { margin: 16px 0 0; color: #747781; font-size: 14px; line-height: 1.6; }
.landing-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.landing-card { min-height: 225px; padding: 28px; border: 1px solid #e2e4ea; border-radius: 18px; background: rgba(255,255,255,.8); box-shadow: 0 12px 35px rgba(31,33,45,.035); }
.landing-step-number { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 37px; border-radius: 11px; background: #eeeefe; color: var(--accent); font-size: 10px; font-weight: 850; }
.landing-card h3, .faq-grid h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.landing-card p, .faq-grid p { margin: 10px 0 0; color: #777a85; font-size: 12px; line-height: 1.6; }

.privacy-panel { display: grid; grid-template-columns: 74px minmax(0, 1fr) minmax(245px, .55fr); gap: 31px; align-items: center; padding: 52px; border: 1px solid #dedffd; border-radius: 26px; background: linear-gradient(135deg, #f0f0ff, rgba(255,255,255,.94)); box-shadow: 0 18px 55px rgba(90,92,240,.07); }
.privacy-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 19px; background: linear-gradient(145deg, #686aff, #484ad9); color: #fff; font-size: 18px; box-shadow: 0 13px 32px rgba(90,92,240,.22); }
.privacy-panel h2 { font-size: clamp(29px, 3.4vw, 41px); }
.privacy-panel div > p:last-child { max-width: 670px; margin: 15px 0 0; color: #70737e; font-size: 12px; line-height: 1.68; }
.privacy-panel ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; color: #555963; font-size: 11px; font-weight: 750; }
.privacy-panel li { display: flex; align-items: center; gap: 9px; }
.privacy-panel li span { width: 21px; height: 21px; display: grid; place-items: center; flex: none; border-radius: 7px; background: #e4f5ec; color: var(--success); font-size: 10px; font-weight: 900; }

.faq-section { padding-bottom: 102px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid #e2e4e9; border-radius: 19px; background: #e2e4e9; }
.faq-grid article { min-height: 145px; padding: 28px; background: #fff; }
.landing-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 48px 52px; border-radius: 24px; background: #20222a; color: #fff; }
.landing-final-cta .landing-kicker { color: #b1b4be; }
.landing-final-cta h2 { font-size: clamp(30px, 3.5vw, 42px); }
.landing-footer { min-height: 148px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; color: #858893; font-size: 10px; }
.landing-footer .landing-brand { font-size: 15px; }
.landing-footer .brand-mark { width: 31px; height: 31px; }
.landing-footer p { margin: 0; text-align: center; }
.landing-footer > span { text-align: right; }

@media (max-width: 920px) {
  .landing-hero { grid-template-columns: 1fr; gap: 20px; padding: 70px 0; }
  .hero-copy { max-width: 760px; }
  .hero-demo { width: min(540px, 100%); margin: 0 auto; }
  .landing-facts div { padding-inline: 24px; }
  .privacy-panel { grid-template-columns: 66px 1fr; }
  .privacy-panel ul { grid-column: 2; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .landing-shell { width: min(100% - 24px, 560px); }
  .landing-header { min-height: 72px; }
  .landing-nav { gap: 10px; }
  .landing-nav > a { display: none; }
  .landing-brand { font-size: 16px; }
  .landing-brand .brand-mark { width: 34px; height: 34px; }
  .landing-hero { min-height: 0; padding: 55px 0 65px; }
  .hero-copy h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-actions form, .hero-actions .landing-cta { width: 100%; }
  .hero-demo { min-height: 360px; grid-template-columns: minmax(180px, 1fr) 37px minmax(116px, .62fr); }
  .demo-screen { min-height: 177px; }
  .demo-phone .demo-screen { min-height: 200px; }
  .demo-privacy { font-size: 8px; }
  .landing-facts { grid-template-columns: 1fr; }
  .landing-facts div, .landing-facts div:first-child { min-height: 93px; padding: 19px 4px; border-right: 0; border-bottom: 1px solid #e1e3e9; }
  .landing-facts div:last-child { border-bottom: 0; }
  .landing-section { padding: 78px 0; }
  .section-intro { margin-bottom: 30px; }
  .landing-steps, .faq-grid { grid-template-columns: 1fr; }
  .landing-card { min-height: 0; }
  .landing-step-number { margin-bottom: 25px; }
  .privacy-panel { grid-template-columns: 1fr; gap: 24px; padding: 31px 25px; }
  .privacy-icon { width: 54px; height: 54px; border-radius: 16px; }
  .privacy-panel ul { grid-column: auto; grid-template-columns: 1fr; }
  .faq-grid article { min-height: 0; }
  .landing-final-cta { align-items: flex-start; flex-direction: column; padding: 34px 25px; }
  .landing-final-cta form, .landing-final-cta .landing-cta { width: 100%; }
  .landing-footer { grid-template-columns: 1fr auto; padding: 35px 0; }
  .landing-footer p { display: none; }
}

@media (max-width: 760px) {
  .app-shell { width: min(100% - 20px, 620px); padding: 16px 0 max(20px, env(safe-area-inset-bottom)); }
  .topbar { align-items: flex-start; gap: 10px; margin-bottom: 12px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 11px; font-size: 18px; }
  .topbar .eyebrow { display: none; }
  h1 { font-size: 23px; margin-top: 6px; }
  .role-pill { display: none; }
  .badge { min-height: 36px; padding: 7px 9px; font-size: 10px; }
  .status-area { gap: 4px; }
  .transport-info { font-size: 9px; }
  .pairing-grid { grid-template-columns: 1fr; }
  .mobile-invite-notice { align-items: flex-start; }
  .qr-card, .instructions-card { padding: 17px; }
  .phone-view .pairing-grid { display: none !important; }
  .transfer-card { padding: 8px; border-radius: 15px; }
  .drop-zone { min-height: 205px; padding: 20px 15px; border-radius: 11px; }
  .drop-zone h2 { font-size: 20px; }
  .drop-zone p { font-size: 12px; }
  .drop-zone small { font-size: 10px; }
  .upload-icon { width: 42px; height: 42px; font-size: 21px; }
  .button.primary { min-height: 44px; padding-inline: 18px; font-size: 12px; }
  .section-heading { margin-top: 16px; }
  .transfers-section { margin-top: 10px; }
  .transfer-item { grid-template-columns: 36px minmax(0,1fr); padding: 10px; }
  .file-type { width: 36px; height: 36px; border-radius: 9px; }
  .transfer-name { font-size: 12px; }
  .transfer-actions { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid #f0f1f3; padding-top: 8px; }
  .progress-track { grid-column: 1 / -1; }
  .transfer-status { margin-right: auto; text-align: left; }
  .button.compact { min-height: 38px; padding: 7px 11px; }
  footer { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 9px; }
  .footer-actions { width: 100%; justify-content: space-between; }
}

@media (max-width: 390px) {
  .brand-block { gap: 8px; }
  .brand-mark { width: 33px; height: 33px; }
  h1 { font-size: 21px; }
  .badge { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .drop-zone { min-height: 190px; }
  .mobile-invite-notice { flex-direction: column; gap: 11px; }
  .mobile-invite-notice .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
