/* Defiant guides: a reading layout. Light by default, dark when the device is.
   Article column plus a sticky table of contents; serif body for long reading, Inter for everything else. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f5;
  --ink: #141719;
  --ink-2: #353c42;
  --muted: #69727a;
  --line: #e2e6e4;
  --accent: #0a7c45;
  --accent-bright: #14a660;
  --accent-tint: #e8f6ee;
  --pro: #0a7c45;
  --con: #a4512b;
  --btn: #111315;
  --btn-ink: #ffffff;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1112;
    --bg-soft: #181b1d;
    --ink: #f1f3f4;
    --ink-2: #c8cdd2;
    --muted: #8f989f;
    --line: #272b2f;
    --accent: #47d993;
    --accent-bright: #47d993;
    --accent-tint: #13281d;
    --pro: #47d993;
    --con: #e59a74;
    --btn: #f1f3f4;
    --btn-ink: #0f1112;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.b-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.b-head .in { max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 28px; }
.b-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.b-brand img { width: 30px; height: 30px; border-radius: 8px; }
.b-nav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.b-nav a { color: var(--ink-2); text-decoration: none; }
.b-nav a:hover, .b-nav a[aria-current] { color: var(--ink); }
.b-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font: 600 14px var(--sans); text-decoration: none; white-space: nowrap; }
.b-btn svg { width: 16px; height: 16px; }
.b-btn.big { height: 48px; padding: 0 22px; font-size: 15.5px; }
.b-btn.big svg { width: 19px; height: 19px; }
.b-btn.soon { opacity: .75; cursor: default; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent-bright); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Post header ---------- */
.post-top { max-width: 1160px; margin: 0 auto; padding: 40px 20px 0; }
.post-top .intro { max-width: 820px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--accent); background: var(--accent-tint); border-radius: 999px; padding: 4px 10px; }
.post-top h1 { font: 800 clamp(34px, 5.2vw, 56px)/1.06 var(--sans); letter-spacing: -0.035em; margin: 14px 0 16px; text-wrap: balance; }
.dek { font: 400 clamp(18px, 2vw, 21px)/1.5 var(--sans); color: var(--ink-2); margin: 0 0 24px; text-wrap: pretty; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.author { display: flex; align-items: center; gap: 12px; }
.author img { width: 40px; height: 40px; border-radius: 11px; }
.author b { display: block; font-size: 14.5px; font-weight: 600; }
.author span { display: block; font-size: 13.5px; color: var(--muted); }
.share { margin-left: auto; display: flex; gap: 8px; }
.share a, .share button { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); cursor: pointer; padding: 0; }
.share a:hover, .share button:hover { border-color: var(--muted); color: var(--ink); }
.share svg { width: 16px; height: 16px; }
.share .copied { font: 600 12px var(--sans); color: var(--accent); align-self: center; }
.cover { max-width: 1160px; margin: 8px auto 0; padding: 0 20px; }
.cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 18px; background: var(--bg-soft); }

/* ---------- Body grid ---------- */
.post { max-width: 1160px; margin: 0 auto; padding: 44px 20px 40px; display: grid; grid-template-columns: minmax(0, 720px) 260px; gap: 72px; justify-content: space-between; }
.toc-side { position: sticky; top: 92px; align-self: start; font-size: 14px; max-height: calc(100vh - 120px); overflow: auto; }
.toc-side p, .toc-mobile summary { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc-side ol, .toc-mobile ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc-side a, .toc-mobile a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc-side a:hover { color: var(--ink); }
.toc-side a.on { color: var(--ink); border-left-color: var(--accent-bright); font-weight: 600; }
.toc-side .side-cta { margin-top: 28px; padding: 18px; border-radius: 14px; background: var(--bg-soft); }
.side-cta img { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 10px; }
.side-cta b { display: block; font-size: 15px; }
.side-cta span { display: block; font-size: 13.5px; color: var(--muted); margin: 4px 0 12px; }
.toc-mobile { display: none; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 28px; }
.toc-mobile summary { margin: 0; cursor: pointer; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile[open] summary { margin-bottom: 10px; }

/* ---------- Article typography ---------- */
.prose { font: 400 19px/1.72 var(--serif); color: var(--ink-2); min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 22px; }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose h2 { font: 750 clamp(26px, 3vw, 31px)/1.2 var(--sans); letter-spacing: -0.025em; color: var(--ink); margin: 60px 0 18px; text-wrap: balance; }
.prose h3 { font: 700 21px/1.3 var(--sans); letter-spacing: -0.015em; color: var(--ink); margin: 36px 0 12px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 24px; }
.prose li { margin: 8px 0; padding-left: 4px; }
.prose .note { font: 400 14px/1.55 var(--sans); color: var(--muted); }
.disclose { display: flex; gap: 12px; font: 400 15px/1.55 var(--sans) !important; color: var(--ink-2); background: var(--bg-soft); border-radius: 14px; padding: 16px 18px; }
.disclose svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }

.quick { background: var(--accent-tint); border-radius: 16px; padding: 22px 24px; margin: 32px 0; font-family: var(--sans); }
.quick h2 { font-size: 13px !important; font-weight: 700 !important; letter-spacing: .07em !important; text-transform: uppercase; color: var(--accent) !important; margin: 0 0 12px !important; }
.quick ul { list-style: none; padding: 0; margin: 0; }
.quick li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2px 18px; margin: 0; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); font-size: 15.5px; line-height: 1.45; }
.quick li:first-child { border-top: 0; padding-top: 0; }
.quick li span { color: var(--ink-2); }
.quick li b { color: var(--ink); font-weight: 650; }

