/* Copyright © 2026 ShiroLabs (https://461485.xyz). All rights reserved. */
:root {
  color-scheme: light;
  --ink: #173247;
  --ink-soft: #3f596c;
  --muted: #6d8492;
  --paper: #f1f9fa;
  --card: #fcfeff;
  --line: #dce9ed;
  --cyan: #25bdd0;
  --cyan-dark: #138da5;
  --cyan-pale: #e7f9fb;
  --violet: #3c6d88;
  --violet-pale: #e8f2f6;
  --green: #47765a;
  --focus: #087f9b;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: 1120px;
  --radius-card: 18px;
  --shadow-card: 0 20px 60px #352b1b12, 0 2px 8px #352b1b06;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background:
    radial-gradient(ellipse at 19% 31%, #d8f7fa99, transparent 32%),
    radial-gradient(ellipse at 87% 8%, #dceef580, transparent 28%),
    var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--font);
}
button, input { font: inherit; }
button { touch-action: manipulation; }
a, button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.topbar {
  width: min(calc(100% - 56px), 1160px);
  min-height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #28253612;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font: 750 21px/1 var(--display);
  letter-spacing: -1.1px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 11px;
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 4px 10px #d95e3b2b;
}
.brand-mark svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-kana { align-self: flex-start; margin: 0 0 0 -5px; color: #9b958f; font-size: 9px; font-weight: 500; letter-spacing: 0; }
.topbar-right { display: flex; align-items: center; gap: 23px; }
.privacy-pill { display: flex; align-items: center; gap: 8px; color: #777482; font-size: 9px; font-weight: 750; letter-spacing: 1px; }
.privacy-pill i { width: 7px; height: 7px; border-radius: 50%; background: #68a078; box-shadow: 0 0 0 3px #68a07821; }
.nearby-page-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid #ded5c8;
  border-radius: 9px;
  background: #ffffff7a;
  color: #4a4657;
  text-decoration: none;
  font-size: 11px;
  font-weight: 650;
  transition: background .18s, border-color .18s, transform .18s;
}
.nearby-page-link:hover { border-color: #65cbd7; background: white; color: var(--cyan-dark); transform: translateY(-1px); }
.nearby-page-link span { color: var(--cyan); }
.about-link { color: #777482; text-decoration: none; font-size: 11px; }
.about-link:hover { color: var(--cyan-dark); }

main { width: min(calc(100% - 56px), var(--content)); margin: 0 auto; }
.hero-layout {
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 458px);
  align-items: center;
  gap: clamp(35px, 5vw, 70px);
  padding: 54px 0 45px;
}
.intro { position: relative; padding: 0 0 6px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #77717e; font-size: 9px; font-weight: 750; letter-spacing: 1.45px; }
.eyebrow-pulse { width: 7px; height: 7px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 0 4px #25bdd02b; transform: rotate(45deg); }
.eyebrow-jp { color: #a29aa2; letter-spacing: .7px; font-weight: 500; }
.intro h1 { margin: 23px 0 18px; color: var(--ink); font: 750 clamp(52px, 6.3vw, 78px)/1.02 var(--display); letter-spacing: -.065em; }
.intro h1 span { position: relative; color: var(--cyan); white-space: nowrap; }
.intro h1 span::after { content: ""; position: absolute; right: 3px; bottom: -4px; left: 2px; height: 4px; background: repeating-linear-gradient(120deg, var(--cyan) 0 10px, transparent 10px 15px); opacity: .65; }
.intro > p { max-width: 430px; margin: 0; color: #75717e; font-size: clamp(13px, 1.1vw, 15px); line-height: 1.8; }
.signal-illustration { width: 100%; max-width: 490px; height: 148px; margin-top: 29px; display: flex; align-items: center; justify-content: flex-start; position: relative; }
.signal-device { width: 76px; height: 65px; display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 7px; position: relative; z-index: 1; border: 1px solid #ddd6ce; border-radius: 13px; background: var(--card); box-shadow: 0 8px 22px #342b1d0b; }
.signal-device span { color: #807a86; font-size: 8px; font-weight: 750; letter-spacing: 1.2px; }
.signal-device i { width: 32px; height: 19px; display: block; position: relative; border: 1.5px solid #6e6878; border-radius: 4px; }
.device-a i::after { content: ""; position: absolute; right: 5px; bottom: -4px; left: 5px; height: 1px; background: #6e6878; }
.device-b i { width: 16px; height: 26px; border-radius: 5px; }
.device-b i::after { content: ""; width: 3px; height: 3px; position: absolute; bottom: 3px; left: 5px; border-radius: 50%; background: #6e6878; }
.signal-bridge { width: clamp(115px, 15vw, 205px); display: flex; align-items: center; justify-content: center; gap: 9px; position: relative; }
.bridge-line { height: 1px; flex: 1; border-top: 1px dashed #c9b9aa; }
.signal-bridge b { width: 34px; height: 34px; display: grid; flex: none; place-items: center; border-radius: 50%; background: var(--cyan-pale); color: var(--cyan); font-size: 17px; font-weight: 500; animation: signal 3s ease-in-out infinite; }
.signal-bridge small { position: absolute; top: 48px; right: 0; left: 0; color: #a09aa0; text-align: center; font-size: 7px; font-weight: 750; letter-spacing: 1.5px; }
.guide-sticker { width: 114px; height: 171px; display: flex; flex: none; align-items: center; justify-content: center; position: relative; margin-left: 5px; overflow: hidden; border: 1px solid #ccebf0; border-radius: 15px; background: #fff; box-shadow: 0 9px 24px #1c52600c; }
.guide-sticker img { width: 100%; height: 100%; object-fit: contain; }
.guide-sticker span { position: absolute; right: 5px; bottom: 5px; padding: 3px 5px; border: 1px solid #c8edf1; border-radius: 5px; background: #f4feffed; color: #188da3; font-size: 6px; font-weight: 800; letter-spacing: .8px; white-space: nowrap; }
.intro-foot { display: flex; align-items: center; gap: 8px; color: #85808a; font-size: 10px; }
.mini-lock { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: var(--violet-pale); color: var(--violet); font-size: 14px; }

.transfer-card { padding: 26px 25px 20px; border: 1px solid #e7dfd4; border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.card-kicker { color: #948d95; font-size: 8px; font-weight: 750; letter-spacing: 1.4px; }
.card-heading h2 { margin: 6px 0 0; font: 680 19px/1.25 var(--display); letter-spacing: -.55px; }
.step-count { display: flex; align-items: center; gap: 5px; flex: none; padding: 7px 8px; border-radius: 7px; background: #f7f1eb; color: #5b5663; font: 650 9px var(--display); }
.step-count i { color: #aaa3a8; font-style: normal; }.step-count .step-spark { color: var(--cyan); font-size: 13px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mode-option { min-width: 0; min-height: 54px; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #ece7df; border-radius: 10px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.mode-option:hover { border-color: #e8b09a; transform: translateY(-1px); }.mode-option.active { border-color: #e29b7e; background: #fff7f2; box-shadow: inset 0 0 0 1px #25bdd01c; }
.mode-icon { width: 31px; height: 31px; display: grid; flex: none; place-items: center; border-radius: 9px; background: #f6eee6; color: #ca6b4d; font-size: 19px; }
.mode-option.active .mode-icon { background: #ffe7dc; color: var(--cyan-dark); }.link-icon { font-size: 17px; }
.mode-option b,.mode-option small { display: block; }.mode-option b { overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.mode-option small { margin-top: 3px; color: #918b92; font-size: 8px; line-height: 1.3; }
.dropzone { min-height: 174px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #d6cbbf; border-radius: 12px; background: linear-gradient(145deg, #fffefa, #fcfaf6); cursor: pointer; transition: background .2s, border .2s, transform .2s; }
.dropzone:hover,.dropzone.dragover { border-color: var(--cyan); background: #fff7f1; transform: translateY(-1px); }
.dropzone input { width: 1px; height: 1px; position: absolute; overflow: hidden; opacity: 0; }
.upload-symbol { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 13px; background: #fff0e8; color: var(--cyan-dark); }
.upload-symbol svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop-title { font-size: 11px; font-weight: 700; }.drop-subtitle { margin-top: 5px; color: #96909a; font-size: 9px; }.drop-subtitle span { color: #c45d40; text-decoration: underline; text-underline-offset: 2px; }
.file-limit { margin-top: 13px; color: #aaa3a5; font-size: 8px; }.file-limit i { padding: 0 4px; color: #e2987c; font-style: normal; }
.file-list { display: grid; gap: 6px; max-height: 210px; overflow: auto; margin-top: 10px; padding-right: 2px; }
.file-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid #eee9e1; border-radius: 8px; background: #faf8f4; color: #464150; font-size: 9px; }
.file-item span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.file-item span:last-child { color: #96909a; white-space: nowrap; }
.picker-actions { display: flex; gap: 8px; margin-top: 9px; }
.picker-button { min-height: 42px; flex: 1; padding: 7px 9px; border: 1px solid #e8e2d9; border-radius: 8px; background: #fff; color: #526a77; font-size: 9px; font-weight: 650; cursor: pointer; }
.picker-button:hover { border-color: #76cbd4; background: #f3fcfd; }
.selection-summary { margin-top: 10px; color: #647b87; font-size: 9px; font-weight: 700; }
.remove-file { width: 30px; height: 30px; flex: none; border: 0; border-radius: 7px; background: transparent; color: #8d8790; font-size: 19px; cursor: pointer; }
.remove-file:hover { background: #fff0e9; color: #b95236; }
.file-item .file-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone.has-files { min-height: 128px; }.dropzone.has-files .file-limit { margin-top: 7px; }
.send-button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 13px; border: 0; border-radius: 10px; background: var(--cyan); color: #fff; box-shadow: 0 4px 9px #25bdd025; font: 700 11px var(--font); cursor: pointer; transition: background .18s, transform .18s, box-shadow .18s; }
.send-button:hover { background: var(--cyan-dark); transform: translateY(-1px); box-shadow: 0 6px 14px #25bdd033; }.send-button span { font-size: 15px; }.send-button:disabled { opacity: .65; cursor: wait; transform: none; }
.fine-print { margin: 9px 0 0; color: #a19ba1; text-align: center; font-size: 8px; line-height: 1.5; }

.session-panel { margin-top: 13px; padding: 13px; border: 1px solid #ece6de; border-radius: 11px; background: #fcfaf6; }
.link-join { margin-top: 11px; padding: 14px; border: 1px solid #c7e9ed; border-radius: 9px; background: #f3fcfd; }
.link-join[hidden] { display: none; }
.link-join strong { display: block; color: #294c60; font: 680 12px var(--display); }
.link-join p { margin: 5px 0 0; color: #617d8b; font-size: 10px; line-height: 1.5; }
.link-join button { width: 100%; min-height: 44px; margin-top: 11px; border: 0; border-radius: 8px; background: var(--cyan); color: white; font-size: 10px; font-weight: 700; cursor: pointer; }
.link-join button:hover { background: var(--cyan-dark); }
.link-join button:disabled { opacity: .6; cursor: wait; }
.connection-state { display: flex; align-items: center; gap: 8px; color: #706c78; font-size: 9px; }.state-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #d5aa52; }
.connection-state[data-state="connected"] .state-dot { background: #60976d; box-shadow: 0 0 0 3px #60976d20; }.connection-state[data-state="error"] .state-dot { background: #c96060; }
.share-content { margin-top: 11px; }.share-link-row { display: flex; gap: 8px; }
.sharing-summary { margin: 0 0 8px; color: #617d8b; font-size: 9px; font-weight: 700; }
.share-link-row input { min-width: 0; min-height: 42px; flex: 1; padding: 9px; border: 1px solid #e6e0d8; border-radius: 8px; background: white; color: #686372; font-size: 8px; }
.share-link-row button,.secondary-button { min-height: 42px; padding: 0 11px; border: 1px solid #e5ddd3; border-radius: 8px; background: #fff; color: #574e5d; font-size: 9px; cursor: pointer; white-space: nowrap; }
.share-link-row button:hover,.secondary-button:hover { border-color: #e4a28a; background: #fff7f2; }
.qr-panel { display: flex; align-items: center; gap: 13px; margin-top: 11px; padding: 10px; border: 1px solid #eee8e0; border-radius: 10px; background: white; }
.qr-panel img { width: clamp(92px, 10vw, 112px); height: clamp(92px, 10vw, 112px); flex: none; object-fit: contain; image-rendering: pixelated; }
.qr-info { min-width: 0; flex: 1; }
.qr-panel b,.qr-panel span { display: block; }.qr-panel b { font: 680 11px var(--display); }.qr-panel span { max-width: 190px; margin-top: 4px; color: #87818a; font-size: 9px; line-height: 1.5; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.qr-action { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 9px; border: 1px solid #dce8e9; border-radius: 7px; background: #fff; color: #287482; font: 650 8px var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.qr-action:hover { border-color: #75c9d2; background: #f2fcfd; }
.qr-action:disabled { opacity: .5; cursor: wait; }
.local-code-card { margin-top: 10px; padding: 8px 9px; border-radius: 8px; background: #fff1e9; }.local-code-card span,.local-code-card strong { display: block; }.local-code-card span { color: #a0897f; font-size: 7px; font-weight: 750; letter-spacing: .8px; }.local-code-card strong { margin-top: 3px; color: #bd563a; font: 750 21px/1.1 var(--display); letter-spacing: 5px; }
.local-hint { margin: 9px 1px 0; color: #827c85; font-size: 8px; line-height: 1.55; }.local-hint span { margin-right: 4px; color: var(--cyan); font-size: 13px; vertical-align: -1px; }
.peer-request { margin-top: 11px; padding: 12px; border: 1px solid #eddfc5; border-radius: 9px; background: #fff9ed; }.peer-request>b,.peer-request>span { display: block; }.peer-request>b { color: #514638; font: 680 10px var(--display); }.peer-request>span { margin-top: 4px; color: #887c68; font-size: 8px; line-height: 1.45; }.peer-request>div { display: flex; gap: 8px; margin-top: 9px; }.peer-request button { min-height: 40px; flex: 1; border: 0; border-radius: 8px; background: #615a7c; color: #fff; font-size: 9px; font-weight: 650; cursor: pointer; }.peer-request .secondary-button { border: 1px solid #e1e5dc; background: white; color: #5e665d; }
.code-entry { margin-top: 13px; padding: 16px; border: 1px solid #e9e2d9; border-radius: 11px; background: #faf8f4; }.code-entry>div b,.code-entry>div span { display: block; }.code-entry>div b { font: 680 12px var(--display); }.code-entry>div span { margin-top: 5px; color: #817c85; font-size: 9px; }.code-entry form { display: flex; gap: 8px; margin-top: 12px; }.code-entry input { width: 105px; min-height: 44px; padding: 9px; border: 1px solid #e3d9ce; border-radius: 8px; outline: none; background: white; color: #312c3b; text-align: center; font: 750 16px var(--display); letter-spacing: 5px; }.code-entry input:focus { border-color: #dc8c70; box-shadow: 0 0 0 3px #ed754d1c; }.code-entry button { min-height: 44px; flex: 1; border: 0; border-radius: 8px; background: var(--cyan); color: white; font-size: 10px; font-weight: 700; cursor: pointer; }.code-entry button:hover { background: var(--cyan-dark); }
.incoming-request { margin-top: 11px; }.incoming-request>strong { font: 680 11px var(--display); }.incoming-summary { margin: 4px 0 8px; color: #79858c; font-size: 9px; }#incoming-files { display: grid; gap: 6px; margin: 8px 0; }.request-actions { display: flex; gap: 8px; margin-top: 9px; }.request-actions .send-button { min-height: 44px; flex: 1; margin: 0; font-size: 9px; }.request-actions .secondary-button { min-height: 44px; }
.progress-wrap { margin-top: 12px; }.progress-heading { display: flex; justify-content: space-between; color: #4f4a59; font-size: 9px; }.progress-track { height: 6px; overflow: hidden; margin-top: 7px; border-radius: 6px; background: #e9e3db; }.progress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--cyan); transition: width .12s; }.progress-detail { margin-top: 5px; color: #908995; font-size: 8px; }.downloads { display: grid; gap: 7px; margin-top: 9px; }.download-item { display: block; padding: 10px; border: 1px solid #eadbd2; border-radius: 8px; background: #fff6f0; color: #b95236; text-decoration: none; font-size: 9px; }.download-item:hover { background: #ffede3; }

.how-section { margin: 0 0 20px; padding: 22px 0 26px; border-top: 1px solid #29253615; }.how-section>.eyebrow { margin-bottom: 15px; }.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.how-grid article { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid #e9e2d9; border-radius: 11px; background: #ffffff71; }.how-number { width: 25px; height: 25px; display: grid; flex: none; place-items: center; border-radius: 8px; background: #fff0e8; color: #c66042; font: 750 9px var(--display); }.how-grid h3 { margin: 1px 0 4px; font: 680 11px var(--display); }.how-grid p { margin: 0; color: #88828b; font-size: 9px; line-height: 1.5; }
footer { width: min(calc(100% - 56px), 1160px); min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 auto; padding: 13px 0 20px; border-top: 1px solid #28253612; color: #96909a; font-size: 8px; }
.footer-credit { color: #748795; white-space: nowrap; }
.footer-credit a { color: #3c6d88; font-weight: 700; text-decoration: none; }
.footer-credit a:hover { color: #138da5; text-decoration: underline; text-underline-offset: 2px; }
.footer-brand { font-size: 15px; }.footer-brand .brand-mark { width: 25px; height: 25px; border-radius: 8px; }.footer-brand .brand-mark svg { width: 20px; }.footer-lock { display: flex; align-items: center; gap: 5px; color: #716b79; }.footer-lock span { color: var(--violet); font-size: 13px; }

.connection-diagnostics { margin-top: 10px; border: 1px solid #e8e3dc; border-radius: 9px; background: #fff; color: #605b68; }
.connection-diagnostics summary { padding: 9px 11px; cursor: pointer; font-size: 9px; font-weight: 700; }
.connection-diagnostics dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0; padding: 0 11px 11px; }
.connection-diagnostics dl div { min-width: 0; display: flex; justify-content: space-between; gap: 8px; font-size: 8px; }
.connection-diagnostics dt { color: #8a8490; }.connection-diagnostics dd { max-width: 65%; overflow-wrap: anywhere; margin: 0; color: #326b78; text-align: right; font-weight: 650; }
.connection-diagnostics[data-state^="FAILED"] dd,.connection-diagnostics[data-state="TIMEOUT"] dd { color: #b64d4d; }
.connection-actions { margin-top: 9px; }.connection-actions[hidden] { display: none; }.connection-actions p { margin: 6px 0 0; color: #77717d; font-size: 8px; line-height: 1.45; }
.save-file-button { min-height: 34px; padding: 6px 10px; border: 1px solid #dce8e9; border-radius: 7px; background: #fff; color: #287482; font-size: 8px; font-weight: 700; cursor: pointer; }
.save-file-button:hover { border-color: #75c9d2; background: #f2fcfd; }
.download-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; border: 1px solid #d8eaec; border-radius: 9px; background: #f5fcfd; }
.download-toolbar>div { min-width: 0; display: grid; gap: 2px; }
.download-toolbar strong { color: #294c60; font-size: 10px; }
.download-toolbar span { color: #7b8d95; font-size: 8px; }
.download-all-button { min-height: 42px; flex: none; padding: 7px 12px; border: 0; border-radius: 8px; background: var(--cyan); color: white; font-size: 9px; font-weight: 700; cursor: pointer; }
.download-all-button:hover { background: var(--cyan-dark); }
.download-list { display: grid; gap: 7px; }
.download-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.download-item a { min-width: 0; overflow-wrap: anywhere; color: inherit; text-decoration: none; }
.download-item a:hover { text-decoration: underline; text-underline-offset: 2px; }
.toast { max-width: min(90vw, 560px); position: fixed; z-index: 10; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; padding: 12px 16px; transform: translate(-50%, 14px); border-radius: 9px; background: #292638; color: #fff; box-shadow: 0 6px 24px #17162025; font-size: 10px; opacity: 0; pointer-events: none; text-align: center; transition: .22s; }.toast.show { transform: translate(-50%, 0); opacity: 1; }

.session-panel[hidden],.share-content[hidden],.qr-panel[hidden],.incoming-request[hidden],.progress-wrap[hidden],.mode-switch[hidden],.code-entry[hidden],.nearby-page-link[hidden],.peer-request[hidden],.connection-actions[hidden],.retry-hint[hidden],.send-composer[hidden],.download-toolbar[hidden] { display: none; }

@keyframes signal { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 #25bdd000; } 50% { transform: scale(1.08); box-shadow: 0 0 0 7px #25bdd01c; } }

/* Wide tablets and compact desktops: keep the action card readable and centered. */
@media (max-width: 1080px) {
  :root { --content: 760px; }
  main { width: min(calc(100% - 48px), var(--content)); }
  .hero-layout { min-height: unset; grid-template-columns: minmax(0,1fr); gap: 22px; padding: 45px 0 32px; }
  .intro { text-align: center; }.intro>p { margin: 0 auto; }
  .signal-illustration { justify-content: center; margin: 21px auto 9px; }
  .intro-foot { justify-content: center; }
  .transfer-card { width: min(100%, 640px); justify-self: center; }
  footer { width: min(calc(100% - 48px), 760px); }
}

/* Tablet portrait and phone landscape. */
@media (max-width: 720px) {
  .topbar { width: calc(100% - 36px); min-height: 66px; }
  .topbar-right { gap: 8px; }.privacy-pill,.about-link { display: none; }
  .nearby-page-link { min-height: 44px; padding: 8px 10px; font-size: 10px; }
  main { width: min(calc(100% - 36px), 560px); }
  .hero-layout { gap: 19px; padding: 34px 0 26px; }
  .intro h1 { margin: 16px 0 11px; font-size: clamp(43px, 8.6vw, 61px); letter-spacing: -.06em; }
  .intro>p { max-width: 440px; font-size: 12px; }
  .signal-illustration { max-width: 420px; height: 116px; margin: 15px auto 3px; }
  .signal-device { width: 64px; height: 56px; border-radius: 11px; }
  .signal-device i { transform: scale(.88); }
  .signal-bridge { width: clamp(105px, 20vw, 165px); }
  .signal-bridge b { width: 30px; height: 30px; }
  .signal-bridge small { top: 42px; font-size: 6px; }
  .guide-sticker { width: 74px; height: 100px; }
  .guide-sticker img { width: 71px; height: 88px; }
  .guide-sticker::before { width: 65px; height: 65px; left: 5px; }
  .guide-sticker span { font-size: 5px; }
  .intro-foot { font-size: 9px; }
  .transfer-card { padding: 21px 19px 18px; }
  .dropzone { min-height: 164px; }
  .how-section { padding: 18px 0 22px; }
  .how-grid { gap: 8px; }
  .how-grid article { gap: 8px; padding: 10px 9px; }
  .how-number { width: 22px; height: 22px; }
  .how-grid h3 { font-size: 9px; }.how-grid p { font-size: 8px; }
  footer { width: calc(100% - 36px); min-height: 54px; flex-wrap: wrap; padding: 13px 0 17px; }
  footer>span:nth-child(2),footer>span:nth-child(3) { order: 3; width: 100%; text-align: center; }
}

/* Small phones. */
@media (max-width: 460px) {
  .topbar { width: calc(100% - 28px); min-height: 60px; }
  .brand { gap: 7px; font-size: 18px; }.brand-mark { width: 29px; height: 29px; border-radius: 9px; }.brand-mark svg { width: 23px; }.brand-kana { font-size: 8px; }
  .nearby-page-link { gap: 4px; padding: 7px 8px; font-size: 9px; }
  main { width: calc(100% - 28px); }
  .hero-layout { padding: 28px 0 22px; }
  .intro h1 { font-size: clamp(39px, 11vw, 49px); letter-spacing: -.065em; }
  .eyebrow { gap: 7px; font-size: 8px; letter-spacing: 1.1px; }
  .intro>p { max-width: 340px; font-size: 11px; }
  .signal-illustration { width: 100%; height: 101px; }
  .signal-device { width: 53px; height: 50px; gap: 4px; }.signal-device span { font-size: 7px; }.signal-device i { transform: scale(.78); }
  .signal-bridge { width: clamp(72px, 22vw, 108px); gap: 5px; }.signal-bridge b { width: 25px; height: 25px; font-size: 13px; }.signal-bridge small { top: 37px; letter-spacing: .8px; }
  .guide-sticker { width: 61px; height: 84px; margin-left: 1px; }.guide-sticker img { width: 61px; height: 76px; }.guide-sticker::before { width: 55px; height: 55px; left: 3px; top: 10px; }.guide-sticker span { padding: 2px 3px; font-size: 4px; letter-spacing: .4px; }
  .intro-foot { font-size: 8px; }
  .transfer-card { padding: 17px 13px 14px; border-radius: 15px; }
  .card-heading { margin-bottom: 13px; }.card-heading h2 { font-size: 17px; }.card-kicker { font-size: 7px; letter-spacing: 1.1px; }
  .mode-switch { gap: 6px; margin-bottom: 11px; }.mode-option { min-height: 53px; gap: 6px; padding: 7px 6px; }.mode-icon { width: 26px; height: 26px; border-radius: 8px; font-size: 16px; }.mode-option b { font-size: 9px; }.mode-option small { font-size: 7px; }
  .dropzone { min-height: 154px; }.drop-title { font-size: 10px; }.drop-subtitle { font-size: 8px; }.file-limit { font-size: 7px; }
  .send-button { min-height: 48px; font-size: 10px; }
  .how-grid { grid-template-columns: 1fr; gap: 7px; }.how-grid article { align-items: center; padding: 9px 10px; }.how-grid h3 { font-size: 9px; }.how-grid p { font-size: 8px; }
  .how-section>.eyebrow { margin-bottom: 9px; }
  .qr-panel { gap: 9px; padding: 8px; }.qr-panel img { width: 88px; height: 88px; }.qr-panel span { font-size: 8px; }
  .share-link-row { flex-wrap: wrap; }.share-link-row input { flex-basis: 100%; font-size: 8px; }.share-link-row button { min-height: 42px; flex: 1; }
  .code-entry { padding: 13px; }.code-entry input { width: 94px; }
}

/* Extra-small phones and narrow embedded browsers. */
@media (max-width: 350px) {
  .topbar { width: calc(100% - 22px); }.nearby-page-link { font-size: 8px; }
  main { width: calc(100% - 22px); }.intro h1 { font-size: 37px; }
  .transfer-card { padding-right: 10px; padding-left: 10px; }
  .mode-switch { grid-template-columns: 1fr; }.mode-option { min-height: 46px; }.mode-option small { font-size: 8px; }
  footer { width: calc(100% - 22px); }
}

/* TV / 1080p living-room view: readable from a distance and easy to focus. */
@media (min-width: 1500px) {
  :root { --content: 1480px; --radius-card: 22px; }
  .topbar { width: min(calc(100% - 8vw), 1540px); min-height: 94px; }
  .brand { gap: 12px; font-size: 26px; }.brand-mark { width: 40px; height: 40px; border-radius: 13px; }.brand-mark svg { width: 31px; }
  .brand-kana { font-size: 11px; }.topbar-right { gap: 30px; }.privacy-pill { font-size: 11px; }.nearby-page-link { min-height: 52px; padding: 11px 17px; font-size: 14px; }.about-link { font-size: 14px; }
  main { width: min(calc(100% - 8vw), var(--content)); }
  .hero-layout { min-height: 710px; grid-template-columns: minmax(0,1fr) 590px; gap: 80px; padding: 65px 0 56px; }
  .intro h1 { font-size: clamp(78px, 5.3vw, 100px); }.intro>p { max-width: 550px; font-size: 18px; }
  .signal-illustration { max-width: 600px; height: 175px; margin-top: 38px; }.signal-device { width: 94px; height: 79px; border-radius: 16px; }.signal-device span { font-size: 10px; }.signal-device i { transform: scale(1.15); }.signal-bridge { width: 245px; }.signal-bridge b { width: 42px; height: 42px; font-size: 21px; }.signal-bridge small { top: 58px; font-size: 9px; }.guide-sticker { width: 105px; height: 142px; }.guide-sticker img { width: 105px; height: 127px; }.guide-sticker::before { width: 92px; height: 92px; left: 7px; top: 15px; }.guide-sticker span { font-size: 7px; }
  .intro-foot { font-size: 13px; }.mini-lock { width: 28px; height: 28px; font-size: 18px; }
  .transfer-card { padding: 34px 34px 26px; }.card-heading { margin-bottom: 23px; }.card-kicker { font-size: 10px; }.card-heading h2 { font-size: 25px; }.step-count { padding: 9px 11px; font-size: 12px; }.mode-switch { gap: 10px; margin-bottom: 18px; }.mode-option { min-height: 68px; gap: 12px; padding: 12px; border-radius: 12px; }.mode-icon { width: 40px; height: 40px; border-radius: 11px; font-size: 23px; }.mode-option b { font-size: 14px; }.mode-option small { font-size: 11px; }
  .dropzone { min-height: 216px; border-radius: 14px; }.upload-symbol { width: 52px; height: 52px; margin-bottom: 13px; border-radius: 16px; }.upload-symbol svg { width: 28px; }.drop-title { font-size: 15px; }.drop-subtitle { font-size: 12px; }.file-limit { margin-top: 16px; font-size: 10px; }.send-button { min-height: 58px; margin-top: 16px; border-radius: 11px; font-size: 14px; }.fine-print { margin-top: 12px; font-size: 10px; }
  .session-panel { padding: 17px; }.connection-state { font-size: 12px; }.share-link-row input { min-height: 52px; font-size: 11px; }.share-link-row button,.secondary-button { min-height: 52px; font-size: 12px; }.qr-panel img { width: 134px; height: 134px; }.qr-panel b { font-size: 15px; }.qr-panel span { font-size: 12px; }.local-code-card strong { font-size: 27px; }.local-hint { font-size: 10px; }.peer-request>b { font-size: 13px; }.peer-request>span { font-size: 10px; }.peer-request button { min-height: 48px; font-size: 11px; }
  .how-section { margin-bottom: 30px; padding: 28px 0 32px; }.how-section>.eyebrow { margin-bottom: 19px; }.how-grid { gap: 18px; }.how-grid article { gap: 14px; padding: 17px; border-radius: 13px; }.how-number { width: 32px; height: 32px; border-radius: 10px; font-size: 11px; }.how-grid h3 { font-size: 14px; }.how-grid p { font-size: 11px; }
  footer { width: min(calc(100% - 8vw), 1540px); min-height: 72px; font-size: 11px; }.footer-brand { font-size: 19px; }.footer-brand .brand-mark { width: 31px; height: 31px; }.footer-lock { font-size: 11px; }
}

/* 4K and large-screen scaling. */
@media (min-width: 2200px) {
  :root { --content: 1740px; }
  body { font-size: 20px; }
  .topbar { width: min(calc(100% - 9vw), 1800px); min-height: 110px; }
  main { width: min(calc(100% - 9vw), var(--content)); }
  .hero-layout { min-height: 820px; grid-template-columns: minmax(0,1fr) 680px; gap: 105px; }
  .intro h1 { font-size: clamp(104px, 4.8vw, 132px); }.intro>p { max-width: 680px; font-size: 22px; }
  .signal-illustration { max-width: 690px; height: 205px; }.signal-device { width: 112px; height: 93px; }.signal-device span { font-size: 12px; }.signal-device i { transform: scale(1.35); }.signal-bridge { width: 290px; }.signal-bridge b { width: 52px; height: 52px; font-size: 26px; }.signal-bridge small { top: 69px; font-size: 10px; }.guide-sticker { width: 125px; height: 165px; }.guide-sticker img { width: 120px; height: 150px; }.guide-sticker::before { width: 108px; height: 108px; left: 8px; top: 16px; }.guide-sticker span { font-size: 8px; }
  .transfer-card { padding: 44px 42px 34px; }.card-heading h2 { font-size: 30px; }.card-kicker { font-size: 12px; }.mode-option { min-height: 80px; }.mode-icon { width: 48px; height: 48px; }.mode-option b { font-size: 16px; }.mode-option small { font-size: 13px; }.dropzone { min-height: 265px; }.upload-symbol { width: 62px; height: 62px; }.drop-title { font-size: 19px; }.drop-subtitle { font-size: 15px; }.file-limit { font-size: 12px; }.send-button { min-height: 70px; font-size: 17px; }.fine-print { font-size: 12px; }
  .how-section { padding: 34px 0 40px; }.how-grid article { padding: 22px; }.how-number { width: 40px; height: 40px; font-size: 14px; }.how-grid h3 { font-size: 17px; }.how-grid p { font-size: 14px; }
  footer { width: min(calc(100% - 9vw), 1800px); min-height: 84px; font-size: 13px; }
}

@media (max-height: 760px) and (min-width: 721px) {
  .hero-layout { min-height: 0; padding-top: 28px; padding-bottom: 28px; }
  .signal-illustration { height: 122px; margin-top: 17px; }
  .how-section { margin-bottom: 8px; padding-top: 15px; padding-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-contrast: more) {
  :root { --muted: #514c5c; --line: #746e78; }
  .mode-option,.dropzone,.transfer-card,.how-grid article { border-color: #77717e; }
}

/* Kizuna character palette: cool white, deep blue and luminous cyan. */
.guide-sticker { display: none; }
.intro::before { content: none; }
.intro::after {
  content: "";
  width: clamp(275px, 32vw, 420px);
  height: clamp(310px, 36vw, 475px);
  position: absolute;
  z-index: -1;
  right: -18px;
  bottom: -40px;
  background: url("kizuna-mascot.png") center / contain no-repeat;
  opacity: .18;
  filter: drop-shadow(0 15px 20px #1c52601a);
  pointer-events: none;
}
.eyebrow-pulse { box-shadow: 0 0 0 4px #25bdd02b; }
.mode-option:hover { border-color: #80d7e1; }
.mode-option.active { border-color: #43c1d1; background: #f1fcfd; box-shadow: inset 0 0 0 1px #25bdd01c; }
.mode-icon { background: #eaf7f9; color: #168fa5; }
.mode-option.active .mode-icon { background: #def7fa; color: #138da5; }
.dropzone:hover,.dropzone.dragover { background: #f1fcfd; }
.drop-subtitle span { color: #138da5; }
.file-limit i { color: #48bdca; }
.share-link-row button:hover,.secondary-button:hover { border-color: #62c9d6; background: #f1fcfd; }
.peer-request { border-color: #c7e9ed; background: #f3fcfd; }
.peer-request>b { color: #294c60; }
.peer-request>span { color: #617d8b; }
.code-entry input:focus { border-color: #25bdd0; box-shadow: 0 0 0 3px #25bdd026; }
.how-number { background: #e5f8fa; color: #138da5; }
.transfer-card::before { background: linear-gradient(90deg, #25bdd0, #70dce5 58%, #718fc5); }
.guide-sticker span { display: none; }
.signal-bridge { width: 185px; }
.guide-sticker { width: 150px; height: 170px; }
.signal-illustration { height: 190px; }
@media (max-width: 720px) {
  .intro::after { width: 240px; height: 270px; right: calc(50% - 120px); bottom: -20px; opacity: .11; }
  .signal-illustration { height: 150px; }
  .guide-sticker { width: 110px; height: 125px; }
  .guide-sticker img { width: 100%; height: 100%; }
}
@media (max-width: 460px) {
  .intro::after { width: 210px; height: 238px; right: calc(50% - 105px); bottom: -12px; opacity: .09; }
  .signal-illustration { height: 125px; }
  .guide-sticker { width: 90px; height: 102px; }
}
@media (max-width: 350px) {
  .signal-illustration { height: 108px; }
  .guide-sticker { width: 74px; height: 84px; }
}
@media (min-width: 1500px) {
  .intro::after { width: 420px; height: 475px; right: -8px; bottom: -54px; opacity: .20; }
  .signal-illustration { height: 220px; }
  .signal-bridge { width: 220px; }
  .guide-sticker { width: 170px; height: 193px; }
}
@media (min-width: 2200px) {
  .intro::after { width: 480px; height: 545px; right: 2px; bottom: -68px; opacity: .22; }
  .signal-illustration { height: 250px; }
  .signal-bridge { width: 260px; }
  .guide-sticker { width: 190px; height: 216px; }
}

/* Kizuna visual signature: soft ink lines, warm energy and small anime-like sparks. */
.intro { isolation: isolate; }
.intro::before {
  content: "✳";
  position: absolute;
  z-index: -1;
  top: -45px;
  left: -34px;
  color: #25bdd018;
  font: 150px/1 var(--display);
  transform: rotate(-12deg);
  pointer-events: none;
}
.brand-mark { position: relative; }
.brand-mark::after {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  top: -2px;
  right: -2px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: #f3c56c;
}
.transfer-card { position: relative; overflow: hidden; }
.transfer-card::before {
  content: "";
  height: 3px;
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--cyan), #efb66a 58%, #8c80bb);
}

/* Preserve readable type and touch targets on small phones. */
@media (max-width: 720px) {
  .topbar-right { gap: 6px; }
  .nearby-page-link { min-width: 44px; }
  .drop-subtitle { font-size: 10px; }
  .file-limit, .fine-print { font-size: 9px; }
  .mode-option small { font-size: 8px; }
  .how-grid h3 { font-size: 11px; }
  .how-grid p { font-size: 10px; }
  .share-link-row button, .secondary-button, .code-entry button,
  .peer-request button, .request-actions button { min-height: 44px; }
}
@media (max-width: 460px) {
  .intro::before { top: -30px; left: -13px; font-size: 105px; }
  .drop-title { font-size: 11px; }
  .drop-subtitle { font-size: 10px; }
  .file-limit, .fine-print { font-size: 9px; }
  .mode-option b { font-size: 10px; }
  .mode-option small { font-size: 8px; }
  .how-grid h3 { font-size: 11px; }
  .how-grid p { font-size: 10px; }
  .qr-panel span, .local-hint { font-size: 9px; }
}
@media (max-width: 350px) {
  .nearby-page-link { min-height: 44px; }
  .mode-option b { font-size: 9px; }
  .dropzone { padding: 12px 6px; }
}
