/* MailsOnMine marketing site — design tokens mirror the portal app's Tailwind
   @theme (resources/css/app.css) so the two feel like one product. No framework:
   this is a single small static site, and a build step would be pure overhead here. */

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-brand-50: #eef0ff;
  --color-brand-100: #dee1ff;
  --color-brand-200: #c0c4ff;
  --color-brand-300: #9a9dff;
  --color-brand-400: #7a76ff;
  --color-brand-500: #6161ff;
  --color-brand-600: #4e4de6;
  --color-brand-700: #3d3cb8;
  --color-brand-800: #2e2d8a;
  --color-brand-900: #201f5c;

  --color-ink: #333333;
  --color-slate: #535768;
  --color-mist: #f6f7fb;
  --color-cloud: #ffffff;
  --color-border-subtle: #e4e6ef;

  --color-success: #00c875;
  --color-warning: #fdab3d;
  --color-danger: #e2445c;
  --color-info: #579bfc;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.1);
  --shadow-panel: 0 4px 12px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.06);
  --shadow-popover: 0 20px 60px rgba(32, 31, 92, 0.18);

  --max-width: 1180px;
  --font-sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-cloud);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Skip link — accessibility, cheap to include, first thing a screen reader/keyboard
   user hits */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-brand-500);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--color-brand-500);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover {
  background: var(--color-brand-600);
  box-shadow: var(--shadow-panel);
}
.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border-subtle);
}
.btn-ghost:hover {
  background: var(--color-mist);
}
.btn-white {
  background: #fff;
  color: var(--color-brand-600);
}
.btn-white:hover {
  background: var(--color-brand-50);
}
.btn-lg {
  padding: 0.9rem 1.9rem;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border-subtle);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-ink);
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: url("/assets/img/brand-mark.png") center / cover no-repeat;
  flex-shrink: 0;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-slate);
}
.nav-links a:hover {
  color: var(--color-brand-600);
}
.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background: #fff;
  cursor: pointer;
}
.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.5rem 1.5rem;
  border-top: 1px solid var(--color-border-subtle);
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu > a:not(.btn) {
  padding: 0.75rem 0.25rem;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border-subtle);
}
.mobile-menu .btn {
  margin-top: 0.75rem;
}

/* EN/ES switcher — plain links to / and /es/ (not a JS toggle) so crawlers follow
   them and each language keeps its own indexable URL. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
  background: var(--color-mist);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
}
/* Same look as the portal's <x-locale-switcher> on /login and /register. */
.lang-switch a {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--color-slate);
  transition: all 0.15s ease;
}
.lang-switch a:hover {
  color: var(--color-ink);
}
.lang-switch a[aria-current] {
  background: var(--color-brand-500);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.mobile-menu .lang-switch {
  align-self: flex-start;
  margin-top: 0.75rem;
}

/* 1240px, not 900: six links + the language switch + both buttons don't fit on
   one row any narrower, so tablets and small laptops get the hamburger menu. */
@media (min-width: 1240px) {
  .nav-links {
    display: flex;
  }
  .nav-actions {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 4rem 3rem;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--color-brand-100), transparent),
    linear-gradient(180deg, var(--color-mist), #fff 70%);
}
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-brand-50);
  color: var(--color-brand-700);
  border: 1px solid var(--color-brand-200);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--color-slate);
  max-width: 46ch;
  margin: 0 0 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-slate);
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}
.hero-trust svg {
  width: 1rem;
  height: 1rem;
  color: var(--color-success);
  flex-shrink: 0;
}

/* ---------- Hero visual (pure CSS/SVG mock, no external images) ---------- */
.hero-visual {
  position: relative;
}
.mock-window {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-popover);
  border: 1px solid var(--color-border-subtle);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: var(--color-mist);
  border-bottom: 1px solid var(--color-border-subtle);
}
.mock-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-border-subtle);
}
.mock-body {
  display: grid;
  grid-template-columns: 34% 66%;
}
.mock-sidebar {
  border-right: 1px solid var(--color-border-subtle);
  padding: 0.9rem 0.7rem;
}
.mock-account {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-slate);
  margin-bottom: 0.25rem;
}
.mock-account.active {
  background: var(--color-brand-50);
  color: var(--color-brand-700);
}
.mock-account .swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.swatch-brand { background: var(--color-brand-500); }
.swatch-success { background: var(--color-success); }
.swatch-warning { background: var(--color-warning); }
.swatch-info { background: var(--color-info); }

