/* DolphinPay landing page
   Shape system: panels and cards 20px, inputs and inner boxes 12px, buttons/chips/badges pill. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --navy: #071A36;
  --deep: #0B3B8C;
  --cyan: #22C1EE;
  --tether: #26A17B;

  --bg: #F5F9FC;
  --bg-top: #EAF6FB;
  --surface: #FCFEFF;
  --surface-2: #F0F6FA;
  --line: #D5E4EE;
  --line-strong: #B9CFDF;

  --text: #071A36;
  --text-2: #3B4B63;
  --muted: #5A6A80;
  --on-dark: #EEF4FA;
  --on-dark-2: #B4C3D6;

  --accent: #1766FF;
  --accent-hover: #0F57E6;
  --accent-ink: #0B4FD1;
  --accent-display: #1766FF;
  --accent-soft: #E3EEFF;

  --danger: #C0283A;

  --panel-dark: #071A36;
  --cell-auto: linear-gradient(150deg, #DDF4FB 0%, #D6E5FF 100%);
  --icon-bg: #E3EEFF;

  --shadow-sm: 0 1px 2px rgb(7 26 54 / 0.06);
  --shadow-lg: 0 1px 2px rgb(7 26 54 / 0.05), 0 28px 56px -28px rgb(11 59 140 / 0.32);

  --r-card: 20px;
  --r-input: 12px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #061428;
    --bg-top: #0A2240;
    --surface: #0B1D36;
    --surface-2: #081830;
    --line: #1C3456;
    --line-strong: #2A4670;

    --text: #EEF4FA;
    --text-2: #B4C3D6;
    --muted: #93A6BE;

    --accent-hover: #3A7DFF;
    --accent-ink: #6EA4FF;
    --accent-display: #4D8DFF;
    --accent-soft: #10284F;

    --danger: #FF7B86;

    --panel-dark: #0B2448;
    --cell-auto: linear-gradient(150deg, #0C3150 0%, #0F2A5E 100%);
    --icon-bg: #10284F;

    --shadow-sm: 0 1px 2px rgb(2 8 20 / 0.4);
    --shadow-lg: 0 1px 2px rgb(2 8 20 / 0.4), 0 28px 56px -28px rgb(2 8 20 / 0.8);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 780px) no-repeat, var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { margin: 0; color: var(--text); font-weight: 800; }
p { margin: 0; }
a { color: var(--accent-ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #FCFEFF;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

.section { padding-block: clamp(72px, 10vw, 120px); }

.section-title,
.how-intro h2,
.cta-card h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s ease, box-shadow 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #FCFEFF;
  box-shadow: 0 10px 24px -14px rgb(23 102 255 / 0.9);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary[disabled] { cursor: progress; opacity: 0.75; transform: none; }

.btn-sm { height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-outline:hover { background: var(--surface); }
.btn-block { width: 100%; height: 56px; font-size: 1.0625rem; }
.btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Offer banner (index.php; OFFER_BANNER in .env) ---------- */
.offer-banner { position: relative; z-index: 11; background: var(--accent); color: #FCFEFF; }
.offer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  min-height: 44px;
  padding-block: 8px;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.35;
}
.offer-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.2);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.offer-text { margin: 0; }
.offer-text strong { font-weight: 800; }
.offer-note { margin-left: 6px; opacity: 0.92; }
.offer-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.offer-link:hover { color: inherit; text-decoration-thickness: 2px; }
.offer-link .icon { width: 16px; height: 16px; }
.offer-link:focus-visible { outline-color: #FCFEFF; }
@media (max-width: 639px) {
  .offer-inner { gap: 4px 10px; font-size: 0.8125rem; }
  .offer-note { display: block; margin-left: 0; }
}

/* ---------- Header ---------- */
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled,
html:not(.js) .site-header {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: block; flex: none; border-radius: 8px; }
.brand-logo { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-links {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 28px;
}
.nav-links a {
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}
/* The Spanish menu labels are longer, and Create account + Log in are wider than one button. */
@media (min-width: 768px) and (max-width: 1023px) {
  html:lang(es) .nav-links,
  .has-auth-actions .nav-links { display: none; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  html:lang(es) .has-auth-actions .nav-links { display: none; }
}

/* EN | ES switch (lib/i18n.php lang_switch), shared with the checkout header */
.lang-switch {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-ink); }

/* Create account and Log in (signed out), or the account menu (signed in) */
.auth-actions { display: flex; align-items: center; gap: 8px; }

/* Phones: smaller logo and tighter header so the switch and both account buttons fit. */
@media (max-width: 479px) {
  .brand-logo { height: 32px; }
  .nav { gap: 12px; }
  .auth-actions { gap: 6px; }
  .auth-actions .btn { height: 38px; padding: 0 13px; font-size: 0.875rem; }
  .header-inner { gap: 12px; }
  .lang-switch a { min-width: 32px; padding: 0 6px; }
}
/* With both account buttons, phones show just the dolphin from the logo, and small phones
   show only the other language in the switch. The tiniest drop the dolphin: this is the home page. */
@media (max-width: 599px) {
  .has-auth-actions .brand-logo { width: 32px; height: 32px; object-fit: cover; object-position: left center; }
}
@media (max-width: 399px) {
  .auth-actions .btn { padding: 0 11px; font-size: 0.8125rem; }
  .has-auth-actions .lang-switch a[aria-current="true"] { display: none; }
}
@media (max-width: 359px) {
  .has-auth-actions .brand { display: none; }
  .has-auth-actions .nav { margin-left: auto; }
}

/* ---------- "My account" menu (lib/layout.php), on the landing and account pages ---------- */
.account-menu { position: relative; flex: none; }
.account-menu-button {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px 0 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.account-menu-button::-webkit-details-marker { display: none; }
.account-menu-button:hover,
.account-menu[open] > .account-menu-button { background: var(--surface); }
.account-menu-button:focus-visible { border-radius: var(--r-pill); }
.account-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.account-avatar .icon { width: 16px; height: 16px; }
.account-caret { width: 14px; height: 14px; color: var(--muted); transition: transform 0.2s var(--ease); }
.account-menu[open] .account-caret { transform: rotate(180deg); }
.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  width: max-content;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 2 * var(--gutter)));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.account-menu-who {
  display: grid;
  gap: 2px;
  margin-bottom: 4px;
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.account-menu-who span { color: var(--muted); }
.account-menu-item {
  display: block;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.account-menu-item:hover { background: var(--surface-2); }
.account-menu form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
/* Phones: the avatar and caret only; the label stays for screen readers. */
@media (max-width: 639px) {
  .account-menu-button { gap: 6px; padding-right: 10px; }
  .account-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(16px, 2.5vw, 40px) clamp(56px, 8vw, 96px);
}
.hero::before {
  content: '';
  position: absolute;
  inset: calc(var(--header-h) * -1) 0 0 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(48% 60% at 80% 38%, color-mix(in srgb, var(--cyan) 16%, transparent), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-copy { max-width: 560px; }

.hero h1 {
  font-size: clamp(2.25rem, 1.1rem + 4.6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero h1 .accent { display: block; color: var(--accent-display); }

.lede {
  margin-top: 20px;
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--text-2);
}

.hero .link-arrow { margin-top: 28px; }

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(48px, 6vw, 96px);
  }
  .quote { justify-self: end; }
}

/* ---------- Quote widget ---------- */
.quote {
  width: 100%;
  max-width: 460px;
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) { .quote { padding: 24px; } }

.quote-pair { position: relative; display: grid; gap: 6px; }

.quote-box {
  padding: 12px 16px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quote-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.quote-box:has([aria-invalid="true"]) { border-color: var(--danger); }

.quote-label,
.field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.quote-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.quote-limits { font-size: 0.75rem; font-weight: 600; color: var(--muted); }

.quote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.quote-input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.quote-input:focus { outline: none; }
.quote-input::placeholder { color: var(--muted); opacity: 0.6; }
.quote-input.is-bumping { animation: bump 0.45s var(--ease); }

@keyframes bump {
  from { opacity: 0.35; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.quote-swap {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}
.quote-swap .icon { width: 16px; height: 16px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 36px;
  padding: 0 12px 0 6px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 700;
}
.chip-usd {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #FCFEFF;
  font-size: 0.8125rem;
  font-weight: 800;
}
@media (prefers-color-scheme: dark) {
  .chip-usd { background: var(--on-dark); color: var(--navy); }
}
.chip-tether { width: 24px; height: 22px; fill: var(--tether); }

.field { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; border: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 6px; }

.field-hint { font-size: 0.8125rem; color: var(--muted); }
#breakdown { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--danger);
}
.field-error[hidden] { display: none; }
.field-error .icon { width: 18px; height: 18px; margin-top: 1px; }

.network-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.network-row .chip { padding-left: 8px; font-size: 0.875rem; }
.chip-bnb { width: 20px; height: 20px; fill: #F0B90B; }

.text-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.text-input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-size: 0.875rem; }
.text-input::placeholder { color: var(--muted); opacity: 1; font-family: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.text-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.text-input[aria-invalid="true"] { border-color: var(--danger); }

.quote .btn-block { margin-top: 8px; }

.form-status {
  padding: 12px 14px;
  border-radius: var(--r-input);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.form-status:empty { display: none; }

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}
.secure-note .icon { width: 16px; height: 16px; }

/* ---------- Payment rails ---------- */
.rails { padding-block: 8px 24px; }
.rails-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 56px;
}
.rails-group { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; }
.rails-label { font-size: 0.875rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.brand-mark { fill: var(--muted); transition: fill 0.2s ease; }
.brand-mark:hover { fill: var(--text); }
.bm-visa { height: 20px; width: 59px; }
.bm-mastercard { height: 30px; width: 47px; }
.bm-amex { height: 30px; width: 30px; }
.bm-bnb { height: 28px; width: 28px; }
.rails-network {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- How it works ---------- */
.how-grid {
  display: grid;
  gap: 40px;
}
.how-intro p { margin-top: 16px; max-width: 42ch; color: var(--text-2); }

@media (min-width: 900px) {
  .how-grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .how-intro { position: sticky; top: calc(var(--header-h) + 40px); }
}

.steps {
  position: relative;
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 64px;
  bottom: -32px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--line-strong), color-mix(in srgb, var(--accent) 55%, var(--line)));
}
.step-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}
.step-icon .icon { width: 24px; height: 24px; }
.step h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.3; margin-top: 14px; }
.step p { margin-top: 6px; max-width: 48ch; color: var(--text-2); }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-secure, .cell-wallet { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cell-secure { grid-column: 1 / span 2; }
  .cell-auto { grid-column: 3; }
  .cell-quote { grid-column: 1; }
  .cell-wallet { grid-column: 2 / span 2; }
}

.cell {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
  padding: 28px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--surface);
}
.cell h3 { margin-top: auto; font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.02em; }
.cell p { max-width: 46ch; color: var(--text-2); }

.cell-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: var(--r-pill);
  background: var(--icon-bg);
  color: var(--accent-ink);
}
.cell-icon .icon { width: 24px; height: 24px; }

.cell-secure {
  border-color: transparent;
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(23 102 255 / 0.45) 0%, transparent 60%),
    var(--panel-dark);
}
.cell-secure h3 { color: var(--on-dark); }
.cell-secure p { color: var(--on-dark-2); max-width: 40ch; }
.cell-secure .cell-icon { background: rgb(255 255 255 / 0.1); color: #7FD9F2; }
.cell-art {
  position: absolute;
  right: -28px;
  bottom: -44px;
  width: 240px;
  height: 240px;
  fill: #37C6E0;
  opacity: 0.14;
}

.cell-auto { background: var(--cell-auto); border-color: transparent; }
.cell-auto .cell-icon { background: var(--surface); }

.cell-wallet {
  background: var(--bg-top);
  flex-direction: row;
  align-items: stretch;
}
.cell-body { position: relative; display: flex; flex-direction: column; gap: 10px; }
.cell-mark {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 64px;
}
@media (min-width: 640px) {
  .cell-mark { top: auto; width: 280px; right: -40px; bottom: -80px; }
  .cell-wallet .cell-body { padding-right: 200px; }
}

/* ---------- FAQ ---------- */
.faq-inner { max-width: 820px; }
.faq-list {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.faq-list details + details { border-top: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: var(--surface-2); }
.faq-list summary:focus-visible { outline-offset: -3px; border-radius: 0; }
.faq-list summary .icon { width: 18px; height: 18px; color: var(--muted); transition: transform 0.3s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p { padding: 0 24px 22px; max-width: 64ch; color: var(--text-2); }

@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .faq-list details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
    }
    .faq-list details[open]::details-content { block-size: auto; }
  }
}

.faq-contact { margin-top: 24px; color: var(--text-2); }
.faq-contact a { font-weight: 700; }

/* ---------- CTA ---------- */
.cta { padding-top: 0; }
.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 80px) 24px clamp(140px, 16vw, 180px);
  border-radius: var(--r-card);
  background:
    radial-gradient(70% 90% at 50% 0%, rgb(23 102 255 / 0.35) 0%, transparent 70%),
    var(--panel-dark);
  text-align: center;
}
.cta-card h2 { color: var(--on-dark); }
.cta-card p { margin: 14px auto 0; max-width: 40ch; color: var(--on-dark-2); font-size: 1.125rem; }
.cta-card .btn { margin-top: 28px; }

.cta-waves {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(96px, 12vw, 150px);
}
.cta-waves .w1 { fill: #E3F6FC; opacity: 0.9; }
.cta-waves .w2 { fill: var(--cyan); }
.cta-waves .w3 { fill: var(--accent); }
.cta-waves .w4 { fill: var(--deep); }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 48px 40px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: grid;
  gap: 28px;
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1fr auto; align-items: start; gap: 48px; }
}
.footer-brand p { margin-top: 12px; max-width: 36ch; color: var(--text-2); font-size: 0.9375rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-links a {
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 90ch;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

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