/* Tonhub — first draft.
   Brand: Whales brandbook, Section II "TonWhales & Tonhub".
   Palette: main #564CE2 (violet) · #AAA5F0 (lavender); sub #FE415B (red) · #00BE80 (green) · #60BDFF (blue).
   Type: SF Pro Semibold (titles) / SF Pro Regular (text). Apple devices get SF from the system; Inter stands in elsewhere.
   Graphics: the diamond mark; rounded app-like panels; icons sit in rounded violet tiles. */

:root {
  --violet: #564ce2;
  --violet-2: #4237c9;
  --lavender: #aaa5f0;
  --lavender-soft: #eeedfc;
  --red: #fe415b;
  --green: #00be80;
  --blue: #60bdff;

  --ink: #14122b;
  --ink-2: #4a4862;
  --muted: #8a889e;
  --line: #e7e6f0;
  --line-dark: #2c2948;
  --paper: #ffffff;
  --mist: #f6f5fd;
  --night: #100e24;
  --on-dark-2: #aeacc6;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --r: 18px;
  --r-sm: 12px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

/* Placeholder copy the team still has to confirm (fees, entities, supported assets). */
.tbd { outline: 1px dashed currentColor; outline-offset: 2px; opacity: .75; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font); font-weight: 600; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.eyebrow {
  font: 600 13px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px; color: var(--violet);
}
.eyebrow .num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--violet); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .2; }
.dark .eyebrow, .cta .eyebrow { color: var(--lavender); }
.dark .eyebrow .num, .cta .eyebrow .num { background: var(--lavender); color: var(--night); }

/* Small diamond: the brand's accent device, echoing the mark */
.dia { width: 8px; height: 8px; background: currentColor; flex: none; display: inline-block; transform: rotate(45deg); border-radius: 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px;
  font: 600 15px/1 var(--font); text-decoration: none; border-radius: 999px;
  border: 1px solid var(--violet); transition: background .15s, color .15s; white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-2); }
.btn-ghost { background: transparent; color: var(--violet); }
.btn-ghost:hover { background: var(--violet); color: #fff; }
.on-dark .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.on-dark .btn-primary:hover { background: var(--lavender-soft); }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.on-dark .btn-ghost:hover { background: #fff; color: var(--ink); }
.arrow { transition: transform .15s; }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(3px); }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { width: 30px; height: 30px; }
.logo span { font: 700 21px/1 var(--font); letter-spacing: -0.03em; }
footer .logo, .on-dark .logo { color: #fff; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; height: 72px; gap: 32px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--violet); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-actions .btn { height: 42px; padding: 0 18px; font-size: 14px; }

.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, top .2s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: #fff; padding: 8px var(--gutter) 20px; max-height: calc(100vh - 64px); overflow-y: auto; }
.mobile-menu > a { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 20px/1.2 var(--font); letter-spacing: -0.02em; }
.mobile-menu > a span { font: 600 12px/1 var(--font); color: var(--violet); font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--mist); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before { /* soft violet glow behind the wallet */
  content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 140%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(86,76,226,.18), rgba(170,165,240,.10) 55%, transparent);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center;
  padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 8vw, 104px);
}
.origin { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 32px; color: var(--violet); }
.hero h1 .soft { color: var(--violet); }
.hero .lead { margin: 28px 0 40px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--ink); }
.facts div { padding: 18px 16px 0 0; }
.facts strong { display: block; font: 600 26px/1.1 var(--font); letter-spacing: -0.03em; }
.facts span { font-size: 14px; color: var(--ink-2); }

/* Panels (example transfer, TON Connect request) */
.panel {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; font-size: 15px;
  box-shadow: 0 1px 0 rgba(20,18,43,.02), 0 28px 64px -28px rgba(86,76,226,.45);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px dashed var(--line); }
