/* ==========================================================================
   Ledger Pro: Landing Page Styles
   ========================================================================== */

:root {
  /* Brand palette (sourced from ledger_pro_icon_vibrant.svg) */
  --teal-950: #053b35;
  --teal-900: #0a4d48;
  --teal-800: #0d5c53;
  --teal-700: #0f6b5c;
  --teal-600: #17977f;
  --teal-500: #1fae90;
  --teal-400: #2bd9bc;
  --teal-100: #d9f2ec;

  --gold-700: #a9721f;
  --gold-600: #c9903a;
  --gold-500: #e4a343;
  --gold-300: #ffd27e;

  --rust-500: #ff7d46;
  --rust-700: #c94e1f;

  --ink-900: #0a2321;
  --ink-800: #16302c;
  --ink-600: #3c534e;
  --ink-400: #6d827d;

  --paper-0: #ffffff;
  --paper-50: #f7faf9;
  --paper-100: #f0f4f3;
  --paper-200: #e6ece9;

  --shadow-sm: 0 2px 8px rgba(5, 59, 53, 0.08);
  --shadow-md: 0 12px 32px rgba(5, 59, 53, 0.14);
  --shadow-lg: 0 24px 64px rgba(5, 59, 53, 0.22);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  --container: 1180px;
  --font-display: "Baloo 2", "Fredoka", ui-rounded, "Segoe UI Rounded", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* -------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Always reserve the scrollbar gutter so opening the mobile menu (which
     locks scrolling) never changes the viewport width — without this,
     browsers with a classic non-overlay scrollbar (most Windows browsers)
     hide it the instant scroll locks, and every fixed left:0/right:0 element
     (nav, mobile panel, its buttons) briefly renders at the wrong width,
     showing as a hard-cut edge on fixed-width rounded elements. */
  scrollbar-gutter: stable;
  overflow-y: scroll;
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--paper-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 0.5em;
  line-height: 1.15;
}
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: linear-gradient(180deg, #fff7e8, #fdecc8);
  border: 1px solid rgba(201, 144, 58, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-dark .eyebrow {
  color: var(--gold-300);
  background: rgba(255, 210, 126, 0.12);
  border-color: rgba(255, 210, 126, 0.3);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.section-head p { color: var(--ink-600); font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(240, 244, 243, 0.78); }
.section-dark .section-head h2 { color: var(--paper-0); }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  color: var(--ink-900);
  box-shadow: 0 10px 24px rgba(201, 144, 58, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(201, 144, 58, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper-0);
  border: 1.5px solid rgba(240, 244, 243, 0.4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn-outline {
  background: transparent;
  color: var(--teal-900);
  border: 1.5px solid var(--teal-700);
}
.btn-outline:hover { background: var(--teal-900); color: var(--paper-0); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* -------------------------------------------------------------------------
   Nav
   ------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(247, 250, 249, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.nav.scrolled {
  border-bottom-color: var(--paper-200);
  box-shadow: 0 4px 24px rgba(5, 59, 53, 0.06);
  padding: 10px 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--teal-950); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-600);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--gold-600);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover { color: var(--teal-900); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--teal-900); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--paper-200);
  background: var(--paper-0);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink-900); position: relative; transition: all .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

.mobile-panel {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--paper-0);
  border-bottom: 1px solid var(--paper-200);
  box-shadow: var(--shadow-md);
  padding: 18px 28px 28px;
  z-index: 99;
}
.mobile-panel.open { display: block; }
.mobile-panel a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--paper-100);
  color: var(--ink-800);
}
.mobile-panel .btn { margin-top: 16px; width: 100%; }

.mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(10, 35, 33, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.mobile-backdrop.show { opacity: 1; visibility: visible; }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 160px 0 110px;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(43, 217, 188, 0.35), transparent 60%),
    linear-gradient(160deg, var(--teal-600) 0%, var(--teal-900) 46%, var(--teal-950) 100%);
  color: var(--paper-0);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 90px;
  background: var(--paper-0);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleX(1.3);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}
.hero-copy .eyebrow {
  color: var(--gold-300);
  background: rgba(255, 210, 126, 0.14);
  border-color: rgba(255, 210, 126, 0.35);
}
.hero-copy h1 {
  color: var(--paper-0);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -0.01em;
}
.hero-copy h1 .accent {
  color: var(--gold-300);
}
.hero-copy .lede {
  color: rgba(240, 244, 243, 0.86);
  font-size: 1.15rem;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--paper-0);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 14px;
  border-radius: 999px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 480px;
}
.hero-visual .phone-frame {
  width: 260px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.35));
  animation: float 6s ease-in-out infinite;
}
.hero-visual .phone-frame.secondary {
  position: absolute;
  width: 190px;
  left: -6%;
  bottom: -6%;
  z-index: 1;
  opacity: 0.9;
  animation: float 7s ease-in-out infinite reverse;
}
/* Crop wrapper: separate from .phone-frame because CSS filters (drop-shadow)
   get clipped by overflow:hidden on the same element, so the shadow lives on
   the outer .phone-frame and the crop/rounding lives on this inner element. */
