/* iFileSync — site styles
   Palette mirrors lib/app/res/app_colors/app_palette.dart so the site and the
   app read as one product. Dark-only by design: it matches the app's Vault
   theme and stands apart from the usual white app-landing-page. */

:root {
  --bg: #0a111e;
  --surface: #141c2b;
  --surface-2: #1a2436;
  --border: #223349;
  --divider: #2a3b55;
  --ink: #e8f1fb;
  --muted: #9fb4cc;
  --muted-faint: #6e87a3;
  --primary: #2e86f0;
  --primary-end: #63c7ff;
  --success: #2bd9a5;
  --error: #ff6b6b;

  --grad: linear-gradient(135deg, var(--primary), var(--primary-end));
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1080px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

/* The `hidden` attribute must win. A plain `display: flex`/`grid` on an author
   rule outranks the UA stylesheet's `[hidden] { display: none }`, which is what
   made the game score panels show on their title cards before a round started. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--primary-end); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--primary-end);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.15rem, 5.4vw, 3.5rem); text-wrap: balance; }
h2 { font-size: clamp(1.65rem, 4vw, 2.5rem); }
h3 { font-size: 1.16rem; margin-bottom: 0.4em; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 56ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--primary-end);
  margin-bottom: 0.9rem;
}

section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }

.section-head { max-width: 60ch; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 17, 30, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); text-decoration: none; }

@media (max-width: 820px) {
  .nav .nav-link { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  color: #06101f;
  box-shadow: 0 8px 26px rgba(46, 134, 240, 0.34);
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(46, 134, 240, 0.46); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--divider); background: var(--surface-2); }

.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.92rem; }

/* Google Play badge — drawn in CSS/SVG, no third-party image request */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.5rem 0.7rem 1.25rem;
  border-radius: 14px;
  background: var(--grad);
  color: #06101f;
  box-shadow: 0 10px 30px rgba(46, 134, 240, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.play-badge:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(46, 134, 240, 0.44);
}
.play-badge svg { width: 26px; height: 28px; flex: none; }
.play-badge .pb-text { display: flex; flex-direction: column; line-height: 1.2; }
.play-badge .pb-small {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  opacity: 0.78;
}
.play-badge .pb-big { font-size: 1.16rem; font-weight: 750; letter-spacing: -0.01em; }

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

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3rem, 8vw, 5.5rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 22% 6%, rgba(46, 134, 240, 0.24), transparent 68%),
    radial-gradient(46% 46% at 84% 22%, rgba(99, 199, 255, 0.15), transparent 70%);
}

/* Files drifting upward — "everything ends up in the cloud" */
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 21px;
  margin-bottom: 1.5rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.hero h1 { margin-bottom: 0.5em; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted-faint);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-note .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  flex: none;
}

.hero-visual { display: flex; justify-content: center; }

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  width: min(268px, 74vw);
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(160deg, #2b3a52 0%, #16202f 100%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.62), 0 0 0 1px var(--border);
}
.phone img { border-radius: 26px; width: 100%; }
.phone::after {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 74px; height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
}

/* ---------- Cards / grids ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}

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

.feature .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(46, 134, 240, 0.14);
  border: 1px solid rgba(99, 199, 255, 0.22);
  margin-bottom: 1rem;
  font-size: 1.35rem;
}
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* Steps */
/* Both container names carry the counter scope — the steps moved into
   .steps-col beside the video, and without a reset here they all render "1". */
.steps, .steps-col { counter-reset: step; }
.step { position: relative; padding-left: 4.1rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.6rem;
  top: 1.6rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad);
  color: #06101f;
  font-weight: 750;
  display: grid;
  place-items: center;
  font-size: 0.98rem;
}
.step { padding: 1.6rem 1.6rem 1.6rem 4.4rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- Game ---------- */

.game-section {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(46, 134, 240, 0.12), transparent 70%),
    var(--surface);
  border-block: 1px solid var(--border);
}

/* Two games side by side. They stack below 860px, where a half-width play
   area would be too cramped to aim in. */
