/* ---------- Reset + base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #1B2F4F;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: #102542; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: 56px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 38px; font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p  { margin: 0 0 12px; color: #4A5A75; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Brand mark ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #102542;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-name { display: inline-block; }
.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  width: 28px;
  height: 28px;
}
.brand-mark > span {
  background: #2F7BB5;
  border-radius: 2px;
}
/* color variation matching logo */
.brand-mark > span:nth-child(1) { background: #4FB3E2; }
.brand-mark > span:nth-child(2) { background: #2F7BB5; }
.brand-mark > span:nth-child(3) { background: #82C341; }
.brand-mark > span:nth-child(4) { background: #5AAFD8; }
.brand-mark > span:nth-child(5) { background: #2F7BB5; }
.brand-mark > span:nth-child(6) { background: #1F6FB0; }
.brand-mark > span:nth-child(7) { background: #2F7BB5; }
.brand-mark > span:nth-child(8) { background: #1F6FB0; }
.brand-mark > span:nth-child(9) { background: #1A3A5E; }

.brand-mark-sm { width: 22px; height: 22px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid #E8EDF3;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: #46587A;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s;
}
.nav-links a:hover { color: #102542; }
.nav-cta { font-size: 14.5px; padding: 10px 16px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s, background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn-lg { font-size: 16px; padding: 14px 22px; border-radius: 12px; }
.btn-primary {
  background: #1F6FB0;
  color: #fff;
  box-shadow: 0 6px 20px rgba(31, 111, 176, 0.22);
}
.btn-primary:hover { background: #195C95; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: #fff;
  color: #1B2F4F;
  border-color: #D7DEE8;
}
.btn-ghost:hover { background: #F4F7FB; border-color: #C5CFDC; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(1100px 360px at 70% -100px, rgba(79, 179, 226, 0.18), transparent 60%),
    radial-gradient(900px 320px at -10% 10%, rgba(130, 195, 65, 0.10), transparent 60%),
    #ffffff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2F7BB5;
  background: rgba(47, 123, 181, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-copy h1 { margin-bottom: 16px; }
.lede {
  font-size: 19px;
  color: #4A5A75;
  margin-bottom: 26px;
  max-width: 560px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.hero-bullets li {
  position: relative;
  padding-left: 26px;
  color: #46587A;
  font-size: 15.5px;
}
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  background: #82C341;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #ffffff;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  h1 { font-size: 40px; }
}

/* ---------- Chat mockup ---------- */
.chat-mock {
  background: #0F1620;
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(16, 37, 66, 0.18);
  max-width: 460px;
  margin: 0 auto;
  font-size: 14.5px;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1F6FB0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.chat-name { font-weight: 700; font-size: 15px; }
.chat-status { font-size: 12px; color: #9aa6b8; display: flex; align-items: center; gap: 6px; }
.chat-status .dot { width: 7px; height: 7px; background: #82C341; border-radius: 50%; display: inline-block; }

.chat-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0F1620;
}
.msg {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 14px;
  line-height: 1.4;
  font-size: 14.5px;
}
.msg.assistant {
  background: #1A2330;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg.user {
  background: #1F6FB0;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg a {
  color: #4FB3E2;
  text-decoration: underline;
}
.msg a:hover { color: #82C341; }
.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #131C28;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #6b7791;
  font-size: 13.5px;
}
.chat-send {
  background: #1F6FB0;
  color: #fff;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
}

/* ---------- Trust strip ---------- */
.trust {
  padding: 24px 0 36px;
}
.trust-label {
  text-align: center;
  font-size: 14px;
  color: #6F7E96;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 0;
}

/* ---------- Section base ---------- */
.section {
  padding: 96px 0;
}
.section-alt {
  background: #F6F9FC;
  border-top: 1px solid #EEF2F7;
  border-bottom: 1px solid #EEF2F7;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 { margin-bottom: 12px; }
.section-sub {
  font-size: 18px;
  color: #4A5A75;
}

/* ---------- Features grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: #fff;
  border: 1px solid #E8EDF3;
  border-radius: 16px;
  padding: 26px 24px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.feature:hover {
  border-color: #C9D6E5;
  box-shadow: 0 8px 24px rgba(16, 37, 66, 0.06);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 26px;
  margin-bottom: 14px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; font-size: 15.5px; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  h2 { font-size: 30px; }
}

/* ---------- Steps (how it works) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.steps li {
  background: #fff;
  border: 1px solid #E8EDF3;
  border-radius: 16px;
  padding: 28px 26px;
  position: relative;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2F7BB5, #1A3A5E);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.steps li h3 { margin-bottom: 8px; }
.steps li p { margin: 0; font-size: 15.5px; }

@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Reasons ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.reason {
  border-left: 3px solid #82C341;
  padding: 6px 22px;
}
.reason h3 { margin-bottom: 6px; }
.reason p { margin: 0; }

@media (max-width: 700px) {
  .reasons { grid-template-columns: 1fr; }
}

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #E2E9F2;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 18px 50px rgba(16, 37, 66, 0.08);
  text-align: center;
}
.pricing-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2F7BB5;
  margin-bottom: 10px;
}
.pricing-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 22px;
}
.pricing-amount {
  font-size: 36px;
  font-weight: 800;
  color: #102542;
}
.pricing-period {
  font-size: 14px;
  color: #6F7E96;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  display: grid;
  gap: 8px;
}
.pricing-features li {
  position: relative;
  padding-left: 26px;
  color: #46587A;
  font-size: 15px;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #82C341;
  font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: #fff;
  border: 1px solid #E8EDF3;
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.faq details[open] {
  border-color: #C9D6E5;
  box-shadow: 0 8px 20px rgba(16, 37, 66, 0.05);
}
.faq summary {
  font-weight: 700;
  color: #102542;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 16.5px;
}
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: #2F7BB5;
  font-weight: 600;
  transition: transform 0.15s;
}
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 12px 0 0; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(800px 320px at 50% 0%, rgba(47, 123, 181, 0.18), transparent 60%),
    linear-gradient(180deg, #102542 0%, #1A3A5E 100%);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta p { color: #B7C7DD; margin-bottom: 24px; }
.cta .btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.cta .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.45); }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0F1A2D;
  color: #B7C7DD;
  padding: 56px 0 28px;
}
.brand-footer { color: #fff; }
.footer-tag { color: #8497B3; margin: 12px 0 0; font-size: 14.5px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-head {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.site-footer a {
  display: block;
  color: #B7C7DD;
  font-size: 14.5px;
  padding: 4px 0;
  transition: color 0.15s;
}
.site-footer a:hover { color: #fff; }
.footer-base {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: #6F7E96;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Legal page styles ---------- */
.legal {
  padding: 64px 0 80px;
}
.legal .container { max-width: 820px; }
.legal h1 { font-size: 38px; margin-bottom: 8px; }
.legal .effective {
  color: #6F7E96;
  font-size: 14.5px;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 10px;
}
.legal p { color: #4A5A75; font-size: 16px; }
.legal ul { color: #4A5A75; padding-left: 22px; }
.legal ul li { margin-bottom: 6px; }

/* =========================================================================
   MOBILE / PHONE OVERRIDES
   ========================================================================= */

/* Tablet & smaller phones */
@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .container { padding: 0 18px; }
  .hero { padding: 56px 0 36px; }
  .lede { font-size: 17px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-sub { font-size: 16px; }
  .nav-cta { padding: 9px 14px; font-size: 14px; }
}

/* Phones */
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  h1 { font-size: 32px; line-height: 1.18; }
  h2 { font-size: 25px; }
  h3 { font-size: 18px; }
  .container { padding: 0 16px; }

  /* Header */
  .site-header .nav { padding-top: 12px; padding-bottom: 12px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 24px; height: 24px; }

  /* Hero */
  .hero { padding: 40px 0 28px; }
  .eyebrow { font-size: 11.5px; padding: 5px 10px; margin-bottom: 14px; }
  .lede { font-size: 16px; margin-bottom: 22px; }
  .hero-bullets li { font-size: 14.5px; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { flex: 1 1 auto; }

  /* Buttons sized for tappable targets */
  .btn { padding: 12px 16px; font-size: 14.5px; }
  .btn-lg { padding: 13px 18px; font-size: 15px; }

  /* Chat mockup */
  .chat-mock { max-width: 100%; border-radius: 14px; }
  .chat-body { padding: 12px; }
  .msg { font-size: 13.5px; padding: 9px 12px; }
  .chat-header { padding: 11px 13px; }
  .chat-avatar { width: 30px; height: 30px; font-size: 13px; }
  .chat-name { font-size: 14px; }

  /* Trust strip */
  .trust { padding: 12px 0 18px; }
  .trust-label { font-size: 12.5px; letter-spacing: 0.08em; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }
  .section-sub { font-size: 15px; }

  /* Feature cards */
  .feature { padding: 22px 20px; }
  .feature-icon { font-size: 24px; margin-bottom: 10px; }
  .feature h3 { margin-bottom: 6px; }
  .feature p { font-size: 15px; }
  .feature-grid { gap: 14px; }

  /* Steps */
  .steps { gap: 14px; }
  .steps li { padding: 22px 20px; }
  .step-num { width: 30px; height: 30px; font-size: 14px; margin-bottom: 12px; }

  /* Pricing */
  .pricing-card { padding: 28px 22px; border-radius: 16px; }
  .pricing-amount { font-size: 30px; }

  /* FAQ */
  .faq summary { font-size: 15px; }
  .faq details { padding: 14px 16px; }

  /* CTA */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }

  /* Footer */
  .site-footer { padding: 40px 0 24px; }
  .footer-base { font-size: 12px; margin-top: 28px; padding-top: 16px; }

  /* Legal pages */
  .legal { padding: 36px 0 56px; }
  .legal h1 { font-size: 30px; }
  .legal h2 { font-size: 19px; margin-top: 28px; }
  .legal p { font-size: 15.5px; }
}

/* Smallest phones */
@media (max-width: 380px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .lede { font-size: 15.5px; }
  .container { padding: 0 14px; }
  .pricing-card { padding: 22px 18px; }
}

/* Larger tap targets and prevent iOS blue-tap highlight */
@media (hover: none) {
  a, button {
    -webkit-tap-highlight-color: transparent;
  }
}
