/* ============================================================
   Swiftly Marketing CSS  v1
   Design tokens + components for the public-facing pages
   (coming-soon, beta landing, lifetime sales, future home).
   Self-contained — does not rely on main.min.css overrides.
   ============================================================ */

:root {
  --brand:          #1FB6FF;
  --brand-dark:     #0EA5E9;
  --brand-grad:     linear-gradient(135deg, #1FB6FF 0%, #5B8DEF 100%);

  --ink:            #0B1220;
  --text:           #3A4759;
  --muted:          #6B7A90;
  --border:         #E6ECF4;
  --surface:        #F7FAFD;
  --bg:             #FFFFFF;

  --warm:           #F59E0B;
  --warm-bg:        #FEF3C7;
  --success:        #10B981;
  --danger:         #EF4444;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(11,18,32,.06);
  --shadow-md: 0 8px 24px rgba(11,18,32,.06);
  --shadow-lg: 0 24px 48px rgba(11,18,32,.10);
  --shadow-cta: 0 16px 36px rgba(31,182,255,.28);

  --container: 1200px;
  --pad-x: 24px;
}

@media (min-width: 768px) {
  :root { --pad-x: 48px; }
}

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

html, body {
  margin: 0;
  padding: 0;
}

body.mkt-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

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

.mkt-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.mkt-text-center { text-align: center; }

/* -- Type ------------------------------------------------------ */
.mkt-h1, .mkt-h2, .mkt-h3 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.mkt-h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin-bottom: 20px;
}
.mkt-h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
}
.mkt-h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.25;
  font-weight: 700;
}

.mkt-lede {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--text);
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 640px;
}

.mkt-eyebrow {
  display: inline-block;
  background: rgba(31,182,255,.10);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.mkt-eyebrow-warm {
  background: var(--warm-bg);
  color: #92400E;
}

.mkt-fineprint { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* -- Buttons --------------------------------------------------- */
.mkt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  border-radius: var(--r-sm);
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
}
.mkt-btn-lg { font-size: 17px; padding: 16px 28px; border-radius: var(--r-md); }

.mkt-btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.mkt-btn-primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.mkt-btn-primary:active { transform: translateY(0); }

.mkt-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.mkt-btn-ghost:hover { background: var(--surface); color: var(--ink); text-decoration: none; }

/* -- Top nav --------------------------------------------------- */
.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.mkt-nav.mkt-nav-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.mkt-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.mkt-brand { display: inline-flex; align-items: center; }
.mkt-brand img {
  display: block;
  height: 56px !important;
  width: auto !important;
  max-width: 220px;
}
.mkt-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.mkt-nav-links a:not(.mkt-btn) {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}
.mkt-nav-links a:not(.mkt-btn):hover { color: var(--ink); text-decoration: none; }

/* -- Footer ---------------------------------------------------- */
.mkt-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.mkt-footer-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.mkt-footer-brand img { display: block; height: 28px !important; width: auto !important; max-width: 140px; }
.mkt-footer-tag { color: var(--muted); margin: 12px 0 0; max-width: 320px; }
.mkt-footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mkt-footer-links a {
  color: var(--text);
  font-size: 14px;
}
.mkt-footer-links a:hover { color: var(--ink); text-decoration: underline; }
.mkt-footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .mkt-footer-row { grid-template-columns: 1fr; }
}

/* -- Hero ------------------------------------------------------ */
.mkt-hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.mkt-hero::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 950px;
  height: 800px;
  background: radial-gradient(closest-side, rgba(31,182,255,.16), transparent 60%);
  z-index: 0;
  pointer-events: none;
  filter: blur(8px);
}
/* Soft fade from hero (white) → next section's surface tint so the gradient
   never appears to "cut" at the section boundary. */
.mkt-section-light {
  position: relative;
  background: linear-gradient(to bottom, #fff 0, var(--surface) 80px, var(--surface) 100%);
}
.mkt-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.mkt-hero-inner-narrow { max-width: 640px; }

.mkt-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 28px;
  margin-top: 36px;
  font-size: 14px;
  color: var(--muted);
}
.mkt-hero-meta-item i { color: var(--brand); margin-right: 6px; }

/* -- Countdown ------------------------------------------------- */
.mkt-countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 36px auto 28px;
  max-width: 520px;
}
.mkt-countdown-cell {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 8px 12px;
  box-shadow: var(--shadow-sm);
}
.mkt-countdown-num {
  font-family: 'Montserrat', monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--ink);
  line-height: 1;
}
.mkt-countdown-label {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* -- Waitlist form -------------------------------------------- */
.mkt-waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.mkt-waitlist-fields {
  flex: 1 1 360px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  min-width: 0;
}
.mkt-waitlist-fields .mkt-input { flex: 1 1 0; min-width: 0; }
@media (max-width: 560px) {
  .mkt-waitlist-fields { flex-direction: column; }
}
.mkt-input {
  flex: 1;
  font-family: inherit;
  font-size: 16px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mkt-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(31,182,255,.18);
}
.mkt-waitlist-feedback {
  min-height: 24px;
  margin-top: 12px;
  font-size: 14px;
}
.mkt-waitlist-feedback.is-success { color: var(--success); }
.mkt-waitlist-feedback.is-error   { color: var(--danger); }
@media (max-width: 520px) {
  .mkt-waitlist-form { flex-direction: column; }
}

/* -- Sections + cards ----------------------------------------- */
.mkt-section { padding: 80px 0; }
.mkt-section-light { background: var(--surface); }
.mkt-section .mkt-h2 { text-align: center; }
.mkt-section > .mkt-container > .mkt-lede { text-align: center; margin-left: auto; margin-right: auto; }

.mkt-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.mkt-feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.mkt-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.mkt-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(31,182,255,.10);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.mkt-feature h3 { font-size: 18px; margin: 0 0 8px; color: var(--ink); font-weight: 700; }
.mkt-feature p  { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.55; }

.mkt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) { .mkt-grid-2 { grid-template-columns: 1fr; } }

.mkt-card-soft {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
}
.mkt-icon-pill {
  color: var(--brand);
  background: rgba(31,182,255,.12);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  margin-right: 8px;
  font-size: 16px;
}

.mkt-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mkt-bullet-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}
.mkt-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-grad);
}

/* -- Scroll reveal -------------------------------------------- */
[data-mkt-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-mkt-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-mkt-reveal] { opacity: 1; transform: none; }
  .mkt-feature:hover { transform: none; }
}

/* -- Legal pages (long-form) ---------------------------------- */
.mkt-legal-container { max-width: 760px; }
.mkt-legal-meta {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.mkt-legal-h1 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 16px; }
.mkt-legal-intro { font-size: 17px; color: var(--text); margin-bottom: 32px; }
.mkt-legal h2 { font-size: 22px; color: var(--ink); margin: 40px 0 12px; font-weight: 700; }
.mkt-legal h3 { font-size: 18px; color: var(--ink); margin: 28px 0 8px; font-weight: 700; }
.mkt-legal p, .mkt-legal li { font-size: 15.5px; color: var(--text); line-height: 1.7; }
.mkt-legal-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  color: var(--muted);
}

/* --- Coming-soon referral / beta additions --- */
.mkt-eyebrow-warn {
  background: #fef3c7;
  color: #92400e;
}
.mkt-register-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
}
.mkt-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 18px auto 6px;
  color: var(--muted);
  font-size: 13px;
}
.mkt-or-divider::before,
.mkt-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.mkt-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, transform .1s;
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}
.mkt-btn-outline:hover {
  background: var(--ink);
  color: #fff;
}
