/* Inforcely page CSS: only what sits inside a visual (the drawn product windows and cards), one --p-h per
   card group and a few layout rules the kit names as page CSS. Tokens, grid, type and buttons come from
   assets/system.css. Every name and figure in the drawn windows is fictional. */

/* ---------- drawn product UI (windows, cards, chips) ---------- */
.d-win { background: #fff; color: #1f3038; border-radius: 12px; overflow: hidden; font: 400 14px/1.4 var(--font-text);
  box-shadow: 0 0 0 1px rgb(31 48 56 / .08), 0 30px 70px -34px rgb(31 48 56 / .45); }
.d-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(31 48 56 / .08); font-size: 13px; color: #5d6b72; white-space: nowrap; }
.d-win__bar b { color: #1f3038; font-weight: 500; }
.d-win__dots { display: flex; gap: 6px; } .d-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dbe2e5; }
.d-win__body { display: grid; grid-template-columns: 160px 1fr; min-height: 420px; }
.d-side { padding: 14px 10px; border-right: 1px solid rgb(31 48 56 / .08); display: grid; align-content: start; gap: 2px; font-size: 13px; color: #4a5a61; }
.d-side > span { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 6px; white-space: nowrap; }
.d-side > span.is-on { background: rgb(31 48 56 / .06); color: #1f3038; font-weight: 500; }
.d-side > span i { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: .28; flex: none; }
.d-side .d-side__label { font-size: 13px; color: #7a878d; height: 26px; margin-top: 8px; }
.d-main { padding: 16px 18px; display: grid; align-content: start; gap: 12px; min-width: 0; }
.d-main__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d-main__head h4 { font: 500 16px/1.2 var(--font-text); letter-spacing: -0.01em; margin: 0; color: inherit; }
.d-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; background: #1f3038; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.d-tabs { display: flex; gap: 4px; font-size: 13px; } .d-tabs span { padding: 4px 10px; border-radius: 99px; color: #5d6b72; white-space: nowrap; }
.d-tabs span.is-on { background: rgb(31 48 56 / .07); color: #1f3038; font-weight: 500; }
.d-rows { display: grid; border-top: 1px solid rgb(31 48 56 / .08); }
.d-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 72px 104px; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid rgb(31 48 56 / .08); font-size: 13px; }
.d-row b { display: block; font-weight: 500; color: #1f3038; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row small { display: block; color: #66757c; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; color: #1f3038; }
.d-thumb { width: 36px; display: block; color: #5d6b72; font: 500 12px/1 var(--font-mono); }
.d-chip { justify-self: end; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 13px; font-weight: 500; background: #e3f2ee; color: #17614f; white-space: nowrap; }
.d-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.d-chip--low { background: #fbefda; color: #845000; }
.d-chip--out { background: #fae5e2; color: #a02a1d; }
.d-chip--plain { background: #e9eef1; color: #3d4f57; }
.d-card { background: #fff; color: #1f3038; border-radius: 12px; padding: 14px 16px; font: 400 14px/1.4 var(--font-text); text-align: left;
  box-shadow: 0 0 0 1px rgb(31 48 56 / .07), 0 18px 40px -22px rgb(31 48 56 / .45); }
.d-card h5 { margin: 0 0 4px; font: 500 14px/1.3 var(--font-text); }
.d-card p { margin: 0; color: #5d6b72; font-size: 13px; }
.d-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #3d4f57; border-top: 1px solid rgb(31 48 56 / .07); }
.d-card__row + .d-note__line { margin-top: 6px; }
.d-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e3f2ee; color: #17614f; font-style: normal; font-size: 12px; font-weight: 700; }
.d-note__line i.warn { background: #fbefda; color: #845000; }
.d-note__line b { font-weight: 500; color: #1f3038; }
.d-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; border-top: 1px solid rgb(31 48 56 / .07); font-size: 13px; color: #3d4f57; }
.d-opt b { font-weight: 500; color: #1f3038; }
.d-opt em { font-style: normal; color: #5d6b72; text-align: right; }
@media (max-width: 639px) {
  .d-win__body { grid-template-columns: 1fr; } .d-side { display: none; }
  .d-row { grid-template-columns: 36px minmax(0, 1fr) 96px; } .d-row .num { display: none; }
}

/* ---------- the hero's art frame: the silk ground, the findings window, the options card ---------- */
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
.ly-piece--main .d-main { padding-right: var(--ly-cut-room); }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }

/* ---------- nav menu cards ---------- */
.menu-card .panel.nav-pic { --p-h: 168px; background: var(--ground-bg, #c6d3df); }
.nav-pic .at-corner { --ax: 24px; --ay: 24px; }
.nav-pic__card { width: 260px; }

/* ---------- the app frame (sections-library.md, app-frame) ---------- */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.app .app__pane--open { padding: 24px 28px 0; }
.app .app__pane--open > .ui-doc { max-width: 720px; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
  .app .app__pane--open { padding: 16px 16px 0; }
}

/* ---------- how it works: three step cards on the fluted-glass ground ---------- */
#how .panel { --p-h: 336px; }
#how .ui-files { --fit-max: 340px; }
@media (max-width: 639px) { #how .panel { --p-h: 300px; } #how { --hm: 2; } #how .card + .card { margin-top: var(--s-6); } }

/* ---------- advisors: the report in a split frame ---------- */
.d-report { width: 520px; background: #fff; color: #1f3038; border-radius: 12px; overflow: hidden; font: 400 14px/1.45 var(--font-text);
  box-shadow: 0 0 0 1px rgb(31 48 56 / .08), 0 30px 70px -34px rgb(31 48 56 / .45); }
.d-report__brand { display: flex; align-items: center; gap: 10px; padding: 18px 24px; background: #23413a; color: #f3f6f4; font-size: 13px; }
.d-report__brand b { font: 500 15px/1 var(--font-display); letter-spacing: -0.01em; }
.d-report__brand i { width: 22px; height: 22px; border-radius: 6px; background: #c9a45a; flex: none; }
.d-report__body { padding: 22px 24px; display: grid; gap: 14px; }
.d-report__title { font: 400 26px/1.15 var(--font-display); letter-spacing: -0.02em; margin: 0; }
.d-report__meta { color: #5d6b72; font-size: 13px; margin: 0; }
.d-report__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 0; border-block: 1px solid rgb(31 48 56 / .08); }
.d-report__facts span { display: grid; gap: 2px; font-size: 13px; color: #5d6b72; }
.d-report__facts b { font: 500 20px/1.2 var(--font-text); color: #1f3038; font-variant-numeric: tabular-nums; }
.d-report__h { font-size: 13px; font-weight: 500; color: #1f3038; margin: 0; }
@media (max-width: 639px) { .d-report { width: 400px; } }

/* ---------- trust: the list beside the lanes diagram ---------- */
.trust-list { display: grid; margin-bottom: 0; padding: 0; list-style: none; }
.trust-list li { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.trust-list li:first-child { border-top: 1px solid var(--line); }
#trust .panel { --p-h: 500px; }
@media (max-width: 639px) { #trust .panel { --p-h: 560px; } }

/* ---------- companies: the census window in a wide frame ---------- */
.d-census { width: 100%; }
.d-census .d-row { grid-template-columns: 92px minmax(0, 1fr) 96px 168px; }
.d-census .d-row--head { font-size: 13px; color: #66757c; padding-block: 6px; }
.d-census .d-row code { font: 400 13px/1 var(--font-mono); color: #3d4f57; }
@media (max-width: 639px) { .d-census { width: 100%; }
.d-census .d-row { grid-template-columns: minmax(0, 1fr) 150px; } .d-census .d-row > :nth-child(1), .d-census .d-row > :nth-child(3) { display: none; } }
#companies .frame--hero:has(> .stage) { aspect-ratio: auto; height: 340px; padding: 0; }
.names { display: grid; gap: var(--s-1); }
.names b { font-weight: 500; }
.names span { color: var(--ink); }
@media (max-width: 1023px) { #companies .frame--hero:has(> .stage) { height: 300px; } }

/* ---------- coming: the planned features ---------- */
.coming-list { display: grid; margin-bottom: 0; padding: 0; list-style: none; }
.coming-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.coming-list li:first-child { border-top: 1px solid var(--line); }
.coming-list b { font-weight: 500; }
.coming-list p { grid-column: 1; margin: 0; }
.coming-list .badge { grid-column: 2; grid-row: 1; }
#coming .panel { --p-h: 440px; }
@media (max-width: 639px) { #coming .panel { --p-h: 300px; } }

/* ---------- pricing ---------- */
.price-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.card--plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.card--plan li { padding-left: 20px; position: relative; }
.card--plan li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--action); }
.price .per { color: var(--muted); }

/* ---------- pilot form panel ---------- */
.pilot-panel { background: var(--g-alt, var(--surface)); padding: var(--s-7); border-radius: var(--r-lg); }
@media (max-width: 639px) { .pilot-panel { padding: var(--s-5); } }

/* ---------- footer ---------- */
.footer__disclaimer { margin: 0; max-width: 62ch; }

/* ---------- plain text pages (privacy, terms) ---------- */
.prose { max-width: 62ch; display: grid; gap: var(--s-4); }
.prose h2 { font-size: var(--t-h3); margin-top: var(--s-5); }

/* ---------- fixes found by the checks ---------- */
/* the close's name: room for the face's tall ascenders inside its clip */
.close__word { line-height: 1.02; padding-top: .04em; }
/* phone: the hero's window ends inside its frame (two findings, no tabs) */
@media (max-width: 639px) {
  .hero__art .d-tabs { display: none; }
  .hero__art .d-row:nth-child(n+3) { display: none; }
  .d-report { width: 300px; }
  .d-report .d-report__h, .d-report .d-opt { display: none; }
  .d-report__facts b { font-size: 16px; }
}
/* the census window: three rows below the desktop, the frame tall enough to hold them whole */
@media (max-width: 1023px) {
  .d-census .d-row:nth-child(n+5) { display: none; }
  #companies .frame--hero:has(> .stage) { height: 330px; }
}
/* pricing: a small picture of what each plan returns, and the one link under the plans */
.card--plan .panel.plan-pic { --p-h: 112px; flex: none; }
.card--plan > .btn { margin-top: auto; }
.price-cta { margin-top: var(--s-6); }
/* pilot: the summary a pilot returns, under the words */
.panel.pilot-pic { --p-h: 300px; }
@media (max-width: 639px) { .panel.pilot-pic { --p-h: 200px; } }
/* 320 to 359: the nav's button does not fit beside the logo and the menu button; the hero's button is on the same screen */
@media (max-width: 359px) { .nav:not(.is-open) .nav__actions { display: none; } .nav:not(.is-open) .nav__toggle { margin-left: auto; } }
/* phone: how it works takes two whole screens; pricing drops the who-for lines to stay within two */
@media (max-width: 639px) {
  .card--plan > .plan-who { display: none; }
}
/* tablet (640 to 1023, and 1024 to 1279 where span-4 cards go two-up): sections whose stacked content
   runs past one screen take two; the others are cut to one */
@media (min-width: 640px) and (max-width: 1279px) { #how { --h: 2; } }
@media (min-width: 640px) and (max-width: 1023px) {
  #pricing { --h: 2; }
  #coming .panel { --p-h: 240px; }
  #advisors .frame--split { --ratio: 56%; }
  .panel.pilot-pic { --p-h: 160px; }
}
