/* Choreless hub. Same tokens as the product sites, so the three feel like one family. */
:root {
  --bg:#fff; --fg:#1b1f24; --muted:#556; --accent:#1d4ed8; --accent-fg:#fff;
  --card:#f4f6fa; --line:#d8dde6; --mark:#1c2028; --code:#eef1f6;
  --tip-bg:#eef4ff; --tip-line:#9db7f5;
  --read:42rem;          /* one reading width for every block of running text */
  --radius:.6rem;
  --brand:#1f63bd;        /* the app icons' blue */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#12151a; --fg:#e8eaee; --muted:#a3abb8; --accent:#7aa2ff; --accent-fg:#0b1020;
    --card:#1b2028; --line:#2b3340; --mark:#343c4c; --code:#1f2530;
    --tip-bg:#18213a; --tip-line:#3b5aa8;
  }
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--fg); font:17px/1.6 system-ui, "Segoe UI", sans-serif; }
img { max-width:100%; height:auto; }
a { color:var(--accent); text-decoration-thickness:1px; text-underline-offset:.18em;
  text-decoration-color:color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color:currentColor; }
a:focus-visible, .button:focus-visible, summary:focus-visible { outline:3px solid var(--accent); outline-offset:2px; border-radius:.25rem; }
.skip { position:absolute; left:-999px; }
.skip:focus { left:1rem; top:1rem; background:var(--bg); padding:.5rem 1rem; z-index:10; }

/* ---------- Shell */
.wrap { max-width:96rem; margin:0 auto; padding:0 clamp(1.1rem, 3vw, 2.75rem); }
.narrow { max-width:var(--read); }
header.top { display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap;
  padding:1.1rem 0; border-bottom:1px solid var(--line); }
.brand { display:inline-flex; align-items:center; gap:.55rem; color:var(--fg); text-decoration:none; font-weight:700; font-size:1.1rem; }
.brand img { width:30px; height:30px; border-radius:6px; }
header.top nav { display:flex; gap:1.5rem; }
header.top nav a { color:var(--muted); text-decoration:none; font-weight:500; }
header.top nav a:hover, header.top nav a[aria-current="page"] { color:var(--fg); }
main { padding-bottom:3rem; }
footer.site { color:var(--muted); font-size:.88rem; border-top:1px solid var(--line); padding:1.5rem 0 2.5rem; }
footer.site .foot-row { display:flex; justify-content:space-between; align-items:baseline; gap:.5rem 2rem; flex-wrap:wrap; }
footer.site nav { display:flex; flex-wrap:wrap; gap:.4rem 1.25rem; }
footer.site nav a { color:var(--muted); text-decoration:none; }
footer.site nav a:hover { color:var(--fg); }
footer.site p { margin:.4rem 0; }
footer.site .fine { max-width:var(--read); margin-top:.75rem; }

/* ---------- Type */
h1 { font-size:2.3rem; line-height:1.18; margin:2rem 0 .75rem; letter-spacing:-.015em; }
h2 { font-size:1.45rem; line-height:1.3; margin:3rem 0 .75rem; letter-spacing:-.005em; }
h3 { font-size:1.15rem; line-height:1.35; margin:1.75rem 0 .5rem; }
h1, h2, h3 { text-wrap:balance; }
p, li { max-width:var(--read); }
.lead { font-size:1.15rem; color:var(--muted); max-width:var(--read); margin:.5rem 0 1.25rem; }
.note, .fine { color:var(--muted); font-size:.92rem; }
.label { text-transform:uppercase; letter-spacing:.07em; font-size:.74rem; font-weight:700; color:var(--muted); margin:0 0 .5rem; }
code { font:.9em/1.4 ui-monospace, Consolas, monospace; background:var(--code); padding:.1em .3em; border-radius:.25rem; overflow-wrap:anywhere; }
pre { background:var(--code); padding:1rem; border-radius:var(--radius); overflow-x:auto; max-width:var(--read); }
pre code { background:none; padding:0; }
kbd { font:.85em ui-monospace, Consolas, monospace; border:1px solid var(--line); border-bottom-width:2px; border-radius:.3rem; padding:.05em .35em; background:var(--card); }
blockquote { margin:1rem 0; padding:.25rem 1rem; border-left:3px solid var(--line); color:var(--muted); max-width:var(--read); }
hr { border:0; border-top:1px solid var(--line); margin:2rem 0; }
table { border-collapse:collapse; width:100%; margin:1rem 0; font-size:.95rem; }
th, td { border:1px solid var(--line); padding:.45rem .6rem; text-align:left; vertical-align:top; }
th { background:var(--card); }
.table-scroll { overflow-x:auto; }
/* Markdown heading permalinks: only on hover, on every page */
.headerlink { opacity:0; margin-left:.35rem; text-decoration:none; font-weight:400; color:var(--muted); }
h2:hover .headerlink, h3:hover .headerlink, .headerlink:focus { opacity:1; }

