/* The guides, comparisons and FAQ. The landing page keeps its own inline styles;
   this file carries the same palette and type so the two read as one site. */
:root {
  color-scheme: light dark;
  --dusk: #4a2c54;
  --dusk-2: #6b3a63;
  --plum: #8f4a63;
  --coral: #ee7d54;
  --sun: #f7d9a8;

  --bg: #fbf3ec;
  --bg-soft: #ffffff;
  --bg-card: #ffffff;
  --ink: #2a1f2e;
  --ink-soft: #6a5a68;
  --line: #ecdccf;
  --accent: #d5623b;
  --accent-ink: #ffffff;
  --tint: #f8e7da;
  --grid: #e2cdbd;
  --stripe: #fdf8f4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17121d;
    --bg-soft: #1f1826;
    --bg-card: #221a2b;
    --ink: #f4ecf3;
    --ink-soft: #b6a6b8;
    --line: #362a40;
    --accent: #f4966b;
    --accent-ink: #24141a;
    --tint: #2b2033;
    --grid: #43354d;
    --stripe: #261e2f;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.measure { max-width: 720px; }
article.measure { max-width: none; }
article.measure > * { max-width: 720px; }
article.measure > .table-scroll, article.measure > .cards { max-width: none; }

/* ---------- Header band ---------- */
.band {
  color: #fff;
  background:
    radial-gradient(120% 120% at 85% -20%, rgba(247, 217, 168, .5), transparent 55%),
    linear-gradient(160deg, var(--dusk) 0%, var(--dusk-2) 35%, var(--plum) 65%, var(--coral) 120%);
}
.nav { display: flex; align-items: center; gap: 22px; padding: 20px 0 6px; flex-wrap: wrap; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 1.05rem; }
.nav__brand:hover { text-decoration: none; }
.nav__brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.nav__spacer { flex: 1; }
.nav a.nav__link { color: rgba(255,255,255,.85); font-weight: 600; font-size: .95rem; }
.nav a.nav__link:hover, .nav a.nav__link[aria-current] { color: #fff; }
.band__head { padding: 40px 0 52px; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.75); margin: 0 0 14px; }
.crumbs a { color: rgba(255,255,255,.9); }
.band h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0 0 14px;
  font-weight: 800;
  max-width: 22ch;
}
.band .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.92); margin: 0; max-width: 58ch; }
.band .meta { font-size: .85rem; color: rgba(255,255,255,.75); margin: 18px 0 0; }

/* ---------- Article ---------- */
article { padding: 48px 0 24px; }
article h2 { font-size: clamp(1.45rem, 2.8vw, 1.85rem); letter-spacing: -.015em; line-height: 1.2; margin: 48px 0 12px; }
article h3 { font-size: 1.18rem; margin: 30px 0 8px; letter-spacing: -.01em; }
article p, article li { font-size: 1.06rem; }
article p { margin: 0 0 16px; }
article ul, article ol { padding-left: 1.3em; margin: 0 0 18px; }
article li { margin: 6px 0; }
article li::marker { color: var(--accent); }
article code { font-size: .92em; background: var(--tint); padding: 1px 6px; border-radius: 6px; }
article pre { margin: 0 0 18px; overflow-x: auto; font-size: .92rem; line-height: 1.5; }
article pre code { display: block; padding: 0; background: none; border-radius: 0; }
.muted { color: var(--ink-soft); }


.note {
  background: var(--tint);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: .98rem;
}
.note p { font-size: inherit; }
.note p:last-child, .note pre:last-child { margin-bottom: 0; }

/* Numbered steps with big counters */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0 26px; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 0 52px; margin: 0 0 20px; }
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800; font-size: .95rem; color: #fff;
  background: linear-gradient(150deg, var(--coral), var(--plum));
}
ol.steps > li strong:first-child { display: block; font-size: 1.08rem; }

/* Screenshots inside an article */
figure { margin: 26px 0; }
figure.phone-shot { max-width: 300px; }
figure.phone-shot img { border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 18px 40px -26px rgba(74,44,84,.55); }
figure.wide-shot img { border-radius: 14px; border: 1px solid var(--line); }
figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: 10px; }