.hero-visual .shot-crop {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 540 / 787;
}
.hero-visual .shot-crop img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  display: block;
}
.hero-visual .glow-ring {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,217,188,0.35), transparent 70%);
  filter: blur(10px);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* -------------------------------------------------------------------------
   Trust bar
   ------------------------------------------------------------------------- */
.trust-bar {
  padding: 30px 0;
  background: var(--paper-0);
  border-bottom: 1px solid var(--paper-200);
}
.trust-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
}
.trust-bar li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-600);
}
.trust-bar li .ic { font-size: 1.15rem; }

/* -------------------------------------------------------------------------
   Feature sections (image + copy)
   ------------------------------------------------------------------------- */
.feature-section {
  padding: 108px 0;
  background: var(--paper-0);
}
.feature-section.feature-section--alt { background: var(--paper-50); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.feature-grid.reverse .feature-visual { order: 2; }
.feature-grid.reverse .feature-copy { order: 1; }

.feature-copy ul { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.feature-copy li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-copy .bullet-ic {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  background: linear-gradient(160deg, var(--teal-100), #ffffff);
  border: 1px solid rgba(15, 107, 92, 0.15);
  box-shadow: var(--shadow-sm);
}
.feature-copy li strong { display: block; color: var(--ink-900); font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 2px; }
.feature-copy li span.desc { color: var(--ink-600); font-size: 0.96rem; }

.feature-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
/* .phone-shot doubles as the crop wrapper here: box-shadow (unlike filter)
   is never clipped by its own overflow:hidden, so one element is enough. */
.phone-shot {
  display: block;
  position: relative;
  width: 230px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(5, 59, 53, 0.06);
  aspect-ratio: 540 / 787;
  transition: transform 0.4s ease;
}
.phone-shot img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  display: block;
}
.dual-shot { position: relative; width: 100%; max-width: 460px; height: 400px; }
.dual-shot .phone-shot.front {
  position: absolute; left: 50%; top: 6px;
  transform: translateX(-62%) rotate(-4deg);
  z-index: 2;
}
.dual-shot .phone-shot.back {
  position: absolute; left: 50%; top: 34px;
  transform: translateX(-8%) rotate(5deg);
  z-index: 1;
  opacity: 0.94;
}
.feature-visual:hover .phone-shot.front { transform: translateX(-64%) rotate(-6deg) translateY(-4px); }
.feature-visual:hover .phone-shot.back { transform: translateX(-6%) rotate(7deg) translateY(-4px); }

.single-shot-wrap { display: flex; justify-content: center; }
.single-shot-wrap .phone-shot { width: 250px; }

/* -------------------------------------------------------------------------
   Security (dark band)
   ------------------------------------------------------------------------- */
.section-dark {
  padding: 108px 0;
  background: linear-gradient(165deg, var(--teal-900), var(--teal-950));
  color: var(--paper-0);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,217,188,0.25), transparent 70%);
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  position: relative;
  z-index: 1;
}
.security-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease;
}
.security-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.1); }
.security-card .ic {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(201,144,58,0.3);
}
.security-card h3 { color: var(--paper-0); font-size: 1.15rem; }
.security-card p { color: rgba(240, 244, 243, 0.75); font-size: 0.95rem; margin-bottom: 0; }

/* -------------------------------------------------------------------------
   Global / markets section (simple 3-card)
   ------------------------------------------------------------------------- */