/* Variants of .eyebrow/.btn-ghost for use on the dark security-band/cta-band
   backgrounds — kept as real classes (not inline style="") so this page's CSP can
   omit 'unsafe-inline' from style-src entirely. */
.eyebrow-on-dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-ghost-on-dark {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.mock-list {
  padding: 0.75rem;
}
.mock-row {
  display: flex;
  gap: 0.6rem;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--color-border-subtle);
}
.mock-row .avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-brand-300), var(--color-brand-500));
}
.mock-row .lines {
  flex: 1;
  min-width: 0;
}
.mock-line {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--color-border-subtle);
  margin-bottom: 0.35rem;
}
.mock-line.w-70 { width: 70%; }
.mock-line.w-45 { width: 45%; }
.mock-line.w-90 { width: 90%; }
.mock-line.w-30 { width: 30%; background: var(--color-brand-200); }
.mock-badge {
  position: absolute;
  bottom: -1.1rem;
  left: -1.1rem;
  background: #fff;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-panel);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.mock-badge svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--color-success);
}
@media (max-width: 620px) {
  .mock-window {
    transform: none;
  }
  .mock-badge {
    left: 0.5rem;
  }
}

/* ---------- Section shell ---------- */
section {
  padding-block: 4.5rem;
}
.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head .eyebrow {
  margin-bottom: 1rem;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.85rem;
  font-weight: 700;
}
.section-head p {
  color: var(--color-slate);
  font-size: 1.0625rem;
  margin: 0;
}
.bg-mist {
  background: var(--color-mist);
}

/* ---------- Promo video ---------- */
.video-section {
  padding-bottom: 1.5rem;
}
.promo-video {
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-brand-900);
  box-shadow: var(--shadow-popover);
}
.promo-video video {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature-card {
  background: #fff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-panel);
}
.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--color-brand-50);
  color: var(--color-brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.feature-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}
.feature-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.feature-badge {
  background: var(--color-brand-50);
  color: var(--color-brand-600);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.feature-card p {
  margin: 0;
  color: var(--color-slate);
  font-size: 0.9375rem;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  position: relative;
  padding-top: 0.25rem;
}
.step-number {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-brand-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.step h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}
.step p {
  color: var(--color-slate);
  margin: 0;
  font-size: 0.9375rem;
}

/* ---------- Security band ---------- */
.security-band {
  background: linear-gradient(135deg, var(--color-brand-800), var(--color-brand-600));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 3rem clamp(1.5rem, 5vw, 3.5rem);
  margin-inline: 1.5rem;
  max-width: calc(var(--max-width) - 3rem);
  margin-left: auto;
  margin-right: auto;
}
.security-band .section-head h2,
.security-band .section-head p {
  color: #fff;
}
.security-band .section-head p {
  color: rgba(255, 255, 255, 0.82);
}
.security-list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 760px) {
  .security-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.security-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}
