:root {
  --bg: #191919;
  --fg: #ddd;
  --muted: #999;
  --surface: #222;
  --outline: #333;
  --primary: #1d3f9f;
  --accent: #4070ff;
  --link: #566fb7;
  --maxw: 1100px;
  --radius: 14px;
  --s-1: .75rem;
  /* 12px  */
  --s0: 1rem;
  /* 16px  */
  --s1: 1.5rem;
  /* 24px  */
  --s2: 2.25rem;
  /* 36px  */
  --s3: 3rem;
  /* 48px  */
  --s4: 5rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Montserrat", -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

body {
  padding-top: var(--s1);
}

@media (min-width:900px) {
  body {
    padding-top: var(--s2);
  }
}

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--s1);
  padding-block: clamp(var(--s0), 3.5vw, var(--s1));
}

/* space only between containers (not above the first one) */
.container+.container {
  margin-top: clamp(var(--s0), 3vw, var(--s2));
}

.grid-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
}

@media (min-width:900px) {
  .grid-hero {
    grid-template-columns: 4fr 8fr;
    gap: 14px;
  }
}

.logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 899px) {
  .logo {
    max-width: 150px;
    margin-bottom: 2rem;
  }
}

.hero-title {
  font-weight: 600;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.1;
  margin: 0 0 6px;
}

.hero-sub {
  color: var(--muted);
  margin: 0;
  font-size: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.btn {
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.tag {
  color: var(--muted);
  border: 1px solid var(--outline);
  padding: 8px 12px;
  border-radius: 10px;
}

/* cards */
.cards {
  display: flex;
  justify-content: center;
  gap: var(--s4);
  /* more space between cards */
  flex-wrap: wrap;
}

@media (min-width:900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  width: min(100%, 360px);
}

.card h3 {
  margin: 0 0 6px;
  color: var(--link);
  font-size: 18px;
}

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

/* content panels (Decks / Entries / FAQ) */
.panels {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

/* Two fixed-width columns, centered */
/* two narrow cards centered */
.panels.two {
  display: grid;
  grid-template-columns: repeat(2, 340px);
  /* fixed, narrow columns */
  justify-content: center;
  /* center the two columns */
  gap: var(--s4);
  /* space between cards */
  margin-top: 4rem;
}

/* stack on small screens */
@media (max-width: 900px) {
  .panels.two {
    grid-template-columns: 1fr;
    gap: var(--s2);
    margin-top: 0;
  }

  .panel {
    max-width: 340px;
    margin-inline: auto;
  }

  /* keep each card narrow when stacked */
}

@media (min-width:900px) {
  .panels.four {
    grid-template-columns: repeat(4, 1fr);
    /* grid-template-columns: repeat(3, 1fr); */
  }
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
}

.panel h3 {
  margin: 0 0 6px;
  color: var(--link);
  font-size: 18px;
}

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

/* section separators */
.divider {
  border: 0;
  border-top: 1px solid var(--outline);
  margin: 28px 0;
  opacity: 1;
}

/* INVITE FORM */
.form-wrap {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
}

.form-wrap h2 {
  margin: 0 0 10px;
  color: var(--link);
}

label {
  font-weight: 600;
  display: block;
  margin: 0 0 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  background: #111;
  color: var(--fg);
  border: 1px solid var(--outline);
  border-radius: 12px;
}

input::placeholder {
  color: #777;
}

.field {
  margin-bottom: 14px;
}

.help {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  font-size: 1rem;
  padding: 14px 18px;
}

.inline-check .checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.inline-check input[type="checkbox"] {
  appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #888;
  border-radius: 4px;
  display: inline-block;
  position: relative;
}

.inline-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 0.1rem;
  background: var(--accent);
  border-radius: 2px;
}

button.submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.captcha {
  border: 0;
  width: 100%;
  max-width: 300px;
  height: 70px;
  margin: 0.5rem 0 1rem;
}

/* Smooth submit UX */
#invite .form-wrap {
  transition: min-height 0.3s ease;
}

#invite form.is-submitting {
  pointer-events: none;
}

#invite form {
  transition: opacity 0.16s ease;
}

/* Success / error notice that matches landing scale */
/* Notice block styled like the form title; subtle top border */
.notice {
  text-align: center;
  margin: 0 auto;
  max-width: 42rem;
}


