/* Public site: home, pricing, sign-up, sign-in.
   Builds on admin.css for the shared primitives (buttons, cards, inputs,
   badges) and adds only the marketing layout on top. */

/* Sticky-footer layout: on a short page (sign-in, sign-up) the footer would
   otherwise sit directly under the card with empty space below it. Making the
   body a column and giving the footer `margin-top: auto` pins it to the bottom
   of the viewport without pinning it over long content. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-head {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-head-in {
  max-width: 1140px;
  margin: 0 auto;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo { height: 26px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }

.site-nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover { color: var(--text); }
.site-nav a.on { color: var(--text); }

.site-nav .btn {
  background: var(--accent);
  color: #fff;
  padding: 8px 15px;
  border-radius: 8px;
}

.site-nav .btn:hover { color: #fff; filter: brightness(1.07); }

.site-main { max-width: 1140px; margin: 0 auto; padding: 0 24px 60px; }

/* --- hero ----------------------------------------------------------------- */

.hero { padding: 68px 0 44px; text-align: center; }

.hero h1 {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 auto;
  max-width: 620px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--dim);
}

.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.hero-cta .big { padding: 12px 24px; font-size: 15px; font-weight: 600; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--dim); }

@media (max-width: 640px) {
  .hero { padding: 44px 0 30px; }
  .hero h1 { font-size: 31px; }
}

/* --- feature grid --------------------------------------------------------- */

.section { padding: 40px 0; }
.section h2 { font-size: 24px; margin: 0 0 6px; text-align: center; letter-spacing: -0.01em; }
.section .lede { text-align: center; color: var(--dim); margin: 0 auto 30px; max-width: 560px; }

.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px 22px;
}

.feature h3 { margin: 0 0 6px; font-size: 15.5px; }
.feature p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--dim); }

.feature .ic {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* --- numbered steps ------------------------------------------------------- */

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { position: relative; padding-left: 46px; }

.step::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin: 5px 0 5px; font-size: 15px; }
.step p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--dim); }

/* --- pricing -------------------------------------------------------------- */

/* Four across on a wide screen — free plus the three paid tiers — so the whole
   ladder is comparable in one glance. Explicit columns rather than `auto-fit`,
   which would reflow to 3+1 at awkward widths and break that comparison. */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  /* Stretch, not start: every card is the height of the tallest, so the
     buttons line up and no plan looks like an afterthought. */
  align-items: stretch;
}

@media (max-width: 1000px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }

.price {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
}

/* One plan is marked to guide the eye; without it every option looks equally
   considered and the reader has to compare from scratch. */
.price.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.price .tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.price h3 { margin: 0 0 3px; font-size: 17px; }
.price .blurb { color: var(--dim); font-size: 13px; min-height: 38px; margin-bottom: 12px; }
/* Keep the price and its period on one line — "₹14,999 / 365 days" wrapping
   mid-figure made one card look taller than the rest. */
.price .price-line { white-space: nowrap; }
.price .amount { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.price .per { font-size: 13px; color: var(--dim); font-weight: 400; }
.price .credits-line { margin: 10px 0 16px; font-size: 13.5px; color: var(--text); }

.price ul { list-style: none; margin: 0 0 18px; padding: 0; font-size: 13.5px; flex: 1 0 auto; }
.price li { padding: 5px 0 5px 22px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price li.no { color: var(--dim); }
.price li.no::before { content: "✕"; color: var(--dim); }
.price .cta { width: 100%; padding: 10px; font-weight: 600; }

/* --- auth pages ----------------------------------------------------------- */

.auth-wrap { max-width: 400px; margin: 56px auto; padding: 0 22px; width: 100%; }
.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.auth-card h1 { font-size: 21px; margin: 0 0 4px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--dim); font-size: 13.5px; margin-bottom: 20px; }
.auth-card .fld + .fld { margin-top: 12px; }
.auth-card button.primary { width: 100%; margin-top: 18px; padding: 10px; font-weight: 600; }
.auth-card .swap { text-align: center; font-size: 13px; color: var(--dim); margin-top: 15px; }
.auth-card .swap a { color: var(--accent); }
.auth-msg { min-height: 20px; font-size: 13px; text-align: center; margin-top: 10px; color: var(--dim); }
.auth-msg.bad { color: var(--red); }

.perks { list-style: none; margin: 18px 0 0; padding: 0; font-size: 13px; color: var(--dim); }
.perks li { padding: 3px 0 3px 20px; position: relative; }
.perks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* --- footer --------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 26px 24px;
  margin-top: auto;
}

.site-foot-in {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--dim);
}

.site-foot-in a { color: var(--dim); }
.site-foot nav { margin-left: auto; display: flex; gap: 18px; }
