/* ============================
   BRAND COLOR VARIABLES (default: blue)
   Override via JS using document.documentElement.style.setProperty
   ============================ */
:root {
  --bc: #3d6fd4;
  --bc-hover: #2f5bb5;
}

/* ============================
   BASE
   ============================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  color: #333;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ============================
   HEADER
   ============================ */
.header {
  padding: 8px 20px;
  border-bottom: 1px solid #e8e8e8;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-icon--lg {
  width: 100px;
  height: 100px;
}

.logo-icon--home {
  width: 112px;
  height: 112px;
}

.logo-text {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* ============================
   MAIN
   ============================ */
.main {
  padding: 0 20px;
}

/* ============================
   STEPS SECTION
   ============================ */
.steps-section {
  text-align: center;
  padding: 20px 0 16px;
}

.steps-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 28px;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  display: inline-flex;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  flex-shrink: 0;
}

.step-label {
  font-size: 15px;
  color: #444;
}

/* ============================
   ACTIVATION SECTION
   ============================ */
.activation-section {
  text-align: center;
  padding: 4px 0 12px;
}

.activation-title {
  font-size: 28px;
  font-weight: 300;
  color: #333;
  margin-bottom: 20px;
}

.activation-title strong {
  font-weight: 700;
}

.btn-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: var(--bc);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-continue:hover {
  background: var(--bc-hover);
}

.btn-arrow {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.activation-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

/* ============================
   FEATURES SECTION
   ============================ */
.features-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #ddd;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0 32px;
}

.feature-card {
  background: #f5f6f8;
  padding: 28px 16px;
  text-align: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 13px;
  color: #666;
}

/* ============================
   BILLING SECTION
   ============================ */
.billing-section {
  padding: 24px 0 40px;
}

.billing-text {
  font-size: 11px;
  color: #888;
  line-height: 1.7;
  text-align: center;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  border-top: 1px solid #e8e8e8;
  padding: 24px 20px 32px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 6px;
}

.footer-nav a,
.footer-nav-single {
  font-size: 13px;
  color: #333;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav-single:hover {
  text-decoration: underline;
}

.footer-nav-single {
  display: block;
  margin-bottom: 24px;
}

.footer-company {
  font-size: 11px;
  color: #999;
  line-height: 1.8;
}

.company-name {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.05em;
}

/* ============================
   POPUP OVERLAY
   ============================ */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}

.overlay.active {
  display: flex;
}

.popup {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.popup-header {
  background: #2d3340;
  padding: 20px 20px 18px;
}

.popup-subtitle {
  font-size: 15px;
  color: #ccc;
  font-weight: 400;
  margin-bottom: 4px;
}

.popup-title-bold {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.popup-body {
  padding: 24px 20px 28px;
}

.popup-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.popup-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.popup-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  flex-shrink: 0;
}

.popup-step-num.active {
  background: #1a2e4a;
  border-color: #1a2e4a;
  color: #fff;
}

.popup-step-label {
  font-size: 15px;
  color: #444;
  padding-top: 5px;
  line-height: 1.4;
}

.popup-step.active .popup-step-label {
  font-weight: 600;
  color: #1a2e4a;
}

.btn-popup {
  border-radius: 6px;
  font-size: 18px;
  padding: 16px;
}

.popup-consent {
  margin-top: 12px;
  font-size: 11px;
  color: #999;
  text-align: center;
  line-height: 1.6;
}

/* ============================
   CONTENT PLACEHOLDER SECTIONS
   ============================ */
.content-section {
  padding: 32px 0;
  border-top: 1px solid #e8e8e8;
}

.content-section__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 10px;
}

.content-section__body {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* ============================
   FAQ SECTION
   ============================ */
.faq-section {
  padding: 32px 0 8px;
  border-top: 1px solid #e8e8e8;
}

.faq-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 20px;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid #e8e8e8;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #1a2e4a;
  cursor: pointer;
  text-align: left;
  gap: 12px;
}

.faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--bc);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-bottom: 16px;
}

.faq-answer p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.faq-answer.open {
  display: block;
}

/* ============================
   HOMEPAGE
   ============================ */
.home-hero {
  text-align: center;
  padding: 48px 0 32px;
}

.home-hero__title {
  font-size: 26px;
  font-weight: 700;
  color: #1a2e4a;
  line-height: 1.3;
  margin-bottom: 12px;
}

.home-hero__sub {
  font-size: 15px;
  color: #666;
  margin-bottom: 0;
  line-height: 1.6;
}

.home-hero__cta {
  display: inline-flex;
  width: auto;
  padding: 16px 32px;
}

.home-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 8px 0 40px;
}

.home-card {
  background: #f5f6f8;
  border-radius: 8px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-card__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.home-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 4px;
}

.home-card__desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* ============================
   HOMEPAGE: TEXT SECTION
   ============================ */
.home-text-section {
  padding: 32px 0;
  border-top: 1px solid #e8e8e8;
}

.home-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 16px;
  line-height: 1.3;
}

.home-text-section p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ============================
   HOMEPAGE: BLOG
   ============================ */
