/* Marketing pages only: the landing page and the legal pages.
 * Kept out of the app bundle because a signed-in member never loads it.
 *
 * The landing page was drawn at 1440px (docs/design/Main.dc.html) and everything else in
 * GigRally was drawn at 390px. That is the whole reason this file exists: the type scale
 * in tokens.css tops out at 44px because that is the largest thing on any app screen,
 * while the artboard's hero is 104px. Rather than push marketing-only sizes into the
 * shared tokens, the display sizes live here and interpolate with clamp() — the artboard
 * value is the top of each range, and the bottom is what the same block needs at 390px.
 */

:root {
  --m-hero: clamp(2.25rem, 7.2vw, 6.5rem); /* 36px -> 104px */
  --m-section: clamp(1.75rem, 4.4vw, 4rem); /* 28px -> 64px */
  --m-closing: clamp(2rem, 6vw, 5.5rem); /* 32px -> 88px */
  --m-card-title: clamp(1.3rem, 1.9vw, 1.75rem); /* 21px -> 28px */
  --m-price: clamp(2.75rem, 5vw, 4.5rem); /* 44px -> 72px */
  --m-body: clamp(1rem, 1.25vw, 1.125rem); /* 16px -> 18px */
  --m-gutter: clamp(1rem, 6.6vw, 6rem); /* 16px -> 96px at 1440 */
  --m-band-max: 1440px;
}

/* The marketing pages are full-bleed bands of colour with a wide measure inside, which is
 * the opposite of the app's single 760px column — so they do NOT use .page. */
.m-band {
  padding-inline: var(--m-gutter);
}
.m-band > * {
  max-width: var(--m-band-max);
  margin-inline: auto;
}
.m-band--card {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.m-band--ink {
  background: var(--ink);
  color: var(--paper);
}

.m-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}

/* --- header ---------------------------------------------------------------------- */
.m-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.m-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.625rem, 2.5vw, 2.25rem);
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: var(--text-lg);
  font-weight: 500;
}
.m-nav a {
  text-decoration: none;
  /* ⚠️ A nav link is a tap target like any other, and these sit close together on a
   * phone. 44px is the floor everywhere in GigRally, marketing included. */
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  /* ⚠️ Without this, "How it works" breaks over two lines at 390px and drags the other
   * three links off their shared baseline — the whole nav reads as four different sizes.
   * Found by looking at it, not by any test. */
  white-space: nowrap;
}
.m-nav__cta {
  background: var(--ink);
  color: var(--paper);
  padding-inline: 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

/* --- hero ------------------------------------------------------------------------- */
.m-hero {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 6vw, 6rem) clamp(3rem, 7vw, 7rem);
  flex-wrap: wrap;
}
.m-hero__copy {
  flex: 1 1 22rem;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 2rem);
  max-width: 44rem;
}
.m-hero h1 {
  font-size: var(--m-hero);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.m-lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 35rem;
}
.m-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.m-cta-row .btn {
  min-height: 56px;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  padding-inline: 1.625rem;
}

/* The phone in the hero. Decoration — the screen reader gets nothing from it, so it is
 * aria-hidden in the template and everything it says is said in the copy as well. */
.m-phone {
  flex: 0 0 auto;
  width: min(320px, 100%);
  margin-inline: auto;
  background: var(--ink);
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 40px 80px -30px rgb(26 23 20 / 45%);
}
.m-phone__screen {
  background: var(--card);
  border-radius: 34px;
  padding: 2rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.m-phone__date {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-hero);
  letter-spacing: -0.02em;
}
.m-phone__rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: var(--text-md);
}
.m-phone__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
  border-radius: var(--radius-md);
}
.m-phone__state {
  font-weight: 600;
  font-size: var(--text-sm);
  background: var(--ink);
  color: var(--paper);
  padding: 0.125rem 0.625rem;
  border-radius: var(--radius-pill);
}
.m-phone__state--asking {
  background: var(--accent);
  color: var(--on-accent);
}

/* --- sections --------------------------------------------------------------------- */
.m-section {
  padding-block: clamp(3rem, 6.5vw, 6.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.5vw, 3.5rem);
}
.m-section h2 {
  font-size: var(--m-section);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.m-section p {
  font-size: var(--m-body);
  line-height: 1.55;
}

.m-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.25rem, 2.2vw, 2rem);
}
.m-step {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  border-top: 3px solid var(--ink);
  padding-top: 1.5rem;
}
.m-step__number {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--muted);
}
.m-step h3,
.m-feature h3 {
  font-size: var(--m-card-title);
  font-weight: 700;
}

/* ⚠️ Two columns, stated rather than left to auto-fit. There are FOUR blocks, and at a
 * desktop width auto-fit happily fits three of them across and leaves the fourth on a row
 * of its own — which is what it did, and which only looking at the page showed. */
.m-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 48rem) {
  .m-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.m-feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --- pricing ----------------------------------------------------------------------- */
/* Two plans, two columns — again stated, for the same reason as .m-features. */
.m-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 65rem;
}
@media (min-width: 48rem) {
  .m-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.m-plan {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.m-plan--paid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.m-plan__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
}
.m-plan__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--m-price);
  letter-spacing: -0.03em;
  line-height: 1;
}
.m-plan__per {
  font-size: var(--m-body);
  color: var(--muted);
}
.m-plan--paid .m-plan__per {
  color: var(--on-ink);
}
.m-plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: var(--m-body);
}
.m-plan .btn {
  margin-top: auto;
  min-height: 56px;
}

/* ⚠️ The Muso plan is NOT on the artboard. Tank's ruling (26th September 2026) is that
 * its absence is an omission rather than a simplification: it goes in, as a personal
 * add-on, kept visually SECONDARY to the two band plans — hence a single quiet strip
 * below them rather than a third column of equal weight. */
.m-addon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  max-width: 65rem;
  padding: clamp(1.125rem, 2vw, 1.5rem) clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
}
.m-addon__copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 34rem;
}
.m-addon__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h2);
}
.m-addon__price {
  font-family: var(--font-mono);
  font-size: var(--text-label-lg);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* --- closing --------------------------------------------------------------------- */
.m-closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
}
.m-closing h2 {
  font-size: var(--m-closing);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 20ch;
}

/* --- legal --------------------------------------------------------------------- */
/* A measure, not a column of full-bleed text: legal copy is read, not scanned. */
.m-prose {
  max-width: 40rem;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.m-prose h2 {
  font-size: var(--text-h2);
  margin-top: 1rem;
}
.m-prose p {
  font-size: var(--text-lg);
  line-height: 1.6;
}
.m-prose ul { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.m-prose li { font-size: var(--text-lg); line-height: 1.6; }
/* Tables scroll inside their own box on a phone rather than pushing the page sideways. */
.m-table-wrap { overflow-x: auto; }
.m-prose table { border-collapse: collapse; width: 100%; font-size: var(--text-md); }
.m-prose th, .m-prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.m-prose th { font-weight: 600; }