.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  align-items: start;
  max-width: 820px;
  margin-inline: auto;
}
/* 720, not 860: Windows display scaling at 125-150% on a 1366/1440 laptop lands
   just under 860 CSS px, which stacked the games on machines that have ample
   room for them side by side. */
@media (max-width: 720px) {
  .games-grid { grid-template-columns: 1fr; max-width: 440px; }
}

.game-card-head { text-align: center; margin-bottom: 0.9rem; }
.game-card-head h3 { font-size: 1.12rem; margin-bottom: 0.15em; }
.game-card-head p { margin: 0; color: var(--muted-faint); font-size: 0.88rem; }

.game-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #070d17;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  aspect-ratio: 4 / 3;
  touch-action: none;
}

#game-canvas,
#maze-canvas { display: block; width: 100%; height: 100%; }

.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  background: rgba(7, 13, 23, 0.9);
  backdrop-filter: blur(4px);
}
.game-overlay[hidden] { display: none; }
.game-overlay h3 { font-size: clamp(1.1rem, 2.6vw, 1.45rem); margin-bottom: 0.3em; }
.game-overlay p {
  color: var(--muted);
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 34ch;
}
.game-overlay .ov-inner { display: grid; justify-items: center; }

.game-stats {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.5rem 0 1.2rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat .v { font-size: 1.45rem; font-weight: 750; line-height: 1; }
.stat .k {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-faint);
  margin-top: 0.35rem;
}

.game-hint {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted-faint);
}

.game-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.legend-item b { color: var(--ink); font-weight: 600; }
.swatch { width: 11px; height: 11px; border-radius: 3px; flex: none; }

/* ---------- At a glance (spec table) ---------- */

.spec {
  max-width: 820px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: 0; }
.spec-k {
  font-weight: 650;
  color: var(--ink);
  font-size: 0.92rem;
}
.spec-v { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 620px) {
  .spec-row { grid-template-columns: 1fr; gap: 0.25rem; padding: 0.95rem 1.15rem; }
  .spec-k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em;
            color: var(--primary-end); }
}

/* ---------- Video ---------- */

.video-facade {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  width: 100%;
  display: block;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.62; }
.video-facade iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-facade .play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.video-facade .play-btn span {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 40px rgba(46, 134, 240, 0.5);
  transition: transform 0.2s ease;
}
.video-facade:hover .play-btn span { transform: scale(1.09); }
.video-facade .play-btn svg { width: 21px; height: 21px; margin-left: 4px; fill: #06101f; }

/* Video and the setup steps share one row, so the demo is a small inline player
   rather than a full-width section of its own. */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }
.how-video figcaption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted-faint);
}
.steps-col { display: grid; gap: 1rem; }

/* ---------- Screenshots ---------- */

.shots {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-track { background: var(--surface); border-radius: 4px; }
.shots::-webkit-scrollbar-thumb { background: var(--divider); border-radius: 4px; }
.shot { flex: none; scroll-snap-align: center; text-align: center; }
.shot .phone { width: 216px; }
.shot figcaption {
  margin-top: 0.9rem;
  font-size: 0.87rem;
  color: var(--muted-faint);
}

/* ---------- Privacy ---------- */

.privacy-section {
  background:
    radial-gradient(60% 60% at 50% 10%, rgba(43, 217, 165, 0.09), transparent 70%),
    var(--surface);
  border-block: 1px solid var(--border);
}
.privacy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.privacy-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.99rem;
}
.privacy-list svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.privacy-list b { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary-end);
  font-weight: 400;
  line-height: 1;
  flex: none;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.4rem 1.3rem; color: var(--muted); font-size: 0.97rem; }
.faq .faq-body p { margin: 0 0 0.8rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  background: linear-gradient(150deg, rgba(46, 134, 240, 0.16), rgba(99, 199, 255, 0.06));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad);
}
.cta-band .lede { margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Ads ---------- */

/* Reserved ad slots. Height is fixed up front so filling them never shifts
   layout (CLS). Deliberately placed away from the hero and the Play button. */
.ad-slot {
  margin: clamp(2rem, 5vw, 3.25rem) auto;
  max-width: 728px;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}
.ad-slot ins { display: block; width: 100%; }

/* Ads have to be visually distinguishable from the surrounding content —
   this small label is what does that. */
.ad-label {
  pointer-events: none;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-faint);
}

