/* ===== Guide pages — shared layout ===========================
 *
 * Styles for content pages under /en/<topic>/ that walk users
 * through scenarios (Apple Account transfer, library deletion after
 * cancellation, deleted-playlist recovery, etc.).
 *
 * Inherits the page chrome from legal.css. This file extends with
 * patterns specific to step-by-step guides:
 *   .guide-meta + .guide-chip    — metadata chips under the H1
 *   .guide-callout               — pull-quote / honest-truth blocks
 *   .guide-steps                 — numbered ordered list of steps
 *   .guide-scenarios             — three-up scenario cards
 *   .guide-compare               — preserves vs deleted comparison
 *   .guide-faq                   — accordion FAQ block
 *   .guide-cta                   — App Store CTA card at the bottom
 * ============================================================ */

/* ---- Hero meta chips ---- */
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 28px;
}
.guide-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.guide-chip strong { color: var(--text); font-weight: 600; }
.guide-chip .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.labels-sans .guide-chip .label {
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  font-size: 12px;
  font-weight: 600;
}

/* ---- Pull-quote / honest-truth callout ---- */
.guide-callout {
  margin: 24px 0;
  padding: 28px 32px;
  border-radius: 20px;
  border: none;
  background: rgba(120, 120, 128, 0.16);
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--text);
  font-weight: 500;
}
.guide-callout::before {
  content: "—";
  display: block;
  color: var(--accent-bright);
  font-weight: 600;
  margin-bottom: 6px;
}
.guide-callout cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* ---- Numbered step cards ----
 * Ordered list with auto-numbered side label. One column on mobile,
 * full-width with side number on desktop. */
.guide-steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: step;
}
.guide-steps li {
  counter-increment: step;
  padding: 24px 28px 24px 76px;
  border-radius: 18px;
  border: none;
  background: rgba(120, 120, 128, 0.16);
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.6;
  position: relative;
}
.guide-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 26px;
  top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-bright);
  letter-spacing: 0.14em;
  font-weight: 500;
}
body.labels-sans .guide-steps li::before {
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  font-weight: 600;
}
.guide-steps li h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.guide-steps li p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}
.guide-steps li p + p { margin-top: 8px; }
.guide-steps li strong { color: var(--text); font-weight: 600; }
.guide-steps li code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
body.labels-sans .guide-steps li code {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
}

/* ---- Three-up scenario cards ---- */
.guide-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0 0;
}
@media (max-width: 720px) {
  .guide-scenarios { grid-template-columns: 1fr; }
}
.guide-scenario {
  padding: 24px;
  border-radius: 18px;
  border: none;
  background: rgba(120, 120, 128, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-scenario .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-bright);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
body.labels-sans .guide-scenario .label {
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 12px;
}
.guide-scenario h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.guide-scenario p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

/* ---- What's preserved / what isn't, two-column ---- */
.guide-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0 0;
}
@media (max-width: 720px) {
  .guide-compare { grid-template-columns: 1fr; }
}
.guide-compare-col {
  padding: 24px 26px;
  border-radius: 18px;
  background: rgba(120, 120, 128, 0.16);
}
.guide-compare-col h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
body.labels-sans .guide-compare-col h3 {
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  font-size: 13px;
}
.guide-compare-col.preserves h3 { color: #6ee7b7; }
.guide-compare-col.skips h3 { color: var(--text-mute); }
.guide-compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* The legal-section ul styles use ::before for the bullet; we need to
 * override those here since guide-compare-col li sits inside legal-section. */
.guide-compare-col li {
  padding-left: 20px !important;
  position: relative;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  color: var(--text-dim);
}
.guide-compare-col li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 9px !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: var(--text-mute) !important;
}
.guide-compare-col.preserves li::before { background: #6ee7b7 !important; }

/* ---- FAQ accordion ---- */
.guide-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 0;
}
.guide-faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.015);
  transition: background .2s ease, border-color .2s ease;
}
.guide-faq details[open] {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-2);
}
.guide-faq summary {
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-mute);
  transition: transform .2s ease, color .2s ease;
  line-height: 1;
}
.guide-faq details[open] summary::after {
  content: "–";
  color: var(--accent-bright);
}
.guide-faq .answer {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-top: 12px;
}
.guide-faq .answer a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-2);
  text-underline-offset: 3px;
}

/* ---- Bottom CTA card ---- */
.guide-cta {
  margin-top: 24px;
  padding: 36px;
  border-radius: 20px;
  border: none;
  background: rgba(120, 120, 128, 0.16);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 720px) {
  .guide-cta { grid-template-columns: 1fr; padding: 28px; gap: 18px; }
}
.guide-cta h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.guide-cta p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.guide-cta .btn { white-space: nowrap; text-decoration: none; }
@media (max-width: 720px) {
  .guide-cta .btn { width: 100%; justify-content: center; }
}

/* ---- "What doesn't work" warning list ----
 * Used on the recovery-style pages to call out myths and dead ends.
 * Visually distinct from regular bullets to signal "be careful, here". */
.guide-myths {
  list-style: none !important;
  padding: 0 !important;
  margin: 8px 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.guide-myths li {
  padding: 18px 22px 18px 50px !important;
  border-radius: 14px;
  background: rgba(180, 60, 60, 0.08);
  border: 1px solid rgba(180, 60, 60, 0.18) !important;
  position: relative;
  color: var(--text-dim);
  font-size: 15px !important;
  line-height: 1.6 !important;
}
.guide-myths li::before {
  content: "✗" !important;
  position: absolute !important;
  left: 22px !important;
  top: 18px !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  color: #f87171 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
.guide-myths li strong { color: var(--text); font-weight: 600; }

/* ---- Guides hub — landing page that lists all guides ----
 * Used only on /en/guides/. Two-column card grid, sectioned by
 * user state. Cards are clickable links with subtle hover lift. */
.guides-hub-section {
  margin-top: 48px;
}
.guides-hub-section:first-of-type {
  margin-top: 32px;
}
.guides-hub-section-header {
  margin-bottom: 16px;
}
.guides-hub-section-header h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.guides-hub-section-header p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 56ch;
}
.guides-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) {
  .guides-hub-grid { grid-template-columns: 1fr; }
}
.guide-card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 28px;
  border-radius: 18px;
  background: rgba(120, 120, 128, 0.16);
  text-decoration: none;
  color: inherit;
  transition: background .2s ease, transform .15s ease;
}
.guide-card-link:hover,
.guide-card-link:focus-visible {
  background: rgba(120, 120, 128, 0.22);
  transform: translateY(-1px);
  outline: none;
}
.guide-card-link .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
}
/* Category tints — palette borrowed from .tool-card .verdict on the
 * comparison page. One color per section; sister labels in the same
 * section share the tint so each section reads as a single hue. */
.guide-card-link .eyebrow.recovery { color: #f87171; }
.guide-card-link .eyebrow.migration,
.guide-card-link .eyebrow.curation { color: #fcd34d; }
.guide-card-link .eyebrow.archive,
.guide-card-link .eyebrow.tools { color: var(--accent-bright); }
body.labels-sans .guide-card-link .eyebrow {
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 12px;
}
.guide-card-link .title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.guide-card-link .summary {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.guide-card-link .read-arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 4px 0 0;
  letter-spacing: -0.005em;
}
