/*
 * jamigo.io
 *
 * The same tokens the product uses — warm paper, oxblood, brass, sage, Plus Jakarta Sans, the same
 * radii. A marketing page in a different palette to the product it is selling teaches people the
 * screenshots are a mock-up.
 *
 * Two bases rather than one. Paper carries most of the page; ink carries the two sections that are
 * about the night itself — the gig day and the closing — because that is when a musician is actually
 * holding the phone, and because a page of unbroken cream has no rhythm to it.
 */
:root {
  --paper: #f1ede6;
  --paper-raised: #fcfaf7;
  --paper-white: #ffffff;
  --hairline: #ded8cb;
  --chasm: #e5e0d5;

  --ink: #0b0e14;
  --ink-raised: #171c26;
  --ink-hairline: #252d3a;
  --bone: #f4f2ec;

  --text: #16181d;
  --text-soft: #444b58;
  --text-muted: #5c5a53;

  --oxblood: #8a1f2d;
  --oxblood-lift: #a02637;
  --brass: #c99a3e;
  /* Brass, darkened for text on paper. 8a6512 measured 4.56:1 — over the line by six hundredths,
     which is not a margin. This is 5.2. */
  --brass-text: #7f5c0f;
  --sage: #3f7a63;

  --radius-card: 20px;
  --radius-button: 16px;
  --radius-chip: 14px;
  --radius-phone: 28px;

  --measure: 34rem;
  --gutter: 24px;
  --shell: 1140px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The sticky header must not cover the heading of the section a jump link lands on. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Belt and braces against a wide child: nothing on this page may scroll sideways on a phone. */
  overflow-x: hidden;
}

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

.wrap {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Visible only to a screen reader, and to anybody tabbing. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-button) 0;
  z-index: 100;
}
.skip:focus {
  left: 0;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------------ header */

header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
header.top .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
}

/*
 * The wordmark, set rather than drawn.
 *
 * There is no production logo file in the repo yet, and a placeholder mark would be worse than none:
 * it would have to be un-taught. This is Plus Jakarta Sans at 800 with the product's own letter
 * spacing, which is what the app's header already shows. Swapping in the burgundy-and-gold mark means
 * replacing the contents of this one element.
 */
.mark {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.035em;
  color: var(--text);
  text-decoration: none;
}
.mark .dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--oxblood);
  transform: translateY(-2px);
}

header.top nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links {
  display: none;
  gap: 22px;
  margin-right: 10px;
}
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
}
@media (min-width: 1000px) {
  .nav-links {
    display: flex;
  }
}

.lang {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper-raised);
}
.lang a {
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
}
.lang a[aria-current='true'] {
  background: var(--ink);
  color: var(--bone);
}

/* ------------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--oxblood);
  color: #fff;
}
.btn-primary:hover {
  background: var(--oxblood-lift);
}
.btn-ghost {
  border-color: var(--hairline);
  color: var(--text);
  background: var(--paper-raised);
}
.btn-ghost:hover {
  border-color: var(--text-muted);
}
.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 17px;
}
.on-ink .btn-ghost {
  background: transparent;
  border-color: var(--ink-hairline);
  color: var(--bone);
}
.on-ink .btn-ghost:hover {
  border-color: #47536a;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------------------------------------------------------------------ sections */

section {
  padding: 68px 0;
  border-top: 1px solid var(--chasm);
}
@media (min-width: 900px) {
  section {
    padding: 88px 0;
  }
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(40px, 7.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 20px;
}
h2 {
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 16px;
}
h3 {
  font-size: 19.5px;
  line-height: 1.28;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 8px;
}
p {
  max-width: var(--measure);
}
.lede {
  font-size: clamp(18px, 2.3vw, 21.5px);
  line-height: 1.5;
  color: var(--text-soft);
}
.muted {
  color: var(--text-muted);
}
.small {
  font-size: 15px;
}

/* ------------------------------------------------------------------------ ink sections */

.on-ink {
  background: var(--ink);
  color: var(--bone);
  border-top-color: var(--ink);
}
.on-ink h2,
.on-ink h3 {
  color: var(--bone);
}
.on-ink .eyebrow {
  color: var(--brass);
}
.on-ink p,
.on-ink .lede {
  color: #aeb5c2;
}
.on-ink .card {
  background: var(--ink-raised);
  border-color: var(--ink-hairline);
}
.on-ink .card h3 {
  color: var(--bone);
}
.on-ink .card p {
  color: #98a0ae;
}

/* ------------------------------------------------------------------------ hero */

.hero {
  border-top: 0;
  padding-top: 56px;
  padding-bottom: 24px;
}
.hero .lede {
  margin: 0 0 28px;
  max-width: 33rem;
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    gap: 48px;
  }
  .hero {
    padding-top: 76px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
  background: color-mix(in srgb, var(--brass) 13%, var(--paper-raised));
  color: var(--brass-text);
  border-radius: 999px;
  padding: 6px 14px 6px 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 22px;
  text-decoration: none;
}
.badge .pip {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--sage);
}

/* ------------------------------------------------------------------------ phones */

.phone {
  border-radius: var(--radius-phone);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--paper-raised);
  box-shadow: 0 30px 70px -34px rgba(11, 14, 20, 0.5);
  flex: 0 0 auto;
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
}
.phone.dark {
  border-color: #222a37;
}
.on-ink .phone {
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}

