/* Simple App Works — shared blog design system (Lexend / navy-pastel reskin) */
:root {
  --navy: #2F3470;
  --navy-dark: #1E2150;
  --navy-soft: #3B4185;
  --text: #4F5385;
  --text-light: #5E6290;
  --muted-2: #8D90B5;
  --white: #FFFFFF;
  --yellow: #FBEFC0;
  --yellow-deep: #F8E6A6;
  --pink: #F8D9D6;
  --pink-deep: #F2C9B8;
  --blue: #CFE6F2;
  --blue-deep: #BFE0EF;
  --lavender: #E2E3F7;
  --lavender-deep: #D3D5F2;
  --lavender-deep2: #C9CBF2;
  --peach: #FDEDE4;
  --peach-deep: #FBE0D2;
  --mint: #D7EDE6;
  --bg-soft: #F7F6FB;
  --border-soft: #EEEDF6;
  --chip-bg: #F1F0F8;
  --compare-bg: #EAF4FA; --compare-dot: #8EC5DE;
  --psych-bg: #F1F1FB; --psych-dot: #A9ACE6;
  --use-bg: #FDF7DD; --use-dot: #E8C766;
  --font: 'Lexend', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  overflow-x: hidden;
}
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
button { font-family: inherit; cursor: pointer; border: none; margin: 0; background: none; }
img { max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.lift { transition: transform .18s ease, box-shadow .18s ease; }
.lift:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(47,52,112,0.12); }

/* ---------- Site nav ---------- */
.site-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-nav a.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
}
.site-nav .links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav .links a {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--navy);
  border-radius: 22px;
}
.site-nav .links a[aria-current="page"] {
  padding: 10px 16px;
  background: var(--lavender);
  font-weight: 600;
}
.site-nav .links a.btn-contact {
  margin-left: 6px;
  padding: 12px 20px;
  border-radius: 24px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}
.site-nav .links a.btn-contact:hover { background: var(--navy-dark); color: var(--white); }

.logo-mark { display: block; flex-shrink: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}
.breadcrumb a { color: var(--text-light); text-decoration: none; padding: 6px 0; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { width: 14px; height: 14px; flex-shrink: 0; }
.breadcrumb span[aria-current="page"] { color: var(--text-light); }

/* ---------- Buttons / pills ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 26px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy); box-shadow: 0 0 0 1.5px var(--lavender-deep) inset; }
.btn-secondary:hover { color: var(--navy-dark); }
.btn-disabled {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 22px;
  border-radius: 26px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 0 1.5px var(--pink-deep) inset;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  background: var(--lavender);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* ---------- Category pills (per-topic) ---------- */
.category-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}
.category-pill.cat-compare { background: var(--blue); }
.category-pill.cat-psych { background: var(--lavender); }
.category-pill.cat-use { background: var(--yellow); }

/* ---------- Icon badges ---------- */
.icon {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 23px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.icon-badge .icon { width: 22px; height: 22px; }
.icon-badge-lg { width: 56px; height: 56px; border-radius: 18px; }
.icon-badge-lg .icon { width: 26px; height: 26px; }

/* ---------- Hero sections (index pages) ---------- */
.hero { position: relative; overflow: hidden; }
.blob { position: absolute; pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 48px 24px 56px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.6px; color: var(--text-light); }
.hero-inner h1 {
  margin: 12px 0 0;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -1.4px;
  color: var(--navy);
}
.hero-inner p.lede {
  margin: 18px 0 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}

/* ---------- Page header (generic) ---------- */
header.page-header { margin: 0; }
header.page-header h1 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--navy);
}
header.page-header p.lede {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  max-width: 600px;
}
header.page-header p.lede a { color: var(--navy); text-decoration: underline; }

/* ---------- Section grouping ---------- */
.group-heading-row { display: flex; align-items: center; gap: 12px; margin: 44px 0 0; }
.group-heading-row:first-of-type { margin-top: 8px; }
.group-dot { width: 12px; height: 12px; border-radius: 6px; flex-shrink: 0; }
.group-heading {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--navy);
}

