/* Hopr landing — extends the Punk Labs system (styles.css).
   Same ink-on-paper, same two faces. Just more rooms in the house. */

/* Hero tightens up a touch — the wordmark is wide but not full-bleed. */
.hopr-hero {
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.hopr-wordmark {
  max-width: min(100%, 30rem);
}

.hopr-slug {
  max-width: 40ch;
  font-weight: 700;
}

.hopr-quiet {
  font-weight: 400;
  opacity: 0.6;
}

.hopr-lede {
  margin: 0;
  max-width: 56ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.5;
}

/* --- Call to action: a hard-edged badge + a quiet jump link. --- */
.hopr-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 0.5rem;
}

.hopr-badge {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(0.7rem, 1.5vw, 0.82rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.1rem;
}

.hopr-link {
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}

.hopr-link:hover,
.hopr-link:focus-visible {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: transparent;
}

/* The badge is the App Store CTA: filled by default, outlined on hover. */
a.hopr-badge {
  text-decoration: none;
}

a.hopr-badge:hover,
a.hopr-badge:focus-visible {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.hopr-specs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

.hopr-specs a:hover,
.hopr-specs a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: transparent;
}

/* --- Generic content block + section kicker (mono, tracked, uppercase). --- */
.hopr-block {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hopr-kicker {
  margin: 0 0 clamp(1.5rem, 3.5vw, 2.5rem);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --- How it works: numbered steps. --- */
.hopr-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 60ch;
}

.hopr-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: baseline;
}

.hopr-step-no {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  letter-spacing: 0.1em;
  padding-top: 0.15rem;
}

.hopr-step-body {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  line-height: 1.4;
}

.hopr-step-body strong {
  font-weight: 900;
}

/* --- Screenshots: dark glass against the white page, scrollable on narrow. --- */
.hopr-shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(60vw, 16rem);
  gap: clamp(1rem, 3vw, 1.75rem);
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hopr-shot {
  margin: 0;
  scroll-snap-align: start;
}

.hopr-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1.5px solid var(--ink);
  border-radius: 1.75rem;
  background: #000;
}

.hopr-shot figcaption {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Roomier screens: lay the four shots out in a row that fits. */
@media (min-width: 56rem) {
  .hopr-shots {
    grid-auto-columns: 1fr;
    overflow: visible;
  }
}

/* --- Features: a clean 2/3-up grid. --- */
.hopr-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}

@media (min-width: 36rem) {
  .hopr-features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 60rem) {
  .hopr-features { grid-template-columns: repeat(3, 1fr); }
}

.hopr-features li {
  border-top: 1.5px solid var(--ink);
  padding-top: 1rem;
}

.hopr-features h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hopr-features p {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.5;
}

/* --- Requirements: definition rows. --- */
.hopr-specs {
  margin: 0;
  display: grid;
  gap: 0;
  max-width: 60ch;
}

.hopr-specs > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 1.5rem;
  padding-block: clamp(0.9rem, 2vw, 1.15rem);
  border-top: 1.5px solid var(--ink);
}

.hopr-specs > div:last-child {
  border-bottom: 1.5px solid var(--ink);
}

@media (min-width: 36rem) {
  .hopr-specs > div { grid-template-columns: 10rem 1fr; align-items: baseline; }
}

.hopr-specs dt {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hopr-specs dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.5;
}

/* --- Match the page's quiet load reveal for the hero pieces. --- */
@media (prefers-reduced-motion: no-preference) {
  .hopr-lede,
  .hopr-cta {
    opacity: 0;
    transform: translateY(0.6rem);
    animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hopr-lede { animation-delay: 0.22s; }
  .hopr-cta { animation-delay: 0.3s; }
}