/* Hero: a fan of three on desktop, one on a phone, two on a tablet. */
.phone-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
}
.phone-fan .phone {
  width: min(258px, 62vw);
}
.phone-fan .phone:nth-child(2),
.phone-fan .phone:nth-child(3) {
  display: none;
}
@media (min-width: 620px) {
  .phone-fan .phone:nth-child(2) {
    display: block;
  }
  .phone-fan .phone {
    width: min(238px, 40vw);
  }
}
@media (min-width: 1000px) {
  .phone-fan {
    gap: 18px;
  }
  .phone-fan .phone:nth-child(3) {
    display: block;
  }
  /*
   * Three phones and two gaps have to fit the column they are in. `.phone` cannot shrink — a squashed
   * screenshot is worse than a smaller one — so at 178 the fan was 570 wide in a 560 column and bled
   * out of both sides of the grid, reaching a pixel past the page's own right edge.
   */
  .phone-fan .phone {
    width: 174px;
  }
  .phone-fan .phone:nth-child(1) {
    margin-bottom: 26px;
  }
  .phone-fan .phone:nth-child(3) {
    margin-bottom: 26px;
  }
}

/* A pair of phones beside a column of copy. */
.pair {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
}
.pair .phone {
  width: min(250px, 45vw);
}
@media (min-width: 560px) {
  .pair .phone {
    width: 232px;
  }
}
.solo {
  display: flex;
  justify-content: center;
}
.solo .phone {
  width: min(280px, 72vw);
}

/* ------------------------------------------------------------------------ feature rows */

.feature {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 980px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: 64px;
  }
  /*
   * The columns swap as well as the order. Moving `.shots` to the front without this leaves it in the
   * `1fr` column, so the phones drift in a wide empty column while the prose is squeezed into 520 —
   * which reads as a bug on every other section.
   */
  .feature.flip {
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  }
  .feature.flip > .shots {
    order: -1;
  }
}
.feature .copy > *:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------------ lists and cards */

.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 11px;
  max-width: var(--measure);
}
.ticks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 16px;
  color: var(--text-soft);
}
.ticks svg {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex: none;
  color: var(--sage);
}
.on-ink .ticks li {
  color: #aeb5c2;
}

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 36px;
}
/* Six steps read as two rows of three. auto-fit gives four and two on a wide screen, which looks
   like the last two fell off. */
@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.card {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 22px;
}
.card p {
  font-size: 15.5px;
  color: var(--text-soft);
  margin: 0;
}
.card .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 13px;
}

/* The scattered-tools panel in THE PROBLEM. */
.scatter {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 0 0 26px;
  list-style: none;
  max-width: 40rem;
}
.scatter li {
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-chip);
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--paper-raised) 60%, transparent);
}

/* The loop, as a row of steps. */
.loop {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: loop;
}
.loop li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink-hairline);
  background: var(--ink-raised);
  color: var(--bone);
  border-radius: var(--radius-chip);
  padding: 9px 15px;
  font-size: 14.5px;
  font-weight: 600;
}
.loop li::before {
  counter-increment: loop;
  content: counter(loop);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: var(--brass);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Status pills that mirror the product's own. */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}
.pills li {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
}
.pill-open {
  color: var(--sage);
  border-color: color-mix(in srgb, var(--sage) 50%, transparent);
  background: color-mix(in srgb, var(--sage) 12%, transparent);
}
.pill-booked {
  color: var(--brass-text);
  border-color: color-mix(in srgb, var(--brass) 55%, transparent);
  background: color-mix(in srgb, var(--brass) 15%, transparent);
}
.pill-blocked {
  color: var(--text-muted);
  border-color: var(--hairline);
  background: color-mix(in srgb, var(--chasm) 50%, transparent);
}
.on-ink .pill-blocked {
  color: #98a0ae;
  border-color: var(--ink-hairline);
  background: transparent;
}

.note {
  background: color-mix(in srgb, var(--brass) 12%, var(--paper-raised));
  border: 1px solid color-mix(in srgb, var(--brass) 35%, transparent);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  max-width: var(--measure);
  font-size: 15.5px;
  color: var(--text-soft);
  margin: 26px 0 0;
}
.note strong {
  color: var(--brass-text);
}
.on-ink .note {
  background: color-mix(in srgb, var(--brass) 10%, var(--ink-raised));
  border-color: color-mix(in srgb, var(--brass) 30%, transparent);
  color: #aeb5c2;
}
.on-ink .note strong {
  color: var(--brass);
}

/* ------------------------------------------------------------------------ closing */

.closing {
  text-align: center;
}
.closing h2 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.closing p {
  margin-left: auto;
  margin-right: auto;
}
.closing .cta-row {
  justify-content: center;
  margin-top: 30px;
}

/* ------------------------------------------------------------------------ footer */

footer {
  background: var(--ink);
  color: #a3abb9;
  padding: 52px 0 60px;
  font-size: 15px;
}
footer .mark {
  color: var(--bone);
  font-size: 21px;
}
.foot-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
}
footer h3 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* 6f7a8c measured 4.45:1 against the ink — under AA, at 12px where AA is the bar. */
  color: #838da0;
  margin: 0 0 12px;
  font-weight: 700;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
footer a {
  color: #c2c8d2;
  text-decoration: none;
}
footer a:hover {
  color: var(--bone);
  text-decoration: underline;
}
.foot-base {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--ink-hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  font-size: 14px;
  color: #838da0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
