/* Ladderline launch Rev1
   Ground #FFFFFF, ink #111111. Phone-first. */

@font-face {
  font-family: Erode;
  src: url("assets/fonts/erode-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Erode;
  src: url("assets/fonts/erode-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Erode;
  src: url("assets/fonts/erode-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Erode;
  src: url("assets/fonts/erode-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #111111;
  --space: 16px;
  --step-small: 0.875rem;
  --step-body: 1.125rem;
  --step-lead: 1.25rem;
  --step-head: clamp(2rem, 8.2vw, 3.5rem);
  --step-section: clamp(2rem, 6vw, 3.25rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Erode, "Source Serif Pro", Georgia, serif;
  font-size: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  font-size: var(--step-body);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
}

p {
  margin: 0;
}

/* ----- Hero: photo + card ----- */
.hero {
  background: var(--paper);
  padding: 0 var(--space) 2rem;
}

.hero-photo {
  position: relative;
  height: 26svh;
  min-height: 168px;
  max-height: 220px;
  overflow: hidden;
  margin: 0 calc(var(--space) * -1);
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero-photo img.is-on {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo img {
    transition: none;
    opacity: 0;
  }

  .hero-photo img.is-on,
  .hero-photo img:first-child {
    opacity: 1;
  }
}

.hero-card {
  background: var(--paper);
  margin-top: -24px;
  position: relative;
  padding: 0 0 0.5rem;
}

.stripe {
  display: flex;
  height: 40px;
  overflow: hidden;
  margin: 0 calc(var(--space) * -1) 1.1rem;
}

.stripe span {
  flex: 0 0 28px;
  height: 100%;
  background: var(--ink);
}

.stripe span:nth-child(even) {
  background: var(--paper);
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 0.7rem;
}

.headline-break {
  display: block;
}

.hero h1 {
  font-size: var(--step-head);
  max-width: 22ch;
  margin: 0 0 0.7rem;
}

.audience {
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.35;
  max-width: 28ch;
  margin: 0 0 0.85rem;
}

.lede {
  font-size: var(--step-body);
  line-height: 1.45;
  max-width: 32ch;
  margin: 0 0 1.15rem;
}

.signup {
  margin: 0;
}

.signup .btn {
  max-width: 28rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: center;
}

.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ----- How it works: stacked numbered steps ----- */
.how {
  padding: 2.25rem var(--space) 2.5rem;
  background: var(--paper);
}

.how-intro {
  margin: 0 0 1.25rem;
}

.how h2,
.sample h2 {
  font-size: var(--step-section);
  margin: 0 0 0.7rem;
}

.how-intro p,
.sample-lead {
  max-width: 30ch;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 0;
  font-size: 1.375rem;
  line-height: 1.3;
  max-width: 28ch;
}

.steps li::before {
  content: counter(step);
  font-weight: 600;
  font-size: 2.25rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

/* ----- Static first-text mock ----- */
.sample {
  padding: 0 var(--space) 2.5rem;
}

.sample-lead {
  margin: 0 0 1.15rem;
}

.text-mock {
  margin: 0;
  max-width: 28rem;
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 1rem 1.1rem 1.15rem;
}

.text-mock figcaption {
  font-weight: 600;
  margin: 0 0 0.7rem;
}

.bubble {
  background: var(--ink);
  color: var(--paper);
  margin: 0;
  padding: 0.9rem 1rem;
  line-height: 1.45;
  max-width: 36ch;
}

/* ----- Small repeat button at the end ----- */
.end-cta {
  padding: 0 var(--space) 2.5rem;
}

.end-cta .btn-end {
  width: auto;
  min-width: 0;
  padding: 0.7rem 1.15rem;
  min-height: 48px;
  font-size: 1.0625rem;
}

/* ----- Footer ----- */
.footer {
  background: var(--paper);
  padding: 3rem var(--space) 2rem 0;
}

.scallop {
  height: 18px;
  background:
    radial-gradient(circle at 50% 0, var(--paper) 17px, var(--ink) 18px);
  background-size: 62px 18px;
  background-repeat: repeat-x;
  background-color: var(--ink);
}

.footer-inner {
  background: var(--ink);
  color: var(--paper);
  padding: 1.5rem var(--space) 1.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem 1rem;
  align-items: start;
}

.footer-inner a {
  color: var(--paper);
}

.footer-inner h2 {
  color: var(--paper);
  font-size: 2rem;
}

.footer-msg {
  grid-column: 1;
  grid-row: 1;
  max-width: 28ch;
}

.footer-meta {
  grid-column: 1 / -1;
  font-size: 1.0625rem;
  line-height: 1.45;
}

.footer-meta p + p {
  margin-top: 0.35rem;
}

.stamp {
  grid-column: 2;
  grid-row: 1;
  width: 64px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper);
  padding: 4px;
  justify-self: end;
}

/* ----- Desktop ----- */
@media (min-width: 900px) {
  :root {
    --space: 24px;
    --step-body: 1.1875rem;
    --step-lead: 1.5rem;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
    align-items: stretch;
    height: 100svh;
    box-sizing: border-box;
  }

  .hero-photo {
    order: 2;
    margin: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    position: sticky;
    top: 12px;
  }

  .hero-card {
    order: 1;
    margin-top: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem 1.5rem;
  }

  .stripe {
    height: 56px;
    margin: 0 -1.5rem 2rem;
  }

  .hero h1 {
    max-width: none;
    margin-bottom: 0.85rem;
  }

  .audience {
    margin-bottom: 1rem;
    max-width: 28ch;
  }

  .lede {
    margin-bottom: 1.25rem;
  }

  .signup {
    margin-top: auto;
    width: 100%;
    align-self: stretch;
  }

  .btn {
    width: auto;
    min-width: 16rem;
    padding: 0.95rem 1.5rem;
  }

  .how {
    display: grid;
    grid-template-columns: minmax(0, 18rem) minmax(0, 32rem);
    gap: 2rem 4rem;
    padding: 4.5rem 3rem 3.5rem;
    align-items: start;
  }

  .how-intro {
    margin: 0;
  }

  .steps li {
    font-size: 1.5rem;
    max-width: none;
    padding: 1.05rem 0;
  }

  .steps li::before {
    font-size: 2.5rem;
  }

  .sample {
    display: grid;
    grid-template-columns: minmax(0, 18rem) minmax(0, 32rem);
    gap: 0.5rem 4rem;
    padding: 0 3rem 3.5rem;
    align-items: start;
  }

  .sample h2 {
    grid-column: 1;
    grid-row: 1;
  }

  .sample-lead {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }

  .text-mock {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: start;
  }

  .end-cta {
    padding: 0.5rem 3rem 3.5rem;
    max-width: 100%;
  }

  .footer {
    padding: 4rem 3rem 2.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr auto;
    gap: 2rem;
    padding: 2rem 2rem 2.25rem;
  }

  .footer-msg,
  .footer-meta,
  .stamp {
    grid-column: auto;
    grid-row: auto;
  }

  .stamp {
    width: 88px;
    padding: 6px;
  }
}
