/* Murble guides — shared styles for /guides/*.
   Loaded after murble.css, which owns the design tokens (--accent, --surface,
   --border …), the focus ring and the skip link. This sheet only adds the
   editorial layout the long-form pages need, in the landing's visual language:
   gradient section rules, card surfaces, phone-framed screenshots. */

/* The reading column: wider than the legal pages' 680px, still comfortable. */
main.guide {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px 96px;
}

/* --- Top bar ------------------------------------------------------------ */
.site-bar {
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}
.site-bar .inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.site-bar .appmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
  font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none;
  letter-spacing: -0.02em;
}
.site-bar .appmark:hover { text-decoration: none; }
.site-bar .appmark img { width: 30px; height: 30px; border-radius: 8px; }
.site-bar nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; font-size: .92rem; }

/* --- Breadcrumb + hero -------------------------------------------------- */
.crumbs {
  max-width: 820px; margin: 0 auto; padding: 22px 20px 0;
  font-size: .84rem; color: var(--muted);
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border); }

.guide-hero { max-width: 820px; margin: 0 auto; padding: 10px 20px 6px; }
.guide-hero .eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 5px 14px;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid rgba(91, 63, 184, .28); border-radius: 999px;
  background: linear-gradient(135deg, rgba(58, 109, 196, .08), rgba(91, 63, 184, .08));
}
.guide-hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  margin: 0 0 16px; font-weight: 700; text-wrap: balance;
}
.standfirst { font-size: 1.12rem; color: var(--muted); margin: 0 0 20px; }
.byline {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
  font-size: .86rem; color: var(--muted);
  padding: 0 0 22px; border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.byline .who { font-weight: 600; color: var(--text); }

/* --- Table of contents -------------------------------------------------- */
.toc {
  background-color: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 26px; margin: 28px 0 8px;
}
/* Scoped under .guide so these win over the generic `.guide h2` rules below,
   which would otherwise give the card a 56px top margin and a gradient rule. */
.guide .toc h2 {
  font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
.guide .toc h2::after { display: none; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: .95rem; }

/* --- Body typography ---------------------------------------------------- */
.guide h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  margin: 56px 0 14px; letter-spacing: -0.03em;
}
.guide h2::after {
  content: ""; display: block; width: 52px; height: 4px; border-radius: 2px;
  margin: 14px 0 0; background: linear-gradient(90deg, #3A6DC4, #5B3FB8);
}
.guide h3 { font-size: 1.1rem; margin: 32px 0 8px; }
.guide p { margin: 0 0 16px; font-size: 1.02rem; line-height: 1.72; }
.guide ul, .guide ol { margin: 0 0 18px; padding-left: 22px; }
.guide li { margin-bottom: 8px; line-height: 1.7; }
.guide strong { font-weight: 700; }
.guide .muted { color: var(--muted); }

.key-line {
  border-left: 3px solid var(--accent-2); padding: 4px 0 4px 18px;
  margin: 0 0 20px; font-size: 1.06rem;
}

/* --- Numbered workflow -------------------------------------------------- */
.workflow { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.workflow > li {
  counter-increment: step;
  position: relative; padding: 22px 24px 22px 66px;
  background-color: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  margin: 0;
}
.workflow > li::before {
  content: counter(step);
  position: absolute; left: 22px; top: 22px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #3A6DC4, #5B3FB8); color: #fff;
  font-weight: 800; font-size: .9rem; line-height: 1;
}
.workflow h3 { margin: 0 0 6px; font-size: 1.02rem; }
.workflow p { margin: 0 0 8px; font-size: .96rem; color: var(--muted); }
.workflow p:last-child { margin-bottom: 0; }
.workflow .path {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86rem; background: var(--surface-hover);
  border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px;
}

/* --- Screenshots -------------------------------------------------------- */
figure.shot { margin: 28px 0; text-align: center; }
figure.shot .mini-phone {
  display: inline-block; position: relative;
  width: 232px; border-radius: 30px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 18px 42px rgba(11, 14, 24, .18);
}
figure.shot img { display: block; width: 100%; height: auto; border-radius: 24px; }
figure.shot figcaption {
  margin: 16px auto 0; max-width: 560px;
  font-size: .88rem; color: var(--muted); line-height: 1.6;
}
.shot-pair { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
/* Needs `figure.shot` in front to outrank the single-shot width above, which is
   an element+class selector and would otherwise win on specificity. */
figure.shot .shot-pair .mini-phone { width: 200px; }

/* --- Callouts ----------------------------------------------------------- */
.callout {
  border: 1px solid var(--border); border-left: 4px solid var(--accent-2);
  border-radius: 12px; padding: 22px 26px; margin: 26px 0;
  background-color: var(--surface);
}
.callout h3 { margin: 0 0 8px; font-size: 1rem; }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }
.callout.limits { border-left-color: #B07A18; }
.callout.honest { border-left-color: #C4353F; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.tags .tag {
  font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
  font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--muted);
}
.pro-tag, .free-tag {
  font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  border-radius: 6px; padding: 2px 7px; vertical-align: middle; white-space: nowrap;
}
.pro-tag { color: var(--accent-2); border: 1px solid var(--accent-2); }
.free-tag { color: #1E9E50; border: 1px solid #1E9E50; }

/* --- Comparison table (same grammar as the landing's #compare) ---------- */
.compare-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 16px; border: 1px solid var(--border);
  background: var(--surface); margin: 0 0 14px;
}
table.compare { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .88rem; }
.compare caption {
  caption-side: top; text-align: left; padding: 16px 16px 8px;
  font-size: .84rem; color: var(--muted);
}
.compare th, .compare td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--border); }
.compare thead th { font-size: .9rem; padding: 15px 14px 11px; }
.compare th[scope="row"] {
  text-align: left; font-weight: 600; position: sticky; left: 0;
  background: var(--surface); min-width: 180px;
}
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare .murble-col { background: linear-gradient(180deg, rgba(58, 109, 196, .10), rgba(91, 63, 184, .10)); font-weight: 700; }
.compare .yes { color: #1E9E50; font-weight: 800; }
.compare .no { color: #C4353F; font-weight: 700; }
.compare .part { color: #B07A18; font-weight: 600; }
.compare .sub { display: block; font-size: .74rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
.table-note { font-size: .82rem; color: var(--muted); margin: 0 0 26px; }

/* --- Sources ------------------------------------------------------------ */
.sources { font-size: .9rem; }
.sources li { margin-bottom: 10px; color: var(--muted); }
.verified {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: .82rem; color: var(--muted); background: var(--surface);
}

/* --- CTA ---------------------------------------------------------------- */
.cta-band {
  margin: 48px 0 8px; padding: 38px 30px; text-align: center;
  border-radius: 18px; border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(58, 109, 196, .07), rgba(91, 63, 184, .07));
}
.cta-band h2 { margin: 0 0 10px; font-size: 1.4rem; }
.cta-band h2::after { margin-inline: auto; }
.cta-band p { color: var(--muted); max-width: 480px; margin: 0 auto 22px; font-size: .98rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
  font-weight: 700; font-size: 1rem;
  padding: 13px 28px; border-radius: 12px; text-decoration: none;
}
.store-badge:hover { text-decoration: none; opacity: .9; }
.store-badge svg { width: 17px; height: 21px; }
.cta-band .fine { font-size: .84rem; margin: 16px auto 0; }

/* --- Related guides ----------------------------------------------------- */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0 0 12px; }
.related a {
  display: block; padding: 20px 22px; border-radius: 12px;
  border: 1px solid var(--border); background-color: var(--surface);
  text-decoration: none; color: var(--text);
}
.related a:hover { border-color: var(--accent-2); text-decoration: none; }
.related .t { font-weight: 700; display: block; margin-bottom: 4px; }
.related .d { font-size: .88rem; color: var(--muted); }

footer.guide { border-top: 1px solid var(--border); }
footer.guide nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; padding-top: 40px; }

@media (max-width: 640px) {
  main.guide { padding: 0 18px 72px; }
  .guide-hero, .crumbs { padding-inline: 18px; }
  .guide h2 { margin-top: 44px; }
  .workflow > li { padding: 20px 20px 20px 60px; }
  .workflow > li::before { left: 18px; top: 20px; }
  .callout, .toc { padding: 18px 20px; }
  figure.shot .mini-phone { width: min(210px, 62vw); }
  /* Sized so two frames still share a row inside the 18px gutters; a three-shot
     group wraps to 2 + 1 rather than one tall column per phone. */
  .shot-pair { gap: 16px; }
  figure.shot .shot-pair .mini-phone { width: min(150px, 38vw); }
  .cta-band { padding: 30px 20px; }
  .store-badge { width: 100%; max-width: 320px; justify-content: center; }
}
