/* THE /get PAGES (iphone, android): the homepage's header, one column of three steps on a phone, a QR code and a preview on a computer.
   Every colour is a homepage token. */
:root {
  --border: var(--canvas-border);
  --accent-subtle: #d9e9cf; /* the app's accent.subtle */
  --accent-pressed: #395443;
  --sans: var(--font-sans);
  --mono: var(--font-mono);
  --ground: #7bab67; /* FIRST_GROUND in FirstScreen.tsx */
}

.get {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.gm {
  padding: 8px 16px 32px;
}

.gm h1 {
  margin: 24px 0 0;
  font: 700 33px / 35px var(--sans);
  letter-spacing: -0.83px;
  text-wrap: balance;
}

.sub {
  margin: 10px 0 0;
  font: 400 16px / 23px var(--sans);
  color: var(--ink-secondary);
}

.qrrow,
.eyebrow,
.orweb {
  display: none;
}

.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sh {
  display: flex;
  align-items: center;
  gap: 12px;
}

.num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent-pressed);
  font: 600 14px / 28px var(--mono);
  text-align: center;
}

.st {
  margin: 0;
  font: 700 20px / 24px var(--sans);
  letter-spacing: -0.4px;
}

.sl {
  margin: -4px 0 0 40px;
  font: 400 15px / 21px var(--sans);
  color: var(--ink-secondary);
}

.pic {
  height: 168px;
  border-radius: 14px;
  background: #f2f0ed;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.pic svg {
  display: block;
  height: 100%;
  width: auto;
}

.go,
.bbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  letter-spacing: -0.2px;
  text-decoration: none;
}

.go {
  height: 52px;
  border-radius: 14px;
  font: 500 17px var(--sans);
}

.go:hover,
.bbtn:hover {
  background: var(--accent-pressed);
}

.go[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.note {
  margin: -2px 0 0;
  font: 400 14px / 20px var(--sans);
  color: var(--ink-muted);
}

/* ── a computer: QR code, the steps as a preview, the browser way ── */
@media (min-width: 760px) {
  /* ONE CENTRED COLUMN: header, main and footer share the same 1280 px column (96 px gutters), so they line up at every width. */
  .gm {
    padding: 32px max(96px, calc((100% - 1280px) / 2)) 72px;
  }

  .gm h1 {
    margin: 0;
    font-size: 54px;
    line-height: 56px;
    letter-spacing: -1.35px;
  }

  .sub {
    margin-top: 12px;
    font-size: 21px;
    line-height: 31px;
    letter-spacing: -0.3px;
  }

  .qrrow {
    margin-top: 36px;
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .qrcard {
    flex: none;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
  }

  .qrcard svg {
    display: block;
    width: 264px;
    height: 264px;
    color: var(--ink);
  }

  /* the page draws one code per environment; only the one for this site's host shows (get.js) */
  .qrcard svg[hidden] {
    display: none;
  }

  .qrtx {
    min-width: 0;
    max-width: 440px;
  }

  .qrtx h2 {
    margin: 0;
    font: 700 28px / 32px var(--sans);
    letter-spacing: -0.5px;
    text-wrap: balance;
  }

  .qrtx p {
    margin: 12px 0 0;
    font: 400 18px / 27px var(--sans);
    color: var(--ink-secondary);
  }

  .qrtx .addr {
    margin-top: 18px;
    font: 500 13px / 18px var(--mono);
    color: var(--ink-muted);
    letter-spacing: 0.02em;
  }

  .eyebrow {
    display: block;
    margin: 56px 0 0;
    font: 500 13px / 18px var(--mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-secondary);
  }

  /* the steps become a preview: three cards, no buttons, no notes */
  .steps {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    gap: 6px;
    padding: 0 0 18px;
  }

  .step .pic {
    order: -1;
    height: 150px;
    border-radius: 0;
    margin-bottom: 10px;
  }

  .step .sh {
    gap: 10px;
    padding: 0 18px;
  }

  .step .num {
    width: 24px;
    height: 24px;
    font-size: 13px;
    line-height: 24px;
  }

  .step .st {
    font: 600 17px / 22px var(--sans);
    letter-spacing: -0.16px;
  }

  .step .sl {
    margin: 0 18px 0 52px;
    font-size: 14px;
    line-height: 20px;
  }

  .go,
  .note {
    display: none;
  }

  .orweb {
    margin-top: 44px;
    display: flex;
    align-items: center;
    gap: 16px;
    font: 400 18px / 27px var(--sans);
    color: var(--ink-secondary);
  }

  .bbtn {
    display: inline-flex;
    height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    font: 500 16px var(--sans);
  }
}

/* the /questions page (questions.ts): the /get column, groups of expandable questions */
.qpage > * {
  max-width: 760px;
  margin-inline: auto;
}

.qpage h1 {
  font: 700 32px / 38px var(--sans);
  letter-spacing: -0.8px;
  margin: 28px auto 8px;
}

.qgroup h2 {
  margin: 28px 0 8px;
  font: 500 13px / 18px var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.qback {
  margin-top: 36px;
}

.qback a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

@media (min-width: 760px) {
  .qpage h1 {
    margin-top: 48px;
    font-size: 44px;
    line-height: 50px;
  }
}
