/* Apex360 CRM website styles */
:root {
  --navy: #0F2F52;
  --blue: #17497F;
  --orange: #E8731A;
  --orange-btn: #C2570B;
  --orange-btn-hover: #A84A08;
  --orange-light: #F59A4A;
  --teal: #138A8F;
  --teal-dark: #0E6F73;
  --text: #2B3A4A;
  --muted: #4A5868;
  --line: #DCE4EE;
  --soft: #F3F7FB;
  --footer: #0B2440;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #ffffff;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--navy); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.h { font-family: Montserrat, sans-serif; color: var(--navy); letter-spacing: -0.01em; }
.accent { color: var(--orange); }
.center { text-align: center; }

/* Header */
.site-header { border-bottom: 1px solid #E4EAF1; background: #ffffff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 52px; display: block; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.navlink { font-family: Montserrat, sans-serif; font-weight: 600; font-size: 15px; color: var(--text); text-decoration: none; padding: 12px 10px; }
.navlink:hover, .navlink.active { color: var(--orange-btn); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 8px; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 15px; text-decoration: none; border: none; cursor: pointer; }
.btn-o { background: var(--orange-btn); color: #ffffff; }
.btn-o:hover { background: var(--orange-btn-hover); color: #ffffff; }
.btn-n { background: #ffffff; color: var(--blue); border: 2px solid var(--blue); }
.btn-n:hover { background: #EEF3F9; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* Common blocks */
.section { padding-top: 88px; padding-bottom: 88px; }
.bg-soft { background: var(--soft); }
.bg-fade { background: linear-gradient(180deg, #F3F7FB 0%, #ffffff 100%); }
.bg-navy { background: var(--navy); color: #D3DDE8; }
.bg-navy .h { color: #ffffff; }
.card { background: #ffffff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.card h3 { margin: 14px 0 8px; font-size: 20px; }
.card p { margin: 0; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.eyebrow { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-btn); }
.pill { display: inline-block; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); background: #E3F4F4; padding: 6px 12px; border-radius: 999px; }
.page-title { font-size: clamp(34px, 4.5vw, 50px); line-height: 1.1; font-weight: 800; margin: 0 0 16px; }
.section-title { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.15; margin: 0 0 14px; }
.lead { font-size: 20px; }
.intro { max-width: 720px; margin: 0 auto 48px; text-align: center; }

/* Home */
.hero { padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; font-weight: 800; margin: 20px 0; }
.hero p.lead { margin: 0 0 32px; max-width: 540px; }
.hero img { width: 100%; border-radius: 16px; display: block; box-shadow: 0 24px 60px rgba(15, 47, 82, 0.18); }
.hero .small { font-size: 15px; color: var(--muted); margin: 20px 0 0; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.trust div { display: flex; align-items: center; gap: 12px; color: #ffffff; font-weight: 600; }
.module { border-top: 4px solid var(--blue); }
.module.teal { border-top-color: var(--teal); }
.module.orange { border-top-color: var(--orange); }
.module.navy { border-top-color: var(--navy); }
.cycle img { width: 100%; border-radius: 16px; display: block; background: #ffffff; }
.cycle ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.cycle strong { color: var(--navy); }
.price-teaser { background: var(--blue); border-radius: 14px; padding: 28px; color: #D3DDE8; }
.price-teaser .name { font-family: Montserrat, sans-serif; color: #ffffff; font-size: 20px; font-weight: 700; }
.price-teaser .amount { font-family: Montserrat, sans-serif; color: #ffffff; font-size: 40px; font-weight: 800; margin-top: 16px; }
.price-teaser .amount span { font-size: 16px; font-weight: 600; }
.price-teaser.featured { background: #ffffff; border: 3px solid var(--orange); color: var(--muted); }
.price-teaser.featured .name, .price-teaser.featured .amount { color: var(--navy); }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; background: #FFF4EA; border-radius: 20px; padding: 48px; }
.cta-box > div:first-child { flex: 1 1 420px; min-width: 0; }

/* Features */
.feat { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding: 64px 0; border-bottom: 1px solid #E4EAF1; }
.feat:last-child { border-bottom: none; }
.feat > div { flex: 1 1 320px; min-width: 0; }
.feat h2 { font-size: 32px; margin: 14px 0 12px; }
.feat p { margin: 0; }
.tag { display: inline-block; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.tag.all { background: #E6EEF7; color: var(--blue); }
.tag.basic { background: #E3F4F4; color: var(--teal-dark); }
.tag.ict { background: #FFF0E3; color: var(--orange-btn-hover); }
.tag.soon { background: #EEF0F3; color: #3D4650; }
.list { flex: 2 1 520px; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 28px; }
.list li { padding-left: 28px; position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.included h3 { color: var(--orange-light); font-size: 19px; margin: 0 0 8px; }
.included p { margin: 0; }

/* Pricing */
.toggle { display: inline-flex; gap: 4px; background: #ffffff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg { min-height: 44px; padding: 0 20px; border: none; border-radius: 999px; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; background: transparent; color: var(--blue); }
.seg.on { background: var(--blue); color: #ffffff; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; padding-bottom: 72px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; }
.plan.popular { border: 3px solid var(--orange); box-shadow: 0 18px 44px rgba(15, 47, 82, 0.14); }
.plan .badge { position: absolute; top: -14px; left: 28px; background: var(--orange-btn); color: #ffffff; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan h2 { font-size: 24px; margin: 0; }
.plan .tagline { margin: 6px 0 20px; color: var(--muted); }
.plan .price { font-family: Montserrat, sans-serif; color: var(--navy); font-size: 46px; font-weight: 800; line-height: 1; }
.plan .price span { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan .note { margin: 8px 0 20px; font-size: 15px; color: var(--muted); }
.plan .users { background: var(--soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; font-weight: 600; color: var(--navy); }
.plan ul { margin: 0 0 28px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; margin-top: 4px; }
.calc { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; background: var(--navy); border-radius: 20px; padding: 40px; color: #ffffff; }
.calc > div:first-child { flex: 1 1 320px; min-width: 0; }
.calc > div:last-child { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.calc .seg { background: var(--blue); color: #ffffff; }
.calc .seg.on { background: var(--orange); color: var(--footer); }
.stepper { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.step { width: 44px; height: 44px; border-radius: 8px; border: 2px solid #ffffff; background: transparent; color: #ffffff; font-size: 22px; font-weight: 700; cursor: pointer; }
.calc-result { background: var(--blue); border-radius: 12px; padding: 18px 20px; }
.calc-result .total { font-family: Montserrat, sans-serif; color: #ffffff; font-size: 34px; font-weight: 800; }
.calc-result .total span { font-size: 16px; font-weight: 600; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
.tbl th, .tbl td { padding: 14px 16px; border-bottom: 1px solid #E4EAF1; text-align: center; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { font-family: Montserrat, sans-serif; color: var(--navy); font-size: 15px; background: var(--soft); }
.yes { color: var(--teal-dark); font-weight: 700; }
.no { color: #8A96A3; }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.faq h3 { font-size: 18px; margin: 0 0 6px; }
.faq p { margin: 0; }

/* About */
.address-box { background: var(--blue); border-radius: 14px; padding: 24px; font-family: Montserrat, sans-serif; font-weight: 700; color: #ffffff; font-size: 20px; text-align: center; overflow-wrap: anywhere; }
.address-box span { color: var(--orange-light); }

/* Contact */
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info div { display: flex; gap: 14px; align-items: center; }
.customer-box { margin-top: 32px; background: var(--navy); border-radius: 14px; padding: 22px 24px; color: #D3DDE8; }
.customer-box strong { color: var(--orange-light); }
.form-card { background: #ffffff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: 0 18px 44px rgba(15, 47, 82, 0.10); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-weight: 600; color: var(--navy); font-size: 15px; }
.fld input, .fld select, .fld textarea { font: inherit; font-size: 16px; min-height: 46px; padding: 10px 12px; border: 1.5px solid #B9C6D4; border-radius: 8px; background: #ffffff; color: var(--text); width: 100%; }
.fld textarea { min-height: 110px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 3px solid #9CC3E8; border-color: var(--blue); }
.thanks { text-align: center; padding: 48px 0; }
.hidden { display: none; }

/* Footer */
.site-footer { background: var(--footer); color: #C5D2E0; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.site-footer .brand { font-family: Montserrat, sans-serif; color: #ffffff; font-size: 22px; font-weight: 800; }
.site-footer .brand span { color: var(--orange-light); }
.site-footer .col { display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: #C5D2E0; text-decoration: none; }
.site-footer a:hover { color: #ffffff; }
.site-footer .bottom { border-top: 1px solid #1E3D60; padding-top: 18px; padding-bottom: 24px; font-size: 14px; }

@media (max-width: 720px) {
  .section { padding-top: 56px; padding-bottom: 56px; }
  .cta-box, .calc, .form-card { padding: 28px 20px; }
}