/* ---------- Buttons, cards, frames */
.button { display:inline-block; padding:.6rem 1.1rem; border-radius:.5rem; background:var(--accent); color:var(--accent-fg);
  text-decoration:none; font-weight:650; font-size:.97rem; border:1.5px solid var(--accent); line-height:1.3; }
.button:hover { filter:brightness(1.08); }
.button.secondary { background:transparent; color:var(--accent); }
.button.secondary:hover { background:var(--tip-bg); filter:none; }
.button.block { display:block; text-align:center; }
.actions { display:flex; flex-wrap:wrap; gap:.6rem; margin:1.25rem 0 0; }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:1.1rem 1.25rem; }
.grid { display:grid; gap:1.25rem; grid-template-columns:repeat(auto-fit, minmax(19rem, 1fr)); margin:1.25rem 0; }
.frame { display:block; margin:0; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--card); }
.frame img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; object-position:left top; }
.ticks { padding-left:1.2rem; }
.ticks li { margin:.4rem 0; }
.qlist { list-style:none; padding:0; margin:0; }
.qlist li { padding:.5rem 0; border-top:1px solid var(--line); line-height:1.4; }
.qlist li:first-child { border-top:0; padding-top:0; }
.qlist a { text-decoration:none; }
.qlist a:hover { text-decoration:underline; }