.notice p {
  margin: 0;
  line-height: 1.6;
  opacity: 0.9;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

/* Fade-in used by JS */
.fade-in {
  animation: fadeIn 0.28s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}




/* footer (matches your site.css tone) */
.site-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--outline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: .9rem;
  color: #888;
}

.site-footer a {
  color: var(--link);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* utility */
.center {
  text-align: center;
}

.hidden {
  display: none;
}

img.responsive {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* media row if you want text next to a phone image */
.media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}

@media (min-width:900px) {
  .media {
    grid-template-columns: 1fr 1fr;
  }
}

.media h3 {
  margin: 0 0 6px;
  color: var(--link);
  font-size: 18px;
}

.phone {
  display: block;
  width: clamp(220px, 32vw, 360px);
  margin-inline: auto;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}


/* optional lighter divider between blocks */
.hr {
  border: 0;
  border-top: 1px solid var(--outline);
  margin: 24px 0;
}

/* === Ladder hero (phones + text) === */
.hero-ladder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-ladder {
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .hero-ladder .ladder {
    justify-content: center;
    /* center the stepped phones */
  }
}


/* left: the stepped phones */
.ladder {
  --ladder-step: clamp(14px, 3vw, 36px);
  /* vertical drop between phones */
  display: flex;
  gap: clamp(12px, 2.5vw, 24px);
  /* horizontal spacing */
  align-items: flex-start;
  justify-content: flex-start;
}

.ladder .phone {
  display: block;
  /* wrapper, not <picture> */
  width: clamp(160px, 18vw, 190px);
  /* min / fluid / max */
  margin: 0;
}

.ladder .phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.ladder .phone:nth-child(1) {
  transform: translateY(0);
}

.ladder .phone:nth-child(2) {
  transform: translateY(var(--ladder-step));
}

.ladder .phone:nth-child(3) {
  transform: translateY(calc(var(--ladder-step) * 2));
}

/* right: headline block */
.ladder-copy h2 {
  font-weight: 600;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.05;
  margin: 0 0 8px;
}

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

/* smaller tablets */
@media (max-width: 900px) {
  .ladder {
    --ladder-step: clamp(10px, 3vw, 20px);
    gap: clamp(10px, 2vw, 18px);
    margin-bottom: clamp(16px, 5vw, 32px);
  }

  .ladder .phone {
    /* was: clamp(140px, 28vw, 180px) */
    width: clamp(130px, 22vw, 165px);
  }
}

/* small phones */
@media (max-width: 540px) {
  .ladder {
    --ladder-step: clamp(8px, 3.5vw, 16px);
  }

  .ladder .phone {
    /* was: clamp(110px, 34vw, 150px) */
    width: clamp(100px, 26vw, 140px);
  }
}

/* mirrored ladder */
.ladder-rtl {
  flex-direction: row-reverse;
}

@media (max-width:900px) {

  /* same spacing trick you liked */
  .ladder-rtl {
    margin-bottom: clamp(16px, 5vw, 32px);
  }
}

/* stack copy over image inside each panel */
.panel-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* centers the image under copy */
  text-align: left;
}

.panel {
  width: auto;
}

/* grid column width handles the sizing */
.panel-media .panel-img {
  width: clamp(240px, 50vw, 300px);
  /* target ~300px desktop */
  margin-top: .75rem;
}

.panel-media .panel-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

@media (max-width:900px) {
  .panel-media .panel-img {
    width: clamp(200px, 60vw, 360px);
    margin-inline: auto;
  }
}

/* centered strapline hero */
.center-hero {
  text-align: center;
}

.center-hero .strapline {
  font-weight: 600;
  font-size: clamp(28px, 4vw, 32px);
  margin: 0;
}

/* Strapline spacing for smaller screens */
@media (max-width: 600px) {
  .center-hero .strapline {
    margin: 0 0 var(--s1);
  }

  .center-hero .strapline:last-child {
    margin-bottom: 0;
  }
}

/* Lyrics Hero */
/* lyrics split hero: phone | copy | phone */
.hero-lyrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s1);
  align-items: center;
  text-align: center;
}

/* phone sizing for this hero (smaller than generic .phone) */
.hero-lyrics .phone {
  width: clamp(140px, 18vw, 200px);
  margin-inline: auto;
}

