/* ==========================================================================
   BitTool — site styles
   One stylesheet for every page. Light is the Wallet's value, dark is the
   Signer's; a section or page opts into dark with .theme-dark.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #0a0a0c;
  --bg: #ffffff;
  --bg-soft: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #f2f3f5;
  --line: rgba(10, 10, 12, 0.08);
  --line-strong: rgba(10, 10, 12, 0.14);
  --text: #121316;
  --muted: #555b66;
  --faint: #868c97;
  --accent: #0f7b55;
  --accent-strong: #0b6646;
  --accent-soft: rgba(15, 123, 85, 0.08);
  --accent-line: rgba(15, 123, 85, 0.22);
  --on-accent: #ffffff;
  --warn: #b45309;
  --medium: #c2410c;
  --warn-soft: rgba(180, 83, 9, 0.08);
  --shadow-sm: 0 1px 2px rgba(10, 10, 12, 0.06), 0 1px 1px rgba(10, 10, 12, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(10, 10, 12, 0.18), 0 2px 6px rgba(10, 10, 12, 0.05);
  --shadow-lg: 0 40px 80px -30px rgba(10, 10, 12, 0.35), 0 12px 30px -12px rgba(10, 10, 12, 0.18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max: 1200px;
  --gutter: 24px;
  --nav-h: 64px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

.theme-dark {
  --bg: #0a0a0c;
  --bg-soft: #0f1013;
  --surface: #141519;
  --surface-2: #1a1c21;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --muted: #a3a8b3;
  --faint: #737985;
  --accent: #6be3a4;
  --accent-strong: #8aebb8;
  --accent-soft: rgba(107, 227, 164, 0.1);
  --accent-line: rgba(107, 227, 164, 0.28);
  --on-accent: #0b1f16;
  --warn: #f5b454;
  --medium: #ff9466;
  --warn-soft: rgba(245, 180, 84, 0.1);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}

/* ---------- Base ---------- */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.025em; line-height: 1.12; overflow-wrap: break-word; hyphens: auto; text-wrap: balance; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Script-aware fallbacks: CJK and Thai keep their own fonts and spacing. */
:lang(zh-Hans) { --font: "Inter", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(zh-Hant) { --font: "Inter", -apple-system, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
:lang(ja) { --font: "Inter", -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; }
:lang(ko) { --font: "Inter", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
:lang(th) { --font: "Inter", -apple-system, "Sukhumvit Set", "Thonburi", "Leelawadee UI", "Noto Sans Thai", sans-serif; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3,
:lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) h3,
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3,
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3,
:lang(th) h1, :lang(th) h2, :lang(th) h3 { letter-spacing: 0; line-height: 1.25; }
:lang(th) body, :lang(th) p { line-height: 1.75; }
:lang(zh-Hans) :is(h1, h2, h3, .display, .h2), :lang(zh-Hant) :is(h1, h2, h3, .display, .h2), :lang(ja) :is(h1, h2, h3, .display, .h2) { word-break: keep-all; line-break: strict; }
:lang(ko) { word-break: keep-all; }
:lang(ja) .display { font-size: clamp(34px, 4.9vw, 62px); }
:lang(zh-Hans) .display, :lang(zh-Hant) .display { font-size: clamp(36px, 5.4vw, 68px); }
:lang(ru) .display, :lang(vi) .display, :lang(pt-BR) .display, :lang(es) .display { font-size: clamp(36px, 5vw, 62px); }
/* Thai has no spaces between words: the headline keeps each phrase on one line (.nw) and is sized so the longer one fits. */
:lang(th) .display { font-size: clamp(34px, 4vw, 52px); }
:lang(ru) .h2, :lang(vi) .h2 { font-size: clamp(28px, 3.8vw, 44px); }
:lang(zh-Hans) .eyebrow, :lang(zh-Hant) .eyebrow, :lang(ja) .eyebrow, :lang(ko) .eyebrow, :lang(th) .eyebrow { letter-spacing: 0.04em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 880px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 680; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.brand-mark svg { width: 20px; height: 20px; }
.theme-dark .brand-mark { background: #fff; color: var(--ink); }
.brand-sub { color: var(--faint); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.15s, background 0.15s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; align-items: center; justify-content: center; cursor: pointer; }

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 10px;
  border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.lang-btn:hover { color: var(--text); border-color: var(--line-strong); }
.lang-btn .icon { width: 17px; height: 17px; }
.lang-btn .chev { width: 14px; height: 14px; opacity: 0.6; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  list-style: none; margin: 0; display: none; z-index: 60; max-height: min(70vh, 460px); overflow: auto;
}
.lang.is-open .lang-menu { display: block; }
.lang-menu a {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 9px; font-size: 14.5px; color: var(--text);
}
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a[aria-current="true"] { color: var(--accent); font-weight: 600; }
.lang-menu a[aria-current="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Language suggestion (shown by script when the browser prefers another language) */
.lang-suggest { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 14.5px; }
.lang-suggest[hidden] { display: none; }
.lang-suggest .icon { width: 18px; height: 18px; opacity: 0.7; }
.lang-suggest a { padding: 7px 12px; border-radius: 9px; background: #fff; color: var(--ink); font-weight: 600; white-space: nowrap; }
.lang-suggest button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #fff; opacity: 0.7; cursor: pointer; display: grid; place-items: center; }
.lang-suggest button:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.theme-dark .lang-suggest { background: #fff; color: var(--ink); }
.theme-dark .lang-suggest a { background: var(--ink); color: #fff; }
.theme-dark .lang-suggest button { color: var(--ink); }

/* Mobile menu */
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-right .btn-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49; padding: 12px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .mobile-menu.is-open { display: block; }
  .mobile-menu a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 550; }
  .mobile-menu a:last-child { border-bottom: 0; }
  .mobile-menu .icon { color: var(--faint); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #22232a; }
.theme-dark .btn-primary { background: #fff; color: var(--ink); }
.theme-dark .btn-primary:hover { background: #e7e8ea; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14.5px; border-radius: 10px; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.btn-link .icon { width: 17px; height: 17px; transition: transform 0.15s; }
.btn-link:hover .icon { transform: translateX(3px); }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px;
  border-radius: 14px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease; text-align: left;
}
.store:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.store .icon { width: 26px; height: 26px; }
.store small { display: block; font-size: 11px; line-height: 1.1; opacity: 0.8; font-weight: 500; letter-spacing: 0.01em; }
.store strong { display: block; font-size: 18px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.store-soon { background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); cursor: default; }
.store-soon:hover { transform: none; box-shadow: none; }
.store-soon strong { font-size: 16px; color: var(--text); }
.store-pending { position: relative; }

/* ---------- Sections & type ---------- */

section { position: relative; }
.section { padding: 112px 0; }
.section-tight { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-line { border-top: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--accent-soft); }
.display { font-size: clamp(40px, 6.2vw, 76px); font-weight: 680; letter-spacing: -0.04em; line-height: 1.02; hyphens: manual; }
.display .nw { white-space: nowrap; }
.h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.035em; line-height: 1.08; }
.h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.3; font-weight: 620; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.section-head { max-width: 820px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }
.gradient-text { background: linear-gradient(120deg, var(--text) 30%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 56px; }
.hero-copy .lead { margin-top: 24px; max-width: 560px; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .icon { width: 17px; height: 17px; color: var(--accent); }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 600px; }
.hero-bg {
  position: absolute; inset: -10% -20% -10% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 40%, var(--accent-soft), transparent 70%),
    radial-gradient(40% 40% at 20% 80%, rgba(10,10,12,0.04), transparent 70%);
}
.grid-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: 0.6;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}

/* ---------- Phone frame ---------- */

.phone {
  --w: 300px;
  position: relative; width: var(--w); aspect-ratio: 1206 / 2622; flex: none;
  border-radius: calc(var(--w) * 0.165); padding: calc(var(--w) * 0.034);
  background: linear-gradient(145deg, #2b2c31, #0d0d10 40%, #1d1e22);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,0.08), 0 0 0 1px rgba(0,0,0,0.5);
}
.phone::before { /* side button */
  content: ""; position: absolute; right: -2px; top: 26%; width: 3px; height: 12%; border-radius: 0 3px 3px 0; background: #1b1c20;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w) * 0.135); background: #000; }
.phone .island { position: absolute; top: calc(var(--w) * 0.062); left: 50%; transform: translateX(-50%); width: 31%; height: calc(var(--w) * 0.092); border-radius: 99px; background: #000; z-index: 2; }
.phone-sm { --w: 240px; }
.phone-xs { --w: 200px; }
.phone-lg { --w: 330px; }
.phone-tilt-l { transform: rotate(-4deg); }
.phone-tilt-r { transform: rotate(4deg); }

.duo { position: relative; width: 100%; max-width: 560px; height: 640px; }
.duo .phone { position: absolute; }
.duo .phone:nth-child(1) { left: 0; top: 40px; z-index: 2; }
.duo .phone:nth-child(2) { right: 0; top: 0; z-index: 1; }

.float-chip {
  position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line); box-shadow: var(--shadow-md); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 13.5px; font-weight: 550; white-space: nowrap; color: var(--text);
}
.float-chip .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.float-chip .ic .icon { width: 18px; height: 18px; }
.float-chip small { display: block; font-size: 12px; font-weight: 500; color: var(--faint); }

/* ---------- Trust strip ---------- */

.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.trust-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 24px 20px; border-left: 1px solid var(--line); font-size: 14.5px; font-weight: 550; color: var(--text); line-height: 1.35; }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item .icon { width: 22px; height: 22px; color: var(--accent); }

/* ---------- Product cards (home) ---------- */

.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 48px 48px 0;
  border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 760px;
}
.product.theme-dark { border-color: rgba(255,255,255,0.08); background: radial-gradient(90% 60% at 80% 0%, rgba(107,227,164,0.12), transparent 60%), #0d0e11; }
.product-light { background: radial-gradient(90% 60% at 80% 0%, rgba(15,123,85,0.07), transparent 60%), linear-gradient(180deg, #fff, #f7f8f9); }
.product-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: var(--shadow-md); }
.product h3 { margin-top: 28px; font-size: 34px; letter-spacing: -0.03em; }
.product .tagline { margin-top: 10px; font-size: 18px; color: var(--muted); max-width: 440px; }
.product ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.product li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--text); }
.product li .icon { width: 19px; height: 19px; margin-top: 2px; color: var(--accent); }
.product-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.product-shot { margin-top: auto; padding-top: 48px; display: flex; justify-content: center; gap: 16px; height: 420px; overflow: hidden; }
.product-shot .phone { --w: 220px; align-self: flex-start; }
.product-shot .phone + .phone { margin-top: 60px; }

/* ---------- Feature grid ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--surface); padding: 32px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.feature .ic .icon { width: 22px; height: 22px; }
.feature h3 { margin-top: 22px; font-size: 18px; font-weight: 620; letter-spacing: -0.015em; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.features-4 { grid-template-columns: repeat(4, 1fr); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card h3 { font-size: 18px; font-weight: 620; letter-spacing: -0.015em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Split (text + visual) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse .split-visual { order: -1; }
.split-copy .lead { margin-top: 20px; }
.split-visual { display: flex; justify-content: center; align-items: center; position: relative; min-height: 520px; }
.checklist { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.checklist li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.checklist .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.checklist .ic .icon { width: 19px; height: 19px; }
.checklist strong { display: block; font-size: 16px; font-weight: 620; letter-spacing: -0.01em; }
.checklist span { display: block; margin-top: 3px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Stats / spec strip ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.stat { padding: 28px 28px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(28px, 3.2vw, 38px); font-weight: 680; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat b em { font-style: normal; color: var(--accent); }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* ---------- Air-gap flow ---------- */

.flow { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; position: relative; }
.flow-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 22px 26px; }
.flow-step .num { font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); letter-spacing: 0.04em; }
.flow-step .where { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 4px 10px 4px 8px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.flow-step .where .icon { width: 14px; height: 14px; }
.flow-step .where.offline { background: var(--accent-soft); color: var(--accent); }
.flow-step h3 { margin-top: 14px; font-size: 18px; font-weight: 620; letter-spacing: -0.015em; }
.flow-step p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.flow-step .shot { margin-top: 20px; display: flex; justify-content: center; align-items: flex-start; height: 250px; overflow: hidden; border-bottom: 1px solid var(--line); margin-left: -22px; margin-right: -22px; }
.flow-step .shot .phone { --w: 190px; }
.flow-arrow { position: absolute; top: 34px; right: -14px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--faint); }
.flow-arrow .icon { width: 14px; height: 14px; }
.airgap-band { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 14.5px; text-align: center; }
.airgap-band .icon { color: var(--accent); }

/* ---------- Networks ---------- */

.chains { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chain { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 560; font-size: 15px; box-shadow: var(--shadow-sm); }
.chain img { width: 30px; height: 30px; }

/* ---------- Compatible wallets ---------- */

.compat { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compat-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.compat-group h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 620; }
.compat-group h3 .tag { margin-left: auto; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.compat-group > p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.compat-chain { margin-top: 22px; }
.compat-chain-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.compat-chain-label img { width: 16px; height: 16px; }
.wallet-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.wallet-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 520; }
.wallet-pill img { width: 24px; height: 24px; border-radius: 7px; }
.wallet-pill.featured { border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------- Gallery ---------- */

.gallery { display: flex; gap: 28px; overflow-x: auto; padding: 8px var(--gutter) 40px; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gallery figcaption { font-size: 14.5px; font-weight: 550; color: var(--muted); text-align: center; max-width: 240px; }
.gallery-wrap { position: relative; }
.gallery-wrap::before, .gallery-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 64px; z-index: 2; pointer-events: none; }
.gallery-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-soft), transparent); }
.gallery-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg-soft), transparent); }
.gallery > :first-child { margin-left: auto; }
.gallery > :last-child { margin-right: auto; }
.gallery-nav { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.gallery-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background 0.15s, opacity 0.15s; }
.gallery-nav button:hover { background: var(--surface-2); }
.gallery-nav button[disabled] { opacity: 0.35; cursor: default; }
.gallery-nav .icon { width: 18px; height: 18px; }
.gallery-nav .prev .icon { transform: rotate(180deg); }
.gallery-wrap.is-static .gallery-nav { display: none; }

/* ---------- Spec / code card ---------- */

.spec {
  background: #0c0d10; color: #d9dce3; border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg);
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; overflow: hidden; box-shadow: var(--shadow-lg);
}
.spec-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.07); color: #8b909b; font-size: 12.5px; }
.spec-head i { width: 11px; height: 11px; border-radius: 50%; background: #2a2c31; display: inline-block; }
.spec-head span { margin-left: 8px; }
.spec-body { padding: 18px 22px 22px; overflow-x: auto; }
.spec-row { display: grid; grid-template-columns: 128px minmax(150px, auto) 1fr; gap: 0 18px; white-space: nowrap; }
.spec-row .c { justify-self: start; }
.spec-title { margin-bottom: 4px; }
.spec .k { color: #8b909b; }
.spec .v { color: #6be3a4; }
.spec .s { color: #f3d79b; }
.spec .c { color: #5b606b; }

/* ---------- Callout ---------- */

.callout { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius); background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.callout .icon { width: 22px; height: 22px; color: var(--warn); margin-top: 1px; }
.callout strong { display: block; font-weight: 620; }
.callout p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.callout-accent { background: var(--accent-soft); border-color: var(--accent-line); }
.callout-accent .icon { color: var(--accent); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform 0.2s ease, background 0.2s; }
.faq summary .plus .icon { width: 14px; height: 14px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--surface-2); }
.faq .answer { padding: 0 52px 26px 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.faq .answer p + p { margin-top: 12px; }

/* ---------- Download / CTA ---------- */

.cta { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 72px 64px; background: #0c0d10; color: #f3f4f6; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 20%, rgba(107,227,164,0.16), transparent 60%), radial-gradient(40% 60% at 10% 100%, rgba(107,227,164,0.08), transparent 70%); pointer-events: none; }
.cta-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.cta h2 { color: #fff; }
.cta .lead { color: #a3a8b3; margin-top: 16px; }
.cta .stores { margin-top: 32px; }
.dl-cards { display: grid; gap: 14px; }
.dl-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.dl-card img.app { width: 56px; height: 56px; border-radius: 13px; }
.dl-card b { display: block; font-size: 16.5px; color: #fff; font-weight: 620; }
.dl-card span { display: block; color: #a3a8b3; font-size: 14px; margin-top: 2px; }
.dl-card .qr { width: 76px; height: 76px; padding: 6px; border-radius: 10px; background: #fff; }
.dl-card .qr img { width: 100%; height: 100%; }
.dl-card .soon { font-size: 12.5px; color: #a3a8b3; border: 1px dashed rgba(255,255,255,0.2); padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.download-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.qr-box { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.qr-box .qr { width: 84px; height: 84px; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid rgba(10,10,12,0.08); }
.qr-box span { font-size: 13.5px; color: var(--muted); max-width: 140px; line-height: 1.4; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 14.5px; max-width: 320px; }
.footer h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer li a { color: var(--muted); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.footer li a:hover { color: var(--text); }
.footer li a .icon { width: 16px; height: 16px; }
.footer-langs { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; color: var(--faint); }
.footer-langs .icon { width: 17px; height: 17px; margin-top: 2px; flex: none; }
.footer .footer-lang-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.footer-lang-list a { color: var(--muted); }
.footer-lang-list a:hover { color: var(--text); }
.footer-lang-list a[aria-current="true"] { color: var(--text); font-weight: 600; }
.footer-bottom { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--faint); font-size: 13.5px; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.socials a:hover { color: var(--text); border-color: var(--line-strong); }
.socials .icon { width: 17px; height: 17px; }

/* ---------- Legal pages ---------- */

.legal-hero { padding: 72px 0 32px; }
.legal-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; }
.legal-hero .lead { margin-top: 18px; }
.legal-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.legal-meta span { padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--muted); }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.legal-tabs a { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 550; color: var(--muted); }
.legal-tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.legal-platforms { margin-top: 10px; }
.legal-platforms a { display: inline-flex; align-items: center; gap: 7px; }
.legal-platforms .icon { width: 15px; height: 15px; }
.legal-platforms a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-bottom: 96px; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; font-size: 14px; }
.toc b { display: block; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--text); }
.prose { max-width: 720px; font-size: 16.5px; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 23px; margin: 48px 0 14px; letter-spacing: -0.02em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose p { margin: 0 0 14px; color: #33363d; }
.prose ul { margin: 0 0 16px; padding-left: 1.2rem; }
.prose li { margin: 0 0 8px; color: #33363d; }
.prose li::marker { color: var(--faint); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .note { padding: 18px 20px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); margin: 20px 0; }
.lang-note { margin-top: 18px; font-size: 14px; color: var(--faint); display: none; }
html:not([lang="en"]) .lang-note { display: block; }


/* ---------- Page-specific pieces ---------- */

.duo .chip-a { left: -28px; top: 10px; }
.duo .chip-b { right: -12px; bottom: 70px; }
.hero-actions-2 { margin-top: 14px; }
.hero-signer .hero-bg { background: radial-gradient(60% 50% at 70% 40%, rgba(107,227,164,0.14), transparent 70%); }
.dl-note { margin-top: 18px; color: #8b909b; font-size: 14.5px; }
.app-android { width: 56px; height: 56px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #a4c639; }
.app-android .icon { width: 28px; height: 28px; }
.dl-card > .icon { color: #a3a8b3; width: 18px; height: 18px; }
a.dl-card { transition: background 0.15s, border-color 0.15s; }
a.dl-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.14); }
.faq .answer a, .fineprint a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.fineprint { margin-top: 24px; color: var(--faint); font-size: 13.5px; line-height: 1.6; max-width: 860px; }
.tag-muted { background: var(--surface-2) !important; color: var(--muted) !important; }
.compat-group h3 .icon { color: var(--accent); }

/* Security reviews (Signer page) and the link to them on the home page */
.audits { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.audit-card { display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.audit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.audit-head h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
.audit-head .tag { flex: none; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.audit-meta { margin-top: 4px; color: var(--faint); font-size: 13.5px; }
.audit-counts { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.audit-counts span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; background: var(--bg-soft); }
.audit-counts span + span { border-left: 1px solid var(--line); }
.audit-counts b { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.audit-counts small { color: var(--faint); font-size: 11.5px; text-align: center; line-height: 1.3; }
.audit-counts .is-low b { color: var(--warn); }
.audit-counts .is-medium b { color: var(--medium); }
.audits-platform { display: flex; align-items: center; gap: 10px; margin: 40px 0 16px; font-size: 17px; font-weight: 640; letter-spacing: -0.01em; }
.section-head + .audits-platform { margin-top: 0; }
.audits-platform .icon { width: 20px; height: 20px; color: var(--muted); }
.audit-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.audit-points li { display: flex; gap: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.audit-points .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.audit-open { padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--muted); font-size: 14px; line-height: 1.55; }
.audit-open strong { display: block; margin-bottom: 2px; color: var(--warn); font-size: 12.5px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.audit-card .btn { align-self: flex-start; margin-top: auto; }
.sec-reviews { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--accent); font-weight: 580; font-size: 15.5px; }
.sec-reviews .icon { width: 18px; height: 18px; }
.sec-reviews:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .audits { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .audit-card { padding: 22px; }
  .audit-counts small { font-size: 10.5px; }
}

/* Android APK: direct download with the hash and signing certificate to check */
.apk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; margin-top: 20px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.apk { scroll-margin-top: calc(var(--nav-h) + 24px); }
.apk h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
.apk h3 .icon { width: 22px; height: 22px; color: #3ddc84; }
.apk-copy p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.apk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
.apk-file { font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); overflow-wrap: anywhere; }
.apk-facts { display: grid; gap: 10px; align-content: start; min-width: 0; }
.apk-facts .copy-row { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.apk-facts .copy-value { font-size: 13px; line-height: 1.5; }
.apk-verify { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.apk-verify code { font-family: var(--font-mono); font-size: 12.5px; padding: 1px 5px; border-radius: 6px; background: var(--surface-2); }
.apk-more { justify-self: start; color: var(--accent); font-weight: 580; font-size: 14.5px; }
.apk-more:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .apk { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
}

/* Submit a wallet: a bar under the list, and a dialog with what to send */
.submit-bar { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.submit-bar p { flex: 1; color: var(--muted); font-size: 15px; line-height: 1.55; }
.submit-bar .btn { flex: none; }
.submit-bar-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.sheet { width: min(540px, calc(100% - 32px)); max-height: min(760px, calc(100vh - 48px)); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(10, 10, 12, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.sheet-close { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.sheet-close:hover { color: var(--text); }
.sheet-body { padding: 18px 20px 6px; overflow-y: auto; }
.sheet-lead { color: var(--muted); font-size: 15px; line-height: 1.6; }
.sheet-body h4 { margin: 22px 0 8px; font-size: 12.5px; font-weight: 620; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.sheet-group { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.sheet-group > * + * { border-top: 1px solid var(--line); }
.copy-row { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; }
.copy-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.copy-label { font-size: 12.5px; font-weight: 600; color: var(--faint); }
.copy-value { font-family: var(--font-mono); font-size: 14.5px; overflow-wrap: anywhere; }
.copy-btn { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--muted); cursor: pointer; }
.copy-btn:hover { color: var(--text); }
.copy-btn .icon { width: 18px; height: 18px; grid-area: 1 / 1; }
.copy-btn .icon-done { opacity: 0; color: var(--accent); }
.copy-btn.is-copied .icon { opacity: 0; }
.copy-btn.is-copied .icon-done { opacity: 1; }
.sheet-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; }
.sheet-list strong { font-size: 15px; font-weight: 620; }
.sheet-list span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.sheet-note { display: flex; gap: 10px; margin: 18px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.sheet-note .icon { width: 18px; height: 18px; color: var(--warn); margin-top: 1px; }
.sheet-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.sheet-foot .btn { width: 100%; justify-content: center; }
@media (max-width: 640px) {
  .submit-bar { flex-direction: column; align-items: stretch; text-align: left; }
  .submit-bar-icon { display: none; }
  .submit-bar .btn { justify-content: center; }
  .sheet { width: 100%; max-width: none; max-height: calc(100vh - 24px); margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
}

.glow { position: absolute; inset: 10% 5%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent); filter: blur(10px); }
.pair { display: flex; gap: 22px; align-items: flex-start; }
.pair .phone { --w: 255px; }
.pair .phone:nth-child(2) { margin-top: 64px; }
.trio { display: flex; gap: 18px; align-items: flex-start; }
.trio .phone { --w: 205px; }
.trio .phone:nth-child(2) { margin-top: 48px; }
.trio .phone:nth-child(3) { margin-top: 96px; }

.net-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.net { display: flex; gap: 20px; align-items: flex-start; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.net > img { width: 44px; height: 44px; flex: none; }
.net-icons { display: flex; flex: none; }
.net-icons img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 3px var(--surface); }
.net-icons img + img { margin-left: -12px; }
.net h3 { font-size: 18px; font-weight: 620; }
.net p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.spec-wide { width: 100%; max-width: 560px; }

.mode-cards { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.mode-card .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.mode-card .ic .icon { width: 20px; height: 20px; }
.mode-card h3 { margin-top: 16px; font-size: 17px; font-weight: 620; letter-spacing: -0.015em; }
.mode-card p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.mode-card .btn-link { margin-top: 14px; font-size: 14.5px; }
.mode-card-dark { background: #0d0e11; border-color: rgba(255,255,255,0.08); }

.chains-strip { padding: 22px 0; }
.chains-strip .chain { box-shadow: none; background: transparent; }

.theme-dark .section-soft { background: var(--bg-soft); }
.theme-dark .cta { background: #111216; border: 1px solid rgba(255,255,255,0.07); }
.theme-dark .grid-bg { opacity: 0.35; }
.theme-dark .hero-bg { background: radial-gradient(60% 50% at 70% 40%, rgba(107,227,164,0.12), transparent 70%); }
.theme-dark .chain, .theme-dark .wallet-pill { background: var(--surface); }
.theme-dark .prose p, .theme-dark .prose li { color: #c9cdd4; }

.notfound { min-height: calc(100vh - var(--nav-h) - 300px); display: flex; align-items: center; }

@media (max-width: 1100px) {
  .product-shot .phone { --w: 190px; }
  .trio .phone { --w: 170px; }
  .pair .phone { --w: 220px; }
}
@media (max-width: 900px) {
  .net-grid, .mode-cards { grid-template-columns: 1fr; }
  .duo .chip-a { left: 0; top: 70px; }
  .duo .chip-b { right: 0; bottom: 40px; }
}
@media (max-width: 640px) {
  .pair .phone { --w: 160px; }
  .pair .phone:nth-child(2) { margin-top: 40px; }
  .trio { gap: 10px; }
  .trio .phone { --w: 112px; }
  .trio .phone:nth-child(2) { margin-top: 28px; }
  .trio .phone:nth-child(3) { margin-top: 56px; }
  .net { padding: 22px; }
  .spec { font-size: 12px; }
  .spec-row { grid-template-columns: 112px auto; }
  .spec-row .c { display: none; }
}

/* ---------- Reveal motion ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .product { padding: 40px 32px 0; min-height: 0; }
  .features, .features-4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step:nth-child(2) .flow-arrow { display: none; }
  .trust-row { grid-template-columns: repeat(3, 1fr); }
  .trust-item:nth-child(4) { border-left: 0; padding-left: 0; }
  .trust-item { border-top: 1px solid var(--line); }
  .trust-item:nth-child(-n+3) { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .section { padding: 80px 0; }
  .section-tight { padding: 56px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-grid, .split, .cta-grid, .products, .compat { grid-template-columns: 1fr; }
  :lang(th) .display { font-size: clamp(26px, calc(9.2vw - 4px), 48px); }
  .split { gap: 48px; }
  .split.reverse .split-visual { order: 0; }
  .split-visual { min-height: 0; }
  .hero-visual { min-height: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .cta { padding: 48px 28px; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: none; }
  .duo { height: 560px; max-width: 460px; }
  .duo .phone { --w: 250px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .features, .features-4 { grid-template-columns: 1fr; }
  .feature { padding: 26px 22px; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { display: none; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 16px 12px; font-size: 13.5px; border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line) !important; }
  .trust-item:nth-child(-n+2) { border-top: 0 !important; }
  .trust-item:nth-child(5) { grid-column: 1 / -1; }
  .product { padding: 32px 22px 0; border-radius: var(--radius-lg); }
  .product h3 { font-size: 28px; }
  .product-shot { height: 340px; }
  .product-shot .phone { --w: 200px; }
  .product-shot .phone + .phone { display: none; }
  .duo { height: 470px; max-width: 340px; }
  .duo .phone { --w: 205px; }
  .float-chip { font-size: 12.5px; padding: 8px 12px 8px 8px; }
  .float-chip .ic { width: 28px; height: 28px; }
  .float-chip small { display: none; }
  .stat { padding: 20px 18px; }
  .stores .store { flex: 1 1 auto; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .faq summary { font-size: 16.5px; padding: 20px 0; }
  .faq .answer { padding-right: 0; }
  .dl-card { grid-template-columns: 48px 1fr; }
  .dl-card img.app { width: 48px; height: 48px; }
  .dl-card .qr, .dl-card .soon { grid-column: 2; justify-self: start; }
  .dl-card .qr { display: none; }
  .qr-box { display: none; }
  .brand-sub { display: none; }
  .lang-btn .lang-label { display: none; }
}
