/* site.css - v0.1.0
 *
 * PlayCheck Guitar marketing site.
 *
 * Colour tokens are copied verbatim from the app's theme tokens (styles.css
 * v1.8.719 §"Theme tokens") so the site reads as the same product. When the
 * app palette changes, update both.
 *
 * Deliberately static: no scroll effects, no animation beyond focus/hover
 * state, no layout that moves on scroll.
 */

/* =============================================================
   Tokens — dark is the default, light follows the OS preference
   (the app ships the same pair via html[data-color-scheme]).
   ============================================================= */
:root {
  --bg-app: #121214;
  --bg-panel: #151518;
  --bg-elevated: #1a1a1e;
  --bg-inset: #0f1115;
  --border-subtle: #2d2d34;
  --border-strong: #3f3f46;
  --text-primary: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --accent: #00a6ef;
  --accent-hover: #39bfff;
  --accent-ink: #1a1a1e;
  --green: #10a37f;
  --amber: #f59e0b;

  /* Brand mark colours, sampled from branding/with text.png.
     These are logo colours only — chrome uses --accent. */
  --brand-blue: #367bba;
  --brand-green: #4aa181;
  --brand-grey: #929292;
  /* The mark's own GUITAR grey clears 6:1 on --bg-app, so dark uses it as-is. */
  --brand-guitar-ink: #929292;

  --font-ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
  --wrap: 1040px;
  --radius: 8px;
  --radius-sm: 6px;
  --step: 20px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-app: #f1f5f9;
    --bg-panel: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-inset: #e2e8f0;
    --border-subtle: #cbd5e1;
    --border-strong: #94a3b8;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-faint: #94a3b8;
    --accent: #0082c8;
    --accent-hover: #0069a2;
    --accent-ink: #f8fafc;
    --green: #10a37f;
    --amber: #b45309;

    --brand-grey: #7b7b7b;
    /* #929292 is 2.8:1 on --bg-app in light mode. Darkened to clear AA. */
    --brand-guitar-ink: #6f6f6f;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================
   Layout
   ============================================================= */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 56px;
  border-top: 1px solid var(--border-subtle);
}

.section--flush {
  border-top: 0;
}

.section__head {
  max-width: var(--measure);
  margin-bottom: 28px;
}

.section__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.section__title {
  font-size: 26px;
  margin-bottom: 10px;
}

.section__lede {
  color: var(--text-secondary);
  font-size: 17px;
}

.prose {
  max-width: var(--measure);
  color: var(--text-secondary);
}

.prose > * + * {
  margin-top: 14px;
}

.muted {
  color: var(--text-muted);
}

.fine {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =============================================================
   Header
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg-app) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.brand:hover {
  text-decoration: none;
  color: var(--text-primary);
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.brand__play {
  color: var(--brand-blue);
}

.brand__check {
  color: var(--brand-green);
}

.brand__guitar {
  color: var(--brand-guitar-ink);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-left: 6px;
}

.brand__mark--light {
  display: block;
}

.brand__mark--dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .brand__mark--light {
    display: none;
  }
  .brand__mark--dark {
    display: block;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.site-nav a {
  color: var(--text-secondary);
}

.site-nav a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.site-nav__sep {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
}

/* Below this the brand and the nav stop fitting on one line. Wrap to two
   rather than overflowing: nav scrolls sideways if it still has to. */
@media (max-width: 620px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding-block: 10px;
    row-gap: 4px;
  }

  .brand {
    margin-right: 0;
  }

  .site-nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--quiet {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn--quiet:hover {
  border-color: var(--text-faint);
  background: var(--bg-inset);
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

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

.btn-row--center {
  justify-content: center;
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  padding-block: 72px 64px;
  text-align: center;
}

.hero__lockup {
  width: 360px;
  max-width: 78vw;
  margin-inline: auto;
}

.hero__tagline {
  margin-top: 26px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero__lede {
  margin: 14px auto 0;
  max-width: 60ch;
  color: var(--text-secondary);
  font-size: 18px;
}

.hero .btn-row {
  margin-top: 30px;
}

.hero__meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-faint);
}

/* =============================================================
   Screenshot placeholders
   ============================================================= */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--step);
}

.shot {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 16px;
}

.shot__frame {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  border: 1px dashed var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.shot__caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* =============================================================
   Feature list
   ============================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px 40px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.feature p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* =============================================================
   Cards
   ============================================================= */
.cards {
  display: grid;
  /* 320px floor forces two columns on desktop: desktop builds, then stores. */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--step);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-panel);
}

