*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Public SenaSend light surfaces */
  --bg: #ffffff;
  --bg-soft: #f4f8fe;
  --bg-tint: #eaf2fe;
  --bg-footer: #f7fafe;

  /* Public blue primary */
  --primary: #4a8def;
  --primary-hover: #3d7de0;

  /* Public navy / ink hierarchy */
  --ink: #0f1b2d;
  --ink-muted: #3f4d66;
  --ink-subtle: #5a6a82;
  --ink-faint: #9aa7bd;

  /* Public-style borders */
  --border: #e4eaf2;
  --border-strong: #d9e1ee;
  --border-input: #c9d6ea;
  --hairline: #e8eef6;

  --success: #16a34a;

  /* Card system — white with public-style soft shadow */
  --card-bg: #ffffff;
  --card-border: var(--border);
  --card-radius: 18px;
  --card-shadow: 0 1px 2px 0 rgba(15, 27, 45, 0.04), 0 10px 30px -14px rgba(15, 27, 45, 0.16);
  --card-shadow-hover: 0 1px 2px 0 rgba(15, 27, 45, 0.05), 0 16px 40px -16px rgba(15, 27, 45, 0.22);
  --elevated-shadow: 0 40px 80px -30px rgba(15, 27, 45, 0.30), 0 8px 20px -8px rgba(15, 27, 45, 0.10);

  --max-w: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

  color-scheme: light dark;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
}

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

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#page-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overflow-y: auto;
  position: relative;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

::selection {
  background-color: rgba(74, 141, 239, 0.18);
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(74, 141, 239, 0.55);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
}

/* ─── TOPNAV (HARDCODED TO TOP — NEVER MOVES) ─── */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.topnav-links a {
  color: var(--ink-subtle);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.topnav-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

@media (max-width: 680px) {
  .nav-toggle {
    display: block;
  }

  .topnav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    gap: 16px;
    overflow: hidden;
  }

  .topnav-links.open {
    display: flex;
  }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: 184px 0 100px;
  text-align: center;
  background: var(--bg);
  overflow: hidden;
  width: 100%;
  border-bottom: 1px solid var(--hairline);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 100% 0%, rgba(74, 141, 239, 0.10), transparent 60%);
}

.hero .container {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tint);
  border: 1px solid var(--border-strong);
  color: var(--primary-hover);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 100%;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero p {
  font-size: clamp(0.95rem, 1.8vw, 1.125rem);
  color: var(--ink-muted);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── SECTIONS ─── */
.section {
  padding: 88px 0;
  background: var(--bg);
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-tint) 100%);
}

.section-title {
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ─── TRUST CARDS ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
  width: 100%;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  min-width: 0;
  overflow: hidden;
  max-width: 100%;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow-hover);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-tint);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
}

.card p {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ─── SECURITY ─── */
.security-content {
  max-width: 640px;
  margin: 0 auto;
}

.security-card {
  padding: 36px 32px;
}

.security-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 100%;
}

.security-check {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-tint);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-top: 2px;
}

.security-list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.security-list p {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.security-list div {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

/* ─── COVERAGE ─── */
.coverage-chips {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  max-width: 100%;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ─── CORRIDOR CONNECTOR ─── */
.corridor-connector {
  display: flex;
  justify-content: center;
  padding: 16px 0 32px;
  overflow: hidden;
}

.corridor-line {
  position: relative;
  width: 220px;
  max-width: 60%;
  height: 2px;
  background: var(--border-strong);
  border-radius: 1px;
  overflow: hidden;
}

.corridor-pulse {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%);
  animation: corridor-travel 3.5s ease-in-out infinite;
}

@keyframes corridor-travel {
  0%   { left: 0; }
  50%  { left: calc(100% - 10px); }
  100% { left: 0; }
}

.coverage-note {
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
  overflow-wrap: break-word;
}

/* ─── WAITLIST ─── */
.waitlist {
  text-align: center;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  width: 100%;
}

.waitlist-fields {
  display: flex;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}

.waitlist-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-input);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-family: var(--font);
  max-width: 100%;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-input::placeholder {
  color: var(--ink-faint);
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 141, 239, 0.18);
}

/* ─── WAITLIST MODAL ─── */
.wl-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.wl-modal.active {
  display: flex;
}

.wl-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 27, 45, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.wl-modal-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 48px 40px;
  max-width: 420px;
  width: calc(100% - 32px);
  text-align: center;
  box-shadow: var(--elevated-shadow);
}

.wl-state h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.wl-state p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.wl-modal-btn {
  margin-top: 28px;
  min-width: 140px;
}

.wl-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: wl-spin 0.8s linear infinite;
}

@keyframes wl-spin {
  to { transform: rotate(360deg); }
}

.wl-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
  font-weight: 700;
}

.wl-icon-success {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
}

.wl-icon-error {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.wl-icon-info {
  background: var(--bg-tint);
  color: var(--primary-hover);
  font-style: normal;
}

.waitlist-success {
  margin-top: 16px;
  color: var(--success);
  font-size: 15px;
  font-weight: 500;
  display: none;
  transition: opacity 0.4s ease;
  overflow-wrap: break-word;
}

.waitlist-success.visible {
  display: block;
}

.waitlist-error {
  color: #dc2626;
}

/* ─── FOOTER (always dark — matches public SenaSend footer) ─── */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 0 40px;
  text-align: center;
  background: #0b1626;
  overflow: hidden;
  width: 100%;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin: 0 auto 14px;
}