/* ---------- Home */
.intro { padding:1.5rem 0 .5rem; }
.intro h1 { font-size:2.6rem; max-width:32rem; }
.promises { list-style:none; padding:0; margin:1rem 0 0; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:1.5rem; }
.promises li { border-top:2px solid var(--accent); padding-top:.75rem; color:var(--muted); font-size:.95rem; }
.promises strong { display:block; color:var(--fg); margin-bottom:.15rem; }
.block > h2:first-child { margin-top:3.5rem; }
.tool-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:1.5rem; }
.tool-card { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.tool-card .frame { border:0; border-bottom:1px solid var(--line); border-radius:0; }
.tool-body { display:flex; flex-direction:column; flex:1; padding:1.25rem 1.4rem 1.4rem; }
.tool-body h3 { font-size:1.4rem; margin:0 0 .35rem; }
.tool-body h3 a { color:var(--fg); text-decoration:none; }
.tool-body h3 a:hover { text-decoration:underline; }
.tool-body > p { margin:.3rem 0; }
.tool-body .label { margin-top:1.25rem; }
.tool-body .actions { margin-top:auto; padding-top:1.5rem; }

/* ---------- Product pages */
.hero { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:clamp(2rem,4vw,4rem); align-items:center; margin:1.5rem 0 2rem; }
.hero h1 { margin-top:0; font-size:2.4rem; }
.hero .label { margin-bottom:.6rem; }
.brand-panel { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.35rem; aspect-ratio:16/10;
  border-radius:calc(var(--radius) * 1.5); background:var(--brand); color:#fff; text-align:center; padding:1.5rem; }
.brand-panel img { width:clamp(96px, 11vw, 168px); height:auto; margin-bottom:.6rem; }
.bp-name { font-size:clamp(1.5rem, 2.6vw, 2.3rem); font-weight:700; letter-spacing:-.01em; line-height:1.15; }
.bp-by { font-size:1rem; opacity:.85; font-weight:600; }
.facts-bar { display:grid; grid-template-columns:minmax(0,1fr) 17rem; gap:1.5rem 2.5rem; align-items:center;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:1.25rem 1.5rem; }
.facts-bar dl { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:1rem 2rem; margin:0; }
.facts-bar dt { font-weight:650; font-size:.85rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:.2rem; }
.facts-bar dd { margin:0; font-size:.95rem; line-height:1.45; }
.facts-cta .get { font-size:.88rem; margin:.6rem 0 0; text-align:center; color:var(--muted); max-width:none; }
.facts-cta .get a { white-space:nowrap; }
ol.how { list-style:none; padding:0; margin:1rem 0 1.5rem; display:grid; gap:1.25rem; grid-template-columns:repeat(auto-fit, minmax(15rem, 1fr)); counter-reset:none; }
ol.how li { border-top:2px solid var(--accent); padding-top:.9rem; max-width:none; }
ol.how .num { display:inline-grid; place-items:center; width:1.8rem; height:1.8rem; border-radius:50%; background:var(--accent); color:var(--accent-fg);
  font-weight:700; font-size:.9rem; }
ol.how h3 { margin:.55rem 0 .3rem; }
ol.how p { margin:0; color:var(--muted); font-size:.96rem; }
.gallery { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:1.5rem; margin:1.5rem 0 0; }
.gallery figure { margin:0; }
.gallery .frame img { aspect-ratio:auto; object-fit:contain; }
.gallery .frame:hover { border-color:var(--accent); }
.gallery figcaption { margin-top:.5rem; font-size:.92rem; color:var(--muted); }
.gallery figcaption strong { color:var(--fg); font-weight:650; }
.problem-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:1.5rem; margin-top:1rem; }
.problem { border:1px solid var(--line); border-radius:var(--radius); padding:1.25rem 1.4rem; overflow-wrap:anywhere; }
/* An odd last problem spans the row, with its three parts side by side, so no hole is left */
.problem:last-child:nth-child(odd) { grid-column:1 / -1; }
.problem:last-child:nth-child(odd) dl.stack { display:grid; grid-template-rows:auto auto; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); column-gap:2rem; }
.problem:last-child:nth-child(odd) dl.stack dt { margin-top:0; }
.problem h3 { margin:0 0 .75rem; }
dl.stack { margin:0; }
dl.stack dt { font-weight:700; font-size:.74rem; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); margin-top:.9rem; }
dl.stack dt:first-child { margin-top:0; }
dl.stack dd { margin:.2rem 0 0; }
dl.stack dd:last-of-type { color:var(--muted); }
.problem .more { margin:.9rem 0 0; }
.split { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:clamp(2rem,4vw,4rem); align-items:start; }
dl.faq { margin:.5rem 0; }
dl.faq > div { border-top:1px solid var(--line); padding:.85rem 0; }
dl.faq > div:first-child { border-top:0; padding-top:0; }
dl.faq dt { font-weight:650; }
dl.faq dd { margin:.25rem 0 0; color:var(--muted); }
/* Content + sidebar (articles) */
.with-aside { display:grid; grid-template-columns:minmax(0,1fr) 18rem; gap:3.5rem; align-items:start; margin-top:1rem; }
.main-col { min-width:0; }
.side .sticky { position:sticky; top:1.25rem; }
dl.steps { display:grid; grid-template-columns:9rem minmax(0,1fr); gap:.6rem 1.25rem; margin:.75rem 0; }
dl.steps dt { font-weight:650; font-size:.9rem; color:var(--muted); padding-top:.12rem; }
dl.steps dd { margin:0; max-width:var(--read); }
figure.shot { margin:1.25rem 0; }
figure.shot img { border:1px solid var(--line); border-radius:var(--radius); display:block; }
figure.shot figcaption { color:var(--muted); font-size:.9rem; margin-top:.4rem; }

