/* diddly.liquidsteam.com — the product landing page.

   Read on a phone far more often than on a desk: somebody is usually looking
   this up while other people wait, so the Join button has to be the first
   thing that lands and it has to be reachable with a thumb. */

:root {
  --ink: #17140f;
  --muted: #5f5951;
  --paper: #fbf8f1;
  --panel: #ffffff;
  --line: #e4ddd0;
  --accent: #c0392b;      /* barn red */
  --accent-ink: #ffffff;
  --gold: #e5a823;
  --display: "Futura", "Avenir Next", "Trebuchet MS", sans-serif;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2ede3;
    --muted: #a9a196;
    --paper: #14110d;
    --panel: #1e1a15;
    --line: #332c23;
    --accent: #e05a4a;
    --accent-ink: #1a0b08;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.15; }

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

/* ----- hero -------------------------------------------------------------- */
.hero {
  position: relative;
  background: #221a12 url("assets/farm.jpg") center / cover no-repeat;
  color: #f7f2e8;
  text-align: center;
  padding: clamp(3rem, 9vw, 6rem) 1.25rem clamp(2rem, 5vw, 3rem);
  overflow: hidden;
}
/* The photograph is bright and busy; without a wash the headline is unreadable
   and the buttons stop looking like buttons. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(rgba(40, 10, 8, 0.62), rgba(12, 8, 5, 0.88));
}
.hero-inner { position: relative; max-width: 46rem; margin: 0 auto; }

.eyebrow {
  margin: 0 0 .5rem;
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(247, 242, 232, .72);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 11vw, 5.5rem);
  letter-spacing: .01em;
  text-shadow: 0 6px 30px rgba(0,0,0,.6);
}
.tagline {
  margin: .75rem auto 2rem;
  font-size: clamp(1.1rem, 3.6vw, 1.5rem);
  color: rgba(247, 242, 232, .92);
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}

/* ----- buttons ----------------------------------------------------------- */
.cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.button {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.15rem; font-weight: 700;
  padding: .95rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid rgba(247,242,232,.5);
  color: #f7f2e8;
  background: rgba(0,0,0,.25);
  transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: none; }

/* The one thing most visitors came here to press. */
.button.primary {
  background: var(--gold);
  border-color: transparent;
  color: #2b1d00;
  box-shadow: 0 8px 26px rgba(229, 168, 35, .38);
  font-size: 1.35rem;
  padding: 1.1rem 2.6rem;
}
.button.big { font-size: 1.3rem; padding: 1.1rem 2.6rem; }
.button.small { font-size: 1rem; padding: .65rem 1.4rem; }

.cta-note {
  margin: 1.25rem auto 0;
  max-width: 30rem;
  font-size: .95rem;
  color: rgba(247, 242, 232, .78);
}

.critters {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: .25rem; margin-top: 2.5rem;
}
.critters img { width: clamp(46px, 10vw, 78px); height: auto; }

/* ----- bands ------------------------------------------------------------- */
.band { padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem; }

/* One container per band, holding everything in it.
   
   This used to be `.band > *`, centring each child on its own — which worked
   until a child set its own margin. `.steps` reset `margin: 0` to kill the list
   indent and took the auto margins with it; `.band h2` did the same and is more
   specific besides. So a band's heading centred its TEXT inside a box that was
   itself hard against the left edge, and the whole section sat left on a wide
   screen while looking deliberate.
   
   A wrapper cannot be undone by what it contains, which is the point. The hero
   already worked this way. */
.band-inner { max-width: 62rem; margin-inline: auto; }
.band.alt { background: var(--panel); border-block: 1px solid var(--line); }
.band h2 {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  margin: 0 0 1.5rem;
  text-align: center;
}
.lede {
  text-align: center; font-size: 1.2rem; color: var(--muted);
  font-style: italic; margin: -0.75rem auto 2rem; max-width: 34rem;
}

/* ----- steps ------------------------------------------------------------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  /* A row that does not fill sits in the middle rather than packing to the
     left, which is what made the section read as off-centre under a heading
     that was already centred. */
  justify-content: center;
}
.steps li {
  position: relative; padding-top: .5rem;
  text-align: center;
}
.steps .n {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
  /* Centred over its own step, now that the words beneath it are. */
  margin: 0 auto .75rem;
}
.steps p { max-width: 22rem; margin-inline: auto; }
.steps h3 { margin: 0 0 .4rem; font-size: 1.2rem; }
.steps p { color: var(--muted); }

/* ----- cards ------------------------------------------------------------- */
.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.band.alt .card { background: var(--paper); }
.card.plain { background: transparent; border: 0; padding: 0; }
.card h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.card p { margin: 0 0 1rem; color: var(--muted); }
.card .button { border-color: var(--line); color: var(--ink); background: transparent; }
.card .button:hover { border-color: var(--accent); color: var(--accent); }

.final { text-align: center; }
.final h2 { margin-bottom: 1.25rem; }
.final .button { border-color: var(--line); color: var(--ink); background: transparent; }
/* Restated in full, and deliberately more specific than `.final .button`
   above. Matching specificity plus later position was quietly stripping the
   gold background off the primary button while leaving its dark text — an
   invisible Join button at the exact point somebody has decided to press it. */
.final .button.primary {
  background: var(--gold);
  color: #2b1d00;
  border-color: transparent;
  box-shadow: 0 8px 26px rgba(229, 168, 35, .38);
}

/* ----- footer ------------------------------------------------------------ */
footer {
  text-align: center; padding: 2.5rem 1.25rem 3.5rem;
  color: var(--muted); font-size: .95rem;
}
footer p { margin: .25rem 0; }
footer .small { font-size: .85rem; }

/* Which build this is. Deliberately faint and out of the way — it exists to be
   read when something is wrong, not to be part of the design. */
#version-badge {
  position: fixed;
  right: .6rem;
  bottom: .5rem;
  z-index: 50;
  font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
  color: currentColor;
  opacity: .38;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
#version-badge:hover { opacity: .8; }