.card__title {
  font-size: 18px;
}

.card__meta {
  font-size: 14px;
  color: var(--text-muted);
}

.card__body {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 15px;
  flex: 1;
}

.card__action {
  margin-top: 18px;
}

.card--soon {
  background: var(--bg-app);
}

.card--soon .card__title {
  color: var(--text-secondary);
}

.card__glyph {
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
}

/* =============================================================
   Table
   ============================================================= */
.table-scroll {
  overflow-x: auto;
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

table.spec th,
table.spec td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

table.spec thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg-panel);
}

table.spec tbody tr:last-child td {
  border-bottom: 0;
}

table.spec td.num {
  white-space: nowrap;
  color: var(--text-secondary);
}

/* =============================================================
   Callout
   ============================================================= */
.callout {
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  padding: 16px 18px;
  font-size: 15px;
  color: var(--text-secondary);
}

/* =============================================================
   Price / plan split (what it costs)
   ============================================================= */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--step);
  max-width: 720px;
}

.plan {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 20px;
}

.plan__name {
  font-size: 15px;
  font-weight: 650;
}

.plan__price {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.plan__price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.plan ul {
  margin-top: 14px;
  display: grid;
  gap: 7px;
  font-size: 15px;
  color: var(--text-secondary);
}

.plan li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
}

.plan li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.plan--paid li::before {
  background: var(--green);
}

/* =============================================================
   FAQ
   ============================================================= */
.faq {
  max-width: var(--measure);
  border-top: 1px solid var(--border-subtle);
}

.faq details {
  border-bottom: 1px solid var(--border-subtle);
}

.faq summary {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 550;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-faint);
  border-bottom: 1.5px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform 120ms ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq details > p {
  padding: 0 0 16px;
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 62ch;
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 40px 48px;
  background: var(--bg-panel);
}

.site-footer__grid {
  display: grid;
  /* 150px floor keeps all five columns on one row at the 1040px wrap. */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}

.site-footer__col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.site-footer__col li + li {
  margin-top: 8px;
}

.site-footer__col a,
.site-footer__col span {
  font-size: 15px;
  color: var(--text-secondary);
}

.site-footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-faint);
}

.site-footer__legal {
  margin-top: 20px;
  max-width: 78ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-faint);
}

/* =============================================================
   Checkout (buy page)
   ============================================================= */
.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding-block: 48px 72px;
}

@media (max-width: 860px) {
  .checkout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.steps li + li::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--border-strong);
  margin-right: 8px;
}

.steps li[aria-current="step"] {
  color: var(--text-primary);
  font-weight: 600;
}

.steps li[data-done="1"] {
  color: var(--text-secondary);
}

.step {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 22px;
}

.step + .step {
  margin-top: var(--step);
}

.step__title {
  font-size: 18px;
  margin-bottom: 4px;
}

.step__hint {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.step[hidden] {
  display: none;
}

.radio {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.radio + .radio {
  margin-top: 10px;
}

.radio:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.radio:has(input:disabled) {
  cursor: default;
  opacity: 0.55;
}

.radio input {
  margin: 3px 0 0;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.radio__name {
  display: block;
  font-weight: 600;
  font-size: 16px;
}

.radio__desc {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
}

.radio__price {
  font-weight: 650;
  font-size: 16px;
  white-space: nowrap;
}

.radio__tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  vertical-align: 2px;
}

.field {
  display: grid;
  gap: 6px;
  max-width: 420px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input {
  font: inherit;
  font-size: 16px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-input, var(--bg-elevated));
  color: var(--text-primary);
}

.field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field__hint {
  font-size: 13px;
  color: var(--text-muted);
}

.summary {
  position: sticky;
  top: 84px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 20px;
}

.summary h2 {
  font-size: 15px;
  margin-bottom: 14px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  padding-block: 8px;
}

.summary__row span:last-child {
  white-space: nowrap;
  color: var(--text-secondary);
}

.summary__total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-weight: 650;
}

.summary__note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.step__legal {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.step__foot {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.linkbtn {
  font: inherit;
  font-size: 14px;
  color: var(--text-secondary);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.linkbtn:hover {
  color: var(--text-primary);
}

.notice {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.checkmark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 18%, transparent);
  border: 1px solid var(--green);
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}