:root {
  --blue: #1477EE;
  --blue-hero: #005CCE;
  --blue-dark: #0C1A35;
  --blue-darker: #050d1f;
  --blue-light: #e8f2fe;
  --yellow: #FAE90B;
  --yellow-dark: #d4c700;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --bg: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --radius: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== HEADER ====== */
.site-header {
  /* #1477EE layered over #0C1A35 — matches the WP banner composition */
  background:
    linear-gradient(rgba(20, 119, 238, .85), rgba(20, 119, 238, .85)),
    #0C1A35;
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 44px; width: auto; }
.logo-text { font-weight: 700; color: var(--white); font-size: 1.1rem; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--white);
  font-weight: 500;
  font-size: .95rem;
}
nav.main-nav a:hover { color: var(--yellow); text-decoration: none; }

.nav-cta {
  background: var(--yellow);
  color: var(--text) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--yellow-dark); color: var(--text) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background:
      linear-gradient(rgba(20, 119, 238, .85), rgba(20, 119, 238, .85)),
      #0C1A35;
    box-shadow: var(--shadow);
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  nav.main-nav li { border-top: 1px solid rgba(255,255,255,.15); }
  nav.main-nav li:first-child { border-top: 0; }
  nav.main-nav a { display: block; padding: 14px 24px; }
  .nav-cta { margin: 8px 24px; text-align: center; }
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--yellow); color: var(--text); }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 12px 26px;
}
.btn-outline:hover { background: var(--white); color: var(--blue-dark); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }

/* ====== HERO ====== */
.hero {
  background:
    linear-gradient(rgba(20, 119, 238, .85), rgba(20, 119, 238, .85)),
    #0C1A35;
  color: var(--white);
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.875rem);
  line-height: 1.3;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 auto 20px;
  max-width: 860px;
  text-wrap: balance;
}
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .8);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-stats {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stats .stat {
  text-align: center;
}
.hero-stats .num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--yellow);
  display: block;
}
.hero-stats .label {
  font-size: .9rem;
  opacity: .8;
}
.hero.compact { padding: 60px 0 70px; }

/* ====== SECTIONS ====== */
section.section {
  padding: 80px 0;
}
section.alt { background: var(--blue-light); }
.section h2 { text-align: center; margin-bottom: 16px; }
.section .section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 56px;
  font-size: 1.1rem;
}

/* ====== TWO-COLUMN SPLIT ====== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
}
.split img { border-radius: var(--radius); }

/* ====== FEATURE GRID ====== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.feature-card .icon {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.feature-card .icon img { width: auto; height: 100%; max-width: 100%; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); margin: 0; }

/* ====== PRICING ====== */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 680px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
}
.plan.featured {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.plan .badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--text);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
}
.plan h3 { font-size: 1.5rem; }
.plan .price {
  margin: 16px 0;
}
.plan .price .old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 1.1rem;
}
.plan .price .now {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue);
  margin-left: 6px;
}
.plan .price .per { color: var(--text-muted); }
.plan .billed { color: var(--text-muted); font-size: .9rem; margin: 0 0 24px; }

/* ====== APP STORE BADGES (homepage) ====== */
.app-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: #000;
  color: #fff;
  border-radius: 999px;
  min-width: 200px;
  transition: background .15s ease, transform .15s ease;
}
.app-badge:hover {
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.app-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: currentColor;
}
.app-badge .label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.app-badge .small { font-size: .72rem; opacity: .85; }
.app-badge .big { font-size: 1.05rem; font-weight: 600; }

/* ====== PLATFORM CARDS (download page) ====== */
.platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .platforms { grid-template-columns: 1fr; } }
.platform-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.platform-card img {
  border-radius: 8px;
  margin: 0 auto 20px;
}
.platform-card h3 { margin-bottom: 8px; }
.platform-card p { color: var(--text-muted); font-size: .95rem; flex-grow: 1; }
.platform-card .btn { margin-top: 16px; align-self: center; }

/* ====== TESTIMONIALS ====== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial .stars { color: var(--yellow); margin-bottom: 8px; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial .author { font-weight: 600; margin-bottom: 4px; }
.testimonial .meta { color: var(--text-muted); font-size: .85rem; margin-bottom: 14px; }
.testimonial blockquote { margin: 0; color: var(--text); font-style: italic; }
.review-summary {
  text-align: center;
  margin-bottom: 48px;
}
.review-summary .big-rating {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue);
}
.review-summary .stars-row {
  color: var(--yellow);
  font-size: 1.5rem;
  letter-spacing: 4px;
}
.review-summary .ratings-meta { color: var(--text-muted); margin-top: 8px; }

/* ====== FAQ ====== */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 20px 24px;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 0;
  font-size: 1.5rem;
  color: var(--blue);
  font-weight: 400;
}
.faq details[open] summary::after { content: '–'; }
.faq .answer { padding-top: 12px; color: var(--text-muted); }
.faq .answer p { margin: 0 0 .8em; }
.faq .answer ul { padding-left: 20px; color: var(--text-muted); }

/* ====== STEPS ====== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  text-align: center;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* ====== CTA BAND ====== */
.cta-band {
  background: var(--blue-dark);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { opacity: .9; max-width: 600px; margin: 0 auto 24px; }

/* ====== LEGAL ====== */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal h1 { text-align: center; margin-bottom: 40px; }
.legal h2 {
  font-size: 1.4rem;
  margin: 40px 0 16px;
  color: var(--blue-dark);
  text-align: left;
}
.legal h3 {
  font-size: 1.1rem;
  margin: 24px 0 12px;
}
.legal p, .legal li { color: var(--text); line-height: 1.7; }
.legal ul { padding-left: 24px; }
.legal .important {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  border-radius: 4px;
  font-weight: 600;
  margin: 24px 0;
}

/* ====== FOOTER ====== */
.site-footer {
  background: var(--blue-darker);
  color: var(--white);
  padding: 56px 0 24px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 860px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}
.site-footer .brand { max-width: 320px; }
.site-footer .brand img { height: 40px; margin-bottom: 16px; }
.site-footer .brand p { opacity: .7; font-size: .9rem; }
.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin-bottom: 8px; }
.site-footer a {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
}
.site-footer a:hover { color: var(--white); text-decoration: none; }
.site-footer .social { display: flex; gap: 12px; margin-top: 12px; }
.site-footer .social a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: var(--white);
}
.site-footer .social a:hover { background: var(--yellow); color: var(--text); }
.site-footer .copyright {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: .85rem;
  opacity: .6;
}

/* ====== TABS ====== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab-btn {
  background: transparent;
  border: 2px solid var(--border);
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: .95rem;
  color: var(--text);
}
.tab-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ====== UTILS ====== */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
