@import url("fonts.css");

/* =========================================================
   TasksHub — task & time management knowledge hub
   Clean modern productivity design · English LTR
   ========================================================= */

:root {
  --teal: #0d9488;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-050: #f0fdfa;
  --teal-100: #ccfbf1;
  --amber: #f59e0b;
  --amber-600: #d97706;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #94a3b8;
  --bg: #f8fafc;
  --surface: #ffffff;
  --mist: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --container: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 4px 12px rgba(15,23,42,.05);
  --shadow-md: 0 10px 30px rgba(13,148,136,.12);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-800); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0 0 1.1em; padding-inline-start: 1.4em; }
li { margin-bottom: .4em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: 1rem;
  padding: .72em 1.5em; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: 0 6px 18px rgba(13,148,136,.28); }
.btn-primary:hover { background: var(--teal-700); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(13,148,136,.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--teal-600); color: var(--teal-700); background: var(--teal-050); }
.btn-amber { background: var(--amber); color: #3a2606; }
.btn-amber:hover { background: var(--amber-600); color: #3a2606; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248,250,252,.82); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 32px; height: 32px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 1rem; }
.nav-links a:hover { color: var(--teal-700); }
.nav-links a.active { color: var(--ink); font-weight: 700; }
.nav-cta { display: flex; align-items: center; gap: .7rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1000px 480px at 15% -10%, rgba(13,148,136,.14), transparent 60%),
    radial-gradient(760px 400px at 92% 6%, rgba(245,158,11,.10), transparent 55%), linear-gradient(180deg,#fff,var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 76px 0 64px; max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--teal-700); background: var(--teal-050); border: 1px solid var(--teal-100); padding: .4em 1em; border-radius: 999px; margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); margin-bottom: .35em; }
.hero h1 .accent { color: var(--teal-600); }
.hero .lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--ink-soft); margin-bottom: 1.9rem; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-stats .stat b { font-size: 1.85rem; font-weight: 800; color: var(--teal-700); display: block; line-height: 1; letter-spacing: -.02em; }
.hero-stats .stat span { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .1em; color: var(--amber-600); text-transform: uppercase; margin-bottom: .7rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { font-size: 1.06rem; color: var(--ink-soft); margin: 0; }
.alt { background: linear-gradient(180deg,#fff,var(--mist)); border-block: 1px solid var(--line); }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.topic-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.topic-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--teal-050); color: var(--teal-700); margin-bottom: 1rem; }
.topic-ic svg { width: 25px; height: 25px; }
.topic-card h3 { font-size: 1.24rem; margin-bottom: .35em; }
.topic-card p { font-size: .97rem; color: var(--ink-soft); margin: 0; }

.article-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg,var(--teal-700),var(--teal-600)); position: relative; }
.article-card .thumb.g2 { background: linear-gradient(135deg,#0f766e,#0ea5e9); }
.article-card .thumb.g3 { background: linear-gradient(135deg,#0d9488,#f59e0b); }
.article-card .thumb.g4 { background: linear-gradient(135deg,#115e59,#14b8a6); }
.article-card .thumb .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.92); }
.article-card .thumb .glyph svg { width: 54px; height: 54px; }
.article-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; font-size: .74rem; font-weight: 700; color: var(--teal-700); background: var(--teal-050); padding: .3em .85em; border-radius: 999px; margin-bottom: .9rem; }
.article-card h3 { font-size: 1.28rem; margin-bottom: .4em; }
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--teal-700); }
.article-card .excerpt { font-size: .96rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.article-meta { margin-top: auto; display: flex; align-items: center; gap: .7rem; font-size: .84rem; color: var(--ink-faint); }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }
.readmore { font-weight: 600; color: var(--teal-700); font-size: .94rem; margin-top: 1rem; display: inline-flex; gap: .3em; }
.readmore:hover { gap: .55em; }

/* ---------- Split / panel ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checklist li { position: relative; padding-inline-start: 2rem; margin-bottom: .9rem; color: var(--ink-soft); }
.checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 20px; height: 20px; border-radius: 6px; background: var(--teal-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat; }
.panel { background: linear-gradient(160deg,var(--teal-700),var(--teal-800)); color: #fff; border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.panel::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.28), transparent 70%); inset-block-start: -70px; inset-inline-end: -50px; }
.panel h3 { color: #fff; font-size: 1.45rem; }
.panel p { color: rgba(255,255,255,.85); }
.panel .mini { display: flex; gap: 1.5rem; margin-top: 1.4rem; position: relative; }
.panel .mini b { font-size: 1.6rem; color: #fde68a; display: block; }
.panel .mini span { font-size: .84rem; color: rgba(255,255,255,.75); }

/* ---------- Glossary ---------- */
.term { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.term h3 { font-size: 1.2rem; margin-bottom: .25em; }
.term p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Prose ---------- */
.article-hero { background: linear-gradient(180deg,#fff,var(--bg)); border-bottom: 1px solid var(--line); }
.article-hero .container { padding-block: 52px 32px; max-width: 800px; }
.breadcrumbs { font-size: .86rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.breadcrumbs a { color: var(--ink-soft); }
.article-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: .4em; }
.article-hero .sub { font-size: 1.18rem; color: var(--ink-soft); }
.byline { display: flex; align-items: center; gap: .8rem; margin-top: 1.3rem; font-size: .88rem; color: var(--ink-faint); }
.prose { max-width: 740px; margin-inline: auto; padding-block: 42px 20px; font-size: 1.08rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.1em; }
.prose h3 { font-size: 1.28rem; margin-top: 1.6em; }
.prose p, .prose li { color: #1e293b; }
.prose blockquote { margin: 1.8em 0; padding: .4em 1.4em; border-inline-start: 4px solid var(--amber); background: var(--teal-050); border-radius: 8px; font-size: 1.15rem; color: var(--teal-800); }
.prose .callout { background: var(--teal-050); border: 1px solid var(--teal-100); border-radius: var(--radius-sm); padding: 20px 24px; margin: 1.8em 0; }
.prose .callout strong { color: var(--teal-700); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; margin: 0 0 2em; box-shadow: var(--shadow-sm); }
.toc b { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.toc ol { margin: .6em 0 0; }
.toc a { color: var(--ink-soft); }
.toc a:hover { color: var(--teal-700); }
.table-wrap { overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
.prose thead th { background: var(--teal-700); color: #fff; font-weight: 700; text-align: start; padding: 13px 16px; font-size: .92rem; }
.prose tbody th { text-align: start; padding: 12px 16px; border-top: 1px solid var(--line); font-weight: 700; color: var(--teal-700); background: var(--teal-050); white-space: nowrap; }
.prose tbody td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; color: #1e293b; }
.prose tbody tr:nth-child(even) td { background: var(--mist); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.08rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--teal-600); font-weight: 400; flex: none; }
.faq details[open] summary { color: var(--teal-700); }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a { padding: 0 22px 20px; color: var(--ink-soft); }
.faq .faq-a p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg,var(--teal-700),var(--teal-800)); color: #fff; border-radius: 22px; padding: 50px 42px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 82% 0%, rgba(245,158,11,.22), transparent 60%); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem,3.2vw,2.3rem); position: relative; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 520px; margin-inline: auto; position: relative; }
.newsletter { display: flex; gap: .6rem; max-width: 470px; margin: 1.7rem auto 0; position: relative; }
.newsletter input { flex: 1; padding: .85em 1.1em; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; font-family: var(--sans); font-size: 1rem; }
.newsletter input::placeholder { color: rgba(255,255,255,.65); }
.newsletter input:focus { outline: none; border-color: #fde68a; background: rgba(255,255,255,.18); }
.form-note { font-size: .82rem; color: rgba(255,255,255,.62); margin-top: .9rem; position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: rgba(255,255,255,.7); padding: 58px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 38px; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer p { font-size: .94rem; color: rgba(255,255,255,.6); }
.footer-col h4 { color: #fff; font-size: .94rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .94rem; }
.footer-col a:hover { color: #5eead4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .84rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #5eead4; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- A11y / search / progress / to-top ---------- */
.skip-link { position: fixed; inset-block-start: -60px; inset-inline-start: 12px; z-index: 200; background: var(--teal-700); color: #fff; padding: .7em 1.2em; border-radius: 0 0 10px 10px; font-weight: 600; transition: inset-block-start .2s ease; }
.skip-link:focus { inset-block-start: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, .btn:focus-visible, button:focus-visible { outline-offset: 3px; }
.progress-bar { position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 100; background: linear-gradient(90deg,var(--teal-600),var(--amber)); transform-origin: left center; transform: scaleX(0); transition: transform .08s linear; }
.to-top { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: var(--teal-700); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-600); }
.to-top svg { width: 22px; height: 22px; }
.search-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.search-btn:hover { background: var(--teal-050); border-color: var(--teal-600); color: var(--teal-700); }
.search-btn svg { width: 20px; height: 20px; }
.search-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(15,23,42,.5); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { width: 100%; max-width: 600px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(-12px); transition: transform .2s; }
.search-overlay.open .search-box { transform: none; }
.search-input-wrap { display: flex; align-items: center; gap: .6rem; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-input-wrap svg { width: 22px; height: 22px; color: var(--ink-faint); flex: none; }
.search-input-wrap input { flex: 1; border: 0; outline: 0; background: transparent; font-family: var(--sans); font-size: 1.12rem; color: var(--ink); }
.search-results { max-height: 54vh; overflow-y: auto; }
.search-results a { display: block; padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--ink); }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover, .search-results a.active { background: var(--teal-050); }
.search-results .r-top { display: flex; align-items: center; gap: .5rem; }
.search-results .r-title { font-weight: 700; }
.search-results .r-tag { font-size: .7rem; font-weight: 700; color: var(--teal-700); background: var(--teal-050); padding: .12em .6em; border-radius: 999px; white-space: nowrap; }
.search-results .r-desc { font-size: .86rem; color: var(--ink-soft); margin-top: 2px; }
.search-empty { padding: 26px 20px; text-align: center; color: var(--ink-faint); }
.search-hint { padding: 10px 20px; font-size: .78rem; color: var(--ink-faint); border-top: 1px solid var(--line); display: flex; gap: 1.2rem; }
.search-hint kbd { background: var(--mist); border: 1px solid var(--line); border-radius: 5px; padding: .1em .5em; font-family: inherit; font-size: .9em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2,1fr); } .split { grid-template-columns: 1fr; gap: 32px; } .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links { display: flex; position: absolute; inset-inline: 0; top: 70px; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 1rem; box-shadow: var(--shadow-md); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
  .newsletter { flex-direction: column; }
  .newsletter .btn { justify-content: center; }
  section { padding: 48px 0; }
  .search-overlay { padding-top: 8vh; }
}
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } .progress-bar, .to-top, .search-overlay, .search-box { transition: none !important; } }
