/*
 * The app's accent (src/index.css, --color-accent) on Material's default look.
 *
 * Measured (WCAG relative luminance), text needs 4.5:1:
 * Light: #137a38 is the app's light-mode accent. As link text on white it measures
 * 5.43:1, and white text on it (the header) the same. Hover #116b31: 6.62:1.
 * Dark: #4ade80 is the app's dark-mode accent. As link text on Material's slate
 * background (hsl(232 15% 14%), about #1e2029) it measures 9.24:1. The header keeps a
 * dark green with white text (#116b31, 6.62:1) rather than white on the bright green.
 *
 * Landing tints: light #e8f5ec under #0d5426 text (9.9:1); dark #16301f under #e6f4ea
 * text (12.4:1). The hero and the closing band are a gradient from #0d5426 to #137a38
 * under white text: the lighter end is the 5.43:1 above.
 */
[data-md-color-scheme='default'] {
  --md-primary-fg-color: #137a38;
  --md-primary-fg-color--light: #137a38;
  --md-primary-fg-color--dark: #116b31;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #ffffffb3;
  --md-accent-fg-color: #116b31;
  --md-typeset-a-color: #137a38;
  --lp-tint: #e8f5ec;
  --lp-tint-fg: #0d5426;
  --lp-card: #ffffff;
  --lp-shadow: 0 0.5rem 1.5rem rgb(13 84 38 / 12%);
}

[data-md-color-scheme='slate'] {
  --md-primary-fg-color: #116b31;
  --md-primary-fg-color--light: #116b31;
  --md-primary-fg-color--dark: #0d5426;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #ffffffb3;
  --md-accent-fg-color: #4ade80;
  --md-typeset-a-color: #4ade80;
  --lp-tint: #16301f;
  --lp-tint-fg: #e6f4ea;
  --lp-card: #262a35;
  --lp-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 35%);
}

/*
 * The landing page (docs/site/index.md, `hide: navigation, toc, footer`). Every colour
 * comes from the variables above or Material's own, so both schemes stay measured.
 */
.landing {
  max-width: 62rem;
  margin: 0 auto;
}

.md-typeset .landing h2 {
  margin: 0 0 0.6em;
  font-size: 1.6em;
  font-weight: 800;
  line-height: 1.2;
  color: var(--md-default-fg-color);
}

.md-typeset .landing p {
  margin: 0 0 0.8em;
}

.md-typeset .landing ul,
.md-typeset .landing ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.md-typeset .landing li {
  margin: 0;
}

.md-typeset .lp-center {
  text-align: center;
}

/* Hero: a green panel, the pitch on the left, a mock of a set on the right. */
.lp-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 1.5rem 0 0;
  padding: 3rem 2.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #0d5426 0%, #137a38 100%);
  color: #ffffff;
  box-shadow: var(--lp-shadow);
}

.md-typeset .lp-hero h1 {
  margin: 0 0 0.5em;
  font-size: 2.5em;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.md-typeset .lp-eyebrow {
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
}

.md-typeset .lp-lead {
  font-size: 1.15em;
  line-height: 1.55;
  color: #ffffff;
}

.md-typeset .lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5em 0 0;
}

.md-typeset .lp-button {
  display: inline-block;
  padding: 0.75em 1.5em;
  border: 2px solid #ffffff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.md-typeset .lp-button:hover,
.md-typeset .lp-button:focus-visible {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .md-typeset .lp-button {
    transition: none;
  }

  .md-typeset .lp-button:hover,
  .md-typeset .lp-button:focus-visible {
    transform: none;
  }
}

/* White button, dark green text (9.9:1). */
.md-typeset .lp-button--light,
.md-typeset .lp-button--light:hover,
.md-typeset .lp-button--light:focus-visible {
  background-color: #ffffff;
  color: #0d5426;
}

.md-typeset .lp-button--ghost,
.md-typeset .lp-button--ghost:hover,
.md-typeset .lp-button--ghost:focus-visible {
  background-color: transparent;
  color: #ffffff;
}

.md-typeset .lp-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* The mock set card: the app's look, light on any scheme. */
.lp-hero__card {
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: #ffffff;
  color: #1f2937;
  box-shadow: 0 1rem 2rem rgb(0 0 0 / 25%);
}

.md-typeset .lp-hero__card p {
  margin: 0;
}

.md-typeset .lp-mock__label {
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #137a38;
}

.md-typeset .lp-mock__title {
  margin-top: 0.4em;
  font-weight: 700;
}

.md-typeset .lp-mock__big {
  margin: 0.2em 0 0.6em;
  font-size: 2em;
  font-weight: 800;
  color: #0d5426;
}

.md-typeset .lp-mock__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  line-height: 1.4;
  padding: 0.5em 0;
  border-top: 1px solid #e5e7eb;
  font-variant-numeric: tabular-nums;
}

.md-typeset .lp-mock__done {
  margin-top: 1em;
  padding: 0.7em;
  border-radius: 0.6em;
  background-color: #137a38;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
}

/* Three statements side by side, overlapping the bottom of the hero. */
.md-typeset ul.lp-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: -1.5rem 1.5rem 0;
  position: relative;
}

.md-typeset .lp-pillar {
  padding: 1.25rem 1.4rem;
  border-radius: 1rem;
  background-color: var(--lp-card);
  box-shadow: var(--lp-shadow);
}

.md-typeset .lp-pillar p {
  margin: 0;
  color: var(--md-default-fg-color--light);
}