/* ---------- App icons */
.app-icon { display:inline-block; vertical-align:middle; border-radius:22%; }
.tool-body h3 a { display:inline-flex; align-items:center; gap:.65rem; }
.product-label { display:flex; align-items:center; gap:.55rem; }

/* ---------- Plain pages (About, Privacy) */
.page-head .lead { max-width:var(--read); }
.cols { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:0 clamp(2rem,4vw,4rem); align-items:start; }
.cols > div > h2:first-child { margin-top:2.5rem; }
.page-head { display:flex; align-items:center; gap:1.25rem; margin:1.75rem 0 1.5rem; }
.page-head h1 { margin:0 0 .25rem; }
.page-head .lead { margin:.25rem 0 0; }
.page-head .note { margin:.4rem 0 0; }
.page-icon { flex:none; width:64px; height:64px; border-radius:14px; }
.page > ul:not([class]) li { margin:.4rem 0; }
.principles { list-style:none; padding:0; margin:.5rem 0 1.25rem; display:grid; gap:1rem; grid-template-columns:repeat(auto-fit, minmax(14rem, 1fr)); }
.principles li { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:.9rem 1.05rem;
  color:var(--muted); font-size:.93rem; line-height:1.5; margin:0; }
.principles strong { display:block; color:var(--fg); font-size:1rem; margin-bottom:.25rem; }
.tiles { display:grid; gap:1rem; grid-template-columns:repeat(auto-fit, minmax(17rem, 1fr)); margin:1.25rem 0; }
.tile { display:flex; gap:.9rem; align-items:flex-start; padding:1rem 1.1rem; border:1px solid var(--line); border-radius:var(--radius);
  color:var(--muted); text-decoration:none; font-size:.92rem; line-height:1.45; }
.tile:hover { border-color:var(--accent); background:var(--tip-bg); }
.tile img { flex:none; border-radius:22%; }
.tile strong { display:block; color:var(--fg); font-size:1.02rem; margin-bottom:.2rem; }

/* ---------- Article lists */
.posts { list-style:none; padding:0; margin:1rem 0; max-width:var(--read); }
.posts li { padding:1rem 0; border-top:1px solid var(--line); }
.posts li:first-child { border-top:0; padding-top:.25rem; }
.posts a.title { font-weight:650; font-size:1.08rem; text-decoration:none; color:var(--fg); }
.posts a.title:hover { text-decoration:underline; color:var(--accent); }
.posts p { margin:.25rem 0; color:var(--muted); font-size:.95rem; }
.posts .meta { font-size:.85rem; color:var(--muted); }
.tag { display:inline-block; font-size:.76rem; font-weight:600; padding:.05rem .5rem; border-radius:1rem; border:1px solid var(--line); color:var(--muted); margin-right:.4rem; }

