/* ============================================================
   RxLoad Main Stylesheet
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --clr-bg:         #080808;
  --clr-surface:    #111111;
  --clr-surface-2:  #1a1a1a;
  --clr-border:     rgba(255, 255, 255, 0.07);
  --clr-border-hover: rgba(192, 192, 192, 0.35);
  --clr-silver-1:   #c0c0c0;
  --clr-silver-2:   #e8e8e8;
  --clr-text:       #f0f0f0;
  --clr-muted:      #777;
  --clr-green:      #4ade80;
  --radius-card:    14px;
  --radius-btn:     10px;
  --shadow-card:    0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-hover:   0 16px 40px rgba(0, 0, 0, 0.65);
  --transition:     0.2s ease;
  --font:           -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }

/* ── Utilities ──────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--clr-silver-1), var(--clr-silver-2), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  padding: 1.25rem 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-header p {
  font-size: 0.8rem;
  color: var(--clr-muted);
  margin-top: 0.25rem;
}

/* ── Search ──────────────────────────────────────────────────── */
.search-section { padding: 1.5rem 1rem; }

.search-wrapper {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  max-width: 760px;
  margin: 0 auto;
  transition: border-color var(--transition);
}

.search-wrapper:focus-within {
  border-color: var(--clr-silver-1);
  box-shadow: 0 0 0 3px rgba(192, 192, 192, 0.1);
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-input-row i { color: var(--clr-muted); flex-shrink: 0; }

.search-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--clr-text);
  font-size: 0.9rem;
  font-family: var(--font);
}

.search-input-row input::placeholder { color: var(--clr-muted); }

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  color: #aaa;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.tag:hover,
.tag.active {
  background: rgba(192, 192, 192, 0.12);
  border-color: var(--clr-silver-1);
  color: #fff;
}

/* ── Main / Cards ─────────────────────────────────────────────── */
.main-content { padding: 0 1rem 4rem; }

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
}

.section-header p {
  font-size: 0.82rem;
  color: var(--clr-muted);
  margin-top: 0.3rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── Card ────────────────────────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--clr-border-hover);
  box-shadow: var(--shadow-hover);
}

.card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #606060, var(--clr-silver-1));
  color: #111;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: 0.03em;
}

.card__img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card__img { transform: scale(1.04); }

.card__body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #fff;
}

.card__desc {
  font-size: 0.78rem;
  color: #999;
  flex: 1;
  line-height: 1.45;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Button ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.2rem;
  transition: all var(--transition);
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--clr-silver-1), var(--clr-silver-2));
  color: #111;
}

.btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(192, 192, 192, 0.25);
}

.btn--ghost {
  background: var(--clr-surface-2);
  color: #aaa;
  border: 1px solid var(--clr-border);
}

