/* ==========================================================================
   StartSmart AI — landing.css
   Public landing page (index.php) and other marketing pages.
   ========================================================================== */

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 88px 24px 64px;
  text-align: center;
  background:
    radial-gradient(900px 500px at 50% -50%, rgba(70, 96, 255, 0.18) 0%, transparent 70%),
    var(--bg-page);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(70, 96, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask: radial-gradient(closest-side at 50% 30%, #000, transparent 80%);
  -webkit-mask: radial-gradient(closest-side at 50% 30%, #000, transparent 80%);
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}
.hero__title {
  margin-top: 22px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--fg-1);
  position: relative;
  z-index: 1;
}
.hero__title em {
  display: block;
  background: linear-gradient(120deg, var(--brand), #8a9bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
.hero__sub {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: 17px;
  color: var(--fg-3);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.hero__actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(70, 96, 255, 0.28);
  transition: background 150ms, transform 150ms;
}
.hero__cta:hover { background: var(--brand-dark); }
.hero__cta:active { transform: scale(0.98); }
.hero__cta--ghost {
  background: var(--bg-card);
  color: var(--fg-1);
  border: 1px solid var(--border);
  box-shadow: none;
}
.hero__cta--ghost:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.hero__perk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.18);
  color: #15803d;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* ── Stats bar ───────────────────────────────────────── */
.stats {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 28px 24px;
}
.stats__item { text-align: center; }
.stats__num {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--brand-deep);
  letter-spacing: -0.02em;
}
.stats__lbl {
  margin-top: 2px;
  font-size: 13px;
  color: var(--fg-4);
  font-weight: 500;
}
@media (max-width: 600px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ── Section common ──────────────────────────────────── */
.section {
  padding: 88px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.section--alt { background: var(--bg-card); max-width: none; margin: 0; }
.section--alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 56px; }
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.section__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.section__title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}
.section__title em {
  display: block;
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), #8a9bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section__sub {
  margin: 14px auto 0;
  max-width: 640px;
  font-size: 16px;
  color: var(--fg-3);
  line-height: 1.6;
}

/* ── How-it-works steps ──────────────────────────────── */
.hiw {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.hiw__step {
  position: relative;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 200ms;
}
.hiw__step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-mid);
}
.hiw__num {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--brand);
  letter-spacing: 0.08em;
}
.hiw__icon {
  margin-top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hiw__title {
  margin-top: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--fg-1);
}
.hiw__desc {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--fg-3);
  line-height: 1.6;
}
@media (max-width: 900px) { .hiw { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .hiw { grid-template-columns: 1fr; } }

/* ── Features grid ───────────────────────────────────── */
.feats {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
}
.feat {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 200ms;
}
.feat:hover { border-color: var(--brand-mid); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.feat--wide { grid-column: span 3; flex-direction: row; gap: 28px; }
.feat__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.feat__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat__title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--fg-1);
}
.feat__desc {
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.6;
}
.feat__viz {
  background: var(--bg-page);
  border-radius: 12px;
  padding: 18px;
  min-width: 260px;
  flex-shrink: 0;
}
.feat__viz-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 12px;
}
.feat__row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.feat__row-l { width: 80px; font-size: 12px; color: var(--fg-3); }
.feat__track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-muted);
  overflow: hidden;
}
.feat__fill { height: 100%; border-radius: 999px; }
.feat__val { width: 32px; text-align: right; font-size: 13px; font-weight: 700; }
.feat__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 12px;
}
.feat__total-lbl { font-size: 12.5px; color: var(--fg-3); font-weight: 600; }
.feat__total-num {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--brand);
}
@media (max-width: 900px) {
  .feats { grid-template-columns: 1fr 1fr; }
  .feat--wide { grid-column: span 2; flex-direction: column; }
}
@media (max-width: 600px) {
  .feats { grid-template-columns: 1fr; }
  .feat--wide { grid-column: span 1; }
}

/* ── Pricing cards ───────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
.price {
  position: relative;
  padding: 28px 26px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 200ms;
}
.price--pop {
  border-color: var(--brand);
  box-shadow: 0 10px 32px rgba(70, 96, 255, 0.16);
  transform: scale(1.02);
}
.price__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
}
.price__name {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--fg-1);
}
.price__desc { font-size: 13px; color: var(--fg-4); line-height: 1.5; }
.price__amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 2px;
}
.price__cur { font-size: 18px; font-weight: 700; color: var(--fg-2); }
.price__num {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 48px;
  color: var(--fg-1);
  line-height: 1;
}
.price__period { font-size: 14px; color: var(--fg-4); }
.price__feats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 18px;
}
.price__feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--fg-2);
}
.price__feat svg { color: var(--brand); flex-shrink: 0; }
.price__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 150ms;
}
.price__cta--solid {
  background: var(--brand);
  color: #fff;
  border: 0;
}
.price__cta--solid:hover { background: var(--brand-dark); }
.price__cta--ghost {
  background: var(--bg-card);
  color: var(--fg-1);
  border: 1px solid var(--border);
}
.price__cta--ghost:hover { background: var(--bg-hover); border-color: var(--border-strong); }
@media (max-width: 880px) {
  .pricing { grid-template-columns: 1fr; max-width: 440px; }
  .price--pop { transform: none; }
}

/* ── FAQ ─────────────────────────────────────────────── */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq__item {
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 150ms;
}
.faq__item:hover { border-color: var(--brand-mid); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-1);
}
.faq__q svg { color: var(--brand); transition: transform 200ms; flex-shrink: 0; }
.faq__a {
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms ease, margin-top 250ms ease;
  font-size: 13.5px;
  color: var(--fg-3);
  line-height: 1.65;
}
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__item.is-open .faq__a { max-height: 320px; margin-top: 10px; }

/* ── Final CTA ───────────────────────────────────────── */
.final-cta {
  text-align: center;
  padding: 88px 24px;
  background: linear-gradient(135deg, #151950 0%, #2b34b8 100%);
  color: #fff;
}
.final-cta h2 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.final-cta h2 em {
  display: block;
  color: #a5b0ff;
  font-style: normal;
}
.final-cta p {
  margin: 22px auto 0;
  max-width: 560px;
  color: rgba(232, 231, 255, 0.78);
  font-size: 16px;
  line-height: 1.6;
}
.final-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 26px;
  background: #fff;
  color: var(--brand-deep);
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
}

/* ── Mobile tightening ─────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 60px 18px 48px; }
  .section { padding: 56px 18px; }
  .final-cta { padding: 56px 18px; }
}
