/* ============================================================
   topflightsms.com — shared styles
   Design tokens per handoff README
   ============================================================ */

:root {
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --navy: #182131;
  --navy-band: #1b2637;
  --navy-grad-1: #1c2739;
  --navy-grad-2: #141c2b;
  --red: #db2933;
  --red-hover: #c01f29;
  --body-1: #3d4757;
  --body-2: #4b5563;
  --body-3: #5b6472;
  --muted-1: #7a8494;
  --muted-2: #9aa2b0;
  --surface-light: #f7f9fc;
  --icon-circle: #eef2f9;
  --hero-grad-1: #eef3fb;
  --hero-grad-2: #dfe8f6;
  --border-1: #eef1f6;
  --border-2: #edf0f5;
  --border-3: #e7ebf2;
  --border-input: #d7deea;
  --border-btn: #cdd6e6;
  --imsg-in: #e9e9eb;
  --imsg-out: #0b93f6;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Archivo', system-ui, sans-serif;
  color: #1f2733;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
button { transition: background .15s, border-color .15s; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; overflow: hidden; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: .6px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-red { background: var(--red); color: #fff; font-size: 14px; padding: 15px 28px; }
.btn-red:hover { background: var(--red-hover); color: #fff; }
.btn-red-sm { background: var(--red); color: #fff; font-size: 13px; padding: 13px 22px; }
.btn-red-sm:hover { background: var(--red-hover); color: #fff; }
.btn-outline {
  background: #fff; color: var(--navy);
  border: 1.5px solid var(--border-btn);
  font-size: 13px; letter-spacing: .5px; padding: 13px 22px;
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

/* ---------------- Logo ---------------- */
.logo { display: flex; align-items: center; font-weight: 800; letter-spacing: -.5px; font-size: 27px; }
.logo .lg-navy { color: var(--navy); }
.logo .lg-red { color: var(--red); }
.logo-o {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 3px; width: 29px; height: 29px; border-radius: 50%;
  background: var(--red); margin: 0 2px; flex-shrink: 0;
}
.logo-o span { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.logo-sm { font-size: 24px; letter-spacing: -.4px; }
.logo-sm .logo-o { width: 26px; height: 26px; gap: 2.5px; margin: 0 1.5px; }
.logo-sm .logo-o span { width: 4px; height: 4px; }

/* ---------------- Header ---------------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 56px; background: #fff; border-bottom: 1px solid var(--border-1);
  position: relative;
}
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 13.5px; font-weight: 700; letter-spacing: .3px; }
.main-nav a { color: var(--navy); display: flex; align-items: center; gap: 5px; }
.main-nav a:hover, .main-nav a.active { color: var(--red); }
.main-nav .caret { font-size: 10px; opacity: .7; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto; margin-right: 14px;
}
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); border-radius: 2px; margin: 5px 0; }

/* ---------------- Footer ---------------- */
.site-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 56px; background: #fff; border-top: 1px solid var(--border-2);
  gap: 20px; flex-wrap: wrap;
}
.footer-nav { display: flex; align-items: center; gap: 40px; font-size: 13px; font-weight: 700; letter-spacing: .8px; }
.footer-nav a { color: var(--body-3); }
.footer-nav a:hover { color: var(--red); }
.footer-copy { font-size: 13px; color: var(--muted-2); font-weight: 500; }

/* ---------------- Interior page hero ---------------- */
.page-hero {
  background: linear-gradient(180deg, var(--navy-grad-1) 0%, var(--navy-grad-2) 100%);
  padding: 62px 56px 66px; text-align: center;
}
.page-hero .eyebrow { color: #8ea3d0; font-size: 13px; font-weight: 800; letter-spacing: 2px; margin: 0 0 18px; text-transform: uppercase; }
.page-hero h1 {
  font-size: 52px; font-weight: 800; color: #fff; letter-spacing: -1.4px;
  line-height: 1.02; margin: 0 auto 20px; max-width: 860px;
}
.page-hero .sub { font-size: 17px; line-height: 1.55; color: #c6d1e8; font-weight: 500; margin: 0 auto; max-width: 640px; }
.red-bar { width: 56px; height: 4px; background: var(--red); border-radius: 2px; }
.red-bar.center { margin: 0 auto 24px; }

/* ---------------- Check bullets ---------------- */
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; }
.check-item .check-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; background: var(--red);
  flex-shrink: 0; margin-top: 1px;
}
.check-item span:last-child { font-size: 15.5px; color: var(--body-1); font-weight: 600; line-height: 1.4; }

/* ---------------- Standard CTA band ---------------- */
.cta-band { background: var(--navy-band); padding: 70px 56px; text-align: center; }
.cta-band h2 { font-size: 40px; font-weight: 800; color: #fff; letter-spacing: -1px; margin: 0 0 18px; }
.cta-band p { font-size: 18px; color: #c6d1e8; font-weight: 500; margin: 0 auto 34px; max-width: 520px; }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--hero-grad-1) 0%, var(--hero-grad-2) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-size: cover; background-position: center;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, var(--hero-grad-1) 30%, rgba(238,243,251,.2) 62%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 330px; gap: 20px;
  padding: 48px 56px 44px; align-items: start;
}
.hero-copy { max-width: 520px; padding-top: 16px; }
.hero-copy h1 {
  font-size: 62px; line-height: .98; font-weight: 800;
  color: var(--navy); letter-spacing: -1.7px; margin: 0 0 22px;
}
.hero-copy h1 .dot { color: var(--red); }
.hero-copy .lede {
  font-size: 16.5px; line-height: 1.55; color: var(--body-1);
  font-weight: 500; margin: 0 0 34px; max-width: 430px;
}
.hero-buttons { display: flex; align-items: center; gap: 16px; margin-bottom: 44px; flex-wrap: wrap; }
.btn-watch { display: inline-flex; align-items: center; gap: 12px; }
.btn-watch .play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 23px; height: 23px; border-radius: 50%; background: var(--navy);
}
.trust-chips { display: flex; align-items: center; gap: 26px; color: var(--navy); flex-wrap: wrap; }
.trust-chips .chip { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13.5px; }

/* Phone mockup */
.phone-col { justify-self: end; position: relative; width: 300px; }
.phone {
  position: relative; width: 300px; height: 585px; background: #0a0a0a;
  border-radius: 42px; padding: 10px;
  box-shadow: 0 40px 80px -20px rgba(20,39,92,.45);
}
.phone-screen {
  position: relative; width: 100%; height: 100%; background: #f4f4f6;
  border-radius: 33px; overflow: hidden; display: flex; flex-direction: column;
}
.status-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 23px 6px; font-size: 13.5px; font-weight: 700; color: #000;
}
.status-icons { display: flex; align-items: center; gap: 7px; }
.battery { display: inline-flex; align-items: center; gap: 2px; }
.battery-body { width: 24px; height: 12px; border: 1.5px solid #000; border-radius: 3px; display: inline-block; position: relative; }
.battery-fill { position: absolute; top: 2px; left: 2px; bottom: 2px; width: 17px; background: #000; border-radius: 1px; }
.battery-tip { width: 2px; height: 5px; background: #000; border-radius: 0 2px 2px 0; display: inline-block; }
.dynamic-island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 26px; background: #0a0a0a; border-radius: 16px; z-index: 5;
}
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px 14px; border-bottom: 1px solid #e2e2e5; background: #f4f4f6;
}
.chat-contact { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.chat-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: #b8bcc4;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 17px;
}
.chat-name { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: #111; }
.chat-name .chev { color: #9aa0aa; font-size: 11px; }
.messages { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.msg-meta { text-align: center; font-size: 11px; color: #8b909a; margin-bottom: 4px; }
.msg-meta b { font-weight: 700; }
.bubble-in {
  align-self: flex-start; max-width: 76%; background: var(--imsg-in); color: #000;
  padding: 10px 14px; border-radius: 19px; border-bottom-left-radius: 5px;
  font-size: 13px; line-height: 1.35;
}
.bubble-out-wrap { align-self: flex-end; max-width: 70%; display: flex; flex-direction: column; align-items: flex-end; }
.bubble-out {
  background: var(--imsg-out); color: #fff;
  padding: 10px 14px; border-radius: 19px; border-bottom-right-radius: 5px;
  font-size: 13px; line-height: 1.35;
}
.delivered { font-size: 10px; color: #9aa0aa; margin-top: 3px; margin-right: 3px; }

/* Trust bar */
.trust-bar { position: relative; z-index: 2; background: var(--navy-band); padding: 34px 56px; }
.trust-bar .eyebrow {
  text-align: center; color: #c9d3e6; font-size: 13px; font-weight: 700;
  letter-spacing: 1.6px; margin: 0 0 24px;
}
.trust-logos { display: flex; align-items: center; justify-content: center; gap: 56px; color: #fff; flex-wrap: wrap; }
.mark-big { font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: -.5px; }
.mark-rga { display: flex; align-items: center; gap: 8px; }
.mark-rga .rga-sub { font-size: 9px; font-weight: 800; line-height: 1.15; letter-spacing: .5px; }
.mark-gop { display: flex; align-items: center; gap: 6px; font-size: 30px; font-weight: 900; letter-spacing: -1px; }
.mark-gop .tick { font-size: 22px; }
.mark-cfg { display: flex; align-items: center; font-size: 20px; font-weight: 900; }
.mark-cfg .cfg-w { background: #fff; color: var(--navy-band); padding: 3px 7px; }
.mark-cfg .cfg-r { background: var(--red); color: #fff; padding: 3px 7px; }
.mark-more { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #c9d3e6; }

/* Features strip */
.features-strip { padding: 82px 56px 90px; background: #fff; }
.features-strip h2 {
  text-align: center; font-size: 42px; font-weight: 800; color: var(--navy);
  letter-spacing: -1px; margin: 0 0 14px;
}
.features-strip .red-bar { margin: 0 auto 62px; }
.features-grid { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1180px; margin: 0 auto; }
.feature-col {
  padding: 0 22px; text-align: center; border-right: 1px solid var(--border-3);
  display: flex; flex-direction: column; align-items: center;
}
.feature-col:last-child { border-right: none; }
.feature-icon {
  width: 88px; height: 88px; border-radius: 50%; background: var(--icon-circle);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.feature-col h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin: 0 0 14px; }
.feature-col p { font-size: 14.5px; line-height: 1.55; color: var(--body-3); font-weight: 500; margin: 0; }

/* Landing CTA band (custom) */
.cta-landing { position: relative; background: var(--navy-band); overflow: hidden; }
.cta-landing-bg { position: absolute; inset: 0; z-index: 0; opacity: 1; background-size: cover; background-position: center; }
.cta-landing-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #18213166 0%, #18213122 100%);
}
.cta-landing-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: 78px 56px; align-items: center;
}
.cta-landing h2 { font-size: 48px; font-weight: 800; color: #fff; letter-spacing: -1.2px; line-height: 1.06; margin: 0 0 22px; }
.cta-landing .red-bar { margin: 0 0 26px; }
.cta-landing .cta-sub { font-size: 18px; line-height: 1.55; color: #d3dcec; font-weight: 500; margin: 0 0 40px; max-width: 440px; }
.perks { display: flex; flex-direction: column; gap: 26px; padding-left: 40px; }
.perk { display: flex; align-items: center; gap: 16px; }
.perk .check-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--red); flex-shrink: 0;
}
.perk span:last-child { color: #fff; font-size: 19px; font-weight: 700; }

/* ============================================================
   SOLUTIONS
   ============================================================ */
.cards-section { padding: 78px 56px; background: var(--surface-light); }
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 1120px; margin: 0 auto; }
.solution-card { border: 1px solid var(--border-3); border-radius: 14px; padding: 36px 34px; background: #fff; }
.card-tab { width: 52px; height: 4px; background: var(--red); border-radius: 2px; margin-bottom: 22px; }
.solution-card h3 { font-size: 24px; font-weight: 800; color: var(--navy); margin: 0 0 14px; letter-spacing: -.5px; }
.solution-card > p { font-size: 15.5px; line-height: 1.6; color: var(--body-3); font-weight: 500; margin: 0 0 24px; }

/* ============================================================
   FEATURES PAGE
   ============================================================ */
.feature-rows { padding: 78px 56px; background: #fff; }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; max-width: 1080px; margin: 0 auto;
}
.feature-row + .feature-row { padding-top: 70px; }
.feature-text { max-width: 460px; }
.feature-text .card-tab { margin-bottom: 20px; }
.feature-text h3 { font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: -.8px; margin: 0 0 16px; }
.feature-text > p { font-size: 17px; line-height: 1.6; color: var(--body-3); font-weight: 500; margin: 0 0 24px; }
.feature-visual {
  border-radius: 16px; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.feature-visual.navy { background: var(--navy-grad-1); }
.feature-visual.red { background: var(--red); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  max-width: 1080px; margin: 0 auto; align-items: start;
}
.price-card {
  border: 1px solid var(--border-3); border-radius: 16px;
  padding: 38px 32px; background: #fff; position: relative;
}
.price-card.featured {
  border: 2px solid var(--red);
  box-shadow: 0 24px 50px -20px rgba(20,39,92,.28);
}
.popular-pill {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: 1px; padding: 6px 16px; border-radius: 20px; white-space: nowrap;
}
.price-card h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin: 0 0 6px; letter-spacing: -.3px; }
.price-desc { font-size: 14px; color: var(--muted-1); font-weight: 500; margin: 0 0 22px; min-height: 40px; }
.price-line { display: flex; align-items: baseline; gap: 6px; margin-bottom: 26px; }
.price-num { font-size: 48px; font-weight: 800; color: var(--navy); letter-spacing: -2px; }
.price-per { font-size: 15px; color: var(--muted-1); font-weight: 600; }
.price-cta { display: block; width: 100%; padding: 15px; margin-bottom: 28px; font-size: 14px; letter-spacing: .5px; }
.pricing-footnote { text-align: center; color: var(--muted-1); font-size: 14px; font-weight: 500; margin: 44px 0 0; }

/* ============================================================
   ABOUT
   ============================================================ */
.mission { padding: 78px 56px 60px; background: #fff; }
.mission-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.mission h2 { font-size: 34px; font-weight: 800; color: var(--navy); letter-spacing: -.8px; margin: 0 0 22px; }
.mission p { font-size: 19px; line-height: 1.65; color: var(--body-1); font-weight: 500; margin: 0; }
.stats-band { background: var(--navy-band); padding: 60px 56px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 960px; margin: 0 auto; }
.stat { text-align: center; }
.stat-num { font-size: 52px; font-weight: 800; color: #fff; letter-spacing: -1.5px; line-height: 1; }
.stat-label { font-size: 14px; color: #c6d1e8; font-weight: 600; margin-top: 8px; letter-spacing: .5px; }
.values { padding: 74px 56px; background: #fff; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; max-width: 1080px; margin: 0 auto; }
.values h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin: 0 0 10px; letter-spacing: -.3px; }
.values p { font-size: 15px; line-height: 1.6; color: var(--body-3); font-weight: 500; margin: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { padding: 74px 56px; background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 64px; max-width: 1080px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; color: var(--navy); letter-spacing: .4px; }
.field input, .field textarea {
  font-family: inherit; font-size: 15px; padding: 14px 16px;
  border: 1.5px solid var(--border-input); border-radius: 8px;
  color: #1f2733; outline: none; transition: border-color .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.field input.error, .field textarea.error { border-color: var(--red); }
.field .field-error { font-size: 12.5px; color: var(--red); font-weight: 600; display: none; }
.field.has-error .field-error { display: block; }
.field textarea { resize: vertical; }
.contact-form .btn-red { align-self: flex-start; padding: 17px 36px; }
.form-status { font-size: 15px; font-weight: 600; display: none; }
.form-status.success { display: block; color: #167a3d; }
.form-status.error { display: block; color: var(--red); }
.contact-info { display: flex; flex-direction: column; gap: 28px; border-left: 1px solid var(--border-3); padding-left: 56px; }
.contact-info h4 { font-size: 15px; font-weight: 800; color: var(--navy); margin: 0 0 6px; letter-spacing: .3px; }
.contact-info p { font-size: 15px; color: var(--body-3); font-weight: 500; margin: 0; line-height: 1.5; }

/* ============================================================
   LEGAL
   ============================================================ */
.legal-section { padding: 70px 56px; background: #fff; }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal-updated { font-size: 14px; color: var(--muted-2); font-weight: 600; margin: 0 0 40px; }
.legal-inner h3 { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.4px; margin: 34px 0 12px; }
.legal-inner p { font-size: 16px; line-height: 1.7; color: var(--body-2); font-weight: 500; margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 40px 0; }
  .hero-copy h1 { font-size: 58px; }
  .phone-col { justify-self: center; margin-top: 40px; margin-bottom: -60px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .feature-col { border-right: none; }
  .cta-landing-inner { grid-template-columns: 1fr; }
  .perks { padding-left: 0; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .price-card.featured { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 30px; }
  .values-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reversed .feature-visual { order: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { border-left: none; padding-left: 0; border-top: 1px solid var(--border-3); padding-top: 40px; }
}

@media (max-width: 820px) {
  .site-header { padding: 16px 24px; flex-wrap: wrap; }
  .logo { font-size: 26px; }
  .logo .logo-o { width: 28px; height: 28px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; flex-direction: column; align-items: flex-start;
    width: 100%; order: 4; gap: 0; padding-top: 12px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border-1); }
  .site-header > .btn-red-sm { padding: 12px 18px; font-size: 13px; }

  .page-hero { padding: 54px 24px 58px; }
  .page-hero h1 { font-size: 40px; letter-spacing: -1px; }
  .hero-inner { padding: 40px 24px 0; }
  .hero-copy h1 { font-size: 44px; letter-spacing: -1.2px; }
  .hero-copy .lede { font-size: 17px; }
  .phone-col, .phone { width: 320px; }
  .phone { height: 660px; }
  .trust-bar { padding: 30px 24px; }
  .trust-logos { gap: 30px; }
  .features-strip { padding: 60px 24px; }
  .features-strip h2 { font-size: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-landing-inner { padding: 56px 24px; }
  .cta-landing h2 { font-size: 34px; }
  .cards-section, .feature-rows, .contact-section, .legal-section,
  .mission, .values, .stats-band { padding-left: 24px; padding-right: 24px; }
  .cta-band { padding: 56px 24px; }
  .cta-band h2 { font-size: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 40px; }
  .site-footer { flex-direction: column; gap: 18px; padding: 28px 24px; }
  .footer-nav { gap: 22px; flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   HOW IT WORKS DEMO MODAL
   ============================================================ */
.demo-modal {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(18, 34, 82, .6); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 24px;
}
.demo-modal.open { display: flex; }
.demo-dialog {
  position: relative; width: 100%; max-width: 640px; background: #fff;
  border-radius: 16px; padding: 36px 40px 32px; text-align: center;
  box-shadow: 0 40px 90px -20px rgba(10, 20, 50, .5);
  animation: demo-pop .25s ease;
}
@keyframes demo-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.demo-close {
  position: absolute; top: 14px; right: 18px; background: none; border: none;
  font-size: 30px; line-height: 1; color: var(--muted-2); cursor: pointer; padding: 4px;
}
.demo-close:hover { color: var(--navy); }
.demo-eyebrow { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: 2px; margin: 0 0 8px; }
.demo-head h3 { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -.6px; margin: 0 0 22px; }

.demo-stage { position: relative; height: 300px; }
.demo-step {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .35s ease; display: flex; flex-direction: column; gap: 16px;
}
.demo-step.active { opacity: 1; pointer-events: auto; }
.demo-panel {
  flex: 1; background: var(--surface-light); border: 1px solid var(--border-3);
  border-radius: 12px; padding: 20px 24px; text-align: left; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
}
.demo-panel-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--navy); }
.demo-caption { font-size: 14.5px; color: var(--body-3); font-weight: 500; margin: 0; }
.demo-caption b { color: var(--navy); }

/* step 1 */
.demo-table { border: 1px solid var(--border-3); border-radius: 8px; overflow: hidden; background: #fff; }
.demo-row { display: grid; grid-template-columns: 1.2fr 1.4fr .8fr; padding: 7px 14px; font-size: 12.5px; color: var(--body-1); font-weight: 500; border-top: 1px solid var(--border-1); opacity: 0; transform: translateY(6px); }
.demo-row-h { background: var(--icon-circle); font-weight: 800; color: var(--navy); border-top: none; }
.demo-step.active .demo-row { animation: demo-rise .4s ease forwards; }
.demo-step.active .demo-row:nth-child(1) { animation-delay: .1s; }
.demo-step.active .demo-row:nth-child(2) { animation-delay: .35s; }
.demo-step.active .demo-row:nth-child(3) { animation-delay: .6s; }
.demo-step.active .demo-row:nth-child(4) { animation-delay: .85s; }
.demo-step.active .demo-row:nth-child(5) { animation-delay: 1.1s; }
@keyframes demo-rise { to { opacity: 1; transform: translateY(0); } }
.demo-upload-badge { align-self: flex-start; background: #e7f6ec; color: #167a3d; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 20px; opacity: 0; }
.demo-step.active .demo-upload-badge { animation: demo-rise .4s ease 1.5s forwards; }

/* step 2 */
.demo-composer { background: #fff; border: 1.5px solid var(--border-input); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: #1f2733; min-height: 88px; line-height: 1.5; }
.demo-cursor { display: inline-block; width: 2px; height: 16px; background: var(--navy); vertical-align: -2px; animation: demo-blink .9s steps(1) infinite; }
@keyframes demo-blink { 50% { opacity: 0; } }
.demo-merge-chips { display: flex; gap: 8px; }
.demo-merge-chips span { background: var(--icon-circle); color: var(--navy); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 14px; }

/* step 3 */
.demo-panel-send { justify-content: center; background: linear-gradient(180deg, var(--navy-grad-1), var(--navy-grad-2)); border: none; }
.demo-send-bubbles { display: flex; flex-direction: column; gap: 9px; }
.demo-mini-bubble { align-self: flex-start; background: var(--imsg-out); color: #fff; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 16px; border-bottom-left-radius: 4px; opacity: 0; transform: translateX(-14px); }
.demo-step.active .demo-mini-bubble { animation: demo-slide .45s ease forwards; }
.demo-step.active .b1 { animation-delay: .15s; }
.demo-step.active .b2 { animation-delay: .55s; }
.demo-step.active .b3 { animation-delay: .95s; }
@keyframes demo-slide { to { opacity: 1; transform: translateX(0); } }
.demo-send-counter { margin-top: 14px; color: #fff; font-size: 15px; font-weight: 700; }
.demo-send-counter span { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }

/* step 4 */
.demo-stats { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.demo-stat { display: grid; grid-template-columns: 110px 1fr 48px; align-items: center; gap: 12px; }
.demo-stat-label { font-size: 13px; font-weight: 700; color: var(--body-1); text-align: left; }
.demo-stat-num { font-size: 14px; font-weight: 800; color: var(--navy); text-align: right; }
.demo-bar { height: 10px; background: var(--border-3); border-radius: 6px; overflow: hidden; }
.demo-bar-fill { height: 100%; width: 0; background: var(--red); border-radius: 6px; transition: width 1.1s cubic-bezier(.2,.7,.3,1); }
.demo-step.active .f1 { width: 98%; transition-delay: .2s; }
.demo-step.active .f2 { width: 22%; transition-delay: .45s; background: var(--navy); }
.demo-step.active .f3 { width: 61%; transition-delay: .7s; }

.demo-nav { display: flex; justify-content: center; gap: 10px; margin: 20px 0 22px; }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--border-btn); cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.demo-dot.active { background: var(--red); transform: scale(1.25); }
.demo-cta { font-size: 13px; padding: 13px 30px; }

@media (max-width: 720px) {
  .demo-dialog { padding: 28px 20px 24px; }
  .demo-stage { height: 340px; }
  .demo-stat { grid-template-columns: 90px 1fr 42px; }
}

/* ============================================================
   PER-MESSAGE PRICING
   ============================================================ */
.rates-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  max-width: 780px; margin: 0 auto; align-items: start;
}
.rate-card .price-num { font-size: 56px; }
.included-band { max-width: 780px; margin: 64px auto 0; text-align: center; }
.included-band h2 { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -.6px; margin: 0 0 14px; }
.included-band .red-bar { margin-bottom: 30px; }
.included-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; text-align: left;
}
.pricing-footnote a { font-weight: 700; }

@media (max-width: 820px) {
  .rates-grid { grid-template-columns: 1fr; max-width: 420px; }
  .included-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FEATURE PANEL APP MOCKUPS
   ============================================================ */
.feature-visual { padding: 26px; }
.app-mock {
  width: 100%; max-width: 430px; background: #fff; border-radius: 10px;
  box-shadow: 0 22px 44px -16px rgba(10,20,50,.5); overflow: hidden;
  font-size: 12px; text-align: left;
}
.app-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border-1);
}
.app-title { font-size: 15px; font-weight: 800; color: #1a2233; }
.app-sub { font-size: 11px; color: var(--muted-1); font-weight: 600; }
.app-btn {
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800;
  letter-spacing: .3px; padding: 6px 12px; border-radius: 6px;
}
.app-btn-outline { background: #fff; color: #1a2233; border: 1px solid var(--border-btn); }

.mock-table { padding: 4px 0 8px; }
.mock-tr {
  display: grid; grid-template-columns: 1.3fr 1.2fr .9fr; gap: 8px;
  padding: 7px 16px; font-weight: 600; color: var(--body-1); align-items: center;
  border-top: 1px solid var(--border-1);
}
.mock-tr:first-child { border-top: none; }
.mock-th { color: var(--muted-1); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; background: var(--surface-light); }
.chip-ok, .chip-send {
  font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .4px;
  padding: 3px 8px; border-radius: 10px; background: #e7f6ec; color: #167a3d; white-space: nowrap;
}
.chip-send { background: #fdf0d4; color: #92600a; }
.ok-num { color: #167a3d; font-weight: 800; }

/* inbox mock */
.mock-inbox { display: grid; grid-template-columns: 1fr 1.5fr; min-height: 190px; }
.mock-threads { border-right: 1px solid var(--border-1); }
.mock-thread { padding: 9px 12px; border-bottom: 1px solid var(--border-1); }
.mock-thread b { display: block; font-size: 12px; color: #1a2233; }
.mock-thread span { font-size: 11px; color: var(--muted-1); }
.mock-thread.active { background: #fdeeee; }
.mock-chat { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mock-out {
  align-self: flex-end; max-width: 90%; background: var(--red); color: #fff;
  padding: 8px 11px; border-radius: 12px; border-bottom-right-radius: 3px; line-height: 1.4;
}
.mock-in {
  align-self: flex-start; background: #f0f0f2; color: #1a2233;
  padding: 8px 11px; border-radius: 12px; border-bottom-left-radius: 3px;
}
.mock-reply {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-input); border-radius: 8px; padding: 7px 10px;
}
.mock-reply span { color: var(--muted-2); flex: 1; }
.mock-reply i { font-style: normal; background: var(--red); color: #fff; font-weight: 800; font-size: 10.5px; padding: 5px 12px; border-radius: 6px; }

/* compliance mock */
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 16px 4px; }
.mock-card { border: 1px solid var(--border-3); border-radius: 8px; padding: 8px 10px; }
.mock-card span { display: block; font-size: 9.5px; color: var(--muted-1); font-weight: 700; margin-bottom: 3px; }
.mock-card b { font-size: 15px; color: #1a2233; letter-spacing: -.3px; }

/* reports mock */
.mock-barchart { padding: 6px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.mock-bar-row { display: grid; grid-template-columns: 62px 1fr 38px; gap: 10px; align-items: center; }
.mock-bar-row span { font-size: 10.5px; font-weight: 700; color: var(--body-1); }
.mock-bar-row b { font-size: 11px; color: #1a2233; text-align: right; }
.mock-bar { height: 8px; background: var(--border-3); border-radius: 5px; overflow: hidden; }
.mock-bar i { display: block; height: 100%; background: var(--red); border-radius: 5px; }

/* ============================================================
   CERTIFICATION PAGE
   ============================================================ */
.certify-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 56px; max-width: 1120px; margin: 0 auto; }
.form-section-title { font-size: 17px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; margin: 14px 0 0; padding-bottom: 4px; border-bottom: 1px solid var(--border-1); }
.form-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.field select {
  font-family: inherit; font-size: 15px; padding: 14px 16px;
  border: 1.5px solid var(--border-input); border-radius: 8px;
  color: #1f2733; outline: none; background: #fff; transition: border-color .15s;
}
.field select:focus { border-color: var(--navy); }
.field select.error { border-color: var(--red); }
.label-optional { font-weight: 500; color: var(--muted-1); }
.form-fineprint { font-size: 12.5px; color: var(--muted-1); font-weight: 500; margin: 4px 0 0; }
.certify-aside { display: flex; flex-direction: column; gap: 18px; }
.aside-card { border: 1px solid var(--border-3); border-radius: 12px; padding: 22px 24px; background: var(--surface-light); }
.aside-card h4 { font-size: 15px; font-weight: 800; color: var(--navy); margin: 0 0 12px; }
.aside-card p { font-size: 14px; line-height: 1.6; color: var(--body-3); font-weight: 500; margin: 0; }
.aside-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.aside-steps li { font-size: 14px; line-height: 1.55; color: var(--body-3); font-weight: 500; }
.aside-steps b { color: var(--navy); }
.fee-box { background: #fff; border: 2px solid var(--red); }
.fee-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--body-1); font-weight: 600; padding: 7px 0; }
.fee-line b { color: var(--navy); font-size: 16px; white-space: nowrap; }
.fee-after { border-top: 1px solid var(--border-1); }
.aside-help { background: #fff; text-align: center; }

@media (max-width: 1100px) {
  .certify-grid { grid-template-columns: 1fr; }
  .certify-aside { order: -1; }
}
@media (max-width: 820px) {
  .form-row-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   STATUS / BLAST / ADMIN FLOW
   ============================================================ */
.flow-wrap { max-width: 640px; margin: 0 auto; }
.admin-wrap { max-width: 1120px; margin: 0 auto; }
.flow-card {
  border: 1px solid var(--border-3); border-radius: 12px; background: #fff;
  padding: 26px 28px; margin-bottom: 18px;
}
.flow-title { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; margin: 26px 0 14px; }
.flow-title:first-child { margin-top: 0; }
.flow-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.flow-card-head b { font-size: 17px; color: var(--navy); }
.flow-ref { font-size: 12px; font-weight: 700; color: var(--muted-1); letter-spacing: .5px; }
.flow-ref-big { font-size: 15px; font-weight: 800; color: var(--navy); background: var(--icon-circle); display: inline-block; padding: 8px 16px; border-radius: 8px; }
.flow-empty { color: var(--body-3); font-weight: 500; }
.flow-note { font-size: 14.5px; color: var(--body-1); font-weight: 500; background: #fdf0d4; border-radius: 8px; padding: 12px 16px; }
.flow-actions { text-align: center; margin-top: 26px; }
.flow-blast-meta { font-size: 14px; color: var(--body-3); font-weight: 500; }

/* timeline */
.timeline { display: flex; align-items: center; gap: 0; }
.tl-step { display: flex; flex-direction: column; align-items: center; gap: 7px; flex-shrink: 0; }
.tl-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--border-btn); }
.tl-step.done .tl-dot { background: var(--red); box-shadow: 0 0 0 3px #f8d7d9; }
.tl-label { font-size: 11.5px; font-weight: 700; color: var(--muted-1); white-space: nowrap; }
.tl-step.done .tl-label { color: var(--navy); }
.tl-bar { flex: 1; height: 3px; background: var(--border-1); margin: 0 8px 24px; border-radius: 2px; }

/* admin */
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border-3); border-radius: 10px; background: #fff; margin-bottom: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th { text-align: left; background: var(--surface-light); color: var(--muted-1); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; padding: 10px 14px; }
.admin-table td { padding: 12px 14px; border-top: 1px solid var(--border-1); vertical-align: top; color: var(--body-1); font-weight: 500; }
.admin-table small { color: var(--muted-1); }
.admin-chip { font-size: 10.5px; font-weight: 800; letter-spacing: .4px; padding: 4px 10px; border-radius: 10px; background: var(--icon-circle); color: var(--navy); white-space: nowrap; text-transform: uppercase; }
.admin-approved, .admin-sent { background: #e7f6ec; color: #167a3d; }
.admin-needs_info { background: #fdf0d4; color: #92600a; }
.admin-payment_pending { background: #fdeeee; color: var(--red); }
.admin-btn {
  font-family: inherit; font-size: 11.5px; font-weight: 800; letter-spacing: .3px;
  background: var(--navy); color: #fff; border: none; border-radius: 5px;
  padding: 7px 12px; cursor: pointer; margin: 2px 2px 2px 0; text-transform: uppercase;
}
.admin-btn:hover { background: var(--navy-band); }
.admin-btn-dl { background: #fff; color: var(--navy); border: 1px solid var(--border-btn); }
.field input[type="file"] { padding: 11px 12px; border: 1.5px dashed var(--border-input); border-radius: 8px; font-size: 14px; font-family: inherit; }

/* ============================================================
   EMBEDDED STRIPE CHECKOUT
   ============================================================ */
.checkout-wrap { max-width: 560px; margin: 0 auto; }
.checkout-back {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 13.5px; font-weight: 700; color: var(--body-3); padding: 0 0 16px;
}
.checkout-back:hover { color: var(--red); }
#checkout-container { min-height: 480px; }

/* ---- TopFlightSMS retheme ---- */
h1, h2, h3, .page-hero h1 { font-family: var(--serif); letter-spacing: -0.5px; }
.logo-img { height: 40px; width: auto; display: block; }
.logo-sm .logo-img { height: 30px; }