.btn--ghost:hover { color: #fff; border-color: var(--clr-border-hover); }

.btn--copy { background: linear-gradient(135deg, var(--clr-silver-1), var(--clr-silver-2)); color: #111; }
.btn--copy.copied { background: linear-gradient(135deg, #22c55e, #4ade80); color: #111; }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.is-open { display: flex; }

.modal {
  background: var(--clr-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  animation: modal-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* modal preview strip */
.modal__preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

.modal__preview-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--clr-border);
}

.modal__preview-title { font-weight: 700; font-size: 0.95rem; }
.modal__preview-desc  { font-size: 0.75rem; color: var(--clr-muted); margin-top: 2px; }

.modal__heading {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.25rem;
}

.modal__sub {
  font-size: 0.8rem;
  color: var(--clr-muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

/* offer items */
.offer-item {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.offer-item:hover {
  border-color: var(--clr-silver-1);
  background: rgba(192, 192, 192, 0.06);
  transform: translateX(3px);
}

.offer-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.offer-item__title { font-size: 0.88rem; font-weight: 600; }

.offer-item__badge {
  font-size: 0.72rem;
  color: var(--clr-green);
  background: rgba(74, 222, 128, 0.1);
  border-radius: 20px;
  padding: 2px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

.modal__hint {
  font-size: 0.72rem;
  color: var(--clr-muted);
  text-align: center;
  margin-top: 1rem;
}

/* ── Script Reveal ───────────────────────────────────────────── */
.script-reveal {
  display: none;
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 12px;
  padding: 1.1rem;
}

.script-reveal.is-visible { display: block; }

.script-reveal__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--clr-green);
  font-size: 0.85rem;
  font-weight: 600;
}

.script-box {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.85rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  color: #a8ff78;
  word-break: break-all;
  white-space: pre-wrap;
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.script-reveal__actions {
  display: flex;
  gap: 0.6rem;
}

.script-reveal__actions .btn { flex: 1; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--clr-border);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--clr-muted);
}

/* ── Modal explain box ───────────────────────────────────────── */
.modal__explain {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.5;
}
.modal__explain strong { color: var(--clr-text); }
.modal__steps {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}
.modal__step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  color: var(--clr-text);
  flex: 1;
  min-width: 130px;
}
.modal__step-num {
  background: var(--clr-accent);
  color: #000;
  border-radius: 50%;
  width: 1.3rem;
  height: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .modal { padding: 1.25rem; }
}

/* ============================================================
   Trust copy, per-game pages, FAQ
   ============================================================ */

/* ── Trust bar ───────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--clr-muted);
}
.trust-bar span { display: inline-flex; align-items: center; gap: 0.35rem; }
.trust-bar i { color: var(--clr-green); }

/* ── How it works ────────────────────────────────────────────── */
.how-section { padding: 2rem 1rem 0; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.how-step {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
  padding: 1.1rem;
}
.how-step h3 { font-size: 0.95rem; margin: 0.55rem 0 0.35rem; color: #fff; }
.how-step p { font-size: 0.8rem; color: var(--clr-muted); line-height: 1.55; }

.how-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-silver-1), #fff);
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ── Card meta row ───────────────────────────────────────────── */
.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  margin: 0.5rem 0 0.85rem;
  font-size: 0.68rem;
  color: var(--clr-muted);
}
.card__meta span,
.card__meta a { display: inline-flex; align-items: center; gap: 0.3rem; }
.card__meta .is-working { color: var(--clr-green); }
.card__meta a { color: var(--clr-silver-1); text-decoration: underline; }
.card__meta a:hover { color: #fff; }
.card__title a { color: inherit; }
.card__title a:hover { text-decoration: underline; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-section { padding: 2.5rem 1rem 1rem; }
.faq-section > h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--clr-muted); font-weight: 400; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item p {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.75rem;
  color: var(--clr-muted);
  padding: 1rem 0;
}
.breadcrumb a { color: var(--clr-silver-1); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.15rem; }

/* ── Game page hero ──────────────────────────────────────────── */
.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.game-hero__img { width: 100%; border-radius: 10px; }
.game-hero__body h1 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; }
.game-hero__desc { font-size: 0.88rem; color: var(--clr-muted); margin-top: 0.5rem; line-height: 1.6; }
.game-hero .card__meta { margin: 0.9rem 0 1.1rem; font-size: 0.72rem; }
.btn--lg { padding: 0.85rem 1.4rem; font-size: 0.95rem; }

/* ── Prose blocks ────────────────────────────────────────────── */
.prose { margin-bottom: 2rem; }
.prose h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.85rem; color: #fff; }

.feature-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.5rem; }
.feature-list li { display: flex; gap: 0.5rem; font-size: 0.85rem; color: var(--clr-muted); }
.feature-list i { color: var(--clr-green); margin-top: 0.25rem; }

.step-list { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; }
.step-list li { font-size: 0.85rem; color: var(--clr-muted); line-height: 1.6; }

.script-index {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.8rem;
}
.script-index a { color: var(--clr-silver-1); text-decoration: underline; }
.script-index a:hover { color: #fff; }

.related { margin-top: 2.5rem; }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 768px) {
  /* Card grid first. The explainer costs nothing on desktop but
     buries every script below the fold on a phone. */
  body { display: flex; flex-direction: column; }
  .site-header   { order: 1; }
  .search-section{ order: 2; }
  .main-content  { order: 3; }
  .how-section   { order: 4; }
  .faq-section   { order: 5; }
  .site-footer   { order: 6; }
  .modal-overlay { order: 0; }

  .trust-bar { gap: 0.25rem 0.7rem; font-size: 0.68rem; }

  /* Keep the tag row to one line instead of a wall of chips */
  .search-tags .tag:nth-child(n + 7) { display: none; }

  .how-section { padding-top: 2.5rem; }
  .how-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .how-step { padding: 0.8rem; }
  .how-step h3 { font-size: 0.85rem; }
  .how-step p { font-size: 0.72rem; }
  .how-step:last-child { grid-column: 1 / -1; }

  .game-hero { grid-template-columns: 1fr; padding: 1rem; }
  .card__meta { font-size: 0.65rem; gap: 0.3rem 0.5rem; }
}

/* Brand lockup on generated pages, where the h1 belongs to the game */
.brand {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ============================================================
   Unlock flow
   ============================================================ */

/* Offer rows read as buttons, not as a list */
.offer-item a { gap: 0.7rem; }

.offer-item__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}
.offer-item__icon img { width: 100%; height: 100%; object-fit: cover; }

.offer-item__text { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; min-width: 0; }
.offer-item__badge { align-self: flex-start; }

.offer-item__go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  color: #000;
  background: linear-gradient(135deg, var(--clr-silver-1), #fff);
  border-radius: var(--radius-btn);
  padding: 0.5rem 0.8rem;
}

/* Waiting state */
.unlock-status {
  display: none;
  gap: 0.85rem;
  align-items: flex-start;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-top: 0.9rem;
}
.unlock-status.is-visible { display: flex; }
.unlock-status strong { font-size: 0.88rem; color: #fff; }
.unlock-status p { font-size: 0.78rem; color: var(--clr-muted); margin-top: 0.3rem; line-height: 1.55; }

.unlock-status__spinner {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  border: 2px solid rgba(74, 222, 128, 0.25);
  border-top-color: var(--clr-green);
  border-radius: 50%;
  animation: unlock-spin 0.9s linear infinite;
}

@keyframes unlock-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .unlock-status__spinner { animation-duration: 3s; }
}

@media (max-width: 480px) {
  .offer-item { padding: 0.7rem 0.75rem; }
  .offer-item__go { padding: 0.45rem 0.6rem; font-size: 0.72rem; }
  .offer-item__title { font-size: 0.82rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.site-header { padding: 0.9rem 1rem; }

.hero {
  text-align: center;
  padding: 2.75rem 1rem 1.5rem;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(192, 192, 192, 0.10), transparent 70%),
    var(--clr-bg);
}

.hero__title {
  font-size: clamp(1.75rem, 5.5vw, 3.1rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin: 0 auto;
}

.hero__sub {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--clr-muted);
  max-width: 52ch;
  margin: 0.85rem auto 0;
  line-height: 1.6;
}

.hero .trust-bar { margin-top: 1.1rem; }

.hero__cta {
  width: auto;               /* .btn is width:100% for card layouts */
  margin-top: 1.4rem;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
}

/* ============================================================
   Unlock modal clarity
   ============================================================ */
.modal__sub strong { color: var(--clr-text); }

.modal__assure {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--clr-border);
  font-size: 0.78rem;
}
.modal__assure span { display: flex; align-items: center; gap: 0.5rem; }
.modal__assure i { color: var(--clr-green); width: 1rem; text-align: center; }

.modal__why {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--clr-muted);
  opacity: 0.85;
}

.offer-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.1rem 0 0.7rem;
  font-size: 0.82rem;
  color: var(--clr-text);
}
.offer-head strong { color: #fff; }

.offer-head__badge {
  background: linear-gradient(135deg, var(--clr-silver-1), #fff);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

.unlock-help {
  margin-top: 1rem;
  border-top: 1px solid var(--clr-border);
  padding-top: 0.85rem;
}
.unlock-help summary {
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--clr-silver-1);
  list-style: none;
  text-decoration: underline;
}
.unlock-help summary::-webkit-details-marker { display: none; }
.unlock-help ul { margin: 0.65rem 0 0 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.unlock-help li { font-size: 0.75rem; color: var(--clr-muted); line-height: 1.5; }

@media (max-width: 768px) {
  .hero { order: 2; padding: 1.5rem 1rem 1rem; }
  .search-section { order: 3; }
  .main-content { order: 4; }
  .how-section { order: 5; }
  .faq-section { order: 6; }
  .site-footer { order: 7; }

  /* On a phone the grid is directly below, so the hero button is noise */
  .hero__cta { display: none; }
  .hero__sub { margin-top: 0.6rem; }
  .hero .trust-bar { margin-top: 0.8rem; }
}

@media (max-width: 768px) {
  /* Keep the hero from pushing the grid off the first screen */
  .hero__title { font-size: 1.6rem; max-width: 18ch; }
  .hero__sub { font-size: 0.82rem; max-width: 40ch; }
  .hero { padding: 1.1rem 1rem 0.75rem; }

  /* The first offer has to be reachable without a scroll. The reasoning
     paragraph is the least load-bearing thing in the modal, so it goes. */
  .modal__why { display: none; }
  .modal__steps { gap: 0.35rem; }
  .modal__step { padding: 0.3rem 0.55rem; font-size: 0.75rem; }
  .modal__assure { margin-top: 0.65rem; padding-top: 0.6rem; font-size: 0.74rem; }
  .modal__sub { font-size: 0.78rem; margin-bottom: 0.9rem; }
  .modal__preview { margin-bottom: 1rem; }
  .offer-head { margin: 0.85rem 0 0.55rem; font-size: 0.78rem; }
}