.panel-head .logo img { width: 22px; height: 22px; }
.panel-head .logo span { font-size: 16px; }
.panel-head small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.amount { padding: 26px 0 22px; }
.amount .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.amount .value { white-space: nowrap; font: 600 clamp(30px, 3.2vw, 42px)/1.05 var(--font); letter-spacing: -0.04em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.rows { border-top: 1px solid var(--line); }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rows div span:first-child { color: var(--ink-2); }
.rows div span:last-child { white-space: nowrap; text-align: right; }
.rows .total { font-weight: 600; border-bottom: 0; }
.pos { color: var(--green); }
.status { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--violet); }


/* ---------- Trust bar ---------- */
.trustbar { background: var(--night); color: #fff; }
.trustbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trustbar .wrap > div { padding: 22px 24px 22px 0; display: flex; flex-direction: column; gap: 4px; }
.trustbar .wrap > div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.trustbar b { font: 600 15px/1.3 var(--font); display: flex; align-items: center; gap: 10px; }
.trustbar b .dia { width: 6px; height: 6px; background: var(--lavender); }
.trustbar span { font-size: 13.5px; color: var(--on-dark-2); }

/* ---------- Assets strip ---------- */
.assets { border-bottom: 1px solid var(--line); }
.assets .wrap { display: flex; align-items: center; gap: 32px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.assets p { margin: 0; font-size: 14px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--font); letter-spacing: .02em; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.chip i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--violet); color: #fff; font: 700 11px/1 var(--font); font-style: normal; }
.chip i.ton { background: #0098ea; }
.chip i.usdt { background: #26a17b; }
.assets .note { margin-left: auto; color: var(--muted); }

/* ---------- Sections ---------- */
section.block { padding: clamp(72px, 10vw, 128px) 0; }
.sec-head { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: end; margin: 28px 0 64px; }
.sec-head .lead { margin: 0; }

/* Icon tiles (brandbook: flat glyphs; Tonhub uses rounded app-style tiles) */
.tile { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--violet); color: #fff; }
.tile svg { width: 24px; height: 24px; }
.tile.soft { background: var(--lavender-soft); color: var(--violet); }

/* Cards row */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product { padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; background: #fff; }
.product .idx { font: 600 13px/1 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.product .tile { margin: 24px 0 22px; }
.product h3 { margin-bottom: 12px; }
.product p { margin: 0 0 20px; color: var(--ink-2); font-size: 15.5px; }
.product ul { list-style: none; margin: auto 0 0; padding: 0; font-size: 14px; }
.product li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.product li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; flex: none; background: var(--violet); transform: rotate(45deg); }
.swipe-hint { display: none; }

/* Transfer feature */
.feature { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.feature h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; }
.feature .lead { margin-top: 16px; font-size: 17px; }
.transfer { margin: 0; max-width: 560px; justify-self: end; width: 100%; }
.transfer .route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 22px 0; border-bottom: 1px dashed var(--line); }
.transfer .end small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.transfer .end b { display: block; font: 600 20px/1.25 var(--font); letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.transfer .end:last-child { text-align: right; }
.transfer .hop { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lavender-soft); color: var(--violet); }
.transfer .hop svg { width: 20px; height: 20px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 600 13px/1 var(--font); }
.badge.ok { background: rgba(0,190,128,.12); color: #008a5d; }
.badge.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* Security */
.trust { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.pillar { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.pillar:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.pillar .tile { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px; }
.pillar .tile svg { width: 20px; height: 20px; }
.pillar h3 { margin-bottom: 10px; font-size: 19px; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.request { max-width: 440px; }
.dapp { display: flex; align-items: center; gap: 12px; }
.dapp > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lavender-soft); color: var(--violet); font: 700 14px/1 var(--font); font-style: normal; flex: none; }
.dapp b { display: block; font: 600 15px/1.2 var(--font); }
.dapp small { display: block; color: var(--muted); font-size: 12.5px; }
.request-note { margin: 20px 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.request-actions { display: flex; gap: 8px; margin-top: 20px; }
.request-actions .btn { height: 44px; padding: 0 18px; font-size: 14px; cursor: default; }
.warning {
  margin-top: 20px; max-width: 440px; display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--r-sm); background: rgba(254,65,91,.08); border: 1px solid rgba(254,65,91,.25);
  font-size: 14.5px; color: var(--ink);
}
.warning svg { width: 22px; height: 22px; flex: none; color: var(--red); margin-top: 1px; }
.warning b { display: block; margin-bottom: 2px; }

/* How it works (dark) */
.dark { background: var(--night); color: #fff; }
.dark .lead { color: var(--on-dark-2); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; border-top: 1px solid rgba(255,255,255,.85); }
.flow-step { padding: 28px 0 8px; }
.flow-step .k { font: 600 13px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--lavender); display: flex; align-items: center; gap: 10px; }
.flow-step .k .dia { width: 6px; height: 6px; }
.flow-step .v { font: 600 clamp(24px, 2.6vw, 34px)/1.1 var(--font); letter-spacing: -0.03em; margin: 14px 0 10px; }
.flow-step p { margin: 0; color: var(--on-dark-2); font-size: 15.5px; max-width: 22em; }
.flow-arrow { display: flex; align-items: center; padding: 0 28px; color: var(--lavender); }
.onboard { margin-top: 88px; display: grid; grid-template-columns: 5fr 7fr; gap: 56px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; padding: 22px 0; border-top: 1px solid var(--line-dark); }
.steps li:last-child { border-bottom: 1px solid var(--line-dark); }
.steps li::before { content: "0" counter(s); font: 600 15px/1.6 var(--font); color: var(--lavender); }
.steps strong { display: block; font: 600 18px/1.4 var(--font); margin-bottom: 4px; }
.steps span { color: var(--on-dark-2); font-size: 15.5px; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.plan.featured { background: var(--violet); border-color: var(--violet); color: #fff; }
.plan .tag { font: 600 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan.featured .tag { color: var(--lavender-soft); }
.plan h3 { font-size: 30px; letter-spacing: -0.03em; margin: 14px 0 0; }
.plan .per { margin: 10px 0 0; font-size: 15.5px; color: var(--ink-2); }
.plan.featured .per { color: rgba(255,255,255,.8); }
.included { list-style: none; margin: 28px 0 32px; padding: 0; }
.included li { padding: 12px 0 12px 26px; border-top: 1px solid var(--line); position: relative; font-size: 15.5px; }
.plan.featured .included li { border-top-color: rgba(255,255,255,.22); }
.included li::before { content: ""; position: absolute; left: 1px; top: 20px; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.plan .btn { margin-top: auto; align-self: flex-start; }

.fees { margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--ink); }
.fees-head { padding: 28px 0 20px; }
.fees-head h3 { font-size: 24px; letter-spacing: -0.02em; }
.fees-head p { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fees-table { width: 100%; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.fees-table th { text-align: left; font: 600 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 0; border-bottom: 1px solid var(--line); }
.fees-table td { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fees-table .num { text-align: right; padding-left: 24px; white-space: nowrap; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; }
#faq details { border-top: 1px solid var(--line); }
#faq details:last-of-type { border-bottom: 1px solid var(--line); }
#faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font: 600 18px/1.4 var(--font); letter-spacing: -0.015em;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--violet),var(--violet)) center/14px 2px no-repeat, linear-gradient(var(--violet),var(--violet)) center/2px 14px no-repeat;
  transition: transform .2s;
}
#faq details[open] summary::after { transform: rotate(45deg); }
#faq details p { margin: 0 0 24px; color: var(--ink-2); max-width: 40em; }

/* Contact / CTA */
.cta { padding: clamp(72px, 10vw, 128px) 0; background: linear-gradient(160deg, var(--night) 0%, #241d6b 100%); color: #fff; }
.cta .lead { color: var(--on-dark-2); }
.cta-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: end; }
.cta h2 { font-size: clamp(40px, 6vw, 80px); line-height: 1; }
.cta .lead { margin: 24px 0 36px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px; border: 1px solid var(--ink); border-radius: 14px; background: var(--ink); text-decoration: none; color: #fff; transition: background .15s, color .15s; }
.store:hover { background: var(--violet); border-color: var(--violet); }
.on-dark .store { background: transparent; border-color: rgba(255,255,255,.35); }
.on-dark .store:hover { background: #fff; color: var(--ink); }
.store svg { width: 22px; height: 22px; }
.store small { display: block; font-size: 11px; opacity: .7; line-height: 1.1; }
.store b { display: block; font: 600 16px/1.2 var(--font); }
.text-link { display: inline-flex; gap: 8px; margin-top: 20px; font: 600 15px/1.3 var(--font); text-decoration: none; color: var(--violet); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.on-dark .text-link { color: var(--lavender); }
.contacts { display: grid; border-top: 1px solid rgba(255,255,255,.85); }
.contacts a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; font-size: 15.5px; }
.contacts span { color: var(--on-dark-2); }
.contacts a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.contacts b { font-weight: 500; text-align: right; }

/* Footer */
footer.site { background: var(--night); color: var(--on-dark-2); border-top: 1px solid var(--line-dark); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 32px; padding-bottom: 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }

/* Legal pages */
.legal { padding: clamp(56px, 8vw, 104px) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin: 24px 0 16px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal .updated { margin: 0; font-size: 14px; color: var(--muted); }
.legal ul { padding-left: 20px; margin: 8px 0 16px; }
.legal li { margin: 6px 0; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; margin: 16px 0 0; border-top: 1px solid var(--line); }
.legal dt, .legal dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal dt { font-weight: 600; color: var(--ink); padding-right: 16px; }
.legal dd { color: var(--ink-2); }
@media (max-width: 720px) { .legal dl { grid-template-columns: 1fr; } .legal dt { border-bottom: 0; padding-bottom: 0; } }

/* ---------- Responsive ---------- */
.hero-grid > *, .sec-head > *, .trust-grid > *, .faq-grid > *, .cta-grid > *, .onboard > *, .flow > *, .feature > * { min-width: 0; }
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: block; }
}
@media (min-width: 1201px) { .mobile-menu { display: none !important; } }
@media (max-width: 1024px) {
  .hero-grid, .sec-head, .onboard, .trust-grid, .faq-grid, .cta-grid, .feature { grid-template-columns: 1fr; gap: 40px; }
  .transfer { justify-self: start; }
  .products { grid-template-columns: 1fr 1fr; }
  .trustbar .wrap { grid-template-columns: 1fr 1fr; }
  .trustbar .wrap > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .trustbar .wrap > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { height: 64px; gap: 12px; }
  .nav-actions .btn { height: 38px; font-size: 13px; padding: 0 14px; }
  section.block, .cta { padding: 56px 0; }
  .sec-head { margin: 20px 0 32px; gap: 16px; }
  h1 { font-size: 46px; }
  h2 { font-size: 32px; }

  .hero-grid { padding-top: 36px; padding-bottom: 40px; gap: 32px; }
  .origin { font-size: 11px; margin-bottom: 20px; }
  .hero .lead { margin: 20px 0 28px; font-size: 17px; }
  .facts { margin-top: 36px; }
  .facts div { padding: 14px 8px 0 0; }
  .facts strong { font-size: 20px; }
  .facts span { font-size: 12px; line-height: 1.35; display: block; margin-top: 4px; }
  .panel { padding: 20px; }

  .trustbar .wrap > div, .trustbar .wrap > div + div { padding: 16px 12px 16px 0; border-left: 0; }
  .trustbar .wrap > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line-dark); }
  .trustbar b { font-size: 13.5px; }
  .trustbar span { font-size: 12px; line-height: 1.35; }
  .assets .wrap { gap: 12px; padding-top: 18px; padding-bottom: 18px; }
  .assets .note { margin-left: 0; }

  /* Cards become a swipeable row */
  .products {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none;
  }
  .products::-webkit-scrollbar { display: none; }
  .product { flex: 0 0 84%; scroll-snap-align: start; scroll-margin-left: var(--gutter); padding: 20px 20px 22px; }
  .product .tile { margin: 16px 0; }
  .swipe-hint { display: block; margin: 14px 0 0; font-size: 13px; color: var(--muted); }

  .transfer .route { grid-template-columns: 1fr; gap: 10px; }
  .transfer .end:last-child { text-align: left; }
  .transfer .hop { transform: rotate(90deg); }

  .flow { grid-template-columns: 1fr; }
  .flow-arrow { padding: 12px 0 0; transform: rotate(90deg); justify-content: flex-start; width: 24px; }
  .onboard { margin-top: 48px; gap: 24px; }
  .steps li { grid-template-columns: 44px 1fr; padding: 18px 0; }

  .plans { grid-template-columns: 1fr; }
  .plan .btn { width: 100%; justify-content: center; }
  .fees-table { font-size: 14.5px; }

  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(even) { padding: 24px 0; border-left: 0; }
  .request-actions { flex-direction: column; }
  .request-actions .btn { justify-content: center; }

  #faq summary { font-size: 16.5px; padding: 18px 36px 18px 0; }
  .cta h2 { font-size: 40px; }
  .contacts a { flex-direction: column; gap: 2px; }
  .contacts b { text-align: left; }
  footer nav { margin-left: 0; }
}
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  h1 { font-size: 40px; }
  h2 { font-size: 29px; }
  .cta h2 { font-size: 34px; }
  .facts strong { font-size: 18px; }
  .amount .value { font-size: 30px; }
}
@media (max-width: 480px) { .stores .store { flex: 1 1 100%; justify-content: center; } }

/* Hero phone screenshot (real app screen from the old tonhub.com) */
.phone-shot { margin: 0; justify-self: end; width: 100%; max-width: 520px; }
.phone-shot img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(86,76,226,.25)); }
@media (max-width: 1024px) { .phone-shot { justify-self: center; } }

/* Supported jurisdictions: flag list (flag pattern from the Ammer site) */
.jurisdictions { margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--ink); }
.region { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.region h4 { margin: 4px 0 0; font: 600 12px/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.flags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 20px; }
.flags li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.flag-ico { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(20,18,43,.12); flex: none; }
@media (max-width: 720px) {
  .region { grid-template-columns: 1fr; gap: 12px; }
  .flags { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .flags li { font-size: 14px; }
}

/* TON price strip under the navbar (static, not a scrolling ticker: two pairs don't need motion) */
.rates { border-top: 1px solid var(--line); background: var(--mist); font-size: 13px; font-variant-numeric: tabular-nums; }
.rates .wrap { display: flex; align-items: center; gap: 28px; height: 34px; white-space: nowrap; }
.rates-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; color: var(--violet); }
.rates-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0,190,128,.5); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 6px rgba(0,190,128,0); } 100% { box-shadow: 0 0 0 0 rgba(0,190,128,0); } }
@media (prefers-reduced-motion: reduce) { .rates-live i { animation: none; } }
.pair { display: inline-flex; align-items: baseline; gap: 8px; }
.pair b { font-weight: 600; color: var(--ink-2); }
.pair .px { font-weight: 600; color: var(--ink); }
.chg { font-weight: 600; }
.chg.up { color: #00a06c; }
.chg.down { color: var(--red); }
.rates-src { margin-left: auto; color: var(--muted); font-size: 12px; }
@media (max-width: 720px) {
  .rates .wrap { gap: 16px; height: 32px; font-size: 12.5px; }
  .rates-live, .rates-src { display: none; }
  .pair { gap: 6px; }
}
