:is(.editorial-home, .editorial-article) {
  --home-gray: #c9c9cb;
  --home-slate: #394251;
  --home-blue: #3d66ef;
  --home-paper: #f8f8f9;
  --home-panel: #eeeef0;
  --home-rule: #d8d9de;
  margin: 0;
  background: var(--home-paper);
  color: var(--home-slate);
  font-family: system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:is(.editorial-home, .editorial-article) :is(h1, h2, h3) { font-family: inherit; }
:is(.editorial-home, .editorial-article) a { text-decoration: none; }
.home-container { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
:is(.editorial-home, .editorial-article) :is(#guides, #opening, #before-measure, #library, #about) { scroll-margin-top: 20px; }
:is(.editorial-home, .editorial-article) :is(a, input):focus-visible { outline: 2px solid var(--home-blue); outline-offset: 4px; }
.home-mast { border-bottom: 1px solid var(--home-rule); }
.home-mast-inner { display: flex; align-items: center; justify-content: space-between; min-height: 67px; gap: 24px; }
.home-brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-weight: 740; font-size: 17px; letter-spacing: -.04em; }
.home-brand .mark { width: 27px; height: 27px; color: var(--home-blue); }
.home-nav { display: flex; flex-wrap: wrap; gap: 8px clamp(14px, 2.7vw, 34px); align-items: center; font-size: 14px; font-weight: 550; }
.home-nav a:hover, .home-footer a:hover { color: var(--home-blue); }
.home-nav-cta { padding: 8px 14px; border: 1px solid var(--home-rule); border-radius: 100px; white-space: nowrap; font-size: 13px; font-weight: 650; }
.home-nav-cta:hover { border-color: var(--home-blue); color: var(--home-blue); }

.home-intro { text-align: center; padding: clamp(44px, 5vw, 64px) 0 31px; }
.home-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; margin: 0; border-radius: 100px; background: var(--home-panel); font-size: 13px; font-weight: 620; }
.home-chip span { width: 7px; height: 7px; border-radius: 50%; background: var(--home-blue); }
.home-intro h1 { max-width: 860px; margin: 17px auto 13px; font-size: clamp(37px, 6.2vw, 78px); font-weight: 750; line-height: 1.01; letter-spacing: -.067em; }
.home-lead { max-width: 56ch; margin: 0 auto; font-size: clamp(16px, 2vw, 20px); line-height: 1.5; }
.home-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 13px 24px; margin-top: 25px; }
.home-button { display: inline-flex; align-items: center; gap: 14px; border-radius: 100px; padding: 13px 22px; background: var(--home-blue); color: white; font-weight: 680; font-size: 15px; }
.home-button:hover { background: #3056d9; }
.home-text-link { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; font-weight: 670; font-size: 15px; }
.home-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-actions .home-text-link { align-self: center; }
.home-arrow { flex: 0 0 auto; color: var(--home-blue); font-size: 1.15em; line-height: 1; }

.home-cover { position: relative; isolation: isolate; overflow: hidden; margin-block: 0; border-radius: 26px; background: var(--home-gray); }
.home-cover img { display: block; width: 100%; height: clamp(280px, 42vw, 535px); object-fit: cover; object-position: 50% 60%; }
.home-cover figcaption { position: absolute; inset: auto auto 17px 17px; display: flex; align-items: center; gap: 9px; padding: 7px 13px 7px 8px; border: 0; border-radius: 100px; background: #f8f8f9ed; color: var(--home-slate); font-weight: 640; font-size: 13px; }
.home-cover figcaption span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--home-blue); color: white; font-size: 11px; }

.home-section { margin-block-start: clamp(54px, 8vw, 108px); }
.home-section-head { max-width: 680px; margin-bottom: 23px; }
:is(.editorial-home, .editorial-article) h2 { margin: 0; font-size: clamp(34px, 5vw, 61px); font-weight: 720; line-height: 1.04; letter-spacing: -.059em; }
:is(.editorial-home, .editorial-article) h3 { margin: 0; color: inherit; font-weight: 700; letter-spacing: -.025em; }
.home-section-head > p:last-child, .home-demo-copy > p:not(.home-eyebrow), .home-about p:not(.home-eyebrow) { max-width: 56ch; margin: 12px 0 0; line-height: 1.55; }
.home-eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 740; letter-spacing: .12em; }

