/* Hummingbird 2026 design: "Midnight" (Direction A).
   Used by pages built from the templates in src/v2/. */

:root {
  --ink: #0A0E17;
  --band: #0D1320;
  --surface: #121A2A;
  --raised: #1A2438;
  --line: #26324A;
  --line-soft: #1A2438;
  --footer: #070A11;
  --text: #EEF2F7;
  --soft: #C9D2E0;
  --muted: #9AA6BC;
  --faint: #6F7C94;
  --teal: #34CAC6;
  --teal-hover: #7FE0DC;
  --teal-tile: #5FD6D3;
  --teal-deep: #0B7C79;
  --indigo: #6568E0;
  --indigo-text: #9A9CF7;
  --paper: #F4F6FA;
  --paper-2: #E7EBF2;
  --paper-line: #DDE3EC;
  --paper-text: #4A5568;
  --paper-body: #1E293B;

  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
body { overflow-x: clip; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 14px; background: var(--teal); color: var(--ink); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
.h1 { font-size: clamp(46px, 6vw, 80px); line-height: 1; letter-spacing: -0.035em; }
.h2 { font-size: clamp(34px, 4.2vw, 58px); }
.h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.025em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); }
.body-lg { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.eyebrow--indigo { color: var(--indigo-text); }
.mono { font-family: var(--mono); }
.fine { font-size: 14px; line-height: 1.6; color: var(--faint); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--body); cursor: pointer; border: 0;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.btn--teal { background: var(--teal); color: var(--ink); }
.btn--teal:hover { background: var(--teal-hover); color: var(--ink); }
.btn--store { min-height: 56px; padding: 0 24px; border-radius: 16px; font-size: 17px; font-weight: 700; }
.btn--light { background: var(--text); color: var(--ink); }
.btn--light:hover { background: #FFFFFF; color: var(--ink); }
.btn--outline { border: 1px solid #3A4868; color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--text); color: var(--text); }
.btn__stack { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn__stack small { font-size: 12px; font-weight: 500; }
.btn--outline .btn__stack small { color: var(--muted); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; font-weight: 600; }
.arrow-link svg { transition: transform .25s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
.store-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Risk bar */
.risk { padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: #B8C2D4; text-align: center; }
.risk strong { color: var(--text); font-weight: 600; }
.risk__short { display: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 14, 23, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.site-header__inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 32px; }
.brand span { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.nav { display: flex; gap: 40px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { font-weight: 700; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; }

/* Light pages (Learn, Support) */
.theme-light { background: var(--paper); color: var(--ink); }
.theme-light .risk { background: var(--paper-2); border-color: var(--paper-line); color: #334155; }
.theme-light .risk strong { color: var(--ink); }
.theme-light .site-header { background: rgba(255, 255, 255, .94); border-color: var(--paper-line); }
.theme-light .brand, .theme-light .brand:hover { color: var(--ink); }
.theme-light .nav a { color: #334155; }
.theme-light .nav a:hover, .theme-light .nav a[aria-current="page"] { color: var(--ink); }
.theme-light .btn--teal { background: var(--ink); color: #FFFFFF; }
.theme-light .btn--teal:hover { background: #1E293B; color: #FFFFFF; }
.theme-light .menu-btn { border-color: var(--paper-line); color: var(--ink); }
.theme-light main a { color: var(--teal-deep); }
.theme-light main a:hover { color: #075B59; }

/* Motion */
@keyframes hb-spin { to { transform: rotate(360deg); } }
@keyframes hb-spin-rev { to { transform: rotate(-360deg); } }
@keyframes hb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes hb-marquee { to { transform: translateX(-50%); } }
@keyframes hb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes hb-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.lift { transition: transform .35s var(--ease), border-color .35s; }
.lift:hover { transform: translateY(-6px); border-color: var(--teal) !important; }
.float { animation: hb-float 6s ease-in-out infinite; }
.float--late { animation-delay: -3s; }
.pulse { animation: hb-pulse 2.4s ease-in-out infinite; }

/* Phone frame around real app screenshots */
.phone { position: relative; width: 300px; height: 552px; flex: none; }
.phone, .phone__body { display: block; }
.phone__screen, .phone__island, .phone__home { display: flex; }
.phone__screen { flex-direction: column; }
.legacy .phone { margin: 8px auto 24px; }
.legacy .phone img { width: 100%; height: auto; margin: 0; }
@media (min-width: 768px) and (max-width: 900px) { .legacy .phone { zoom: .85; } }
.phone__key { position: absolute; width: 4px; background: #2C323C; }
.phone__key--1 { left: 0; top: 104px; height: 26px; border-radius: 2px 0 0 2px; }
.phone__key--2 { left: 0; top: 148px; height: 48px; border-radius: 2px 0 0 2px; }
.phone__key--3 { left: 0; top: 206px; height: 48px; border-radius: 2px 0 0 2px; }
.phone__key--4 { right: 0; top: 168px; height: 76px; border-radius: 0 2px 2px 0; }
.phone__body { position: absolute; left: 3px; top: 0; width: 294px; height: 552px; padding: 9px; border-radius: 52px; background: #15181E; border: 1px solid #3A4150; }
.phone__screen { height: 100%; border-radius: 43px; overflow: hidden; background: #F9FBFC; display: flex; flex-direction: column; }
.phone__island { height: 38px; flex: none; display: flex; justify-content: center; padding-top: 9px; }
.phone__island::before { content: ""; width: 80px; height: 23px; border-radius: 12px; background: #000; }
.phone__screen img { display: block; width: 100%; height: auto; }
.phone__home { flex: 1; background: #000; display: flex; align-items: center; justify-content: center; }
.phone__home::before { content: ""; width: 96px; height: 4px; border-radius: 2px; background: #8E949E; }

/* Scale a fixed-size composition down on small screens */
.scaler { position: relative; }
.scaler__inner { position: absolute; left: 0; top: 0; transform-origin: top left; }

/* Hero */
.hero { padding: 80px 0 104px; overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--soft); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero__note { font-size: 15px; color: var(--muted); }
.hero__note a { font-weight: 600; }
.hero__stage { --scale: 1; height: calc(740px * var(--scale)); }
.hero__stage .scaler__inner { width: 568px; height: 800px; transform: scale(var(--scale)); }
.ring { position: absolute; border-radius: 50%; }
.ring--outer { top: 90px; left: -16px; width: 600px; height: 600px; border: 1px solid var(--line-soft); animation: hb-spin 60s linear infinite; }
.ring--inner { top: 180px; left: 74px; width: 420px; height: 420px; border: 1px solid var(--line); animation: hb-spin-rev 90s linear infinite; }
.ring__spot { position: absolute; transform: translate(-50%, -50%); }
.ring__dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); }
.chip { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 600 14px var(--mono); white-space: nowrap; animation: hb-spin-rev 60s linear infinite; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.chip--indigo::before { background: var(--indigo-text); }
.swap { position: absolute; transform-origin: top left; transition: left .9s var(--ease), top .9s var(--ease), transform .9s var(--ease), opacity .9s; }
.swap.is-front { left: 262px; top: 180px; z-index: 2; transform: scale(1); opacity: 1; }
.swap.is-back { left: 12px; top: 40px; z-index: 1; transform: scale(.88); opacity: .72; }
.toggle { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.toggle button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #3A4868; background: transparent; color: var(--soft); font: 600 15px var(--body); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.toggle button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--ink); }

/* Markets strip */
.marquee { margin-bottom: 72px; padding: 22px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: hb-marquee 45s linear infinite; }
.marquee__list { display: flex; align-items: center; gap: 36px; padding-right: 36px; margin: 0; list-style: none; }
.marquee__list li { display: flex; align-items: center; gap: 36px; font: 600 16px var(--mono); color: var(--soft); white-space: nowrap; }
.marquee__list li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* Highlights */
.highlights { padding-bottom: 112px; }
.highlights__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
.highlights__grid div { display: flex; flex-direction: column; gap: 10px; }
.highlights__grid strong { font: 700 34px/1.1 var(--display); letter-spacing: -0.02em; }
.highlights__grid span { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Section scaffolding */
.section { padding: 128px 0; }
.band { background: var(--band); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: end; margin-bottom: 56px; }
.section-head__title { display: flex; flex-direction: column; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 24px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { padding: 36px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.card h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.icon-tile { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--raised); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.icon-tile--indigo { color: var(--indigo-text); }
.card--soon { background: transparent; border-style: dashed; border-color: #3A4868; flex-direction: row; gap: 24px; align-items: flex-start; }
.card--soon .icon-tile { color: var(--indigo-text); }
.card__title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.badge--soon { background: #262A5C; color: #C7C8FB; }
.badge--new { background: var(--teal); color: var(--ink); }
.ways__soon { margin-top: 24px; }
.ways__note { margin-top: 24px; }

/* Split sections */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; align-items: center; }
.ticks { display: flex; flex-direction: column; gap: 14px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 17px; }
.ticks li { display: flex; align-items: center; gap: 12px; }
.ticks svg { flex: none; color: var(--teal); }
.panel { position: relative; border-radius: 32px; background: var(--band); border: 1px solid var(--line-soft); }
.panel--surface { background: var(--surface); border-color: var(--line); }
.callouts { --scale: 1; height: calc(700px * var(--scale)); }
.callouts .scaler__inner { width: 552px; height: 700px; transform: scale(var(--scale)); }
.callouts .phone { position: absolute; left: 126px; top: 70px; }
.callout { position: absolute; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--teal); font-size: 14px; font-weight: 600; white-space: nowrap; }
.callout::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.showcase { height: 720px; display: flex; align-items: center; justify-content: center; }

/* Funding band */
.fund { padding: 72px; border-radius: 36px; background: var(--teal); color: var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.fund p { color: #0F3B3A; }
.fund__links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 8px; }
.fund a { color: var(--ink); font-size: 17px; font-weight: 700; }
.fund a:hover { color: var(--ink); text-decoration: underline; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { padding: 24px; border-radius: 20px; background: var(--teal-tile); display: flex; flex-direction: column; gap: 14px; font-size: 18px; font-weight: 700; }
.tile--ink { background: var(--ink); color: var(--text); }
.tile--ink strong { font: 600 28px var(--mono); color: var(--teal); }

/* Rows with icon */
.rows { display: flex; flex-direction: column; }
.sec-row { display: flex; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.sec-row:last-child { border-bottom: 1px solid var(--line); }
.sec-row h3 { font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.sec-row p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Learn grid (light band) */
.learn { padding: 120px 0; background: var(--paper); color: var(--ink); }
.learn__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.learn__head p { color: var(--paper-text); margin-top: 16px; }
.learn a { color: var(--teal-deep); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.guide { min-height: 200px; padding: 32px; border-radius: 24px; background: #FFFFFF; border: 1px solid var(--paper-line); display: flex; flex-direction: column; gap: 14px; }
.learn .guide { color: var(--ink); }
.guide__num { font: 600 14px var(--mono); color: var(--teal-deep); }
.guide__title { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.guide__text { font-size: 16px; line-height: 1.55; color: var(--paper-text); }
.learn .guide--feature { margin-top: 20px; padding: 36px 40px; background: var(--ink); border-color: var(--ink); color: var(--text); flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; min-height: 0; }
.guide--feature .guide__num { color: var(--teal); }
.guide--feature .guide__text { color: var(--muted); }
.guide--feature__main { display: flex; align-items: center; gap: 28px; }
.circle-arrow { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: var(--ink); display: flex; align-items: center; justify-content: center; }

/* CTA */
.cta { padding: 72px; border-radius: 36px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.cta .h1 { font-size: clamp(44px, 5vw, 68px); }

/* Footer */
.site-footer { padding: 80px 0 56px; background: var(--footer); border-top: 1px solid var(--line-soft); color: var(--text); }
.site-footer__grid { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.site-footer__about { display: flex; flex-direction: column; gap: 18px; padding-right: 48px; }
.site-footer__about p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.site-footer__social { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.site-footer__col { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.site-footer__col h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.site-footer__col a { color: var(--soft); }
.site-footer__col a:hover { color: var(--text); }
.site-footer__risk { margin-top: 56px; padding: 24px 28px; border-radius: 18px; border: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--muted); }
.site-footer__risk strong { color: var(--text); }

/* Cookie notice */
.cookie { position: fixed; left: 50%; bottom: 20px; z-index: 60; width: min(760px, 100% - 32px); transform: translateX(-50%); padding: 16px 18px 16px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--soft); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; line-height: 1.5; }
.cookie[hidden] { display: none; }
.cookie a { font-weight: 600; }

/* Page hero (sub pages) */
.page-hero { padding: 104px 0 96px; }
.page-hero__title { max-width: 1080px; font-size: clamp(46px, 6.4vw, 88px); line-height: 1; letter-spacing: -0.035em; }
.page-hero .lede { max-width: 700px; margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 14px; color: var(--paper-text); }
.crumbs a { font-weight: 600; }

/* About */
.about-mission { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; padding: 96px 0; border-top: 1px solid var(--line-soft); }
.about-mission__body { grid-column: span 2; display: flex; flex-direction: column; gap: 24px; }
.about-mission__body p:first-child { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; color: var(--text); }
.stat-big { font: 700 56px/1 var(--display); letter-spacing: -0.03em; color: var(--teal); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.principle { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; border-top: 2px solid var(--line); }
.principle:first-child { border-top-color: var(--teal); }
.principle h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.principle p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { display: flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.link-card { min-height: 220px; padding: 40px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); color: var(--text); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.link-card:hover { color: var(--text); }
.link-card__title { display: block; margin-top: 10px; font: 700 36px/1.1 var(--display); letter-spacing: -0.02em; }

/* Security */
.sec-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; padding: 96px 0; }
.sec-visual { position: relative; height: 480px; display: flex; align-items: center; justify-content: center; }
.sec-visual .ring--dashed { width: 440px; height: 440px; border: 1px dashed var(--line); animation: hb-spin 40s linear infinite; }
.sec-visual .ring--solid { width: 300px; height: 300px; border: 1px solid var(--line); }
.sec-visual__core { position: relative; width: 168px; height: 168px; border-radius: 44px; background: var(--surface); border: 1px solid var(--teal); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.sec-visual .callout { border-color: var(--line); }
.toc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 96px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc a { display: flex; align-items: center; gap: 12px; padding: 20px 0; color: var(--text); font-size: 16px; font-weight: 600; }
.toc span { font: 600 13px var(--mono); color: var(--teal); }
.kicker { font: 600 14px var(--mono); color: var(--teal); }
.card__stat { font: 700 40px var(--display); color: var(--teal); }
.checklist { margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 1.5; }
.checklist li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist svg { flex: none; margin-top: 2px; color: var(--teal); }
.checklist strong { font-weight: 600; }
.checklist span span { color: var(--muted); }
.infra { padding: 56px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.infra ul { grid-column: span 2; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; font-size: 16px; line-height: 1.5; color: var(--soft); }
.infra li { padding: 14px 0; border-top: 1px solid var(--line); }
.box { padding: 44px; border-radius: 28px; background: var(--band); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.box h2 { font: 700 36px/1.1 var(--display); letter-spacing: -0.025em; }
.box p { font-size: 17px; line-height: 1.65; color: var(--muted); }

/* Learn article */
.article-layout { display: flex; gap: 96px; align-items: flex-start; padding-bottom: 120px; }
.article-aside { position: sticky; top: 108px; width: 300px; flex: none; display: flex; flex-direction: column; gap: 24px; }
.guide-nav { padding: 12px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--paper-line); display: flex; flex-direction: column; gap: 2px; }
.theme-light .guide-nav a { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; color: #334155; font-size: 16px; }
.theme-light .guide-nav a:hover { background: var(--paper); color: var(--ink); }
.guide-nav span { font: 13px var(--mono); color: #64748B; }
.theme-light .guide-nav a[aria-current="page"] { background: #E3F6F5; color: var(--ink); font-weight: 700; }
.guide-nav a[aria-current="page"] span { color: var(--teal-deep); }
.promo { padding: 24px; border-radius: 20px; background: var(--ink); color: var(--text); display: flex; flex-direction: column; gap: 12px; }
.promo strong { font-size: 18px; font-weight: 600; }
.promo p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.theme-light .promo a { color: var(--teal); font-size: 15px; font-weight: 600; }
.article { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.article h2 { font: 700 40px/1.1 var(--display); letter-spacing: -0.025em; margin-top: 24px; }
.article h2:first-child { margin-top: 0; }
.article > p { font-size: 19px; line-height: 1.7; color: var(--paper-body); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 28px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--paper-line); display: flex; flex-direction: column; gap: 8px; }
.stat strong { font: 700 44px var(--display); letter-spacing: -0.02em; color: var(--teal-deep); }
.stat strong.stat--ink { color: var(--ink); }
.stat span { font-size: 16px; line-height: 1.5; color: #334155; }
.stat small { font-size: 13px; color: #64748B; }
.definition { padding: 32px; border-radius: 20px; background: var(--ink); color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.definition p { font: 600 28px/1.3 var(--display); letter-spacing: -0.01em; }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); }
.definition .label { color: var(--teal); }
.example { padding: 36px; border-radius: 24px; background: #FFFFFF; border: 1px solid var(--paper-line); display: flex; flex-direction: column; gap: 24px; }
.example p { font-size: 18px; line-height: 1.65; color: var(--paper-body); }
.flow { display: flex; align-items: center; gap: 20px; }
.flow__item { flex: 1; padding: 20px 24px; border-radius: 16px; background: var(--paper); border: 1px solid transparent; display: flex; flex-direction: column; gap: 4px; }
.flow__item strong { font: 600 26px var(--mono); }
.flow__item span { font-size: 15px; color: var(--paper-text); }
.flow__item--hl { background: #E3F6F5; border-color: var(--teal); }
.flow__arrow { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.flow__arrow--plain { background: transparent; color: var(--teal-deep); animation: hb-nudge 2.4s ease-in-out infinite; }
.kind { padding: 24px 28px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--paper-line); display: flex; gap: 20px; align-items: flex-start; }
.kind__tag { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: var(--teal); display: flex; align-items: center; justify-content: center; font: 600 15px var(--mono); }
.kind h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.kind p { font-size: 16px; line-height: 1.6; color: var(--paper-text); }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compare div { padding: 28px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--paper-line); display: flex; flex-direction: column; gap: 10px; }
.compare div.compare--hl { background: #E3F6F5; border-color: var(--teal); }
.compare strong { font: 700 30px var(--display); }
.compare span { font-size: 15px; line-height: 1.55; color: var(--paper-text); }
.warning { padding: 32px; border-radius: 20px; background: #FFF4E5; border: 1px solid #F2C27A; color: #5C3200; display: flex; gap: 20px; align-items: flex-start; }
.warning h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.warning p { font-size: 16px; line-height: 1.6; }
.next-card { margin-top: 16px; padding: 32px 36px; border-radius: 24px; background: #FFFFFF; border: 1px solid var(--paper-line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.theme-light main .next-card { color: var(--ink); }
.next-card__title { display: block; margin-top: 6px; font: 700 32px var(--display); letter-spacing: -0.02em; }
.next-card .circle-arrow { width: 56px; height: 56px; background: var(--ink); color: #FFFFFF; }

/* Support */
.support-hero { padding: 88px 0 72px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.search { width: min(680px, 100%); margin-top: 12px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.search label { font-size: 14px; font-weight: 600; color: #334155; }
.search__box { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px; border-radius: 18px; background: #FFFFFF; border: 1px solid #C9D2E0; }
.search__box:focus-within { border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(52, 202, 198, .25); }
.search input { flex: 1; height: 100%; border: 0; outline: 0; background: transparent; font: 18px var(--body); color: var(--ink); }
.search__status { min-height: 20px; font-size: 14px; color: var(--paper-text); }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 96px; }
.topic { padding: 28px; border-radius: 22px; background: #FFFFFF; border: 1px solid var(--paper-line); display: flex; gap: 18px; align-items: flex-start; }
.theme-light main .topic { color: var(--ink); }
.topic .icon-tile { width: 48px; height: 48px; border-radius: 14px; background: #E3F6F5; color: var(--teal-deep); }
.topic strong { display: block; font-size: 20px; font-weight: 600; }
.topic small { font-size: 15px; color: var(--paper-text); }
.theme-light .lift:hover { border-color: var(--teal-deep) !important; }
.faq-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; padding-bottom: 104px; }
.faq-main { grid-column: span 2; display: flex; flex-direction: column; gap: 56px; }
.faq-group { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 110px; }
.faq-group[hidden] { display: none; }
.faq-list { border-radius: 22px; background: #FFFFFF; border: 1px solid var(--paper-line); }
.faq-list details { border-bottom: 1px solid #E7EBF2; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list details[hidden] { display: none; }
.faq-list summary { min-height: 72px; padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230B7C79' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center no-repeat; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(180deg); }
.faq-answer { padding: 0 28px 24px; max-width: 700px; font-size: 16px; line-height: 1.65; color: #334155; }
.faq-answer p + p, .faq-answer ul, .faq-answer ol, .faq-answer table { margin-top: 12px; }
.faq-answer table { border-collapse: collapse; }
.faq-answer td, .faq-answer th { padding: 6px 12px 6px 0; text-align: left; }
.hours { position: sticky; top: 108px; padding: 32px; border-radius: 22px; background: var(--ink); color: var(--text); display: flex; flex-direction: column; gap: 18px; }
.hours h2 { font-size: 22px; font-weight: 600; }
.hours table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 10px; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.hours thead th { font-size: 13px; font-weight: 600; color: var(--muted); border-bottom-color: var(--line); }
.hours tbody th { text-align: left; font-weight: 500; }
.hours td, .hours thead th:not(:first-child) { text-align: right; font-family: var(--mono); }
.hours thead th:first-child { text-align: left; font-family: var(--body); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.help { padding: 96px 0; background: #FFFFFF; border-top: 1px solid var(--paper-line); }
.help__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.help__card { padding: 32px; border-radius: 22px; background: var(--paper); border: 1px solid var(--paper-line); display: flex; flex-direction: column; gap: 14px; }
.help__card h3 { font-size: 22px; font-weight: 600; }
.help__card p { font-size: 16px; line-height: 1.6; color: #334155; }
.help__card .fine { color: var(--paper-text); }
.help__card .btn { align-self: flex-start; margin-top: auto; }
.theme-light main .help__card .btn--teal { color: #FFFFFF; }
.help__links { margin-top: auto; display: flex; flex-direction: column; gap: 4px; font-weight: 600; }

/* Tablet */
@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .hero__grid, .split, .sec-hero { gap: 48px; }
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer__about { grid-column: 1 / -1; padding-right: 0; }
  .article-layout { gap: 48px; }
  .article-aside { width: 260px; }
  .hero__stage { --scale: .78; }
  .callouts { --scale: .8; width: calc(552px * var(--scale)); margin-inline: auto; }
}

/* Small tablet and phone */
@media (max-width: 900px) {
  .nav, .site-header__actions .btn--teal { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header__inner { height: 68px; }
  .mobile-nav:not([hidden]) { display: flex; flex-direction: column; padding: 8px 24px 24px; border-top: 1px solid var(--line-soft); }
  .mobile-nav a { display: flex; align-items: center; min-height: 52px; font-size: 18px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line-soft); }
  .mobile-nav .btn { margin-top: 20px; color: var(--ink); border-bottom: 0; }
  .theme-light .mobile-nav { border-color: var(--paper-line); }
  .theme-light .mobile-nav a { color: var(--ink); border-color: var(--paper-line); }
  .theme-light .mobile-nav .btn { color: #FFFFFF; }

  .hero { padding: 40px 0 56px; }
  .hero__grid, .split, .section-head, .fund, .sec-hero, .about-mission, .faq-layout { grid-template-columns: 1fr; }
  .hero__stage { --scale: .72; margin-inline: auto; width: calc(568px * var(--scale)); }
  .toggle { justify-content: center; }
  .split--reverse > :first-child { order: 2; }
  .section { padding: 64px 0; }
  .section-head { gap: 20px; margin-bottom: 32px; }
  .cards, .cards--2, .principles, .topics, .help__grid, .guide-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .card--soon { padding: 24px; }
  .highlights { padding-bottom: 64px; }
  .highlights__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .highlights__grid strong { font-size: 24px; }
  .callouts { --scale: .6; width: calc(552px * var(--scale)); margin-inline: auto; }
  .showcase { height: 580px; }
  .fund { padding: 32px 24px; gap: 24px; }
  .learn { padding: 56px 0; }
  .learn__head { flex-direction: column; align-items: flex-start; }
  .learn .guide--feature { flex-direction: column; align-items: flex-start; padding: 28px; }
  .guide--feature__main { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta { padding: 40px 24px; align-items: center; text-align: center; }
  .cta .store-row { flex-direction: column; width: 100%; }
  .site-footer { padding: 48px 0 40px; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .about-mission { gap: 24px; padding: 56px 0; }
  .about-mission__body { grid-column: auto; }
  .infra { grid-template-columns: 1fr; padding: 32px 24px; }
  .infra ul { grid-column: auto; grid-template-columns: 1fr; }
  .toc { grid-template-columns: 1fr; margin-bottom: 56px; }
  .sec-visual { height: 360px; transform: scale(.8); }
  .article-layout { flex-direction: column; gap: 32px; }
  .article-aside { position: static; width: 100%; order: 2; }
  .faq-main { grid-column: auto; }
  .hours { position: static; }
  .page-hero { padding: 56px 0; }
  .support-hero { padding: 56px 0 40px; }
}

@media (max-width: 560px) {
  .risk { padding: 10px 20px; font-size: 12px; text-align: left; }
  .risk__full { display: none; }
  .risk__short { display: inline; }
  .wrap { width: calc(100% - 40px); }
  .hero__stage { --scale: .6; }
  .callouts { --scale: .56; }
  .store-row { flex-direction: column; }
  .store-row .btn { width: 100%; }
  .showcase { height: 540px; }
  .stats, .compare, .tiles { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow__arrow { align-self: center; transform: rotate(90deg); }
  .flow__arrow--plain { animation: none; }
  .link-card { min-height: 0; padding: 28px; }
  .sec-hero { overflow-x: clip; }
  .sec-visual { height: 320px; transform: scale(.68); }
  .cookie { bottom: 12px; padding: 10px 10px 10px 16px; gap: 12px; font-size: 13px; }
  .cookie .btn { min-height: 40px; padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Pages whose content still comes from the 2018 templates (src/content/).
   Restyles the old Bootstrap markup inside the new header and footer. */
.legacy { --l-body: var(--muted); --l-strong: var(--text); --l-card: var(--surface); --l-line: var(--line); --l-accent: var(--teal); padding-bottom: 96px; }
.theme-light .legacy { --l-body: #334155; --l-strong: var(--ink); --l-card: #FFFFFF; --l-line: var(--paper-line); --l-accent: var(--teal-deep); }
.legacy .container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.legacy .row { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; margin: 0 !important; padding: 0 !important; }
.legacy [class*="col-"] { flex: 1 1 100%; min-width: 0; padding: 0 !important; margin: 0 !important; float: none !important; }
@media (min-width: 768px) {
  .legacy .col-sm-2, .legacy .col-md-2 { flex: 2 1 0; }
  .legacy .col-sm-3, .legacy .col-md-3 { flex: 3 1 0; }
  .legacy .col-sm-4, .legacy .col-md-4 { flex: 4 1 0; }
  .legacy .col-sm-5, .legacy .col-md-5 { flex: 5 1 0; }
  .legacy .col-sm-6, .legacy .col-md-6 { flex: 6 1 0; }
  .legacy .col-sm-7, .legacy .col-md-7 { flex: 7 1 0; }
  .legacy .col-sm-8, .legacy .col-md-8 { flex: 8 1 0; }
  .legacy .col-sm-10, .legacy .col-md-10 { flex: 1 1 100%; max-width: 900px; margin-inline: auto !important; }
  .legacy .col-sm-12, .legacy .col-md-12, .legacy .col-xs-12 { flex: 1 1 100%; }
}
.legacy .vertical-center, .legacy .flex-vertical-center { align-items: center; }
.legacy .text-center { text-align: center; justify-content: center; }
.legacy .img-responsive, .legacy img { display: block; max-width: 100%; height: auto; }
.legacy .center, .legacy .margin-center, .legacy .text-center img { margin-inline: auto; }
.legacy .animated { opacity: 1 !important; animation: none !important; transform: none !important; }
.legacy section { padding: 40px 0 !important; margin: 0 !important; background: none !important; }
.legacy .section-space { padding: 40px 0 !important; }
.legacy > main > section:first-child, .legacy > section:first-child, .legacy #subpage-title-standard, .legacy .intro-section { padding: 88px 0 32px !important; }
.legacy h1 { margin: 0 0 20px !important; padding: 0 !important; font: 700 clamp(40px, 5vw, 72px)/1.02 var(--display) !important; letter-spacing: -0.035em !important; color: var(--l-strong); text-transform: none !important; }
.legacy p:has(+ h1) { margin: 0 0 16px !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--l-accent) !important; }
.legacy h1 ~ p { max-width: 760px; font-size: clamp(17px, 1.5vw, 20px) !important; }
.legacy .text-center h1 ~ p { margin-inline: auto !important; }
.legacy h2 { margin: 0 0 16px !important; padding: 0 !important; font: 700 clamp(28px, 3vw, 40px)/1.1 var(--display) !important; letter-spacing: -0.025em !important; color: var(--l-strong); text-transform: none !important; }
.legacy h3 { margin: 0 0 12px !important; padding: 0 !important; font: 600 22px/1.3 var(--body) !important; color: var(--l-strong); text-transform: none !important; }
.legacy h4, .legacy h5, .legacy h6 { margin: 0 0 10px !important; padding: 0 !important; font: 600 18px/1.35 var(--body) !important; color: var(--l-strong); text-transform: none !important; }
.legacy p, .legacy li, .legacy td, .legacy dd { font-size: 17px !important; line-height: 1.7 !important; color: var(--l-body) !important; font-weight: 400 !important; }
.legacy p { margin: 0 0 16px !important; }
.legacy br + br { display: none; }
.legacy .fat-text, .legacy strong, .legacy b { font-weight: 700 !important; color: var(--l-strong) !important; }
.legacy i, .legacy em { color: inherit; }
.legacy a:not([class]) { color: var(--l-accent); text-decoration: underline; text-underline-offset: 3px; }
.legacy ul, .legacy ol { margin: 0 0 20px; padding-left: 24px; }
.legacy li { margin: 0 0 8px; }
.legacy .teal-list, .legacy .humming-list { list-style: none; padding-left: 0; }
.legacy .teal-list > li, .legacy .humming-list > li { position: relative; padding-left: 26px; }
.legacy .teal-list > li::before, .legacy .humming-list > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--l-accent); }
.legacy .ghost-btn-teal, .legacy .ghost-btn-white {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 48px; max-width: none !important; width: auto !important;
  margin: 8px 0 !important; padding: 0 22px !important; border-radius: 999px !important; border: 1px solid var(--l-accent) !important;
  background: transparent !important; color: var(--l-accent) !important; font: 600 15px var(--body) !important; letter-spacing: 0.02em; text-decoration: none !important;
  transition: background-color .2s, color .2s;
}
.legacy .ghost-btn-teal:hover, .legacy .ghost-btn-white:hover { background: var(--l-accent) !important; color: var(--ink) !important; }
.theme-light .legacy .ghost-btn-teal:hover { color: #FFFFFF !important; }
.legacy .table-responsive { overflow-x: auto; margin-bottom: 20px; }
.legacy table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.legacy th, .legacy td { padding: 12px 14px !important; border: 0 !important; border-bottom: 1px solid var(--l-line) !important; text-align: left; vertical-align: top; }
.legacy th { font-size: 14px !important; font-weight: 600 !important; color: var(--l-strong) !important; }
.legacy .table-striped tbody tr:nth-child(odd) { background: var(--l-card); }
.legacy .card, .legacy .panel { margin: 0 0 12px !important; border: 1px solid var(--l-line) !important; border-radius: 18px !important; background: var(--l-card) !important; overflow: hidden; box-shadow: none !important; }
.legacy .card-header, .legacy .panel-heading { padding: 0 !important; background: none !important; border: 0 !important; }
.legacy .card-header h5, .legacy .card-header h4, .legacy .panel-title { margin: 0 !important; }
.legacy [data-toggle="collapse"] { display: flex !important; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 22px !important; font: 600 17px/1.4 var(--body) !important; color: var(--l-strong) !important; text-decoration: none !important; cursor: pointer; }
.legacy [data-toggle="collapse"]::after { content: "+"; flex: none; font: 400 24px/1 var(--body); color: var(--l-accent); transition: transform .3s var(--ease); }
.legacy [data-toggle="collapse"][aria-expanded="true"]::after { transform: rotate(45deg); }
.legacy .card-block, .legacy .panel-body, .legacy .card-body { padding: 0 22px 20px !important; }
.legacy .collapse:not(.in):not(.show) { display: none; }
.legacy input:not([type="checkbox"]):not([type="radio"]), .legacy select, .legacy textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--l-line); background: var(--l-card); color: var(--l-strong); font: 16px var(--body);
}
.legacy button, .legacy input[type="submit"] { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--teal); color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
.legacy iframe, .legacy video { max-width: 100%; }
.legacy hr { border: 0; border-top: 1px solid var(--l-line); margin: 32px 0; }

/* No divider lines between sections, around headings or between list items.
   Outlines of cards, buttons, inputs and table rows stay. */
.risk, .site-header, .band, .marquee, .site-footer,
.theme-light .risk, .theme-light .site-header { border-top: 0 !important; border-bottom: 0 !important; }
.highlights__grid { border-top: 0; padding-top: 0; }
.about-mission { border-top: 0; }
.toc { border: 0; gap: 8px; }
.toc a { padding: 14px 18px; border-radius: 14px; background: var(--surface); }
.principle, .principle:first-child { border-top: 0; padding-top: 0; }
.rows { gap: 12px; }
.sec-row, .sec-row:last-child { border: 0; padding: 20px 24px; border-radius: 20px; background: var(--surface); }
.checklist li, .checklist li:last-child { border: 0; padding: 12px 0; }
.infra li { border-top: 0; padding: 10px 0; }
.mobile-nav:not([hidden]), .theme-light .mobile-nav { border-top: 0; }
.mobile-nav a, .theme-light .mobile-nav a { border-bottom: 0; }
.faq-list { background: none; border: 0; display: flex; flex-direction: column; gap: 10px; }
.faq-list details, .faq-list details:last-child { border: 1px solid var(--paper-line); border-radius: 16px; background: #FFFFFF; }
.hours th, .hours td { border-bottom: 0; }
.legacy hr { display: none; }
.legacy section { border: 0 !important; }

/* Old content fixes */
.legacy .phone__video { flex: 1; width: 100%; min-height: 0; object-fit: cover; background: #000; display: block; }
.legacy .row:has(> .col-xs-6) { justify-content: center; gap: 12px; }
.legacy .col-xs-6 { flex: 0 1 auto !important; }
.legacy .ghost-btn-teal[style*="margin: 0 auto"], .legacy .ghost-btn-white[style*="margin: 0 auto"] { display: flex !important; width: fit-content !important; margin: 8px auto !important; }
.legacy .phone__screen:has(video) .phone__home { flex: 0 0 24px; }

/* Deposit page: payment methods and coins */
.legacy .pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 16px 0 40px; }
.legacy .pay-card { padding: 32px; border-radius: 24px; background: var(--l-card); border: 1px solid var(--l-line); display: flex; flex-direction: column; gap: 4px; }
.legacy .pay-card .ghost-btn-teal { align-self: flex-start; margin-top: auto !important; }
.legacy .pay-logos { display: flex; align-items: center; gap: 16px; height: 64px; margin-bottom: 16px; }
.legacy .pay-logos img { width: auto; height: 44px; margin: 0; }
.legacy .pay-logos img.pay-logo--wide { height: 30px; }
.legacy .coin-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.legacy .coin { margin: 0; padding: 24px 16px; border-radius: 20px; background: var(--l-card); border: 1px solid var(--l-line); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.legacy .coin img { width: 40px; height: 40px; margin: 0; }
.legacy .coin span { font-size: 15px; font-weight: 600; color: var(--l-strong); }
.legacy .coin-note { margin-top: 20px !important; text-align: center; }
@media (max-width: 767px) {
  .legacy .pay-grid { grid-template-columns: 1fr; }
  .legacy .coin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Small phones (320 to 380 px wide) */
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 380px) {
  .wrap, .legacy .container { width: calc(100% - 32px); }
  .h1 { font-size: 38px; }
  .h2 { font-size: 30px; }
  .page-hero__title { font-size: 40px !important; }
  .legacy h1 { font-size: 36px !important; }
  .legacy h2 { font-size: 27px !important; }
  .pill { white-space: normal; min-height: 0; padding: 6px 12px; font-size: 13px; line-height: 1.35; }
  .hero__stage { --scale: .5; }
  .callouts { --scale: .5; }
  .toggle button { padding: 0 14px; font-size: 14px; }
  .site-header__inner { gap: 12px; }
  .brand span { font-size: 20px; }
  .legacy .phone { zoom: .9; }
}
.help__card { min-width: 0; } .help__card a, .legacy a { overflow-wrap: anywhere; }
