/* Configure & Own — public homepage. Neutral, factual, catalogue-first. */
.home-page {
  --home-bg: #f8f8f6;
  --home-surface: #ffffff;
  --home-surface-soft: #f2f2ef;
  --home-ink: #161716;
  --home-muted: #676b68;
  --home-line: #dcded9;
  --home-line-strong: #c9cbc5;
  --home-accent: #315cf4;
  --home-accent-strong: #2348c7;
  --home-dark: #181a19;
  --home-content: 1180px;
  background: var(--home-bg);
  color: var(--home-ink);
}

.home-page .page-shell,
.home-page .header-inner,
.home-page .footer-inner {
  width: min(calc(100% - 40px), var(--home-content));
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p { text-wrap: pretty; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.home-header {
  border-bottom: 1px solid rgba(22, 23, 22, .08);
  background: rgba(248, 248, 246, .92);
  backdrop-filter: blur(18px);
}
.home-header .header-inner { min-height: 72px; }
.home-brand { gap: 11px; font-weight: 760; letter-spacing: -.025em; }
.home-brand-symbol {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--home-ink);
  border-radius: 10px;
  color: var(--home-ink);
  background: transparent;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.055em;
}
.home-brand-name { white-space: nowrap; }
.home-nav { gap: 22px; }
.home-nav a { color: #5e625f; font-weight: 650; }
.home-nav .home-nav-cta { color: white; padding-inline: 16px; background: var(--home-dark); }
.home-nav .home-nav-cta:hover { background: #2a2d2b; }

.home-hero { padding: 104px 0 88px; }
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(54px, 7vw, 104px);
  align-items: center;
}
.home-overline,
.home-section-label,
.home-package-kicker,
.home-boundary-label {
  margin: 0;
  color: #6d716e;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.home-hero h1 {
  max-width: 760px;
  margin: 17px 0 0;
  font-size: clamp(3.5rem, 7.7vw, 7.1rem);
  line-height: .91;
  letter-spacing: -.072em;
  font-weight: 790;
}
.home-intro {
  max-width: 690px;
  margin: 30px 0 0;
  color: var(--home-muted);
  font-size: clamp(1.04rem, 1.5vw, 1.22rem);
  line-height: 1.68;
}
.home-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 31px;
}
.home-page .button {
  background: var(--home-dark);
  border-radius: 10px;
}
.home-page .button:hover { background: #2a2d2b; }
.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--home-ink);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 720;
}
.home-text-link span { transition: transform .18s ease; }
.home-text-link:hover span { transform: translateX(3px); }
.home-fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 38px;
}
.home-fact-row span {
  padding: 7px 10px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .56);
  color: #5e625f;
  font-size: .77rem;
  font-weight: 660;
}