/* ---------- Articles */
.crumbs { font-size:.87rem; color:var(--muted); margin-top:1.25rem; }
.crumbs a { color:var(--muted); text-decoration:none; }
.crumbs a:hover { color:var(--fg); text-decoration:underline; }
.crumbs ol { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:.4rem; }
.crumbs li:not(:last-child)::after { content:"/"; margin-left:.4rem; opacity:.6; }
article .byline { color:var(--muted); font-size:.9rem; margin:-.25rem 0 1.25rem; }
.toc { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:.75rem 1.1rem; margin:0 0 1.25rem; font-size:.92rem; }
.toc summary { cursor:pointer; font-weight:650; }
.toc ul { margin:.5rem 0 .25rem; padding-left:1.1rem; }
.toc ul ul { margin:0; }
.toc a { text-decoration:none; }
.toc a:hover { text-decoration:underline; }
article img { border:1px solid var(--line); border-radius:var(--radius); }
.admonition { background:var(--tip-bg); border-left:3px solid var(--tip-line); border-radius:.4rem; padding:.6rem 1rem; margin:1.25rem 0; max-width:var(--read); }
.admonition-title { font-weight:700; margin:.2rem 0 .3rem; }
.admonition p { margin:.3rem 0; }
.admonition.warning { border-left-color:#d08a00; }
.toolbox { border:1.5px solid var(--accent); border-radius:var(--radius); padding:1.1rem 1.3rem; margin:2.5rem 0 1.5rem; max-width:var(--read); }
.toolbox h2 { margin:0 0 .4rem; font-size:1.15rem; }
.toolbox p { margin:.45rem 0; }
.toolbox .disclose { color:var(--muted); font-size:.87rem; }
.side-tool { margin-top:1rem; font-size:.92rem; }
.side-tool p { margin:.25rem 0; }

@media (max-width:72rem) {
  .facts-bar { grid-template-columns:1fr; }
  .facts-bar dl { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .facts-cta { max-width:22rem; }
}
@media (max-width:56rem) {
  .hero, .with-aside, .gallery, .problem-grid, .split, .cols { grid-template-columns:minmax(0,1fr); gap:1.5rem; }
  .problem:last-child:nth-child(odd) dl.stack { display:block; }
  .problem:last-child:nth-child(odd) dl.stack dt { margin-top:.9rem; }
  .problem:last-child:nth-child(odd) dl.stack dt:first-child { margin-top:0; }
  .with-aside.aside-first > .side { order:-1; }
  .side .sticky { position:static; }
  .tool-grid { grid-template-columns:minmax(0,1fr); }
  .brand-panel { aspect-ratio:auto; padding:2rem 1.5rem; }
}
@media (max-width:40rem) {
  .wrap { padding:0 1.1rem; }
  h1, .intro h1 { font-size:1.85rem; }
  h2 { font-size:1.3rem; }
  .promises { grid-template-columns:1fr; gap:1rem; }
  header.top nav { gap:1.1rem; }
  dl.steps { grid-template-columns:1fr; gap:.15rem; }
  .facts-bar dl { grid-template-columns:1fr; }
  .facts-cta { max-width:none; }
  .hero h1 { font-size:1.85rem; }
  .page-head { align-items:flex-start; gap:.9rem; }
  .page-icon { width:48px; height:48px; border-radius:11px; margin-top:.35rem; }
  dl.steps dd { margin-bottom:.6rem; }
  .problem .more { margin-left:0; }
}

/* ---------- /links (opened from Instagram and Facebook bios, so mostly phones) */
.links-page { max-width:30rem; margin:0 auto; text-align:center; padding-top:1.5rem; }
.links-page .logo { width:84px; height:84px; border-radius:18px; }
.links-page h1 { font-size:1.6rem; margin:.75rem 0 .25rem; }
.links-page .stack { display:flex; flex-direction:column; gap:.7rem; margin:1.5rem 0; }
.links-page .stack a { display:block; padding:.85rem 1rem; border-radius:var(--radius); border:1px solid var(--line); background:var(--card);
  color:var(--fg); text-decoration:none; font-weight:600; }
.links-page .stack a small { display:block; font-weight:400; color:var(--muted); font-size:.85rem; margin-top:.15rem; }
.links-page .stack a.primary { background:var(--accent); border-color:var(--accent); color:var(--accent-fg); }
.links-page .stack a.primary small { color:var(--accent-fg); opacity:.85; }
.links-page h2 { font-size:.8rem; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); margin:1.75rem 0 .25rem; }

@media print {
  header.top nav, footer.site nav, .toolbox, .related, .skip, .side, .brand-panel, .facts-cta { display:none; }
  .with-aside { display:block; }
  a { color:inherit; }
}