/* A slot holding no unit collapses entirely rather than leaving an empty
   dashed box on a live page. */
.ad-slot:not(:has(ins)) { display: none; }

/* Google stamps data-ad-status="unfilled" when it has no ad to serve — which is
   the normal state while a site is pending review, and happens intermittently
   afterwards. A responsive unit still reserves ~280px in that state, so without
   this the page shows a large hole. Collapsing the whole slot takes the
   "Advertisement" label with it. */
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem 2.5rem;
  color: var(--muted-faint);
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2.25rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--muted); }
.disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted-faint);
  max-width: 76ch;
}

/* ---------- Legal pages ---------- */

.legal { max-width: 760px; padding-block: 3.5rem 5rem; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
.legal h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.legal h3 { font-size: 1.05rem; margin-top: 1.75rem; }
.legal p, .legal li { color: var(--muted); font-size: 1rem; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: 0.5rem; }
.legal strong { color: var(--ink); }
.legal .updated {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

/* Privacy and Terms live on one page; these jump between them. */
.legal-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.legal-tabs a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}
.legal-tabs a:hover {
  text-decoration: none;
  border-color: var(--primary);
  background: var(--surface-2);
}

/* These are <section>s, so they'd otherwise inherit the page-section padding
   and open a large gap under the tabs. */
.legal-part { scroll-margin-top: 90px; padding-block: 0; }
.legal-part + .legal-part { margin-top: 4rem; }
.legal-part-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  border-bottom: 0;
  margin-top: 0;
  padding-bottom: 0;
  color: var(--ink);
}
.legal-part-title::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: var(--grad);
  margin-bottom: 1rem;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  #hero-particles { display: none; }
}

/* ---------- Guides ---------- */

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--muted-faint);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { opacity: 0.5; }

.article { max-width: 720px; padding-block: 2.5rem 4rem; }
.article h1 { font-size: clamp(1.85rem, 4.6vw, 2.75rem); margin-bottom: 0.45em; }
.article .dek {
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.article .meta {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--muted-faint);
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.25rem;
}

/* Long-form body copy: one column, generous measure. */
.prose > * + * { margin-top: 1.15rem; }
.prose p, .prose li { color: var(--muted); font-size: 1.02rem; line-height: 1.72; }
.prose h2 {
  font-size: 1.45rem;
  margin-top: 2.75rem;
  color: var(--ink);
  scroll-margin-top: 90px;
}
.prose h3 { font-size: 1.09rem; margin-top: 1.9rem; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--primary-end); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

.prose blockquote {
  margin-inline: 0;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--primary);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p { margin: 0; color: var(--muted); }

.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose table th, .prose table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.prose table th {
  color: var(--ink);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.table-wrap { overflow-x: auto; }

/* In-article app promo */
.promo {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  background: linear-gradient(150deg, rgba(46, 134, 240, 0.14), rgba(99, 199, 255, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-block: 2.5rem;
}
.promo img { width: 54px; height: 54px; border-radius: 14px; flex: none; }
.promo h3 { margin: 0 0 0.2em; font-size: 1.05rem; }
.promo p { margin: 0 0 0.85rem; color: var(--muted); font-size: 0.93rem; }
@media (max-width: 560px) { .promo { flex-direction: column; align-items: flex-start; } }

/* Guides index */
.guide-list { display: grid; gap: 1rem; }
.guide-item {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.guide-item:hover {
  text-decoration: none;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.guide-item h3 { color: var(--ink); margin-bottom: 0.3em; font-size: 1.12rem; }
.guide-item p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.guide-item .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--primary-end);
  font-weight: 700;
  display: block;
  margin-bottom: 0.55rem;
}

.related { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related h2 { font-size: 1.2rem; margin-bottom: 1.1rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.related a { color: var(--ink); font-weight: 550; }