.home-package-preview {
  overflow: hidden;
  border: 1px solid var(--home-line-strong);
  border-radius: 20px;
  background: var(--home-surface);
  box-shadow: 0 28px 80px rgba(22, 23, 22, .075);
}
.home-package-preview-head {
  min-height: 84px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--home-line);
}
.home-package-preview-head > div { display: grid; gap: 5px; }
.home-package-preview-head strong { font-size: .94rem; font-weight: 760; }
.home-package-kicker { font-size: .65rem; }
.home-package-status {
  padding: 7px 9px;
  border: 1px solid #c9d2ff;
  border-radius: 999px;
  background: #f1f4ff;
  color: #3450b8;
  font-size: .68rem;
  font-weight: 780;
}
.home-package-tree { padding: 12px 0; }
.home-package-tree > div {
  min-height: 54px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #eeeeea;
}
.home-package-tree > div:last-child { border-bottom: 0; }
.home-package-tree code {
  color: #2b2d2c;
  font: 650 .78rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.home-package-tree small { color: #8a8e8a; font-size: .68rem; }
.home-file-token {
  width: 31px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--home-line);
  border-radius: 7px;
  color: #555a56;
  background: #fafaf8;
  font-size: .58rem;
  font-weight: 850;
}
.home-file-token.html { color: #8a4e22; }
.home-file-token.css { color: #3150ac; }
.home-file-token.js { color: #75631f; }
.home-file-token.asset { color: #4e6355; }
.home-package-preview-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--home-line);
  background: #fafaf8;
}
.home-package-preview-foot span {
  min-height: 68px;
  padding: 15px 12px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #656a66;
  font-size: .69rem;
  line-height: 1.4;
  font-weight: 660;
}
.home-package-preview-foot span + span { border-left: 1px solid var(--home-line); }

.home-scope-section { padding: 0 0 92px; }
.home-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 20px;
  background: var(--home-surface);
}
.home-scope-card { padding: clamp(32px, 4vw, 50px); }
.home-scope-card + .home-scope-card { border-left: 1px solid var(--home-line); }
.home-scope-card-muted { background: #f1f1ed; }
.home-scope-card h2 {
  max-width: 520px;
  margin: 13px 0 17px;
  font-size: clamp(1.75rem, 3.4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.home-scope-card p:not(.home-section-label) {
  max-width: 60ch;
  margin: 0;
  color: var(--home-muted);
  line-height: 1.7;
}
.home-scope-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.home-scope-points span {
  padding: 7px 10px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: var(--home-surface);
  color: #565b57;
  font-size: .75rem;
  font-weight: 700;
}
.home-scope-card .home-text-link { margin-top: 24px; }

.home-section { padding: 92px 0; }
.home-components-section { border-top: 1px solid var(--home-line); }
.home-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 35px;
}
.home-section-heading.narrow { display: block; max-width: 720px; }
.home-section-heading h2,
.home-output-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(2.35rem, 5.25vw, 5rem);
  line-height: .98;
  letter-spacing: -.058em;
}
.home-section-heading > div > p:last-child,
.home-section-heading.narrow > p:last-child {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--home-muted);
  line-height: 1.65;
}
.home-catalog-total {
  min-width: 138px;
  padding-bottom: 7px;
  display: grid;
  justify-items: end;
  color: #777b78;
}
.home-catalog-total strong { color: var(--home-ink); font-size: 1.72rem; line-height: 1; letter-spacing: -.04em; }
.home-catalog-total span { margin-top: 5px; font-size: .72rem; }

.home-catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 210px auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--home-line);
  border-radius: 16px;
  background: var(--home-surface);
}
.home-search-field,
.home-filter-field { min-width: 0; }
.home-search-field {
  position: relative;
  display: block;
}
.home-search-field svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: #7a7f7b;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.home-search-field input,
.home-filter-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: #fbfbf9;
  color: var(--home-ink);
  outline: none;
}
.home-search-field input { padding: 0 14px 0 40px; }
.home-filter-field { display: grid; gap: 6px; }
.home-filter-field > span {
  padding-left: 2px;
  color: #777c78;
  font-size: .66rem;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.home-filter-field select { padding: 0 34px 0 12px; }
.home-search-field input:focus,
.home-filter-field select:focus {
  border-color: #8ea2ef;
  box-shadow: 0 0 0 3px rgba(49, 92, 244, .10);
}
.home-clear-filters {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: transparent;
  color: #575c58;
  font-weight: 700;
  cursor: pointer;
}
.home-clear-filters:hover:not(:disabled) { background: #f4f4f1; }
.home-clear-filters:disabled { opacity: .42; cursor: default; }
.home-catalog-meta {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-catalog-meta p { margin: 0; color: #7a7f7b; font-size: .78rem; }

.home-component-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.home-component-card[hidden],
.home-component-card.is-catalog-hidden {
  display: none !important;
}
.home-component-card {
  min-width: 0;
  min-height: 320px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--home-line);
  border-radius: 16px;
  background: var(--home-surface);
  transition: border-color .18s ease, transform .18s ease;
}
.home-component-card:hover { border-color: #bcbfb9; transform: translateY(-2px); }
.home-component-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.home-component-category {
  display: block;
  margin-bottom: 10px;
  color: #777c78;
  font-size: .66rem;
  font-weight: 780;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.home-component-card h3 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.home-component-number { color: #a1a5a1; font: 700 .7rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.home-component-card > p {
  margin: 22px 0 0;
  color: var(--home-muted);
  font-size: .9rem;
  line-height: 1.65;
}
.home-component-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 26px;
}
.home-component-tags span {
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--home-surface-soft);
  color: #676c68;
  font-size: .67rem;
  font-weight: 690;
}
.home-component-card-foot {
  margin-top: 17px;
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eeeeea;
}
.home-component-card-foot > span { color: #989c98; font-size: .64rem; letter-spacing: .03em; }
.home-component-card-foot a {
  color: var(--home-ink);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 760;
}
.home-component-card-foot a:hover { color: var(--home-accent); }
.home-empty-state {
  padding: 44px 20px;
  border: 1px dashed var(--home-line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, .45);
  text-align: center;
}
.home-empty-state strong { display: block; }
.home-empty-state span { display: block; margin-top: 8px; color: var(--home-muted); font-size: .86rem; }

.home-pagination {
  min-height: 48px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.home-page-button {
  min-width: 38px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--home-line);
  border-radius: 9px;
  background: var(--home-surface);
  color: #555a56;
  font-size: .76rem;
  font-weight: 720;
  cursor: pointer;
}
.home-page-button:hover:not(:disabled) { border-color: #aeb2ad; background: #f4f4f1; }
.home-page-button.is-current { border-color: var(--home-dark); background: var(--home-dark); color: white; }
.home-page-button:disabled { opacity: .42; cursor: default; }
.home-page-ellipsis { min-width: 24px; text-align: center; color: #8b8f8b; }

.home-process-section { border-top: 1px solid var(--home-line); background: #f1f1ed; }
.home-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid var(--home-line-strong);
  border-bottom: 1px solid var(--home-line-strong);
}
.home-process-step { padding: 28px 26px 31px 0; }
.home-process-step + .home-process-step { padding-left: 26px; border-left: 1px solid var(--home-line-strong); }
.home-process-step > span { display: block; margin-bottom: 46px; color: #929692; font: 700 .68rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.home-process-step h3 { margin: 0 0 9px; font-size: 1.06rem; }
.home-process-step p { margin: 0; color: var(--home-muted); font-size: .85rem; line-height: 1.65; }

.home-output-section { background: var(--home-dark); color: white; }
.home-output-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(54px, 8vw, 108px);
  align-items: center;
}
.home-output-copy .home-section-label { color: #a6b4ef; }
.home-output-copy h2 { color: white; }
.home-output-copy > p:not(.home-section-label) { max-width: 660px; margin: 24px 0 0; color: #b5bab6; line-height: 1.72; }
.home-output-facts { margin: 38px 0 0; }
.home-output-facts > div {
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .11);
}
.home-output-facts > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .11); }
.home-output-facts dt { color: #818782; font-size: .72rem; }
.home-output-facts dd { margin: 0; color: #e8ebe8; font-size: .85rem; }
.home-output-boundary {
  padding: 31px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}
.home-boundary-label { color: #979d98; font-size: .67rem; }
.home-output-boundary ul { list-style: none; padding: 0; margin: 24px 0 0; }
.home-output-boundary li {
  position: relative;
  padding: 13px 0 13px 25px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  color: #d6dad6;
  font-size: .86rem;
  line-height: 1.5;
}
.home-output-boundary li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .09); }
.home-output-boundary li::before { content: "—"; position: absolute; left: 0; color: #7e857f; }
.home-output-boundary p { margin: 22px 0 0; color: #858b86; font-size: .78rem; line-height: 1.6; }

.home-standard-section { border-bottom: 1px solid var(--home-line); }
.home-standard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.home-standard-grid article { padding: 23px; border: 1px solid var(--home-line); border-radius: 14px; background: rgba(255, 255, 255, .55); }
.home-standard-grid article > span { color: #a1a5a1; font: 700 .66rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.home-standard-grid h3 { margin: 31px 0 8px; font-size: 1rem; }
.home-standard-grid p { margin: 0; color: var(--home-muted); font-size: .84rem; line-height: 1.62; }

.home-end-section { padding: 80px 0 86px; }
.home-end-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.home-end-inner h2 { max-width: 850px; margin: 10px 0 0; font-size: clamp(2.55rem, 5.3vw, 5.2rem); line-height: .98; letter-spacing: -.058em; }

.home-footer {
  padding: 58px 0 28px;
  border-top: 1px solid var(--home-line);
  background: #f1f1ed;
}
.home-footer .footer-inner { border-top: 0; padding-top: 0; }
.home-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(145px, .7fr));
  gap: 42px;
}
.home-footer-brand .home-brand { display: inline-flex; }
.home-footer-brand p { max-width: 340px; margin: 18px 0 0; color: #737873; font-size: .8rem; line-height: 1.6; }
.home-footer-column { display: grid; align-content: start; gap: 10px; }
.home-footer-column strong { margin-bottom: 6px; color: #3d423e; font-size: .74rem; }
.home-footer-column a,
.home-footer-column > span {
  color: #747975;
  text-decoration: none;
  font-size: .76rem;
  line-height: 1.45;
}
.home-footer-column a:hover { color: var(--home-ink); }
.home-footer-column small {
  display: inline-block;
  margin-left: 5px;
  color: #a0a49f;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.home-footer-bottom {
  margin-top: 42px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--home-line);
  color: #919591;
  font-size: .7rem;
}

@media (max-width: 1060px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-package-preview { max-width: 720px; }
  .home-component-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-catalog-toolbar { grid-template-columns: minmax(240px, 1fr) 1fr 1fr; }
  .home-clear-filters { grid-column: 1 / -1; justify-self: end; min-height: 38px; }
  .home-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-process-step:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--home-line-strong); }
  .home-process-step:nth-child(4) { border-top: 1px solid var(--home-line-strong); }
  .home-output-grid { grid-template-columns: 1fr; }
  .home-output-boundary { max-width: 650px; }
  .home-standard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-footer-grid { grid-template-columns: 1.25fr repeat(2, 1fr); }
  .home-footer-column:last-child { grid-column: 2 / 4; }
}

@media (max-width: 760px) {
  .home-page .page-shell,
  .home-page .header-inner,
  .home-page .footer-inner { width: min(calc(100% - 24px), var(--home-content)); }
  .home-header .header-inner { min-height: 64px; }
  .home-brand-symbol { width: 32px; height: 32px; border-radius: 9px; }
  .home-nav > a:not(.home-nav-cta) { display: none; }
  .home-nav .home-nav-cta { display: inline-flex; }
  .home-hero { padding: 70px 0 62px; }
  .home-hero-grid { gap: 48px; }
  .home-hero h1 { font-size: clamp(3.15rem, 15vw, 5rem); }
  .home-intro { margin-top: 24px; }
  .home-fact-row { margin-top: 30px; }
  .home-package-preview-head { min-height: 76px; }
  .home-package-preview-foot { grid-template-columns: 1fr; }
  .home-package-preview-foot span { min-height: 45px; }
  .home-package-preview-foot span + span { border-left: 0; border-top: 1px solid var(--home-line); }

  .home-scope-section { padding-bottom: 68px; }
  .home-scope-grid { grid-template-columns: 1fr; }
  .home-scope-card + .home-scope-card { border-left: 0; border-top: 1px solid var(--home-line); }

  .home-section { padding: 70px 0; }
  .home-section-heading { display: block; }
  .home-catalog-total { margin-top: 22px; justify-items: start; }
  .home-catalog-toolbar { grid-template-columns: 1fr; padding: 11px; }
  .home-clear-filters { grid-column: auto; justify-self: stretch; }
  .home-component-grid { grid-template-columns: 1fr; }
  .home-component-card { min-height: 285px; }

  .home-process-grid { grid-template-columns: 1fr; }
  .home-process-step,
  .home-process-step + .home-process-step { padding: 24px 0 27px; border-left: 0; border-top: 1px solid var(--home-line-strong); }
  .home-process-step:first-child { border-top: 0; }
  .home-process-step > span { margin-bottom: 22px; }

  .home-output-facts > div { grid-template-columns: 82px 1fr; gap: 14px; }
  .home-output-boundary { padding: 24px; }
  .home-standard-grid { grid-template-columns: 1fr; }
  .home-standard-grid h3 { margin-top: 22px; }
  .home-end-section { padding: 65px 0 70px; }
  .home-end-inner { align-items: flex-start; flex-direction: column; gap: 25px; }

  .home-footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 28px; }
  .home-footer-brand { grid-column: 1 / -1; }
  .home-footer-column:last-child { grid-column: auto; }
  .home-footer-bottom { flex-direction: column; gap: 7px; }
}

@media (max-width: 480px) {
  .home-brand-name { font-size: .9rem; }
  .home-nav .home-nav-cta { min-height: 36px; padding-inline: 13px; }
  .home-package-tree > div { grid-template-columns: 32px 1fr; }
  .home-package-tree small { display: none; }
  .home-pagination { justify-content: flex-start; }
  .home-page-button { min-width: 36px; min-height: 36px; padding-inline: 9px; }
  .home-page-button:first-child,
  .home-page-button:last-child { flex: 1 1 auto; }
  .home-footer-grid { grid-template-columns: 1fr; }
  .home-footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .home-component-card,
  .home-text-link span { transition: none !important; }
}