.footer-tagline {
  color: #9fb0c9;
  font-size: 13.5px;
  max-width: 360px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 16px;
}

.footer-links a {
  color: #c2cde0;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy {
  color: #8595ad;
  font-size: 13px;
}

/* ─── FOOTER SOCIAL ─── */
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 4px 0 22px;
}

.footer-social-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: #8595ad;
  letter-spacing: 0.1em;
}

.social-links {
  display: flex;
  gap: 18px;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9aa7bd;
  transition: color 0.2s, transform 0.15s;
}

.social-link:hover {
  color: #ffffff;
}

.social-link:active {
  transform: scale(0.94);
}

.social-link svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

/* ─── SYSTEM / DARK MODE (follows device theme via prefers-color-scheme) ─── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --bg-soft: #131d30;
    --bg-tint: #1a2740;
    --bg-footer: #0b1626;

    --ink: #f1f5f9;
    --ink-muted: #b6c2d6;
    --ink-subtle: #93a1b8;
    --ink-faint: #6f7e96;

    --border: #26334a;
    --border-strong: #36465f;
    --border-input: #36465f;
    --hairline: #1f2940;

    --card-bg: #182130;
    --card-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.40), 0 10px 30px -14px rgba(0, 0, 0, 0.60);
    --card-shadow-hover: 0 1px 2px 0 rgba(0, 0, 0, 0.50), 0 16px 40px -16px rgba(0, 0, 0, 0.70);
    --elevated-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.70), 0 8px 20px -8px rgba(0, 0, 0, 0.50);
  }

  .topnav {
    background: rgba(17, 24, 39, 0.85);
  }

  .topnav-links {
    background: rgba(17, 24, 39, 0.98);
  }

  .btn-secondary {
    background: var(--card-bg);
  }

  .chip,
  .waitlist-input,
  .wl-modal-card {
    background: var(--card-bg);
  }
}

/* ─── RESPONSIVE: TABLET ─── */
@media (max-width: 768px) {
  .hero {
    padding: 148px 0 80px;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.3rem);
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    margin-bottom: 36px;
  }

  .container {
    padding: 0 20px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .security-card {
    padding: 28px 20px;
  }
}

/* ─── RESPONSIVE: MOBILE ─── */
@media (max-width: 480px) {
  .hero {
    padding: 120px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .waitlist-form {
    flex-direction: column;
    align-items: stretch;
  }

  .waitlist-fields {
    flex-direction: column;
  }

  .waitlist-input {
    width: 100%;
    flex: none;
  }

  .waitlist-form .btn {
    width: 100%;
  }

  .wl-modal-card {
    padding: 36px 24px;
  }

  .chip {
    padding: 8px 16px;
    font-size: 13px;
  }

  .security-list li {
    gap: 12px;
  }

  .security-check {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}

/* ─── SCREEN READER ONLY ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── GIFT PREFERENCE ─── */
.gift-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gift-cta-divider {
  width: 100%;
  max-width: 480px;
  height: 1px;
  background: var(--hairline);
  margin-bottom: 4px;
}

.gift-cta-note {
  font-size: 14px;
  color: var(--ink-subtle);
  margin: 0;
}

.gift-modal .wl-modal-card {
  max-width: 460px;
  padding: 40px 36px;
  text-align: center;
}

.gift-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.gift-close:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.gift-step {
  animation: gift-fade 0.25s ease;
}

@keyframes gift-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.gift-inline-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gift-inline-form .waitlist-input {
  flex: none;
  width: 100%;
}

.gift-error {
  color: #dc2626;
  font-size: 13px;
  margin: 12px 0 0;
  min-height: 1em;
}

.gift-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 4px;
}

.gift-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 10px;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  background: var(--card-bg);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.gift-option:hover { border-color: var(--primary); }
.gift-option:active { transform: scale(0.97); }

.gift-option.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 141, 239, 0.18);
}

.gift-option-emoji { font-size: 26px; line-height: 1; }
.gift-option-name { font-weight: 600; font-size: 15px; }
.gift-option-meta { font-size: 11px; color: var(--ink-subtle); }

.gift-suboptions {
  margin-top: 18px;
  text-align: left;
}

.gift-sublabel {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-subtle);
  margin-bottom: 8px;
}

.gift-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gift-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--card-bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.gift-chip:hover { border-color: var(--primary); }

.gift-chip.selected {
  border-color: var(--primary);
  color: var(--primary-hover);
  box-shadow: 0 0 0 3px rgba(74, 141, 239, 0.18);
}

.gift-summary {
  margin: 18px auto 0;
  max-width: 320px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: left;
}

.gift-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  padding: 4px 0;
}

.gift-summary-key { color: var(--ink-subtle); }
.gift-summary-val { color: var(--ink); font-weight: 600; }

.gift-disclaimer {
  font-size: 12.5px;
  color: var(--ink-subtle);
  margin: 16px 0 0;
  line-height: 1.5;
}

.gift-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.gift-actions .wl-modal-btn {
  margin-top: 0;
  min-width: 120px;
  flex: 1 1 auto;
}

@media (max-width: 480px) {
  .gift-options { grid-template-columns: 1fr; }
  .gift-actions { flex-direction: column-reverse; }
  .gift-actions .wl-modal-btn { width: 100%; }
}
