/* ==========================================================================
   DayFlo v4 — Shared Design System
   Final tier structure: 5 products only
   Fonts: DM Serif Display (italic emphasis) + DM Sans
   ========================================================================== */

:root {
  /* Sky gradient */
  --sky-top: #6FA8D4;
  --sky-mid: #A8D4E8;
  --sky-bot: #C8E4F0;
  --sky-pale: #E8F4FA;

  /* Sun */
  --sun-fill: #F9C800;

  /* Brand */
  --blue: #2478C8;
  --blue-dk: #1A5A9A;
  --blue-lt: #E0EFFB;

  /* Ink */
  --ink: #0F2D42;
  --ink-mid: #2A4A62;
  --ink-soft: #4A6478;
  --ink-mute: #7A8C9E;

  /* Tier accents */
  --hero-amber: #B45309;
  --hero-amber-lt: #FEF3C7;
  --teams-slate: #0F172A;
  --teams-slate-lt: #F1F5F9;

  /* Surface */
  --white: #FFFFFF;
  --canvas: #F5FAFD;
  --card: #FFFFFF;
  --border: #D8E4EC;
  --border-soft: #E8F0F4;

  /* Shadow */
  --shadow: 0 4px 20px rgba(15, 45, 66, 0.08), 0 1px 4px rgba(15, 45, 66, 0.04);
  --shadow-lg: 0 12px 40px rgba(15, 45, 66, 0.12), 0 2px 8px rgba(15, 45, 66, 0.06);
  --shadow-card: 0 2px 12px rgba(15, 45, 66, 0.06);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.hdr {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}
.wordmark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wordmark-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sun-fill);
  box-shadow: 0 0 12px rgba(249, 200, 0, 0.5);
}
.hdr-nav { display: flex; align-items: center; gap: 32px; }
.hdr-nav a {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.hdr-nav a:hover { color: var(--blue); }
.hdr-cta {
  background: var(--blue) !important;
  color: white !important;
  padding: 11px 24px !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  box-shadow: 0 4px 14px rgba(36, 120, 200, 0.25);
}
.hdr-cta:hover { background: var(--blue-dk) !important; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.back-btn:hover { color: var(--blue); }
.back-btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 100px;
  overflow: hidden;
  background-image: url('hero-sky.png');
  background-size: cover;
  background-position: top center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 40%, var(--sky-bot) 100%);
  z-index: -1;
}
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-motd {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-mid);
  margin-bottom: 36px;
  max-width: 580px;
}
.hero-motd strong {
  font-style: normal;
  font-weight: 600;
  color: var(--blue);
  margin-right: 6px;
}
.hero-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}
.hero-headline em { font-style: italic; color: var(--blue); }
.hero-sub {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--blue);
  color: white;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(36, 120, 200, 0.3);
}
.btn-primary:hover {
  background: var(--blue-dk);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(36, 120, 200, 0.4);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: white;
  transform: translateY(-2px);
  border-color: var(--blue);
}
.trial-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 300;
}

/* ---------- Sections ---------- */
.section { padding: 96px 24px; display: flex; flex-direction: column; align-items: center; }
.section-canvas { background: var(--canvas); }
.section-pale { background: linear-gradient(180deg, var(--sky-pale) 0%, var(--white) 100%); }
.section-white { background: var(--white); }
.section-dark { background: var(--ink); }
.section-blue { background: var(--blue); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  text-align: center;
}
.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  text-align: center;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.8px;
  max-width: 720px;
}
.section-title em { font-style: italic; color: var(--blue); }
.section-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-mid);
  text-align: center;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 60px;
}

/* ---------- Plan Cards ---------- */
.plans {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
}
.plans.c2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.plans.c3 { grid-template-columns: repeat(3, 1fr); }
.plans.c5 { grid-template-columns: repeat(5, 1fr); max-width: 1100px; }

.plan-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.18s;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--plan-accent, var(--blue));
}
.plan-card.featured { border-color: var(--plan-accent, var(--blue)); }
.plan-card:hover {
  border-color: var(--plan-accent, var(--blue));
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--plan-badge-bg, var(--blue-lt));
  color: var(--plan-accent, var(--blue));
  align-self: flex-start;
}
.plan-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  line-height: 1.2;
}
.plan-who {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.5;
  font-weight: 300;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 6px 0;
}
.plan-price .amt {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 40px;
  color: var(--ink);
  letter-spacing: -1.5px;
  line-height: 1;
}
.plan-price .per { font-size: 14px; color: var(--ink-mute); }
.plan-price .was {
  font-size: 14px;
  color: var(--ink-mute);
  text-decoration: line-through;
  margin-left: 10px;
}
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
}
.plan-features li {
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.55;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
}
.plan-features li::before {
  content: '✓';
  color: var(--plan-accent, var(--blue));
  font-weight: 700;
  flex-shrink: 0;
}
.plan-btn {
  margin-top: auto;
  padding-top: 6px;
}
.plan-btn-inner {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--plan-accent, var(--blue));
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: opacity 0.2s, transform 0.15s;
}
.plan-btn-inner:hover { opacity: 0.9; transform: translateY(-1px); }

