/*
 * meenie landing page styles.
 *
 * No external fonts, no JS hooks, no build step. Theme switches via the
 * `color-scheme` declaration plus a `prefers-color-scheme: dark` override of a
 * handful of custom properties. Anything that needs to differ between modes
 * goes through those vars so the rest of the rules stay theme-agnostic.
 */

:root {
  color-scheme: light dark;

  --fg: #111827;
  --bg: #ffffff;
  --muted: #5b6472;
  --surface: #f5f3f7;
  --surface-border: #e5e0ea;
  --brand: #4a154b;
  --brand-hover: #611f60;
  --brand-fg: #ffffff;
  --link: #4a154b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f3f4f6;
    --bg: #14101a;
    --muted: #a7a3b1;
    --surface: #1f1a26;
    --surface-border: #2c2535;
    --brand: #b794c6;
    --brand-hover: #cdb0db;
    --brand-fg: #14101a;
    --link: #cdb0db;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
}

a {
  color: var(--link);
}

a:focus-visible,
.install:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  white-space: nowrap;
}

.page {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.prose {
  max-width: 36rem;
  margin-inline: auto;
}

/* Hero ---------------------------------------------------------------- */

.hero {
  text-align: center;
  padding-block: 1rem 2.5rem;
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero__brand svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.hero h1 {
  margin: 1rem 0 0.25rem;
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero__tagline {
  font-size: clamp(1.125rem, 3.2vw, 1.375rem);
  color: var(--fg);
  margin: 0.25rem auto 1.25rem;
  max-width: 32rem;
  font-weight: 500;
}

.hero__description {
  color: var(--muted);
  margin: 0 auto 1.75rem;
  max-width: 34rem;
}

.install {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--brand);
  color: var(--brand-fg);
  padding: 0.85rem 1.5rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  transition: background 0.15s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.install:hover,
.install:focus {
  background: var(--brand-hover);
}

.install__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0;
}

.install--secondary {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--muted);
  box-shadow: none;
}

.install--secondary:hover,
.install--secondary:focus {
  background: var(--surface, rgba(0, 0, 0, 0.04));
  border-color: var(--fg);
}

@media (prefers-color-scheme: dark) {
  .install--secondary:hover,
  .install--secondary:focus {
    background: rgba(255, 255, 255, 0.06);
  }
}

pre {
  background: var(--surface, rgba(0, 0, 0, 0.04));
  border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent);
  border-radius: 0.6rem;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 1.5rem 0;
}

pre code {
  background: transparent;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  pre {
    background: rgba(255, 255, 255, 0.04);
  }
}

.muted {
  color: var(--muted);
}

/* Sections ------------------------------------------------------------ */

section {
  padding-block: 2.5rem;
}

section + section {
  border-top: 1px solid var(--surface-border);
}

h2 {
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  text-align: center;
  letter-spacing: -0.01em;
}

/* How it works -------------------------------------------------------- */

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

@media (max-width: 40rem) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.25rem 1.5rem;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-fg);
  font-weight: 600;
  font-size: 0.875rem;
}

.step h3 {
  margin: 0.75rem 0 0.4rem;
  font-size: 1.0625rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Commands ----------------------------------------------------------- */

.commands {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.commands div {
  display: grid;
  gap: 0.25rem;
}

.commands dt {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
  font-size: 0.9375rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  align-self: start;
  justify-self: start;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.commands dd {
  margin: 0;
  color: var(--muted);
}

/* Automation tip ----------------------------------------------------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-left: 4px solid var(--brand);
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
  margin-inline: auto;
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 0.5rem;
  color: var(--muted);
}

/* Footer ------------------------------------------------------------- */

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface-border);
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:hover {
  color: var(--fg);
}