.hero-lyrics .phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* big headline */
.lyrics-copy h2 {
  font-weight: 600;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.05;
  margin: 0;
}

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

@media (min-width:900px) {
  .hero-lyrics {
    grid-template-columns: auto 1fr auto;
    /* L phone | text | R phone */
    column-gap: var(--s2);
  }

  .hero-lyrics .phone--left {
    transform: translateY(clamp(10px, 3vw, 36px));
  }

  /* lower left */

  .hero-lyrics .phone--right {
    transform: translateY(clamp(-10px, -3vw, -36px));
  }

  /* raise right */
}

/* disable offsets when stacked */
@media (max-width:899px) {

  /* .hero-lyrics .phone--left,
  .hero-lyrics .phone--right {
    transform: none;
  } */
  .hero-lyrics .phone--left {
    transform: translateX(-35px);
  }

  .hero-lyrics .phone--right {
    transform: translateX(35px);
  }

  .hero-lyrics .phone {
    width: clamp(200px, 18vw, 300px);
    margin-inline: auto;
  }
}

.nowrap {
  white-space: nowrap;
}

/* form title outside the box */
.form-title {
  margin: 0 0 .5rem;
  color: var(--link);
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

/* larger placeholder text */
.form-wrap input::placeholder,
.form-wrap textarea::placeholder {
  font-size: 1.05rem;
}

/* accent selection + focus */
::selection {
  background: var(--accent);
  color: #fff;
}

.form-wrap input:focus,
.form-wrap select:focus,
.form-wrap textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* HOW IT WORKS */
/* Reduce ONLY the column gap for this section */
.hero-ladder.how {
  grid-template-columns: auto 1fr;
  /* video hugs; copy gets rest */
  column-gap: clamp(6px, 1vw, 12px);
  /* was 24px on ≥900px; now tighter */
  align-items: center;
  /* keep vertically centered */
}

/* Ensure no sneaky extra spacing from inner blocks */
.hero-ladder.how .ladder,
.hero-ladder.how .ladder-copy {
  margin: 0;
}

/* Keep phone/video width as you set elsewhere; included for clarity */
.hero-ladder.how .ladder .phone {
  width: 260px;
}

@media (min-width:1200px) {
  .hero-ladder.how .ladder .phone {
    width: 300px;
  }
}

/* Video inherits the phone rounding */
.hero-ladder.how .phone video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Desktop/tablet: two columns centered with a fixed 100px gap */
@media (min-width: 900px) {
  .hero-ladder.how {
    grid-template-columns: auto auto;
    /* content-hugging columns */
    justify-content: center;
    /* center the pair within the container */
    align-items: center;
    /* vertical centering */
    column-gap: 100px;
    /* <- exact spacing you asked for */
  }
}

@media (max-width: 899px) {
  .hero-ladder.how {
    grid-template-columns: 1fr;
    /* single column */
    row-gap: clamp(30px, 4vw, 40px);
    justify-items: center;
    /* center the items */
    column-gap: 0;
    /* no side gap when stacked */
  }

  .hero-ladder.how .ladder,
  .hero-ladder.how .ladder-copy {
    justify-self: center;
    text-align: center;
    /* center the heading */
    margin: 0;
  }

  /* keep the list readable: numbers aligned, but overall centered block */
  .how-steps {
    text-align: left;
    padding-left: 1.2em;
    /* show list numbers */
    margin-inline: auto;
    max-width: 40ch;
    /* tidy width under the video */
    gap: var(--s0);
  }
}

/* Constrain copy width for How section */
.hero-ladder.how .ladder-copy,
.hero-ladder.how .how-copy {
  max-width: 48ch;
  /* tweak 44–60ch as you like */
}

/* Mobile: stack, center heading, keep list readable */
@media (max-width: 899px) {

  .hero-ladder.how .ladder-copy,
  .hero-ladder.how .how-copy {
    text-align: center;
    justify-self: center;
  }

  .how-steps {
    margin-inline: auto;
    max-width: 44ch;
    /* list doesn’t stretch edge-to-edge */
    text-align: left;
    /* numbers align cleanly */
  }
}


.how-steps b {
  font-size: 20px;
}

.how-steps li+li {
  margin-top: 0.5rem;
}