.home-blog {
  padding: 32px 0;
  border-top: 1px solid #e8e8e8;
}

.blog-card {
  margin-bottom: 28px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}

.blog-card:last-child {
  margin-bottom: 0;
}

.blog-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  padding: 16px;
}

.blog-card__meta {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.blog-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 8px;
  line-height: 1.35;
}

.blog-card__excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* ============================
   HOMEPAGE: FAQ spacing
   ============================ */
.home-faq {
  border-top: 1px solid #e8e8e8;
}

/* ============================
   (OLD) HOME CTA BANNER — kept for reference
   ============================ */
.home-cta-banner {
  background: #1a2e4a;
  border-radius: 10px;
  padding: 36px 24px;
  text-align: center;
  margin-bottom: 40px;
}

.home-cta-banner__title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.home-cta-banner__sub {
  font-size: 14px;
  color: #adc4e8;
  margin-bottom: 24px;
}

.home-cta-banner__btn {
  display: inline-flex;
  width: auto;
  padding: 14px 28px;
  font-size: 16px;
}

/* ============================
   STATIC PAGES
   ============================ */
.page-content {
  padding-top: 36px;
  padding-bottom: 48px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 20px;
}

.page-subtitle {
  font-size: 17px;
  font-weight: 700;
  color: #1a2e4a;
  margin: 24px 0 8px;
}

.page-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}

.page-content a {
  color: var(--bc);
}

.contact-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #555;
}

/* ============================
   DESKTOP: center popup
   ============================ */
@media (min-width: 600px) {
  .overlay {
    align-items: center;
  }

  .popup {
    border-radius: 12px;
  }
}

/* ============================
   HOMEPAGE: WIDE LAYOUT
   ============================ */
body.home {
  max-width: 100%;
  background: #f7f8fa;
}

/* Inner content containers */
.home-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-inner--narrow {
  max-width: 740px;
}

/* Header */
.home-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 0;
}

.home-header__inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 4px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-nav {
  display: flex;
  gap: 28px;
}

.home-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
}

.home-nav a:hover {
  color: #1a2e4a;
}

/* Main padding reset */
.home-main {
  padding: 0;
}

/* Hero */
.home-hero {
  background: linear-gradient(135deg, #1a2e4a 0%, #2a4a7f 100%);
  padding: 72px 24px;
  text-align: center;
}

.home-hero__inner {
  max-width: 640px;
  margin: 0 auto;
}

.home-hero__title {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.home-hero__sub {
  font-size: 17px;
  color: #a8c4e8;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Feature cards section */
.home-cards-section {
  background: #fff;
  padding: 48px 0;
  border-bottom: 1px solid #e8e8e8;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-card {
  background: #f7f8fa;
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.home-card__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 16px;
}

.home-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 8px;
}

.home-card__desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Text section */
.home-text-section {
  background: #fff;
  padding: 56px 24px;
  border-bottom: 1px solid #e8e8e8;
  border-top: none;
}

.home-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 20px;
  line-height: 1.3;
}

.home-text-section p {
  font-size: 15px;
  color: #555;
  line-height: 1.85;
  margin-bottom: 16px;
}

/* Blog section */
.home-blog {
  background: #f7f8fa;
  padding: 56px 24px;
  border-top: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.blog-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 0;
}

.blog-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}

.blog-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  padding: 20px;
  flex: 1;
}

.blog-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card__excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* FAQ on homepage */
.home-faq {
  background: #fff;
  padding: 56px 24px;
  border-top: none;
}

.home-faq .faq-section {
  padding: 0;
}

/* Footer */
.home-footer {
  background: #fff;
  border-top: 1px solid #e8e8e8;
  padding: 0;
}

.home-footer .footer-nav,
.home-footer .footer-nav-single,
.home-footer .footer-company {
  padding: 0;
}

.home-footer > .home-inner {
  padding-top: 32px;
  padding-bottom: 32px;
}

/* Blog post page */
.blog-post {
  background: #fff;
  padding: 48px 24px 56px;
}

.blog-post__title {
  font-size: 30px;
  font-weight: 800;
  color: #1a2e4a;
  line-height: 1.25;
  margin-bottom: 28px;
}

.blog-post__hero {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 32px;
  display: block;
}

.blog-post h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a2e4a;
  margin: 32px 0 12px;
}

.blog-post h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a2e4a;
  margin: 24px 0 8px;
}

.blog-post p {
  font-size: 15px;
  color: #444;
  line-height: 1.85;
  margin-bottom: 16px;
}

.blog-post ul {
  margin: 0 0 16px 20px;
}

.blog-post li {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 4px;
}

/* Mobile overrides for homepage */
@media (max-width: 700px) {
  .home-hero__title { font-size: 26px; }
  .home-hero { padding: 48px 20px; }
  .home-cards { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .home-header__inner { padding: 12px 16px; }
  .home-nav { gap: 16px; }
  .blog-post__title { font-size: 22px; }
  .blog-post__hero { height: 200px; }
  .home-text-section,
  .home-blog,
  .home-faq,
  .blog-post { padding-left: 16px; padding-right: 16px; }
}