.criteria { list-style: none; padding: 0 !important; counter-reset: c; }
.criteria li { counter-increment: c; position: relative; padding-left: 46px !important; margin: 18px 0 !important; }
.criteria li::before { content: counter(c); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font: 700 14px var(--sans); color: var(--accent); }

/* Tables */
.table { overflow-x: auto; margin: 22px 0 30px; border: 1px solid var(--line); border-radius: 14px; }
.table table { width: 100%; border-collapse: collapse; font: 400 14.5px/1.45 var(--sans); color: var(--ink-2); }
.table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); padding: 12px 14px; white-space: nowrap; }
.table td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: top; min-width: 120px; }
.table td:first-child { font-weight: 600; color: var(--ink); }
.table td:first-child a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.yes { color: var(--pro); font-weight: 600; }
.no { color: var(--muted); }

/* App reviews */
.pick { margin: 54px 0 0; padding-top: 34px; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.pick-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pick-num { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 800 17px var(--sans); }
.pick.ours .pick-num { background: var(--accent-bright); color: #04140b; }
.pick-head h3 { margin: 0 !important; font-size: 26px !important; letter-spacing: -0.025em !important; }
.ours-tag { font: 600 12px var(--sans); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 999px; padding: 3px 10px; }
.pick-for { font: 600 15.5px var(--sans); color: var(--accent); margin: 10px 0 18px !important; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-family: var(--sans); }
.spec div { padding: 11px 16px; border-top: 1px solid var(--line); min-width: 0; }
.spec div:nth-child(-n+2) { border-top: 0; }
.spec div:nth-child(even) { border-left: 1px solid var(--line); }
.spec dt { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 4px 0 20px; font-family: var(--sans); }
.procon > div { background: var(--bg-soft); border-radius: 14px; padding: 16px 18px; }
.procon h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.procon .good h4 { color: var(--pro); }
.procon .bad h4 { color: var(--con); }
.procon ul { list-style: none; margin: 0; padding: 0; }
.procon li { position: relative; padding-left: 22px; margin: 7px 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.procon li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.procon .good li::before { content: "+"; color: var(--pro); }
.procon .bad li::before { content: "–"; color: var(--con); }
.pick-if { font-family: var(--sans) !important; font-size: 16px !important; border-left: 3px solid var(--accent-bright); padding: 2px 0 2px 14px; }

/* CTA card */
.cta-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin: 36px 0; padding: 24px; border-radius: 18px; background: var(--bg-soft); font-family: var(--sans); }
.cta-card > img { width: 64px; height: 64px; border-radius: 16px; }
.cta-card b { display: block; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.cta-card p { margin: 4px 0 14px !important; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.cta-card .qr { width: 104px; text-align: center; font-size: 11.5px; color: var(--muted); }
.cta-card .qr img { width: 104px; height: 104px; border-radius: 10px; padding: 6px; background: #fff; border: 1px solid var(--line); margin-bottom: 6px; }

/* FAQ */
.prose details { border-top: 1px solid var(--line); padding: 4px 0; font-family: var(--sans); }
.prose details:last-of-type { border-bottom: 1px solid var(--line); }
.prose summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.prose details[open] summary::after { transform: rotate(45deg); }
.prose details p { font-size: 16px; line-height: 1.65; margin: 0 0 16px; color: var(--ink-2); }
.sources { font: 400 14px/1.5 var(--sans) !important; color: var(--muted); }
.sources li { margin: 6px 0; }

/* Related + footer */
.related { max-width: 1160px; margin: 0 auto; padding: 24px 20px 64px; }
.related h2 { font: 750 24px var(--sans); letter-spacing: -0.02em; margin: 0 0 20px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: block; color: inherit; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; margin-bottom: 14px; background: var(--bg-soft); transition: transform .3s; }
.card:hover img { transform: scale(1.015); }
.card .tag { margin-bottom: 8px; }
.card b { display: block; font: 700 19px/1.3 var(--sans); letter-spacing: -0.015em; color: var(--ink); }
.card span.d { display: block; font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-top: 6px; }
.card span.m { display: block; font-size: 13px; color: var(--muted); margin-top: 10px; }
.b-foot { border-top: 1px solid var(--line); }
.b-foot .in { max-width: 1160px; margin: 0 auto; padding: 32px 20px 48px; display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.b-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.b-foot a { color: var(--muted); text-decoration: none; }
.b-foot a:hover { color: var(--ink); }

/* Index page */
.index-top { max-width: 1160px; margin: 0 auto; padding: 48px 20px 8px; }
.index-top h1 { font: 800 clamp(38px, 6vw, 60px)/1.05 var(--sans); letter-spacing: -0.035em; margin: 0 0 14px; }
.feature { max-width: 1160px; margin: 24px auto 0; padding: 0 20px; }
.feature a { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; color: inherit; text-decoration: none; }
.feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; }
.feature b { display: block; font: 800 clamp(28px, 3.4vw, 40px)/1.12 var(--sans); letter-spacing: -0.03em; margin: 12px 0 12px; color: var(--ink); }
.feature span.d { display: block; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.feature span.m { display: block; font-size: 14px; color: var(--muted); margin-top: 14px; }
.section-title { max-width: 1160px; margin: 56px auto 20px; padding: 0 20px; font: 750 24px var(--sans); letter-spacing: -0.02em; }
.list-links { max-width: 1160px; margin: 0 auto 64px; padding: 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.list-links a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.list-links a:hover { border-color: var(--muted); }
.list-links b { display: block; font-size: 16px; }
.list-links span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

@media (max-width: 1000px) {
  .post { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 760px; }
  .toc-side { display: none; }
  .toc-mobile { display: block; }
  .post-top, .cover { max-width: 760px; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .b-nav { display: none; }
  .b-head .b-btn { margin-left: auto; }
  .post-top { padding-top: 24px; }
  .cover img { aspect-ratio: 16 / 10; border-radius: 14px; }
  .prose { font-size: 18px; }
  .quick li { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .spec div:nth-child(even) { border-left: 0; }
  .spec div:nth-child(2) { border-top: 1px solid var(--line); }
  .procon { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: auto minmax(0, 1fr); }
  .cta-card .qr { display: none; }
  .cards, .list-links { grid-template-columns: 1fr; }
  .feature a { grid-template-columns: 1fr; gap: 18px; }
  .share { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* The contents dropdown shares <details> with the FAQ; keep it compact. */
.prose .toc-mobile { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font: 400 15px/1.4 var(--sans); }
.prose .toc-mobile:last-of-type { border-bottom: 1px solid var(--line); }
.prose .toc-mobile summary { padding: 2px 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); align-items: center; }
.prose .toc-mobile summary::after { font-size: 18px; }
.prose .toc-mobile ol { padding: 0; margin: 10px 0 4px; }
.prose .toc-mobile li { margin: 0; padding: 0; }
.cover img { object-position: center 35%; }

/* Wordmark: DEFIANT in spaced caps, as on the main site. */
.b-brand { text-transform: uppercase; letter-spacing: .3em; font-weight: 600; font-size: 15px; }
.wordmark { letter-spacing: .24em; font-weight: 650 !important; }
/* Covers are made at 2:1 with text inside; never crop them. */
.cover img, .cover img { aspect-ratio: 2 / 1 !important; object-position: center; }
.card img, .feature img { aspect-ratio: 2 / 1; }
.cover img, .card img, .feature img, .side-cta img, .cta-card img, .author img { height: auto; }
