/* ==========================================================
   SageLoch website styles
   Colors live in the :root block below. Change a value there
   and it changes everywhere on the site.
   ========================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* ---------- Colors (light) ---------- */
:root {
  --bg: #F1F6F0;          /* page background, very light green */
  --card: #FAFCF9;        /* cards and panels */
  --tint: #E3EEE1;        /* bands, badges, hover */
  --line: #C7DCC9;        /* borders and dividers (sage) */
  --accent: #3E6B52;      /* buttons and links */
  --accent-hover: #2F5641;
  --on-accent: #FFFFFF;   /* text on buttons */
  --head: #24412F;        /* headings */
  --text: #22302A;        /* body text */
  --muted: #55695D;       /* secondary text */
  --snow: #F7FAF6;
  --peak: #476B62;
  --peak2: #739883;
  --shadow: 0 1px 2px rgb(36 65 47 / .06), 0 4px 16px rgb(36 65 47 / .06);

  --font-head: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}

/* ---------- Colors (dark, follows the phone or computer setting) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131917;
    --card: #1A221F;
    --tint: #212C28;
    --line: #2F3E38;
    --accent: #93C2B2;
    --accent-hover: #B2D6C9;
    --on-accent: #10201A;
    --head: #E3ECE7;
    --text: #D3DED8;
    --muted: #9DB0A6;
    --snow: #E3ECE7;
    --peak: #93C2B2;
    --peak2: #5E8A7A;
    --shadow: none;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
code { font-family: var(--font-mono); font-size: .86em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.big { font-size: 1.15rem; }
.section { padding-top: 56px; padding-bottom: 8px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 20px; }
.section-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.band { background: var(--tint); margin-top: 56px; padding: 56px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.notice { background: var(--tint); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: .95rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }

/* ---------- Buttons and badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); border: 1.5px solid var(--accent);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--tint); color: var(--accent-hover); border-color: var(--accent-hover); }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.btn-disabled, .btn-disabled:hover { background: var(--tint); border-color: var(--line); color: var(--muted); cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font: 600 .75rem/1.5 var(--font-body); letter-spacing: .02em; white-space: nowrap;
  border: 1px solid var(--line); color: var(--muted); background: var(--card);
}
.badge-available { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.badge-beta { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.badge-in-development { background: var(--tint); border-color: var(--tint); color: var(--head); }
.badge-planned { background: transparent; }
.badge-retired { background: transparent; border-style: dashed; }
.badge-free, .badge-tier { background: transparent; color: var(--head); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--head); }
.brand:hover { color: var(--head); }
.wordmark { font: 700 1.3rem/1 var(--font-head); letter-spacing: -.01em; }
.logo { width: 38px; height: 38px; }
.logo-peak { fill: var(--peak); }
.logo-peak2 { fill: var(--peak2); }
.logo-snow { fill: var(--snow); }
.logo-reflect path { stroke: var(--peak2); stroke-width: 2.6; stroke-linecap: round; fill: none; }
.nav-desktop { display: none; gap: 4px; }
.nav-desktop a, .nav-mobile nav a { color: var(--text); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.nav-desktop a:hover, .nav-mobile nav a:hover { background: var(--tint); color: var(--head); }
.nav-desktop a[aria-current], .nav-mobile nav a[aria-current] { background: var(--tint); color: var(--head); }
.nav-mobile summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 10px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span { display: block; width: 22px; height: 2px; background: var(--head); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-mobile[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile[open] summary span:nth-child(2) { opacity: 0; }
.nav-mobile[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: grid; }
.nav-mobile nav a { padding: 12px 14px; }
@media (min-width: 820px) {
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-img { width: 100%; height: clamp(220px, 46vw, 560px); object-fit: cover; object-position: center bottom; }
.hero-inner { position: relative; }
.hero-text { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: -48px; box-shadow: var(--shadow); }
.hero-text h1 { max-width: 16ch; }
.hero-text .actions { margin-top: 8px; }
@media (min-width: 900px) {
  .hero-img { height: 600px; }
  .hero-inner { position: absolute; inset: 0; display: flex; align-items: flex-start; padding-top: 64px; }
  .hero-text { margin: 0; max-width: 540px; padding: 34px 36px; background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
@media (prefers-color-scheme: dark) {
  .hero-img { filter: brightness(.55) saturate(.8); }
}

/* ---------- Home ---------- */
.pillars { display: grid; gap: 28px; padding-top: 56px; grid-template-columns: 1fr; }
.pillars h2 { font-size: 1.15rem; margin-bottom: .35em; }
.pillars h2::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--accent); margin-bottom: 14px; }
.pillars p { color: var(--muted); margin: 0; }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(4, 1fr); } }