/* ---------- Article hero + layout ---------- */
.article-hero { position: relative; max-width: 820px; margin: 0 auto; padding: 24px 24px 48px; text-align: center; }
.article-hero .breadcrumb { justify-content: center; }
.article-hero .category-pill { margin-top: 18px; }
.article-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--navy);
}
.article-hero p.lede {
  margin: 18px auto 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}
.byline {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
  color: var(--text-light);
}
.byline .byline-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; }

.article-layout {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 64px;
}
.article-layout > article.post { flex: 999 1 560px; min-width: 0; max-width: 720px; }
.article-layout > aside.sidebar { flex: 1 1 260px; min-width: 0; }

/* ---------- Article typography ---------- */
article.post {
  font-size: 17px;
  line-height: 1.75;
  color: #3B3F72;
}
article.post h2 {
  margin: 44px 0 0;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--navy);
  scroll-margin-top: 90px;
}
article.post h3 {
  margin: 28px 0 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
}
article.post p { margin: 14px 0 0; }
article.post p:first-child { margin-top: 0; }
article.post ul, article.post ol { margin: 14px 0 0; padding-left: 22px; }
article.post li { margin-bottom: 8px; }
article.post a { color: var(--navy); text-decoration: underline; }
article.post strong { color: var(--navy); }

/* Quick-answer callout (mint) */
.answer-box {
  border-radius: 28px;
  background: var(--mint);
  padding: 26px 28px;
  color: var(--navy);
}
.answer-box .answer-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}
.answer-box .answer-label .icon { width: 16px; height: 16px; }
.answer-box p {
  margin: 10px 0 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--navy);
}

/* Comparison / roundup cards */
.app-card {
  position: relative;
  border-radius: 24px;
  background: var(--bg-soft);
  padding: 24px;
  margin: 24px 0 0;
  overflow: hidden;
}
.app-card .tag {
  display: inline-block;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  background: var(--white);
  border-radius: 20px;
  padding: 4px 12px;
  margin: 0 6px 10px 0;
}
.app-card p { color: var(--text); font-size: 15px; line-height: 1.6; margin: 10px 0 0; }

/* Compare table */
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 20px 0 0; border-radius: 16px; overflow: hidden; }
.compare-table th, .compare-table td { border: 1px solid var(--border-soft); padding: 12px 14px; text-align: left; color: var(--text); }
.compare-table th { color: var(--navy); font-weight: 700; background: var(--lavender); }
.compare-table td.muted { color: var(--muted-2); }

/* Inline screenshot framing */
.post-img-side {
  display: block;
  width: 220px;
  max-width: 42%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 44px -12px rgba(47,52,112,0.25);
  margin: 4px 0 16px 28px;
  float: right;
  background: var(--white);
  padding: 6px;
}
.post-img-side.img-left { float: left; margin: 4px 28px 16px 0; }
.post-img-side.img-sm { width: 160px; max-width: 36%; }
article.post h2, article.post h3 { clear: both; }
.img-clearfix { overflow: hidden; }

/* CTA band (dark navy) */
.cta {
  position: relative;
  overflow: hidden;
  margin: 48px 0 0;
  border-radius: 32px;
  background: var(--navy);
  color: var(--white);
  padding: 36px 32px;
}
.cta .blob { background: var(--navy-soft); }
.cta h3 {
  position: relative;
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--white);
}
.cta p {
  position: relative;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--lavender-deep);
}
.cta .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  height: 52px;
  padding: 0 22px;
  border-radius: 26px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.cta .btn:hover { background: var(--yellow-deep); color: var(--navy); }
.cta .btn svg path { fill: var(--navy); }

/* Sidebar (TOC + try card) */
aside.sidebar { display: flex; flex-direction: column; gap: 16px; }
nav.toc { border-radius: 26px; background: var(--bg-soft); padding: 22px; }
nav.toc .toc-label { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: var(--text-light); }
nav.toc .toc-links { margin-top: 10px; display: flex; flex-direction: column; }
nav.toc .toc-links a { padding: 8px 0; font-size: 14px; line-height: 1.4; text-decoration: none; color: var(--navy); }
nav.toc .toc-links a:hover { color: var(--navy-dark); text-decoration: underline; }
.try-card { border-radius: 26px; background: var(--peach); padding: 22px; }
.try-card .try-title { font-size: 15px; font-weight: 700; color: var(--navy); }
.try-card p { margin: 6px 0 12px; font-size: 13px; line-height: 1.55; color: var(--text); }
.try-card a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.try-card a:hover { background: var(--navy-dark); color: var(--white); }

