/* ==========================================================================
   Article layout for /blog/* pages. Additive to styles.css — reuses its
   tokens (--accent, --card, --border …) and components (.page-hero,
   .disclosure, .btn, .faq). Nothing here changes existing pages.
   Editorial approach: prose and hairline rules first; boxes only for the
   comparison tables, the Todoist recommendation and the FAQ.
   ========================================================================== */

/* ---------- article header with hero image ---------- */
.page-hero.has-img::before{background:linear-gradient(90deg,rgba(3,8,18,.975) 0%,rgba(3,8,18,.9) 25%,rgba(3,8,18,.5) 48%,rgba(3,8,18,.12) 68%,rgba(3,8,18,0) 85%),linear-gradient(180deg,rgba(3,8,18,.1) 0%,rgba(3,8,18,.03) 60%,var(--bg) 100%)}
@media(max-width:767px){.page-hero.has-img::before{background:linear-gradient(180deg,rgba(3,8,18,.9) 0%,rgba(3,8,18,.92) 40%,rgba(3,8,18,.95) 70%,var(--bg) 100%)}.page-hero .hero-img{object-position:72% 15%}}
.page-hero.has-img .eyebrow{color:#4A93F9} /* slightly lighter brand blue so the 12px label keeps 4.5:1 over the photo */
.page-hero .hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:78% 22%;z-index:-2}
.article-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin-top:22px;color:var(--text-subtle);font-size:.85rem}
.article-meta strong{color:var(--text-muted);font-weight:600}
.article-meta a,.article-note a{color:var(--text-muted);text-decoration:underline;text-underline-offset:3px}
.article-meta a:hover,.article-note a:hover{color:var(--accent)}
.article-note{margin-top:12px;max-width:62ch;color:var(--text-muted);font-size:.85rem;line-height:1.5}
.article-note b{color:var(--text);font-weight:650}

/* ---------- layout ---------- */
.article-shell{display:grid;gap:32px;padding-block:44px 24px}
.article-shell section{padding-block:0}
.article-body{min-width:0;max-width:760px}
.article-body>section{margin-top:72px}
.article-body h2{max-width:none;font-size:clamp(1.55rem,3.6vw,2.15rem);margin-bottom:18px;scroll-margin-top:calc(var(--header) + 16px)}
.article-body h3{font-size:1.2rem;margin:30px 0 8px}
.article-body p{color:var(--text-muted);margin-top:16px}
.article-body p:first-child{margin-top:0}
.article-body strong{color:var(--text);font-weight:650}
.article-body a:not(.btn){color:var(--accent);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.article-body a:not(.btn):hover{text-decoration-thickness:2px}
.article-body ul.list,.article-body ol.list{margin-top:16px;display:grid;gap:9px;padding-left:1.3em;color:var(--text-muted)}
.article-body ul.list{list-style:disc}
.article-body ol.list{list-style:decimal}
.article-body ul.list li::marker,.article-body ol.list li::marker{color:var(--accent)}
.article-body .small{margin-top:12px}
.article-body .lead-in{font-size:1.18rem;color:var(--text);line-height:1.6}
/* comfortable reading measure: prose stays narrow, tables and figures use the full column */
.article-body :is(p,ul.list,ol.list,.faq,.specs){max-width:60ch}

/* ---------- table of contents ---------- */
.toc{border:1px solid var(--border);border-radius:var(--r);background:linear-gradient(180deg,var(--card),var(--bg-soft))}
.toc summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;font-weight:650;min-height:52px}
.toc summary::-webkit-details-marker{display:none}
.toc summary .ic{color:var(--accent);transition:transform .25s}
.toc[open] summary .ic{transform:rotate(90deg)}
.toc ol{padding:0 18px 16px;display:grid;gap:2px;list-style:none;counter-reset:toc}
.toc li{counter-increment:toc}
.toc a{display:flex;gap:10px;padding:7px 0;color:var(--text-muted);font-size:.92rem;line-height:1.4}
.toc a::before{content:counter(toc,decimal-leading-zero);color:var(--text-subtle);font-size:.78rem;font-weight:700;padding-top:2px;min-width:1.6em}
.toc a:hover{color:var(--accent)}
@media(min-width:1024px){
  .article-shell{grid-template-columns:240px minmax(0,1fr);gap:64px;align-items:start}
  .toc-col{position:sticky;top:calc(var(--header) + 20px)}
  .toc{border:0;background:none;border-left:1px solid var(--border);border-radius:0}
  .toc summary{cursor:default;pointer-events:none;padding:0 0 8px 18px;min-height:0}
  .toc summary .ic{display:none}
  .toc ol{padding:0 0 0 18px}
}