.theme-section { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .theme-section { grid-template-columns: 1fr 1.5fr; } }

.proof { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .proof { grid-template-columns: 1.2fr 1fr; } }
.proof-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.proof-label { font: 700 1.05rem/1.2 var(--font-head); color: var(--head); }
.proof-card dl { display: grid; grid-template-columns: 1fr auto; margin: 0; }
.proof-card dt, .proof-card dd { padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.proof-card dd { font-weight: 700; color: var(--accent); text-align: right; }

.follow { text-align: center; padding-bottom: 72px; }
.follow p { margin-left: auto; margin-right: auto; max-width: 52ch; color: var(--muted); }
.follow .actions { justify-content: center; }

/* ---------- Theme demo (pure CSS animation) ---------- */
@property --t-bg { syntax: "<color>"; inherits: true; initial-value: #F2F5F3; }
@property --t-surface { syntax: "<color>"; inherits: true; initial-value: #FFFFFF; }
@property --t-primary { syntax: "<color>"; inherits: true; initial-value: #476B62; }
@property --t-on { syntax: "<color>"; inherits: true; initial-value: #FFFFFF; }
@property --t-text { syntax: "<color>"; inherits: true; initial-value: #2F3E46; }
@property --t-line { syntax: "<color>"; inherits: true; initial-value: #DCE5DF; }

.theme-demo {
  margin: 0;
  --t-bg: #F2F5F3; --t-surface: #FFFFFF; --t-primary: #476B62; --t-on: #FFFFFF; --t-text: #2F3E46; --t-line: #DCE5DF;
  animation: themes 16s infinite;
}
@keyframes themes {
  0%, 21% { --t-bg: #F2F5F3; --t-surface: #FFFFFF; --t-primary: #476B62; --t-on: #FFFFFF; --t-text: #2F3E46; --t-line: #DCE5DF; }
  25%, 46% { --t-bg: #F4F6F8; --t-surface: #FFFFFF; --t-primary: #3D5A80; --t-on: #FFFFFF; --t-text: #1F2937; --t-line: #DDE3EA; }
  50%, 71% { --t-bg: #F5F1EA; --t-surface: #FFFDF9; --t-primary: #7D6440; --t-on: #FFFFFF; --t-text: #2C2621; --t-line: #E6DDD0; }
  75%, 96% { --t-bg: #000000; --t-surface: #121212; --t-primary: #CFAE5A; --t-on: #1A1A1A; --t-text: #E8E4DC; --t-line: #262626; }
  100% { --t-bg: #F2F5F3; --t-surface: #FFFFFF; --t-primary: #476B62; --t-on: #FFFFFF; --t-text: #2F3E46; --t-line: #DCE5DF; }
}
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2vw, 20px); max-width: 620px; margin: 0 auto; }
.phone { background: #1C2320; border-radius: 26px; padding: 7px; box-shadow: 0 10px 30px rgb(20 40 30 / .18); }
.screen {
  position: relative; aspect-ratio: 9 / 18.5; border-radius: 20px; overflow: hidden;
  background: var(--t-bg); color: var(--t-text);
  padding: 10px 10px; font-size: clamp(8px, 1.3vw, 11px); line-height: 1.3;
}
.statusbar { display: flex; justify-content: space-between; font-size: .8em; opacity: .7; margin-bottom: 1.2em; }
.statusbar .dots { width: 2.6em; height: .7em; border-radius: 3px; background: currentColor; opacity: .5; align-self: center; }
.ui-title { font: 700 1.55em/1.1 var(--font-head); margin: 0 0 .7em; }
.ui-search { height: 2.2em; border-radius: 999px; background: var(--t-surface); border: 1px solid var(--t-line); margin-bottom: .9em; }
.ui-note { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: .9em; padding: .8em .9em; margin-bottom: .6em; }
.ui-note b { display: block; font-weight: 600; margin-bottom: .45em; }
.ui-note i { display: block; height: .45em; border-radius: 2px; background: var(--t-text); opacity: .18; margin-top: .35em; }
.ui-note i.short { width: 60%; }
.ui-fab { position: absolute; right: 10%; bottom: 6%; width: 3.6em; height: 3.6em; border-radius: 1.1em; display: grid; place-items: center; background: var(--t-primary); color: var(--t-on); font-size: 1.1em; font-weight: 600; }
.ui-time { font: 600 3.4em/1 var(--font-head); color: var(--t-primary); margin: .2em 0 .5em; }
.ui-time small { font-size: .3em; margin-left: .3em; color: var(--t-text); }
.ui-alarm { display: flex; justify-content: space-between; align-items: center; background: var(--t-surface); border: 1px solid var(--t-line); border-radius: .9em; padding: .9em; margin-bottom: .6em; }
.ui-switch { width: 2.8em; height: 1.6em; border-radius: 999px; background: var(--t-line); position: relative; }
.ui-switch::after { content: ""; position: absolute; top: .25em; left: .25em; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--t-surface); box-shadow: 0 0 0 1px var(--t-line); }
.ui-switch.on { background: var(--t-primary); }
.ui-switch.on::after { left: auto; right: .25em; box-shadow: none; }
.ui-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 1em 0 1.3em; background: var(--t-surface); border-top: 1px solid var(--t-line); }
.ui-tabs i { width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--t-text); opacity: .2; }
.ui-tabs i.on { background: var(--t-primary); opacity: 1; }
.ui-tape { text-align: right; opacity: .6; margin: 1.6em 0 .2em; }
.ui-result { text-align: right; font: 600 2.8em/1 var(--font-head); margin: 0 0 .7em; }
.ui-keys { position: absolute; left: 8px; right: 8px; bottom: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5em; }
.ui-keys i { font-style: normal; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--t-surface); border: 1px solid var(--t-line); font-size: 1.2em; }
.ui-keys i.op { color: var(--t-primary); font-weight: 700; }
.ui-keys i.eq { background: var(--t-primary); border-color: var(--t-primary); color: var(--t-on); }
.theme-chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.theme-chips li { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; animation: chip 16s infinite; animation-fill-mode: backwards; }
.theme-chips li:nth-child(2) { animation-delay: 4s; }
.theme-chips li:nth-child(3) { animation-delay: 8s; }
.theme-chips li:nth-child(4) { animation-delay: 12s; }
@keyframes chip {
  0%, 24% { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  25%, 100% { background: transparent; border-color: var(--line); color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  .theme-demo, .theme-chips li { animation: none; }
  .theme-chips li:first-child { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
}

/* ---------- App grid ---------- */
.app-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .app-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .app-grid { grid-template-columns: 1fr 1fr 1fr; } }
.app-card {
  display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.app-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow); }
.app-card img { border-radius: 13px; grid-row: span 2; }
.app-card-text { display: grid; gap: 2px; min-width: 0; }
.app-card-name { font: 700 1.1rem/1.25 var(--font-head); color: var(--head); }
.app-card-label { font: 500 .9rem var(--font-body); color: var(--muted); margin-left: 4px; }
.app-card-sum { font-size: .93rem; color: var(--muted); line-height: 1.45; }
.app-card .badge { justify-self: start; grid-column: 2; }

/* ---------- Apps page ---------- */
.page-head { padding: 56px 16px 28px; }
@media (min-width: 700px) { .page-head { padding: 72px 28px 32px; } }
.page-head.center .actions { justify-content: center; }
.page-head.center .lede { margin-left: auto; margin-right: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 28px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters legend { float: left; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 6px; }
.filters label { position: relative; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .92rem; background: var(--card); }
.filters label:hover { border-color: var(--accent); }
.filters input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filters label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filters label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.suite-block { margin-bottom: 44px; }
.suite-block h2 .muted { font: 400 1rem var(--font-body); }
.filter-empty { display: none; }

.apps-browser:has(#f-suite-core:checked) .suite-block[data-suite="lookout"],
.apps-browser:has(#f-suite-lookout:checked) .suite-block[data-suite="core"] { display: none; }
.apps-browser:has(#f-status-available:checked) .app-card:not([data-status="available"]),
.apps-browser:has(#f-status-beta:checked) .app-card:not([data-status="beta"]),
.apps-browser:has(#f-status-in-development:checked) .app-card:not([data-status="in-development"]),
.apps-browser:has(#f-status-planned:checked) .app-card:not([data-status="planned"]) { display: none; }
.apps-browser:has(#f-status-available:checked) .suite-block:not(:has([data-status="available"])),
.apps-browser:has(#f-status-beta:checked) .suite-block:not(:has([data-status="beta"])),
.apps-browser:has(#f-status-in-development:checked) .suite-block:not(:has([data-status="in-development"])),
.apps-browser:has(#f-status-planned:checked) .suite-block:not(:has([data-status="planned"])) { display: none; }
.apps-browser:has(#f-status-available:checked):not(:has(.app-card[data-status="available"])) .filter-empty,
.apps-browser:has(#f-suite-core:checked):has(#f-status-available:checked):not(:has([data-suite="core"] .app-card[data-status="available"])) .filter-empty,
.apps-browser:has(#f-suite-lookout:checked):has(#f-status-available:checked):not(:has([data-suite="lookout"] .app-card[data-status="available"])) .filter-empty,
.apps-browser:has(#f-status-beta:checked):not(:has(.app-card[data-status="beta"])) .filter-empty,
.apps-browser:has(#f-suite-core:checked):has(#f-status-beta:checked):not(:has([data-suite="core"] .app-card[data-status="beta"])) .filter-empty,
.apps-browser:has(#f-suite-lookout:checked):has(#f-status-beta:checked):not(:has([data-suite="lookout"] .app-card[data-status="beta"])) .filter-empty,
.apps-browser:has(#f-status-in-development:checked):not(:has(.app-card[data-status="in-development"])) .filter-empty,
.apps-browser:has(#f-suite-core:checked):has(#f-status-in-development:checked):not(:has([data-suite="core"] .app-card[data-status="in-development"])) .filter-empty,
.apps-browser:has(#f-suite-lookout:checked):has(#f-status-in-development:checked):not(:has([data-suite="lookout"] .app-card[data-status="in-development"])) .filter-empty,
.apps-browser:has(#f-status-planned:checked):not(:has(.app-card[data-status="planned"])) .filter-empty,
.apps-browser:has(#f-suite-core:checked):has(#f-status-planned:checked):not(:has([data-suite="core"] .app-card[data-status="planned"])) .filter-empty,
.apps-browser:has(#f-suite-lookout:checked):has(#f-status-planned:checked):not(:has([data-suite="lookout"] .app-card[data-status="planned"])) .filter-empty { display: block; }

/* ---------- App page ---------- */
.app-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.app-hero-row { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.app-hero-icon { width: 72px; height: 72px; border-radius: 18px; }
@media (min-width: 700px) {
  .app-hero-row { grid-template-columns: 104px 1fr; gap: 28px; }
  .app-hero-icon { width: 104px; height: 104px; border-radius: 24px; }
}
.app-hero h1 { margin-bottom: .2em; }
.app-hero h1 .plain { font: 500 .5em var(--font-body); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.app-hero .lede { margin-bottom: .7em; }
.app-hero .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: .5em; }
.crumb a { color: var(--muted); }
.app-body { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
@media (min-width: 900px) { .app-body { grid-template-columns: 1fr 320px; gap: 56px; } }
.app-main h2 { margin-top: 1.8em; }
.app-side { display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) { .app-side { position: sticky; top: 88px; } }
.side-card h2 { font-size: 1.2rem; margin: 0 0 .4em; }
.side-card p { margin-bottom: .4em; }
.glance { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0 0 12px; font-size: .95rem; }
.glance dt, .glance dd { padding: 8px 0; border-top: 1px solid var(--line); margin: 0; }
.glance dt { color: var(--muted); }
.glance dd { text-align: right; font-weight: 600; color: var(--head); padding-left: 12px; }
.checksum-label { margin: 14px 0 4px; }
.checksum { display: block; word-break: break-all; background: var(--tint); padding: 8px 10px; border-radius: 8px; font-size: .78rem; margin-bottom: 10px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.features li { position: relative; padding-left: 30px; }
.features li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.perm-none, .perm-ok { background: var(--tint); border-radius: 10px; padding: 14px 16px; }
.perm-ok { border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; }
.perm-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 10px; }
.perm-table th, .perm-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.perm-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.perm-table code { word-break: break-word; color: var(--head); }
@media (max-width: 600px) {
  .perm-table thead { display: none; }
  .perm-table tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .perm-table td { display: block; border: 0; padding: 2px 0; }
}
.hosts { padding-left: 1.2em; }
.screens { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.screens figure { margin: 0; flex: 0 0 min(220px, 60vw); scroll-snap-align: start; }
.screens img { border-radius: 16px; border: 1px solid var(--line); }
.screens figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.changelog { list-style: none; padding: 0; margin: 0; }
.changelog > li { border-left: 2px solid var(--line); padding: 0 0 18px 18px; }
.changelog > li p { margin-bottom: .3em; }
.changelog time { color: var(--muted); font-size: .9rem; margin-left: 6px; }

/* ---------- Privacy table ---------- */
.table-scroll { overflow-x: auto; }
.privacy-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .94rem; }
.privacy-table th, .privacy-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.privacy-table thead th { background: var(--tint); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.privacy-table tbody th a { display: inline-flex; align-items: center; gap: 10px; font: 700 1rem var(--font-head); color: var(--head); text-decoration: none; }
.privacy-table tbody th img { border-radius: 7px; }
.privacy-table .sub { display: block; font: 400 .85rem var(--font-body); color: var(--muted); margin: 2px 0 0 38px; }
.privacy-table .perms code { display: inline-block; background: var(--tint); padding: 1px 6px; border-radius: 5px; margin: 0 4px 4px 0; font-size: .76rem; }
.privacy-table .none { color: var(--muted); }
.privacy-table .no { color: var(--accent); }
@media (max-width: 760px) {
  .privacy-table thead { display: none; }
  .privacy-table, .privacy-table tbody, .privacy-table tr, .privacy-table th, .privacy-table td { display: block; }
  .privacy-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .privacy-table th, .privacy-table td { border: 0; padding: 4px 14px; }
  .privacy-table td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); font-size: .85rem; }
}

/* ---------- Pricing ---------- */
.tiers { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 20px 0; }
@media (min-width: 700px) { .tiers { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tier-highlight { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.tier-name { font: 700 1.15rem/1.2 var(--font-head); color: var(--head); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tier-price { font: 700 2.2rem/1 var(--font-head); color: var(--head); margin: 4px 0 12px; }
.tier-price s { font-size: .45em; color: var(--muted); font-weight: 400; margin-left: 6px; }
.tier-includes { color: var(--muted); flex: 1; }
.tier-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.tier-icons img { border-radius: 7px; }
.tier .btn { margin-top: auto; }

/* ---------- FAQ, contact, updates, recommendations ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; color: var(--head); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--muted); }
.contact-list { display: grid; gap: 10px; margin: 18px 0; }
@media (min-width: 700px) { .contact-list { grid-template-columns: 1fr 1fr; } }
.contact-row { display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; text-decoration: none; color: var(--text); }
.contact-row:hover { border-color: var(--accent); color: var(--text); }
.contact-row strong { color: var(--accent); }
.contact-row span { font-size: .9rem; color: var(--muted); }
.update-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.update-item time, .post .meta { color: var(--muted); font-size: .9rem; }
.update-item h2 { font-size: 1.35rem; margin: .3em 0 .3em; }
.update-item h2 a { color: var(--head); text-decoration: none; }
.update-item h2 a:hover { color: var(--accent); }
.post { padding: 56px 16px 72px; }
.prose { max-width: 68ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.rec-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .rec-grid { grid-template-columns: repeat(3, 1fr); } }
.rec-need { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rec-grid h2 { font-size: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--tint); margin-top: 64px; padding: 40px 0 24px; font-size: .95rem; }
.footer-cols { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--muted); margin: 10px 0 0; }
.site-footer h2 { font: 600 .8rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0 0 4px; }
@media (min-width: 800px) {
  .footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