/* Keep reading section */
.keep-reading { background: var(--bg-soft); }
.keep-reading .container { padding-top: 64px; padding-bottom: 64px; }
.keep-reading h2 { margin: 0; font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; letter-spacing: -0.5px; color: var(--navy); }
.keep-reading-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.keep-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 28px;
  background: var(--white);
  text-decoration: none;
  color: var(--navy);
}
.keep-card .kicker { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--text-light); }
.keep-card .title { font-size: 18px; line-height: 1.35; font-weight: 700; }
.keep-card.all-articles {
  background: var(--lavender);
  justify-content: space-between;
}
.keep-card.all-articles .arrow-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.keep-card.all-articles .arrow-link .icon { width: 16px; height: 16px; }

/* ---------- Post list (blog hub / thin-launcher hub rows) ---------- */
.post-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.post-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 0 0 1.5px var(--border-soft) inset;
  text-decoration: none;
  color: var(--navy);
}
.post-row .row-icon {
  width: 64px; height: 64px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.post-row .row-icon .icon { width: 26px; height: 26px; }
.post-row .row-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.post-row .row-body .kicker { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--text-light); }
.post-row .row-body .title { font-size: 17px; line-height: 1.35; font-weight: 600; }
.post-row .row-arrow { flex-shrink: 0; width: 20px; height: 20px; }

/* Topic cards grid (blog hub) */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 22px; }
.topic-card {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: 32px;
  text-decoration: none;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  box-sizing: border-box;
}
.topic-card .top-row { position: relative; display: flex; justify-content: space-between; align-items: center; }
.topic-card .name { position: relative; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.topic-card .desc { position: relative; font-size: 15px; line-height: 1.6; color: var(--text); max-width: 420px; }
.topic-card .spacer { flex: 1 1 0; }
.topic-card .browse { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.topic-card .browse .icon { width: 18px; height: 18px; }

/* Filter pills (thin-launcher hub) */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  background: var(--chip-bg);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}
.filter-pill[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.filter-pill .count { opacity: 0.7; font-weight: 500; }

/* Post grid cards (grouped sections) */
.post-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 28px;
  text-decoration: none;
  color: var(--navy);
  min-height: 200px;
  box-sizing: border-box;
}
.post-card .top-row { display: flex; align-items: center; justify-content: space-between; }
.post-card .card-date { font-size: 12px; font-weight: 500; color: var(--text); }
.post-card .card-title { font-size: 19px; line-height: 1.32; font-weight: 700; }
.post-card .card-desc { font-size: 14px; line-height: 1.55; color: var(--text); }
.post-card .spacer { flex: 1 1 0; }
.post-card .read-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.post-card .read-link .icon { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
footer.site-footer { border-top: 1px solid var(--border-soft); margin-top: 56px; }
footer.site-footer .footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--text-light);
}
footer.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
footer.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer.site-footer .footer-links a { padding: 8px 0; text-decoration: none; color: var(--text-light); }
footer.site-footer .footer-links a:hover { color: var(--navy); }

/* ---------- Layout helpers ---------- */
.flex-wrap-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .article-layout > aside.sidebar { flex: 1 1 100%; }
}
@media (max-width: 640px) {
  .post-img-side { float: none; width: 100%; max-width: 280px; margin: 0 auto 20px; }
  .site-nav .links a:not(.btn-contact) { padding: 10px 10px; }
  .cta { padding: 28px 22px; }
  .hero-inner { padding: 32px 20px 40px; }
}
@media (max-width: 480px) {
  header.page-header h1 { font-size: 28px; }
  .breadcrumb { font-size: 13px; }
}