/* Tables: a visible grid, striped rows, the first column pinned while the
   table scrolls sideways on a phone. */
.table-scroll { overflow-x: auto; margin: 22px 0 28px; border: 1px solid var(--grid); border-radius: 14px; background: var(--bg-card); }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .94rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--grid); border-right: 1px solid var(--grid); }
tr > :last-child { border-right: 0; }
th, td { min-width: 8.5rem; }
thead th:first-child, tbody th { min-width: 7rem; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: .86rem; font-weight: 700; color: var(--ink); background: var(--tint); border-bottom: 2px solid var(--grid); }
tbody th { font-weight: 700; }
tbody tr > * { background: var(--bg-card); }
tbody tr:nth-child(even) > * { background: var(--stripe); }
tbody tr:hover > * { background: var(--tint); }
thead th:first-child, tbody th { position: sticky; left: 0; z-index: 1; }
td sup, th sup { font-size: .68em; line-height: 0; margin-left: 1px; }
.sources { font-size: .86rem; color: var(--ink-soft); }
.sources li { font-size: inherit; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); padding: 0 20px; margin: 0 0 12px; }
details summary { cursor: pointer; font-weight: 700; padding: 16px 0; font-size: 1.05rem; list-style: none; position: relative; padding-right: 28px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 1.4rem; color: var(--accent); font-weight: 600; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 6px; }

/* ---------- Download card ---------- */
.cta {
  display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(247,217,168,.35), transparent 60%),
    linear-gradient(150deg, var(--dusk-2), var(--plum) 55%, var(--coral));
  border-radius: 22px;
  padding: 26px 28px;
  margin: 40px 0 8px;
}
.cta__copy { display: flex; align-items: center; gap: 16px; }
.cta__copy img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.25); flex: none; }
.cta__copy strong { display: block; font-size: 1.15rem; }
.cta__copy span { color: rgba(255,255,255,.88); font-size: .95rem; }
.badge-store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #111;
  padding: 11px 18px 11px 16px; border-radius: 14px; font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
}
.badge-store:hover { text-decoration: none; }
.badge-store svg { width: 24px; height: 24px; flex: none; }
.badge-store .small { display: block; font-size: .66rem; font-weight: 500; opacity: .75; line-height: 1; margin-bottom: 3px; }
.badge-store .big { display: block; font-size: 1.12rem; line-height: 1; letter-spacing: -.01em; }

/* ---------- Related / index cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 18px 0 8px; padding: 0; list-style: none; }
.cards li { margin: 0; }
.cards a {
  display: block; height: 100%;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; color: var(--ink);
  box-shadow: 0 18px 40px -34px rgba(74,44,84,.55);
}
.cards a:hover { text-decoration: none; border-color: var(--accent); }
.cards strong { display: block; font-size: 1.04rem; line-height: 1.3; margin-bottom: 6px; }
.cards span { display: block; color: var(--ink-soft); font-size: .93rem; line-height: 1.5; }
.index-section { padding: 44px 0 8px; }
.index-section h2 { font-size: 1.5rem; margin: 0 0 4px; letter-spacing: -.015em; }

/* ---------- Footer ---------- */
footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 44px 0 40px; margin-top: 56px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.foot-brand:hover { text-decoration: none; }
.foot-brand img { width: 34px; height: 34px; border-radius: 9px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.foot-links a { color: var(--ink-soft); font-weight: 600; }
.foot-links a:hover { color: var(--accent); }
.foot-note { margin: 24px 0 0; color: var(--ink-soft); font-size: .86rem; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 14px; }
  .nav__spacer { flex-basis: 100%; height: 0; }
  .band__head { padding: 26px 0 38px; }
  article { padding-top: 32px; }
  .cta { padding: 22px 20px; }
  table { font-size: .9rem; }
  th, td { padding: 10px 12px; min-width: 7rem; }
  thead th:first-child, tbody th { min-width: 6rem; }
}
