/*
 * ZiniApps Go — landing page styles.
 * Design tokens mirror the ZiniApps design system used by ziniapps-www,
 * assess-ui and assess-exam. Layered on top of Bootstrap 5.
 */

/* ------------------------------------------------------------------ tokens */

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --danger: #d93025;
  --success: #1e8e3e;
  --warning: #f9ab00;

  --text-primary: #202124;
  --text-body: #3c4043;
  --text-secondary: #5f6368;

  --border: #dadce0;
  --bg-light: #f8f9fa;
  --bg: #ffffff;

  --radius-card: 8px;
  --radius-btn: 4px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(60, 64, 67, .3);

  --header-height: 64px;
}

/* -------------------------------------------------------------------- base */

body {
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -.01em;
}

h1 { font-size: 2.75rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.25; }
h3 { font-size: 1.25rem; }

@media (max-width: 767.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover { color: var(--primary-dark); text-decoration: underline; }

.text-secondary-custom { color: var(--text-secondary); }

/* Anchored sections must clear the sticky header when linked to. */
section[id] { scroll-margin-top: calc(var(--header-height) + 8px); }

/* ----------------------------------------------------------------- buttons */

.btn {
  border-radius: var(--radius-btn);
  font-weight: 500;
  padding: .5rem 1.25rem;
}

.btn-primary,
.btn-primary:focus {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--border);
  background: #fff;
}

.btn-outline-primary:hover,
.btn-outline-primary:active {
  background-color: var(--primary-light) !important;
  border-color: var(--border) !important;
  color: var(--primary-dark) !important;
}

.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }

.btn-pill { border-radius: var(--radius-pill); }

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-white:hover { background: var(--primary-light); color: var(--primary-dark); }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-header .navbar { min-height: var(--header-height); }

.brand-wordmark {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  letter-spacing: -.02em;
}

.brand-wordmark:hover { text-decoration: none; }

/* Distinguishes this host from the marketing site in the wordmark. */
.brand-suffix {
  color: var(--primary);
  font-weight: 500;
}

.site-header .nav-link {
  color: var(--text-body);
  font-weight: 500;
  padding: .5rem 1rem;
}

.site-header .nav-link:hover { color: var(--primary); text-decoration: none; }

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

.hero {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--primary-light) 0%, #fff 100%);
}

.hero-subtitle {
  font-size: 1.175rem;
  color: var(--text-secondary);
  max-width: 34em;
  margin-bottom: 1.75rem;
}

@media (max-width: 767.98px) {
  .hero { padding: 48px 0; }

  /*
   * The hero row uses g-5 gutters, whose negative side margins are wider than
   * the container padding at narrow widths and push the row past the viewport.
   * The hero stacks to a single column here, so the horizontal gutter is not
   * needed — drop it rather than let the page scroll sideways.
   */
  .hero .row { --bs-gutter-x: 0; }
}

/* ---------------------------------------------------------------- sections */

.section { padding: 72px 0; }

.section-light { background: var(--bg-light); }

@media (max-width: 767.98px) {
  .section { padding: 48px 0; }
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: .5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 42em;
}

/* ------------------------------------------------------------------- cards */

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  height: 100%;
}

.feature-card h3 { font-size: 1.0625rem; margin-bottom: .5rem; }

.feature-card p { color: var(--text-secondary); margin-bottom: 0; font-size: .9375rem; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.badge-soft {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
  padding: .125rem .625rem;
  font-size: .75rem;
  font-weight: 500;
}

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

.step-number {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: .9375rem;
}

.step-item h3 { font-size: 1.0625rem; margin-bottom: .25rem; }

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

.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  height: 100%;
}

.pricing-card.featured { border-color: var(--primary); border-width: 2px; }

.price-amount {
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.price-unit { color: var(--text-secondary); font-size: .9375rem; }

.check-list { list-style: none; padding-left: 0; margin-bottom: 0; }

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .5rem;
  font-size: .9375rem;
}

.check-list li::before {
  content: "\F26E"; /* bi-check-lg */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
}

/* --------------------------------------------------------------- CTA / box */

.cta-banner {
  background: var(--primary);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.cta-banner h2 { color: #fff; }

.cta-banner p { color: rgba(255, 255, 255, .9); }

.info-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  height: 100%;
}

.info-box h3 { font-size: 1.0625rem; margin-bottom: .75rem; }

.info-box p:last-child { margin-bottom: 0; }

.info-box address { font-style: normal; margin-bottom: 0; color: var(--text-secondary); }

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

.site-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  font-size: .9375rem;
}

.site-footer h5 {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-secondary);
  margin-bottom: .75rem;
}

.site-footer ul { list-style: none; padding-left: 0; margin-bottom: 0; }

.site-footer ul li { margin-bottom: .375rem; }

.site-footer ul a { color: var(--text-body); }

.site-footer ul a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.25rem;
  color: var(--text-secondary);
  font-size: .875rem;
}
