/* ==========================================================================
   Retro Tape — page theme
   Colours are sampled from the app's own App Store screenshots.
   ========================================================================== */

:root {
  --bg: #1f1b17;
  --bg-alt: #28231f;
  --fg: #f3ede3;
  --muted: #c4baac;
  --dim: #948a7d;
  --line: #3a332c;
  --line-strong: #4a4239;
  --accent: #e8834a;
  --accent-hover: #f09a66;
  --on-accent: #1f1b17;

  --stripe-1: #e8b04a;
  --stripe-2: #e8834a;
  --stripe-3: #c8452f;
  --stripe-4: #7a2e2a;

  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-osd: "VT323", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-btn: 12px;
  --radius-media: 22px;

  color-scheme: dark;
}

/* --- Type ----------------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.88;
  letter-spacing: -0.01em;
  word-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  text-wrap: balance;
}
.display .nowrap { white-space: nowrap; }
.display em { font-style: normal; color: var(--accent); }

.display--xl { font-size: clamp(3.75rem, 12vw, 7rem); }
.display--lg { font-size: clamp(3.25rem, 8.5vw, 5.25rem); line-height: 0.9; }
.display--md { font-size: clamp(2.75rem, 7vw, 4.5rem); line-height: 0.9; }

.lede {
  font-size: clamp(1.25rem, 2.6vw, 1.6875rem);
  line-height: 1.3;
  color: var(--muted);
}
.lede--bright { font-size: clamp(1.1875rem, 2.2vw, 1.4375rem); line-height: 1.35; color: var(--fg); }

.copy {
  max-width: 34rem;
  color: var(--muted);
}

/* VCR on-screen-display label, as used inside the app */
.osd {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-osd);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--accent);
  text-transform: uppercase;
}
.osd::before {
  content: "";
  width: 0.42em;
  height: 0.5em;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* --- Stripes -------------------------------------------------------------- */

.stripes {
  height: 40px;
  background: linear-gradient(
    var(--stripe-1) 0 25%,
    var(--stripe-2) 25% 50%,
    var(--stripe-3) 50% 75%,
    var(--stripe-4) 75% 100%
  );
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 4rem;
  align-items: center;
  padding-block: 5.25rem 5.5rem;
}

.hero__copy {
  display: grid;
  gap: 1.75rem;
  justify-items: start;
}

.app-id {
  display: flex;
  align-items: center;
  gap: 1.125rem;
}

.app-id__icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
}

.app-id__name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-stretch: 125%;
  font-size: 0.9375rem;
  letter-spacing: 0.28em;
  line-height: 1.2;
  text-transform: uppercase;
}
.app-id__name::before {
  content: "";
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}

.app-id__platform {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--dim);
}

.hero .copy { font-size: 1.0625rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  padding-top: 0.25rem;
}

.requirements {
  font-size: 0.875rem;
  color: var(--dim);
}

.hero__media img {
  width: 100%;
  border-radius: var(--radius-media);
}

/* --- Feature rows --------------------------------------------------------- */

.band {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6rem;
  align-items: center;
  padding-block: 4rem;
}

.feature--flip { grid-template-columns: auto minmax(0, 1fr); gap: 5.5rem; }
.feature--flip .feature__media { order: -1; }

.feature__copy {
  display: grid;
  gap: 1.25rem;
}

.feature__media { width: 400px; }
.feature__media--wide { width: 500px; }

.feature__media img {
  width: 100%;
  border-radius: var(--radius-media);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0;
  padding: 0.25rem 0 0;
  list-style: none;
}

.chips li {
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--muted);
}

.chips .is-default {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
  font-weight: 700;
}

/* --- Export --------------------------------------------------------------- */

.export {
  display: grid;
  gap: 1.75rem;
  padding-block: 5rem 4.5rem;
}

.export__copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  color: var(--muted);
}

.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.specs dt {
  font-family: var(--font-osd);
  font-size: 1.375rem;
  line-height: 1.1;
  color: var(--dim);
  text-transform: uppercase;
}

.specs dd {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: 2.25rem;
  line-height: 1;
  word-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1040px) {
  .hero { gap: 3rem; }
  .feature, .feature--flip { gap: 3.5rem; }
  .feature__media { width: 340px; }
  .feature__media--wide { width: 420px; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 3.5rem 4rem;
  }
  .hero__media { max-width: 500px; }

  .feature,
  .feature--flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding-block: 4rem;
  }
  /* On a phone, copy always comes before its picture */
  .feature--flip .feature__media { order: 0; }
  .feature__media,
  .feature__media--wide { width: min(100%, 440px); }

  .export__copy { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
}

@media (max-width: 420px) {
  .app-id__icon { width: 64px; height: 64px; border-radius: 15px; }
  .actions .btn { width: 100%; }
  .specs dd { font-size: 1.875rem; }
}