/* Hero toggle */
.hero-toggle {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
}
.hero-toggle-btn {
  background: none;
  border: none;
  padding: 9px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mid);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all 0.18s;
}
.hero-toggle-btn.active {
  background: var(--blue);
  color: white;
  box-shadow: 0 2px 8px rgba(36, 120, 200, 0.3);
}
.hero-toggle-btn.active.hero-active {
  background: var(--hero-amber);
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.3);
}

/* Address card */
.address-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--sky-mid);
  border-radius: var(--radius);
  padding: 28px 36px;
  max-width: 620px;
  width: 100%;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.address-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.address-card-value {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.5px;
  word-break: break-all;
}
.address-card-value em { font-style: italic; color: var(--ink-mute); }
.address-card-value span { color: var(--blue); font-style: normal; }

/* Steps */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 960px;
  width: 100%;
}
.step-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky-mid), var(--blue));
}
.step-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 52px;
  color: var(--sky-mid);
  line-height: 1;
  letter-spacing: -2px;
}
.step-icon { font-size: 28px; }
.step-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
}
.step-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* Verification notice */
.verify-notice {
  background: var(--hero-amber-lt);
  border: 1.5px solid #F59E0B;
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  max-width: 760px;
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 32px auto 0;
}
.verify-notice-icon { font-size: 24px; flex-shrink: 0; line-height: 1; }
.verify-notice-text {
  font-size: 14px;
  color: #78350F;
  line-height: 1.7;
  font-weight: 400;
}
.verify-notice-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #92400E;
  margin-bottom: 6px;
}
.verify-notice-text a { color: #92400E; font-weight: 600; }

/* Cross-link box */
.cross-link {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--hero-amber);
  border-radius: var(--radius-sm);
  padding: 20px 26px;
  max-width: 760px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 36px auto 0;
  box-shadow: var(--shadow-card);
}
.cross-link-txt {
  font-size: 14.5px;
  color: var(--ink-mid);
  font-weight: 400;
  line-height: 1.55;
}
.cross-link-txt strong { color: var(--ink); font-weight: 600; }
.cross-link-btn {
  background: var(--hero-amber);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.cross-link-btn:hover { opacity: 0.9; }

/* SMS demo */
.sms-demo {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px 30px;
  max-width: 480px;
  width: 100%;
  text-align: left;
}
.sms-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.sms-bubble {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 12px 16px;
  font-size: 14px;
  color: white;
  line-height: 1.5;
  margin-bottom: 12px;
  font-weight: 400;
  max-width: 78%;
}
.sms-bubble.outgoing {
  background: var(--blue);
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  width: 100%;
}
.why-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}
.why-icon { font-size: 32px; margin-bottom: 14px; line-height: 1; }
.why-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 10px;
}
.why-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* WallenAI cross-promo */
.wallenai-promo {
  background: linear-gradient(135deg, var(--sky-pale) 0%, var(--white) 100%);
  border: 1px solid var(--sky-mid);
  border-radius: var(--radius);
  padding: 32px 36px;
  max-width: 760px;
  width: 100%;
  text-align: center;
  margin: 48px auto 0;
}
.wallenai-promo-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.wallenai-promo-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.wallenai-promo-desc {
  font-size: 14.5px;
  color: var(--ink-mid);
  line-height: 1.7;
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto 18px;
}
.wallenai-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.wallenai-promo-link:hover { color: var(--blue-dk); }

/* Footer */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  padding: 56px 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-wordmark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  color: white;
  letter-spacing: -0.5px;
}
.footer-tagline {
  font-size: 14px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
}
.footer-attrib {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
  font-weight: 300;
}
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  font-weight: 300;
}

/* Doc pages */
.doc-wrap { max-width: 760px; margin: 0 auto; padding: 72px 24px 100px; }
.doc-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 48px);
  color: var(--ink);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.doc-meta {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 52px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-soft);
  font-weight: 300;
}
.doc-body h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin: 44px 0 16px;
  letter-spacing: -0.3px;
}
.doc-body h3 {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-mid);
  margin: 26px 0 12px;
}
.doc-body p {
  font-size: 15.5px;
  color: var(--ink-mid);
  line-height: 1.85;
  margin-bottom: 18px;
  font-weight: 300;
}
.doc-body ul { margin: 0 0 18px 22px; }
.doc-body ul li {
  font-size: 15.5px;
  color: var(--ink-mid);
  line-height: 1.85;
  margin-bottom: 10px;
  font-weight: 300;
}
.doc-body a { color: var(--blue); font-weight: 500; }

.highlight-box {
  background: var(--sky-pale);
  border: 1px solid var(--sky-mid);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0;
}
.highlight-box p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-mid);
  line-height: 1.75;
  font-weight: 400;
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-top: 52px;
  box-shadow: var(--shadow-card);
}
.contact-box h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 12px;
}
.contact-box p {
  font-size: 14.5px;
  color: var(--ink-mid);
  line-height: 1.75;
  margin: 0;
  font-weight: 400;
}

/* Responsive */
@media (max-width: 880px) {
  .hdr { padding: 14px 20px; }
  .hdr-nav { display: none; }
  .plans.c2, .plans.c3, .plans.c5, .steps-row, .why-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 72px 20px; }
  footer { padding: 48px 24px 28px; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .cross-link { flex-direction: column; align-items: flex-start; }
}
