/* Marketing kit specific tweaks on top of the shared system. */
@import url('./colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* shared display + headline classes */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.h-display {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  color: var(--fg);
}
.h-section {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
  color: var(--fg);
}
.h-sub {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.15;
}
.lede {
  font-size: 18px;
  color: var(--fg-2);
  max-width: 56ch;
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 15px 26px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--dur) var(--ease-out);
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--fg); border: 1px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--fg); }
.btn-onDark { background: #fff; color: var(--rxr-charcoal); }
.btn-onDark:hover { background: var(--rxr-haze); }
.btn-ghostDark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghostDark:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

/* Section spacing */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section[id] { scroll-margin-top: 80px; }

/* Suppress Safari/Chrome yellow autofill background on all form inputs.
   Inset shadow matches each surface: white modals, dark newsletter, haze/snow wash fields. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #fff inset;
  -webkit-text-fill-color: inherit;
  transition: background-color 9999s ease-in-out 0s;
}
/* Dark-surface fields (Newsletter section) */
.bg-dark input:-webkit-autofill,
.bg-dark input:-webkit-autofill:hover,
.bg-dark input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #1a1f26 inset;
  -webkit-text-fill-color: #fff;
}
.bg-wash { background: var(--bg-wash); }
.bg-dark { background: var(--rxr-charcoal); color: #fff; }
.bg-dark .h-section, .bg-dark .h-sub { color: #fff; }
.bg-dark .lede { color: rgba(255,255,255,0.7); }

.rule { width: 64px; height: 2px; background: var(--accent); margin: 24px 0; }

/* ============================================================
   Responsive / mobile pass
   Utility classes (.m-1 / .m-2) collapse inline-styled grids at
   mobile widths. Stylesheet !important beats React inline styles,
   so the desktop gridTemplateColumns stays inline and these win
   only under the breakpoint.
   ============================================================ */
@media (max-width: 880px) {
  .wrap { padding: 0 24px; }
  section { padding: 64px 0; }
  .m-1 { grid-template-columns: 1fr !important; }
  .m-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .m-gap { gap: 32px !important; }
  .h-sub { font-size: 19px; }
  /* photo-pair and split sections lose their fixed max-widths */
  .m-1, .m-2 { max-width: 100% !important; }
}

@media (max-width: 560px) {
  section { padding: 52px 0; }
  .wrap { padding: 0 20px; }
  .m-2 { grid-template-columns: 1fr !important; }
  /* Nav: drop the inline text links, keep logo + Apply */
  .nav-desktop-links { display: none !important; }
  /* Hero: tighten stat row + let CTAs wrap */
  .hero-stats { gap: 28px !important; margin-top: 56px !important; flex-wrap: wrap; }
  .hero-cta { flex-wrap: wrap; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .lede { font-size: 16px; }
  /* modals: comfortable edge padding on small screens */
  .modal-pad { padding-left: 24px !important; padding-right: 24px !important; }
}