.md-typeset .lp-pillar__big {
  margin-bottom: 0.3em !important;
  font-size: 1.3em;
  font-weight: 800;
  color: var(--md-typeset-a-color) !important;
}

/* Statement next to its call-out block; the second row mirrors the first. */
.lp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 4rem 0 0;
}

.lp-split--reverse .lp-split__text {
  order: 2;
}

.md-typeset .lp-kicker {
  margin-bottom: 0.4em;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--md-typeset-a-color);
}

.md-typeset .lp-split__text p:not(.lp-kicker) {
  font-size: 1.05em;
  line-height: 1.6;
  color: var(--md-default-fg-color--light);
}

.lp-callout {
  padding: 1.6rem 1.8rem;
  border-left: 0.35rem solid var(--md-primary-fg-color);
  border-radius: 1rem;
  background-color: var(--lp-tint);
  color: var(--lp-tint-fg);
  box-shadow: var(--lp-shadow);
}

.lp-callout--accent {
  border-left-color: var(--md-typeset-a-color);
}

.md-typeset ul.lp-checks > li {
  position: relative;
  padding: 0.45em 0 0.45em 2em;
  font-weight: 600;
  color: var(--lp-tint-fg);
}

.md-typeset ul.lp-checks > li + li {
  border-top: 1px solid rgb(13 84 38 / 15%);
}

.md-typeset ul.lp-checks > li::before {
  content: "✓";
  position: absolute;
  top: 0.4em;
  left: 0;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background-color: #137a38;
  color: #ffffff;
  font-size: 0.85em;
  font-weight: 800;
  line-height: 1.4em;
  text-align: center;
}

/* Tinted band with three tiles. */
.lp-band {
  margin: 4rem 0 0;
  padding: 2.5rem 2rem;
  border-radius: 1.25rem;
  background-color: var(--lp-tint);
  text-align: center;
}

.md-typeset .lp-band h2 {
  color: var(--lp-tint-fg);
}

.md-typeset ul.lp-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
  text-align: left;
}

.md-typeset .lp-tile {
  padding: 1.3rem 1.4rem;
  border-radius: 1rem;
  background-color: var(--lp-card);
  box-shadow: var(--lp-shadow);
}

.md-typeset .lp-tile p {
  margin: 0;
  color: var(--md-default-fg-color--light);
}

.md-typeset .lp-tile__title,
.md-typeset .lp-step__title {
  margin-bottom: 0.35em !important;
  font-size: 1.1em;
  font-weight: 800;
  color: var(--md-default-fg-color) !important;
}

/* Numbered steps as boxes. */
section:has(> .lp-steps) {
  margin: 4rem 0 0;
}

.md-typeset ol.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
  counter-reset: step;
}

.md-typeset .lp-step {
  position: relative;
  padding: 2.4rem 1.4rem 1.3rem;
  border: 2px solid var(--md-default-fg-color--lightest);
  border-radius: 1rem;
  counter-increment: step;
}

.md-typeset .lp-step::before {
  content: counter(step);
  position: absolute;
  top: -1.1rem;
  left: 1.4rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background-color: #137a38;
  color: #ffffff;
  font-weight: 800;
  line-height: 2.2rem;
  text-align: center;
  box-shadow: var(--lp-shadow);
}

.md-typeset .lp-step p {
  margin: 0;
  color: var(--md-default-fg-color--light);
}

.md-typeset blockquote.lp-quote {
  margin: 4rem auto 0;
  padding: 0;
  border: 0;
  max-width: 44rem;
  text-align: center;
}

.md-typeset blockquote.lp-quote p {
  font-size: 1.4em;
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  color: var(--md-default-fg-color);
}

.md-typeset blockquote.lp-quote p::before,
.md-typeset blockquote.lp-quote p::after {
  color: var(--md-typeset-a-color);
  font-weight: 800;
}

.md-typeset blockquote.lp-quote p::before {
  content: "„";
}

.md-typeset blockquote.lp-quote p::after {
  content: "“";
}

/* Closing band, the hero's gradient. */
.lp-cta {
  margin: 4rem 0 2rem;
  padding: 3rem 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #0d5426 0%, #137a38 100%);
  text-align: center;
  box-shadow: var(--lp-shadow);
}

.md-typeset .lp-cta h2,
.md-typeset .lp-cta p {
  color: #ffffff;
}

.md-typeset .lp-cta .lp-actions {
  justify-content: center;
}

@media screen and (max-width: 59.9375em) {
  .lp-hero,
  .lp-split {
    grid-template-columns: 1fr;
  }

  .lp-split--reverse .lp-split__text {
    order: 0;
  }

  .lp-hero__card {
    max-width: 20rem;
  }

  .md-typeset ul.lp-pillars,
  .md-typeset ul.lp-tiles,
  .md-typeset ol.lp-steps {
    grid-template-columns: 1fr;
  }

  .md-typeset ul.lp-pillars {
    margin: 1rem 0 0;
  }

  .md-typeset ol.lp-steps {
    gap: 1.8rem;
  }
}

@media screen and (max-width: 44.9375em) {
  .lp-hero {
    padding: 2rem 1.4rem;
  }

  .md-typeset .lp-hero h1 {
    font-size: 1.9em;
  }
}

/*
 * Guide pages: the sidebar repeats the site name above the sections, which the header
 * already shows. Hidden on wide screens only: on a phone the same title bar is the
 * drawer's header and holds its close control.
 */
@media screen and (min-width: 76.25em) {
  .md-nav--primary > .md-nav__title {
    display: none;
  }
}