/* ---------- type tags ---------- */
.tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;border:1px solid var(--border);color:var(--text-muted);background:rgba(255,255,255,.03)}
.tag.t-block{color:#7FB6FF;border-color:rgba(31,121,246,.5);background:rgba(31,121,246,.12)}
.tag.t-timer{color:#7DE3EE;border-color:rgba(36,216,234,.4);background:rgba(36,216,234,.1)}
.tag.t-task{color:#FFD08A;border-color:rgba(255,184,77,.4);background:rgba(255,184,77,.1)}

/* ---------- quick picks: a ruled list, not cards ---------- */
.picks{margin-top:24px;border-bottom:1px solid var(--border)}
.picks li{display:grid;gap:4px;padding:14px 0;border-top:1px solid var(--border)}
.picks .name{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
.article-body .picks .name a{color:var(--text);font-weight:700;font-size:1.05rem;text-decoration:none}
.article-body .picks .name a:hover{color:var(--accent)}
.picks .why{color:var(--text-muted);font-size:.95rem;line-height:1.5}
@media(min-width:768px){
  .picks li{grid-template-columns:230px 1fr;gap:20px;align-items:baseline}
}

/* ---------- comparison tables (kept boxed: they are real tables) ---------- */
.table-wrap{margin-top:22px;border:1px solid var(--border);border-radius:var(--r);overflow-x:auto;background:var(--card);-webkit-overflow-scrolling:touch}
.table-wrap:focus-visible{outline-offset:2px}
.cmp{width:100%;min-width:700px;border-collapse:separate;border-spacing:0;font-size:.9rem;line-height:1.5}
.cmp caption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cmp th,.cmp td{padding:14px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--border)}
.cmp thead th{background:var(--bg-soft);color:var(--text-subtle);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.cmp tbody th{font-weight:700;color:var(--text);min-width:132px;background:var(--card)}
.cmp tbody td{color:var(--text-muted)}
.cmp tbody tr:last-child th,.cmp tbody tr:last-child td{border-bottom:0}
.cmp tbody th,.cmp thead th:first-child{position:sticky;left:0;z-index:1;box-shadow:1px 0 0 var(--border)}
.cmp thead th:first-child{background:var(--bg-soft);z-index:2}
.cmp .tag{display:block;width:fit-content;margin-bottom:6px}
.cmp a:not(.btn){color:var(--accent);font-weight:700}
.cmp .row-todoist th,.cmp .row-todoist td{background:rgba(31,121,246,.06)}
.table-hint{display:block;margin-top:10px;color:var(--text-subtle);font-size:.78rem}
@media(min-width:900px){.table-hint{display:none}}
@media(max-width:640px){
  .cmp th,.cmp td{padding:12px}
  .cmp tbody th{min-width:0;width:112px}
}

/* ---------- diagnosis: ruled columns, no boxes ---------- */
.types{display:grid;gap:28px;margin-top:26px}
.types>div{border-top:2px solid var(--accent);padding-top:14px}
.article-body .types h3{margin:10px 0 8px;font-size:1.1rem}
.article-body .types p{margin-top:8px;font-size:.95rem;max-width:none}
.article-body .types .tools-line{color:var(--text)}
@media(min-width:900px){.types{grid-template-columns:repeat(3,1fr);gap:32px}}
.figure{margin:36px 0 0}
.figure img{width:100%;max-width:420px;height:auto;border-radius:var(--r);border:1px solid var(--border);margin-inline:auto}
.figure figcaption{margin-top:10px;text-align:center;color:var(--text-subtle);font-size:.8rem}

/* ---------- tool reviews: ruled sections, not cards ---------- */
.tool{padding-top:36px;margin-top:40px;border-top:1px solid var(--border);scroll-margin-top:calc(var(--header) + 16px)}
.tool-head{display:flex;align-items:center;gap:14px;margin-bottom:6px}
.tool-head .icon-box{width:46px;height:46px;flex:none}
.article-body .tool-head h3{margin:0;font-size:1.4rem;letter-spacing:-.01em;line-height:1.25}
.tool-head .tag{margin-top:6px}
.article-body .tool-verdict{color:var(--text);font-weight:600;margin-top:14px}
.specs{display:grid;margin-top:18px;border-block:1px solid var(--border)}
.specs div{display:grid;gap:2px;padding:11px 0;border-top:1px solid var(--border)}
.specs div:first-child{border-top:0}
.specs dt{color:var(--text-subtle);font-size:.7rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.specs dd{margin:0;color:var(--text);font-size:.93rem;line-height:1.5}
.specs dd a{font-weight:600}
@media(min-width:640px){
  .specs div{grid-template-columns:130px 1fr;gap:16px}
}
.article-body .kf{margin-top:22px;color:var(--text);font-size:.74rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.kf+ul.list{margin-top:8px}
.article-body .example{margin-top:16px;padding-left:14px;border-left:2px solid var(--accent);font-size:.95rem}
.example b{color:var(--text)}
.pc{display:grid;gap:18px;margin-top:22px}
.article-body .pc .ph{margin:0 0 8px;font-size:.76rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.pc .pros .ph{color:#58D6A0}
.pc .cons .ph{color:#F5A66B}
.pc ul{display:grid;gap:7px}
.pc li{position:relative;padding-left:18px;color:var(--text-muted);font-size:.93rem;line-height:1.5}
.pc li::before{content:"";position:absolute;left:1px;top:.62em;width:6px;height:6px;border-radius:50%}
.pc .pros li::before{background:#58D6A0}
.pc .cons li::before{background:#F5A66B}
@media(min-width:700px){.article-body .pc{grid-template-columns:1fr 1fr;gap:32px;max-width:none}}
.article-body .fit{font-size:.95rem}
.fit b{color:var(--text)}
.tool-cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-top:22px}
.tool-cta .note{color:var(--text-subtle);font-size:.8rem;max-width:46ch;line-height:1.45}

/* ---------- Todoist: the one highlighted recommendation ---------- */
.todoist-section .disclosure{margin-bottom:34px;max-width:60ch}
.tool.featured-tool{margin-top:28px;padding:28px 22px;border:1px solid var(--border-hi);border-radius:20px;box-shadow:0 24px 60px -34px rgba(31,121,246,.55);background:radial-gradient(ellipse 80% 60% at 100% 0%,rgba(31,121,246,.14),transparent 60%),linear-gradient(180deg,var(--card),var(--bg-soft))}
.article-body .tool.featured-tool h3.sub{margin-top:26px;font-size:1.1rem}
.usecases{margin-top:12px;display:grid;gap:10px;padding-left:1.3em;list-style:disc;color:var(--text-muted);max-width:60ch}
.usecases li::marker{color:var(--accent)}
.usecases b{color:var(--text)}
@media(min-width:768px){.tool.featured-tool{padding:36px 40px}}
@media(max-width:640px){.tool.featured-tool{padding:24px 16px}}

/* ---------- daily system timeline ---------- */
.timeline{margin-top:22px;display:grid;gap:0;position:relative;counter-reset:step;max-width:60ch;list-style:none;padding-left:0}
.timeline li{position:relative;padding:0 0 22px 52px;color:var(--text-muted)}
.timeline li::before{counter-increment:step;content:counter(step);position:absolute;left:0;top:0;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--accent-soft);border:1px solid var(--border-hi);color:var(--accent);font-weight:700;font-size:.9rem}
.timeline li::after{content:"";position:absolute;left:16.5px;top:38px;bottom:4px;width:1px;background:var(--border)}
.timeline li:last-child{padding-bottom:0}
.timeline li:last-child::after{display:none}
.timeline b{display:block;color:var(--text);margin-bottom:2px}
.timeline .when{color:var(--text-subtle);font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}

/* ---------- sources, FAQ, closing ---------- */
.sources{margin-top:14px;display:grid;gap:6px;padding-left:1.3em;list-style:disc;color:var(--text-muted);font-size:.9rem;max-width:60ch}
.sources li::marker{color:var(--accent)}
.article-body .faq summary h3{margin:0}
.recs{margin-top:20px;display:grid;gap:14px;max-width:60ch}
.article-body .recs p{margin:0}
.recs b{color:var(--text)}
.next-panel{margin-top:44px;padding:28px 24px;border-radius:20px;border:1px solid var(--border-hi);background:radial-gradient(ellipse 80% 80% at 50% 120%,rgba(31,121,246,.28),transparent 70%),linear-gradient(180deg,var(--card),var(--bg-soft))}
.article-body .next-panel h3{margin:0 0 6px;font-size:1.4rem}
.next-panel .cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.article-end{padding-bottom:72px}

/* product images in the reviews */
.tool-media{margin:20px 0 4px}
.tool-media picture{display:block}
.tool-media img{width:100%;height:auto;aspect-ratio:16/9;border-radius:14px;border:1px solid var(--border);background:var(--bg-soft)}
.tool-media figcaption{margin-top:8px;color:var(--text-subtle);font-size:.78rem;line-height:1.45;max-width:60ch}

/* quick-pick row for the lead recommendation (Todoist) */
.picks li.pick-top{background:rgba(31,121,246,.06);padding-inline:14px;border-radius:0}

/* click-to-enlarge infographic */
.zoom-btn{position:relative;display:block;width:100%;max-width:420px;margin-inline:auto;border-radius:var(--r);cursor:zoom-in}
.zoom-btn img{width:100%;margin:0;transition:border-color .2s,box-shadow .2s}
.zoom-btn:hover img,.zoom-btn:focus-visible img{border-color:var(--border-hi);box-shadow:0 0 0 3px var(--accent-soft)}
.zoom-hint{position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;gap:6px;padding:7px 12px 7px 9px;border-radius:999px;background:rgba(3,8,18,.82);border:1px solid var(--border);color:var(--text);font-size:.78rem;font-weight:600;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:background .2s,border-color .2s}
.zoom-hint svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.zoom-btn:hover .zoom-hint,.zoom-btn:focus-visible .zoom-hint{background:var(--accent);border-color:var(--accent)}
.zoom-dlg{width:min(920px,100vw);max-width:100vw;max-height:100vh;margin:auto;padding:0;border:0;background:transparent;overflow:visible;color:var(--text)}
.zoom-dlg::backdrop{background:rgba(3,8,18,.96)}
.zoom-dlg:not([open]){display:none}
.zoom-scroll{max-height:100vh;overflow-y:auto;overscroll-behavior:contain;padding:56px 12px 20px;cursor:zoom-out}
.zoom-scroll img{width:100%;height:auto;border-radius:14px;border:1px solid var(--border)}
.zoom-close{position:fixed;top:12px;right:12px;z-index:2;width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:rgba(7,17,31,.9);border:1px solid var(--border);color:var(--text);cursor:pointer;transition:background .2s,border-color .2s}
.zoom-close:hover,.zoom-close:focus-visible{background:var(--accent);border-color:var(--accent)}
.zoom-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