.home-task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-task { display: block; padding: clamp(18px, 2.8vw, 30px); border: 1px solid var(--home-rule); border-radius: 22px; background: var(--home-panel); }
.home-task:hover { background: #e7eaf7; border-color: #a7b8f4; }
.home-task-top { display: flex; justify-content: space-between; align-items: center; }
.home-task-number { font-size: 12px; font-weight: 720; font-variant-numeric: tabular-nums; }
.home-task svg { display: block; width: 53px; height: 53px; margin: 24px 0 15px; color: var(--home-blue); }
.home-task h3 { font-size: clamp(20px, 2.3vw, 27px); line-height: 1.15; }
.home-task p { margin: 9px 0 0; line-height: 1.45; }

.home-demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(22px, 5vw, 68px); align-items: center; padding: clamp(20px, 4.3vw, 58px); background: var(--home-gray); border-radius: 26px; }
.home-demo-copy > p:not(.home-eyebrow) { margin-bottom: 19px; }
.home-demo .slide-example { min-width: 0; padding: clamp(16px, 2.4vw, 28px); background: var(--home-paper); border-radius: 19px; }
.home-demo .slide-example figcaption { color: var(--home-slate); }
.home-demo .slide-plan { background: var(--home-panel); }
.home-demo .slide-example p { color: var(--home-slate); }
.home-demo .slide-switch span { color: var(--home-slate); border-color: var(--home-rule); }
.home-demo .slide-switch input:checked + span { color: white; background: var(--home-blue); border-color: var(--home-blue); }
.home-demo .slide-track { stroke: #8891a0; }
.home-demo .slide-glass { fill: var(--home-gray); stroke: var(--home-slate); }
.home-demo .slide-leaf { fill: var(--home-blue); }
.home-demo .slide-clear { stroke: var(--home-slate); }

.home-measure-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 17px; padding: 0; list-style: none; border-top: 1px solid var(--home-gray); }
.home-measure-list li { display: flex; gap: 16px; padding: 18px 18px 18px 0; border-bottom: 1px solid var(--home-gray); }
.home-measure-list li > span { font-size: 13px; font-weight: 740; padding-top: 2px; color: var(--home-blue); }
.home-measure-list h3 { font-size: 20px; }
.home-measure-list p { max-width: 43ch; margin: 4px 0 0; line-height: 1.45; }

.home-library-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.home-library-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--home-rule); border-radius: 16px; background: white; }
.home-library-card:hover { border-color: var(--home-blue); }
.home-library-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--home-gray); }
.home-library-card > span { display: flex; justify-content: space-between; gap: 5px; padding: 12px; font-size: 14px; font-weight: 660; line-height: 1.24; }

.home-about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 25px; padding: clamp(20px, 4vw, 48px); border: 1px solid var(--home-rule); border-radius: 26px; background: var(--home-panel); }
.home-about > div + div { align-self: end; padding-top: 5px; }
.home-about h3 { font-size: clamp(22px, 3vw, 30px); line-height: 1.08; }
.home-about .home-text-link { margin-top: 12px; }
.home-footer { margin-top: 42px; border-top: 1px solid var(--home-rule); }
.home-footer-inner { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-block: 20px; font-size: 13px; }
.home-footer-inner a { font-weight: 650; }

@media (max-width: 850px) {
  .home-container { width: calc(100% - 44px); }
  .home-nav-cta { display: none; }
  .home-library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .home-container { width: calc(100% - 32px); }
  .home-mast-inner { flex-wrap: wrap; justify-content: center; padding-block: 12px; gap: 8px 20px; min-height: 0; }
  .home-nav { justify-content: center; gap: 5px 15px; font-size: 13px; }
  .home-title-break, .home-section-head h2 br { display: none; }
  .home-intro { padding: 42px 0 26px; }
  .home-intro h1 { max-width: 480px; }
  .home-cover, .home-demo, .home-about { border-radius: 19px; }
  .home-cover img { height: clamp(235px, 75vw, 360px); object-position: 62% center; }
  .home-cover figcaption { left: 10px; bottom: 10px; font-size: 11px; }
  .home-task-grid, .home-demo, .home-measure-list, .home-about { grid-template-columns: 1fr; }
  .home-task svg { margin-top: 13px; }
  .home-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .home-intro { animation: home-appear 480ms ease-out both; }
  .home-cover { animation: home-appear 640ms ease-out both; }
  .home-task, .home-button, .home-nav-cta, .home-library-card { transition: background-color 180ms, border-color 180ms, transform 180ms; }
  .home-task:hover, .home-library-card:hover { transform: translateY(-3px); }
  @keyframes home-appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}

/* Forum link and shared logomark */
:is(.editorial-home,.editorial-article) .home-mast-inner .home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
  color: #394251;
  font-size: 17px;
  font-weight: 760;
}
.home-brand .site-logomark {
  display: block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
}
.home-mast-inner .forum-entry {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 100px;
  background: #e9edff;
  color: #2548bc;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 710;
}
.home-mast-inner .forum-entry:hover,
.home-mast-inner .forum-entry[aria-current="page"] {
  background: #dbe3ff;
  color: #1f3fa7;
}
@media (max-width: 640px) {
  .home-mast-inner { flex-wrap: wrap; gap: 8px 12px; padding-block: 9px; }
  .home-mast-inner .home-nav { order: 3; flex-basis: 100%; }
  .home-mast-inner .forum-entry { margin-left: auto; }
}
@media (max-width: 385px) {
  .home-mast-inner .home-brand { gap: 6px; font-size: 15px; }
  .home-brand .site-logomark { width: 29px; height: 29px; }
  .home-mast-inner .forum-entry { padding-inline: 9px; font-size: 12px; }
}
@media (max-width: 640px) { .home-mast-inner .home-nav-cta { display: none; } }