.markets-section { padding: 108px 0; background: var(--paper-0); }
.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.market-card {
  border-radius: var(--radius-md);
  padding: 34px 28px;
  background: var(--paper-50);
  border: 1px solid var(--paper-200);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.market-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.market-card .flag { font-size: 2.2rem; margin-bottom: 14px; }
.market-card h3 { font-size: 1.1rem; }
.market-card p { color: var(--ink-600); font-size: 0.95rem; margin-bottom: 0; }

/* -------------------------------------------------------------------------
   Contact + Privacy
   ------------------------------------------------------------------------- */
.contact-section {
  padding: 108px 0 120px;
  background: linear-gradient(180deg, var(--paper-50), var(--paper-0));
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}
.contact-card {
  background: var(--paper-0);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card .ic {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: var(--teal-100);
  color: var(--teal-900);
  margin-bottom: 16px;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card a.link { color: var(--teal-700); font-weight: 600; word-break: break-word; }
.contact-card a.link:hover { text-decoration: underline; }

.privacy-callout {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, var(--teal-900), var(--teal-950));
  color: var(--paper-0);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-lg);
}
.privacy-callout .ic {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
}
.privacy-callout h3 { color: var(--paper-0); margin-bottom: 6px; }
.privacy-callout p { color: rgba(240,244,243,0.82); margin-bottom: 0; }
.privacy-callout .btn { flex: none; }
.privacy-callout-body { flex: 1; }

/* -------------------------------------------------------------------------
   Policy page (Privacy Policy)
   ------------------------------------------------------------------------- */
.policy-hero {
  position: relative;
  padding: 150px 0 70px;
  text-align: center;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(43, 217, 188, 0.35), transparent 60%),
    linear-gradient(160deg, var(--teal-600) 0%, var(--teal-900) 46%, var(--teal-950) 100%);
  color: var(--paper-0);
  overflow: hidden;
}
.policy-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 70px;
  background: var(--paper-0);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleX(1.3);
}
.policy-hero .container { position: relative; z-index: 2; max-width: 720px; }
.policy-hero .eyebrow {
  color: var(--gold-300);
  background: rgba(255, 210, 126, 0.14);
  border-color: rgba(255, 210, 126, 0.35);
}
.policy-hero h1 { color: var(--paper-0); font-size: clamp(2rem, 4vw, 2.9rem); }
.policy-hero .lede { color: rgba(240, 244, 243, 0.86); font-size: 1.08rem; max-width: 620px; margin: 0 auto; }
.policy-hero .updated { display: inline-block; margin-top: 18px; font-size: 0.88rem; font-weight: 600; color: var(--gold-300); }

.policy-content { padding: 88px 0 110px; background: var(--paper-0); }
.policy-content .container { max-width: 760px; }
.policy-item { display: flex; gap: 22px; padding: 34px 0; border-bottom: 1px solid var(--paper-200); }
.policy-item:first-child { padding-top: 0; }
.policy-item:last-child { border-bottom: none; }
.policy-item .num {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--teal-900);
  background: linear-gradient(160deg, var(--teal-100), #ffffff);
  border: 1px solid rgba(15, 107, 92, 0.15);
}
.policy-item h2 { font-size: 1.25rem; margin-bottom: 10px; }
.policy-item p { color: var(--ink-600); }
.policy-item ul { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; }
.policy-item li { color: var(--ink-600); padding-left: 20px; position: relative; }
.policy-item li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
}
.policy-item li strong { color: var(--ink-900); }

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-600);
  margin-bottom: 8px;
}
.policy-back:hover { color: var(--teal-900); }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
footer {
  background: var(--ink-900);
  color: rgba(240, 244, 243, 0.75);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--paper-0); }
.footer-brand img { width: 32px; height: 32px; border-radius: 9px; }
.footer-tagline { max-width: 320px; font-size: 0.92rem; margin-top: 12px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { color: var(--paper-0); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.92rem; padding: 6px 0; color: rgba(240,244,243,0.72); }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.84rem;
}
.footer-bottom a:hover { color: var(--gold-300); }

/* -------------------------------------------------------------------------
   Reveal-on-scroll (progressive enhancement: visible by default so a
   blocked/broken script never hides content; animation only applies once
   the inline bootstrap script in <head> confirms JS actually ran)
   ------------------------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* -------------------------------------------------------------------------
   Accessibility: focus states & reduced motion
   ------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 6px;
}
.hero a:focus-visible,
.hero button:focus-visible,
.section-dark a:focus-visible,
.section-dark button:focus-visible,
.privacy-callout a:focus-visible,
footer a:focus-visible {
  outline-color: var(--gold-300);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------------
   Back to top
   ------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--teal-900);
  color: var(--paper-0);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 90;
  cursor: pointer;
  border: none;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--teal-700); }

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .security-grid, .markets-grid, .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn.desktop-only { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 130px 0 90px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { margin-top: 40px; min-height: 380px; }

  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid.reverse .feature-visual, .feature-grid.reverse .feature-copy { order: initial; }
  .feature-copy { text-align: left; }

  .security-grid, .markets-grid, .contact-grid { grid-template-columns: 1fr; }

  .privacy-callout { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero-visual .phone-frame { width: 210px; }
  .hero-visual .phone-frame.secondary { width: 150px; }
  .dual-shot { height: 340px; }
  .phone-shot { width: 190px !important; }
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 32px; }
}