.security-list svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #b8ffe0;
}
.security-list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9375rem;
}
.security-list span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  max-width: 860px;
  margin-inline: auto;
}
@media (min-width: 760px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.price-card {
  background: #fff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.price-card.is-featured {
  border-color: var(--color-brand-400);
  box-shadow: var(--shadow-popover);
  position: relative;
}
.price-badge {
  position: absolute;
  top: -0.85rem;
  left: 2rem;
  background: var(--color-brand-500);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.price-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
}
.price-card .price {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0.5rem 0 0.15rem;
  letter-spacing: -0.02em;
}
.price-card .price span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-slate);
}
.price-card .plan-note {
  color: var(--color-slate);
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
}
.price-card .price-fx-note {
  color: var(--color-slate);
  font-size: 0.8125rem;
  margin: 0 0 0.5rem;
}
.price-fx-caveat {
  opacity: 0.75;
}
.price-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.75rem 0 0.75rem;
}
.price-option {
  position: relative;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg, 0.75rem);
  padding: 0.9rem 1rem;
}
.price-option.is-best {
  border: 2px solid var(--color-brand-400);
  background: var(--color-brand-50, #f5f8ff);
  padding: 1.15rem 1rem 0.9rem;
  margin-top: 0.4rem;
}
.price-option-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.price-option-label {
  font-weight: 600;
  font-size: 0.9375rem;
}
.price-option-amount {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.price-option-amount span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-slate);
}
.price-option-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--color-slate);
  text-align: right;
}
.price-option-sub s {
  margin-left: 0.35rem;
  opacity: 0.7;
}
.price-save {
  position: absolute;
  top: -0.7rem;
  left: 1rem;
  background: var(--color-success);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.price-features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.price-features li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--color-ink);
}
.price-features svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .chev {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--color-slate);
}
.faq-item[open] summary .chev {
  transform: rotate(180deg);
}
.faq-item .faq-answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--color-slate);
  font-size: 0.9375rem;
}

/* ---------- Final CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-brand-600), var(--color-brand-800));
  border-radius: var(--radius-xl);
  padding: 3.5rem clamp(1.5rem, 5vw, 4rem);
  margin-inline: 1.5rem;
  max-width: calc(var(--max-width) - 3rem);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #fff;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  margin: 0 0 0.85rem;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
  margin: 0 auto 1.75rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border-subtle);
  padding-block: 3rem 2rem;
  background: var(--color-mist);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}
.footer-brand p {
  color: var(--color-slate);
  font-size: 0.9375rem;
  max-width: 32ch;
}
.footer-col h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-slate);
  margin: 0 0 1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col a {
  text-decoration: none;
  color: var(--color-ink);
  font-size: 0.9375rem;
}
.footer-col a:hover {
  color: var(--color-brand-600);
}
.footer-bottom {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--color-slate);
}

/* Compact link row used on the narrow single-column footers of the legal
   pages and contact.html, which don't have the main page's multi-column
   .footer-grid to hang these links off of. */
.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  font-size: 0.875rem;
}
.legal-footer-links a {
  color: var(--color-slate);
  text-decoration: none;
}
.legal-footer-links a:hover {
  color: var(--color-brand-600);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(0, 200, 117, 0.18);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding-block: 3rem 2rem;
  background: var(--color-mist);
  border-bottom: 1px solid var(--color-border-subtle);
}
.legal-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.legal-hero p {
  color: var(--color-slate);
  margin: 0;
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding-block: 3rem 4rem;
}
.legal-content h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.85rem;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p,
.legal-content li {
  color: var(--color-slate);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.legal-content ul {
  padding-left: 1.25rem;
}
.legal-content a {
  color: var(--color-brand-600);
}

/* Legal pages (privacy/terms/cookies/contact) have no hamburger nav — the header's
   Login/Get started buttons are always shown, unlike .nav-actions' responsive
   show-at-1240px default on the main page, so they get their own class rather than
   an inline style="display:flex" override. */
.legal-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 420px) {
  .legal-nav-actions .btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
  }
}
/* No room for the EN/ES switch next to both buttons on a phone — the footer's
   "English"/"Español" link covers that width instead. */
@media (max-width: 520px) {
  .legal-nav-actions .lang-switch {
    display: none;
  }
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1rem;
  font-size: 0.875rem;
}
.legal-table th {
  text-align: left;
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 0.5rem 0.75rem;
  color: var(--color-ink);
}
.legal-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--color-border-subtle);
  vertical-align: top;
}
.legal-table th:first-child,
.legal-table td:first-child {
  padding-left: 0;
}
.legal-table tr:last-child td {
  border-bottom: none;
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  padding-block: 3rem 4rem;
}
@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3.5rem;
  }
}
.contact-info h2 {
  font-size: 1.125rem;
  margin: 0 0 1rem;
}
.contact-info p {
  color: var(--color-slate);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.contact-info a {
  color: var(--color-brand-600);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
}
.form-input {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-cloud);
  color: var(--color-ink);
}
.form-input:focus {
  outline: 2px solid var(--color-brand-400);
  outline-offset: 1px;
}
.form-textarea {
  resize: vertical;
  min-height: 8rem;
}

