/* Credenda landing page (Task 1.11)
 *
 * Buyer-facing styling for credenda.io. Distinct from the dev /
 * dashboard skeleton in ../styles.css, but reuses its CSS custom
 * properties (--accent, --muted, etc.) so the brand reads as one
 * surface end-to-end.
 *
 * The visual language is: serif marketing display + grotesque body,
 * generous vertical rhythm, restrained accent use. No imagery, no
 * gradients, no SaaS-template flourishes — buyers in this segment
 * (mid-cap CFOs, treasury consultants) are allergic to that.
 */

body.landing {
  background: var(--bg);
}

body.landing .content {
  max-width: var(--max-width-wide);
  padding: 3.5rem 1.5rem 2rem;
}

body.landing .topbar {
  background: #fff;
}

body.landing .topbar-nav a {
  color: var(--accent);
  font-size: 0.9rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1rem;
}

.section-title {
  font-size: var(--text-h2);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

/* Screen-reader-only helper for the visually-hidden modules h2. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 1rem 0 3rem;
}

@media (max-width: 767px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.landing-hero h1 {
  font-size: var(--text-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  font-weight: 600;
}

.landing-hero .lede {
  font-size: var(--text-lede);
  line-height: 1.55;
  color: var(--fg);
  margin: 0 0 1.5rem;
  max-width: 36ch;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 0.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  filter: brightness(0.94);
  text-decoration: none;
}

.btn-link {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.btn-link:hover {
  text-decoration: none;
  filter: brightness(0.92);
}

.hero-microcopy {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.hero-shot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 18px 48px -22px rgba(31, 77, 139, 0.25),
              0 4px 14px -6px rgba(0, 0, 0, 0.08);
  position: relative;
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-shot-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 60%, rgba(255, 255, 255, 0));
  color: var(--muted);
  font-size: 0.78rem;
}

/* --- Sabine pull-quote band --------------------------------------- */

.landing-pullquote {
  padding: 1.5rem 0 2.75rem;
  background: var(--bg);
}

.pullquote-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.25rem 0 0.25rem 1.75rem;
  border-left: 4px solid var(--accent);
  background: transparent;
}

.pullquote-text {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  font-weight: 500;
  color: var(--fg);
}

.pullquote-cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-style: normal;
}

/* --- how it works -------------------------------------------------- */

.landing-how-it-works {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.how-it-works-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 767px) {
  .how-it-works-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.how-it-works-step {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.005em;
}

.step-body {
  margin: 0;
  color: var(--fg);
  font-size: 0.97rem;
  line-height: 1.55;
}

/* --- module showcase ---------------------------------------------- */

.landing-modules {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.module-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1023px) {
  .module-grid {
    grid-template-columns: 1fr;
  }
}

.module-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 120ms ease, transform 120ms ease;
}

.module-card:hover {
  box-shadow: 0 12px 32px -16px rgba(31, 77, 139, 0.18),
              0 3px 10px -4px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.module-shot {
  background: var(--code-bg);
  border-bottom: 1px solid var(--border);
  aspect-ratio: 16 / 11;
  overflow: hidden;
  position: relative;
}

.module-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.module-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1 1 auto;
}

.module-tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0;
  font-weight: 600;
}

/* Plan-mapping badge (Task 3.2) — small uppercase pill rendered
 * inline inside .module-tag so it sits beside the tag on desktop and
 * wraps to the next line on narrow cards. Muted palette keeps it
 * subordinate to the module name. */
.module-plan-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.18rem 0.55rem;
  background: var(--code-bg);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  vertical-align: 1px;
}

.module-card h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.005em;
}

.module-line {
  margin: 0;
  color: var(--fg);
  font-size: 0.97rem;
}

.module-example {
  margin: 0.4rem 0 0;
  padding: 0.75rem 0.9rem;
  background: var(--code-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--fg);
}

.module-example em {
  font-style: italic;
}

.module-cta-row {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.module-cta-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.module-cta-primary:hover {
  filter: brightness(0.94);
  text-decoration: none;
}

.module-cta-secondary {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.module-cta-secondary:hover {
  text-decoration: none;
  filter: brightness(0.92);
}

/* --- built by ----------------------------------------------------- */

.landing-built-by {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.built-by-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
  background: var(--code-bg);
  border-radius: var(--radius-md);
  color: var(--fg);
  font-size: 0.97rem;
  line-height: 1.6;
  text-align: center;
}

/* --- trust strip --------------------------------------------------- */

.landing-trust {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin: 0 -1.5rem;
}

.trust-strip-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .trust-strip-inner {
    justify-content: flex-start;
    gap: 1.25rem 2rem;
  }
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
  text-decoration: none;
  flex: 0 1 auto;
}

a.trust-badge:hover,
a.trust-badge:hover .trust-icon {
  color: var(--accent);
  text-decoration: none;
}

.trust-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
}

.trust-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.trust-label {
  white-space: normal;
  max-width: 22ch;
}

/* --- pricing teaser (3-column mini-table, Task 3.1) -------------- */

.landing-pricing-teaser {
  padding: 3rem 0;
}

.pricing-teaser-cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 1.75rem;
}

/* Reuses the .module-grid breakpoint so the pricing tiles collapse
 * to a single column at the same width modules do. */
@media (max-width: 1023px) {
  .pricing-teaser-cards {
    grid-template-columns: 1fr;
  }
}

.pricing-teaser-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  /* No box-shadow on purpose — these are scan tiles, not product
   * cards. The .module-card hover lift is intentionally not applied
   * here either. */
}

/* Treasury (middle) card carries a 3px accent stripe along the top
 * to call out the "all three modules" plan without using a
 * "Most picked" badge (avoids coupling to /pricing's featured-plan
 * logic). The padding-top compensation keeps the card's interior
 * baseline aligned with the other two cards. */
.pricing-teaser-card--featured {
  border-top: 3px solid var(--accent);
  padding-top: calc(1.5rem - 2px);
}

.pricing-teaser-plan {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
}

.pricing-teaser-price {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.pricing-teaser-seat {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.pricing-teaser-scope {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pricing-teaser-cta {
  margin: 0;
  text-align: center;
}

.pricing-teaser-cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.pricing-teaser-cta a:hover {
  text-decoration: none;
  filter: brightness(0.92);
}

/* --- Sabine vignette ---------------------------------------------- */

.landing-vignette {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.vignette-body {
  max-width: 720px;
  font-size: 1.02rem;
  line-height: 1.62;
}

.vignette-body p {
  margin: 0 0 1rem;
}

.vignette-pull {
  margin-top: 1.25rem !important;
  padding: 1rem 1.25rem;
  background: #fff;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  color: #1a1a1a;
}

/* --- accessibility ------------------------------------------------- */

/* Focus rings on keyboard navigation (WCAG 2.4.7). Browser defaults
 * satisfy axe-core, but rendering an explicit 2px brand ring keeps the
 * focus state legible against the warm-cream background on every CTA. */
body.landing a:focus-visible,
body.landing button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

