/* Range Up — rangeup.app
   Single stylesheet, no webfonts, no third-party requests. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --bg-card: #ffffff;
  --ink: #0b1530;
  --ink-soft: #4b5874;
  --ink-faint: #7b86a1;
  --brand: #2563eb;
  --brand-deep: #1e3a8a;
  --brand-tint: #eef3ff;
  --accent: #f97316;
  --good: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --line: #e3e7f0;
  --line-soft: #eef1f7;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --measure: 720px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 48, .06), 0 4px 14px rgba(11, 21, 48, .05);
  --shadow-md: 0 12px 34px rgba(11, 21, 48, .09);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-soft: #111830;
    --bg-card: #141c34;
    --ink: #eef2fb;
    --ink-soft: #aab6d0;
    --ink-faint: #8291b0;
    --brand: #7aa2ff;
    --brand-deep: #9db9ff;
    --brand-tint: #18224a;
    --line: #232d4d;
    --line-soft: #1b2440;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .25);
    --shadow-md: 0 12px 34px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--brand); color: #fff !important; padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
}
.nav-cta:hover { background: var(--brand-deep); text-decoration: none; }
@media (max-width: 820px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links a.nav-blog { display: inline; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: var(--brand-tint); color: var(--brand-deep); border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em; margin-bottom: 22px;
}
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; }
.hero h1 { font-size: clamp(34px, 5.6vw, 60px); font-weight: 800; margin: 0 0 18px; }
.hero h1 .accent { color: var(--brand); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 640px; margin: 0 auto 26px; }

/* ---------- store badges ---------- */
.stores { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px; padding: 11px 20px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 600; transition: transform .16s ease, box-shadow .16s ease;
  box-shadow: var(--shadow-sm);
}
.store-badge:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.store-badge .sub { font-size: 11px; font-weight: 500; opacity: .8; display: block; line-height: 1.1; }
.store-badge .main { font-size: 16px; font-weight: 700; line-height: 1.2; display: block; }
.store-badge svg { width: 22px; height: 22px; flex: 0 0 auto; fill: currentColor; }
@media (prefers-color-scheme: dark) {
  .store-badge { background: #f3f6ff; color: #0b1020; }
  .store-badge:hover { color: #0b1020; }
}
.stores.on-dark .store-badge { background: #fff; color: #0b1530; }
.stores.on-dark .store-badge:hover { color: #0b1530; }
.rating-note { margin-top: 16px; font-size: 14px; color: var(--ink-faint); }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin: 0 0 12px; }
.section > .container > .lead { margin-bottom: 40px; }
.center { text-align: center; }

/* ---------- screenshots ---------- */
.shots-scroll {
  display: flex; gap: 26px; overflow-x: auto; padding: 12px 22px 26px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shot { flex: 0 0 auto; width: 250px; scroll-snap-align: center; }
.shot img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-md); }
.shot figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 12px; text-align: center; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.card .icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--brand-tint);
  display: grid; place-items: center; margin-bottom: 14px; font-size: 21px;
}
.card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.card p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-left: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px;
}
.step h3 { margin: 4px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- cta band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; padding: 74px 0; text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin: 0 0 12px; color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 24px; }
.cta-band a { color: #fff; }

/* ---------- blog listing ---------- */
.post-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.post-card {
  display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.post-card h3 { font-size: 19px; margin: 10px 0 8px; color: var(--ink); font-weight: 700; }
.post-card p { font-size: 15px; color: var(--ink-soft); margin: 0 0 16px; flex: 1; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand);
}
.post-meta { font-size: 13px; color: var(--ink-faint); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; padding: 0; list-style: none; }
.chip {
  display: inline-block; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--ink-soft); font-size: 14px; font-weight: 600;
}
.chip:hover, .chip[aria-current="page"] { text-decoration: none; border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }

/* ---------- article ---------- */
.article-head { padding: 46px 0 20px; }
.breadcrumbs { font-size: 13px; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-faint); }
.breadcrumbs span[aria-hidden] { margin: 0 7px; opacity: .6; }
.article-head h1 { font-size: clamp(29px, 4.4vw, 44px); font-weight: 800; margin: 0 0 14px; }
.article-head .standfirst { font-size: 19px; color: var(--ink-soft); margin: 0 0 18px; }

.toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 28px 0 34px;
}
.toc > p { margin: 0 0 10px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 5px 0; font-size: 15px; }
.toc a { color: var(--ink-soft); }

.prose { font-size: 17.5px; }
.prose > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.prose h2 { font-size: clamp(23px, 3vw, 29px); font-weight: 800; margin: 46px 0 14px; }
.prose h3 { font-size: clamp(19px, 2.3vw, 22px); font-weight: 700; margin: 32px 0 10px; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin: 8px 0; }
.prose li > ul, .prose li > ol { margin: 8px 0; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose blockquote {
  margin: 26px auto; padding: 4px 0 4px 20px; border-left: 4px solid var(--brand);
  color: var(--ink-soft); font-style: normal;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-soft); }
.prose pre { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px auto; }
.prose img { border-radius: var(--radius-sm); margin: 26px auto; box-shadow: var(--shadow-sm); }
.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose h2 a.anchor, .prose h3 a.anchor {
  opacity: 0; margin-left: 8px; font-weight: 400; text-decoration: none; color: var(--ink-faint); font-size: .7em;
}
.prose h2:hover a.anchor, .prose h3:hover a.anchor { opacity: 1; }

.table-wrap { overflow-x: auto; margin: 0 auto 26px; max-width: var(--measure); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; margin: 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 700; }

.callout {
  max-width: var(--measure); margin: 30px auto; padding: 20px 22px; border-radius: var(--radius);
  background: var(--brand-tint); border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
}
.callout p { margin: 0; font-size: 16px; color: var(--ink); }
.callout p + p { margin-top: 10px; }

.inline-cta {
  max-width: var(--measure); margin: 40px auto; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-soft); text-align: center;
}
.inline-cta h2 { margin: 0 0 8px; font-size: 21px; }
.inline-cta p { margin: 0 0 18px; color: var(--ink-soft); font-size: 16px; }
.inline-cta .stores { margin-top: 0; }

.faq-list { max-width: var(--measure); margin: 0 auto; }
details.faq {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0; margin: 0 0 12px; background: var(--bg-card);
}
details.faq > summary { cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 16.5px; list-style: none; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after { content: "＋"; float: right; color: var(--ink-faint); font-weight: 400; }
details.faq[open] > summary::after { content: "－"; }
details.faq > div { padding: 0 20px 16px; color: var(--ink-soft); }
details.faq > div p:last-child { margin-bottom: 0; }

.article-footer { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 34px; }
.related h2 { font-size: 22px; margin: 0 0 20px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; font-size: 15px; color: var(--ink-soft); background: var(--bg-soft); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 7px 0; }
.footer-grid a { color: var(--ink-soft); }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink-faint);
}
.footer-bottom a { color: var(--ink-faint); }

/* ---------- pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 44px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink-soft);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.notfound { padding: 100px 0; text-align: center; }
.notfound h1 { font-size: clamp(40px, 8vw, 72px); margin: 0 0 12px; }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hero { padding: 46px 0 34px; }
  .section { padding: 54px 0; }
  .shot { width: 220px; }
  .prose { font-size: 17px; }
}

/* ---------- article figures ---------- */
/* Figures break out of the 720px reading measure, centred on the viewport. */
.article-figure {
  margin: 36px 0 36px 50%;
  width: min(920px, calc(100vw - 44px));
  max-width: none;
  transform: translateX(-50%);
}
.article-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.article-figure figcaption {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 980px) {
  .article-figure {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    transform: none;
  }
}