/* Hidden from sighted users and kept out of the tab order, but still present
   and laid out in the document — deliberately not display:none, since some
   bots specifically skip fields hidden that way when deciding what to fill
   in, which would defeat the point. */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-recaptcha-notice {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-slate);
}
.form-recaptcha-notice a {
  color: var(--color-brand-600);
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.875rem;
}
.form-status.is-pending {
  color: var(--color-slate);
}
.form-status.is-success {
  color: var(--color-success);
}
.form-status.is-error {
  color: var(--color-danger);
}

/* Google's floating reCAPTCHA badge stays visible on the contact pages (the
   .form-recaptcha-notice text above is kept as well). Its inline z-index would
   put it on top of the cookie banner's buttons, so it is held just below it. */
.grecaptcha-badge {
  z-index: 90 !important;
}

/* ---------- Cookie consent banner (assets/js/analytics-consent.js) ---------- */
.consent-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-cloud);
  border-top: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-panel);
}
@media (min-width: 640px) {
  .consent-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-inline: 2rem;
  }
}
.consent-banner-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-slate);
  max-width: 60ch;
}
.consent-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.price-options + .price-fx-note {
  margin-bottom: 1.5rem;
  text-align: center;
}
.price-features li.is-off {
  color: var(--color-slate);
}
.price-features li.is-off svg {
  color: var(--color-danger);
}
.price-mino {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--color-brand-50);
  border: 1px solid var(--color-brand-200);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}
.price-mino img {
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
}
.price-mino strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-brand-700);
}
.price-mino span {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-slate);
  line-height: 1.4;
  margin-top: 0.15rem;
}

/* ---------- Setup guides (landing/guides, landing/es/guias) ----------
   Generated by scripts/build-landing-guides.py; they reuse the legal-page shell
   (.legal-hero, .legal-content, .legal-table) and add the bits below. */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--color-slate);
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.35rem;
  color: var(--color-border-subtle);
}
.breadcrumb a {
  color: var(--color-brand-600);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.guide-hero .guide-lede {
  max-width: 720px;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.guide-hero .guide-meta {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
}
.guide-content h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.4rem;
}
.guide-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  background: var(--color-brand-50);
  color: var(--color-brand-800);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
  overflow-wrap: anywhere;
}
.guide-answer {
  background: #fff;
  border: 1px solid var(--color-brand-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.25rem 0.5rem;
  margin-bottom: 2rem;
}
.guide-content .guide-answer h2 {
  margin-top: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-brand-600);
}
/* Tables keep their own horizontal scroll on phones so the page never does. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.settings-table th[scope='row'] {
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}
.settings-table td {
  color: var(--color-slate);
}
.guide-note {
  font-size: 0.875rem !important;
}
.guide-steps {
  padding-left: 1.4rem;
}
.guide-steps li {
  margin-bottom: 0.5rem;
}
.guide-errors dt {
  font-weight: 600;
  color: var(--color-ink);
  font-size: 0.9375rem;
  margin-top: 1rem;
}
.guide-errors dd {
  margin: 0.25rem 0 0;
  color: var(--color-slate);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.guide-cta {
  background: var(--color-brand-50);
  border: 1px solid var(--color-brand-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-block: 2.5rem;
}
.guide-content .guide-cta h2 {
  margin-top: 0;
}
/* .legal-content a paints links brand-600, which hides the button label. */
.guide-content .guide-cta .btn-primary {
  color: #fff;
}
.guide-cta .guide-cta-note {
  font-size: 0.8125rem;
  margin: 0.6rem 0 0;
}
.guide-related {
  columns: 1;
}
@media (min-width: 640px) {
  .guide-related {
    columns: 2;
    column-gap: 2rem;
  }
}
.guide-related li {
  break-inside: avoid;
}

/* Home page "setup guides" cards are whole-card links. */
a.feature-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.feature-card h3 {
  color: var(--color-ink);
}
