/* Page CSS for the marketing page: only what sits inside a visual (the product's own windows) and the
   app-frame recipe (sections-library.md, app-frame). Tokens come from the kit (system.css, ui/base.css). */

/* ---------------------------------------------------------------- status badges (the product's own states) */
.vb { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px;
      font: 500 12px/1 var(--font-text); letter-spacing: 0; white-space: nowrap;
      --vb: #9aa19a; color: color-mix(in oklab, var(--vb) 62%, var(--u-ink, var(--ink))); background: color-mix(in oklab, var(--vb) 16%, transparent);
      box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--vb) 30%, transparent); }
.vb::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vb); flex: none; }
.vb[data-s="valid"] { --vb: #2e8b57; }
.vb[data-s="risky"] { --vb: #c98a1b; }
.vb[data-s="invalid"] { --vb: #c8434f; }
.vb[data-s="unknown"] { --vb: #8b8690; }

/* ---------------------------------------------------------------- hero: the checked list */
.hero__media--ui { display: flex; }
.hero__media--ui > .vw { flex: 1 1 auto; min-width: 0; }
.vw { display: flex; flex-direction: column; overflow: hidden; background: var(--u-bg); color: var(--u-ink);
      font: 400 13px/1.4 var(--font-text); container-type: inline-size; border: 1px solid var(--u-border); border-radius: inherit; }
.vw__bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--u-line); flex: none; }
.vw__crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--u-muted); white-space: nowrap; overflow: hidden; }
.vw__crumb .mark { width: 14px; height: 14px; color: var(--u-ink); }
.vw__crumb i { font-style: normal; opacity: .5; }
.vw__crumb b { color: var(--u-ink); font-weight: 500; }
.vw__credits { display: inline-flex; gap: 6px; align-items: center; height: 26px; padding: 0 10px; border-radius: 4px; background: var(--u-fill-2); color: var(--u-muted); white-space: nowrap; }
.vw__credits b { color: var(--u-ink); font: 500 13px/1 var(--font-mono); }
.vw__sum { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--u-line); flex: none; white-space: nowrap; }
.vw__done { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.vw__tick { width: 14px; height: 14px; border-radius: 50%; background: #2e8b57; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E"); }
.vw__muted { color: var(--u-muted); overflow: hidden; text-overflow: clip; }
.vw__dl { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--u-line-2); font-weight: 500; }
.vw__counts { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 16px; border-bottom: 1px solid var(--u-line); flex: none; font: 500 13px/22px var(--font-mono); }
.vw__counts > span { display: inline-flex; align-items: center; gap: 8px; }
/* as many whole rows as the window holds; the rows past them take no height, so no row is ever cut */
.vw__table { flex: 1 1 0; min-height: 0; overflow: hidden; display: grid; grid-template-rows: repeat(auto-fill, minmax(40px, 1fr)); grid-auto-rows: 0; }
.vw__table > .vw__row { height: auto; min-height: 0; overflow: hidden; }
.vw__row { display: grid; grid-template-columns: minmax(0, 1.25fr) 92px minmax(0, 1fr); align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--u-line); }
.vw__head { height: 34px; color: var(--u-muted); font-size: 12px; background: var(--u-fill); }
.vw__email { font: 400 13px/1 var(--font-mono); overflow: hidden; white-space: nowrap; text-overflow: clip; }
.vw__reason { color: var(--u-text-2); overflow: hidden; white-space: nowrap; }
@container (max-width: 520px) {
  .vw__row { grid-template-columns: minmax(0, 1fr) 84px; }
  .vw__row > :nth-child(3) { display: none; }
  .vw__muted, .vw__dl + .vw__dl { display: none; }
}
@container (max-width: 400px) {
  .vw .ui-dots, .vw__lists, .vw__sum { display: none; }
  .vw__dl { display: none; }
  .vw__counts { gap: 6px 14px; }
}

/* ---------------------------------------------------------------- app-frame (sections-library.md, the whole recipe) */
.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; }
@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; }
}
.ui-win__crumb .mark { width: 14px; height: 14px; }

/* the open list: the file being checked */
.jd { font: 400 13px/1.4 var(--font-text); }
.jd__head { padding: 0 20px; height: 52px; border-bottom: 1px solid var(--u-line); }
.jd__file { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.jd__body { display: grid; gap: 20px; padding: 20px; }
.jd__label { display: block; color: var(--u-muted); font-size: 12px; margin-bottom: 6px; }
.jd__select { display: flex; justify-content: space-between; align-items: center; height: 36px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--u-line-2); background: var(--u-fill); }
.jd__change { color: var(--u-accent-text); font-weight: 500; }
.jd__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.jd__facts > div { padding: 12px; border-radius: 4px; background: var(--u-fill); }
.jd__facts dt { color: var(--u-muted); font-size: 12px; }
.jd__facts dd { margin: 4px 0 0; font: 500 18px/1.2 var(--font-mono); }
.jd__facts small { display: block; font: 400 12px/1.3 var(--font-text); color: var(--u-muted); }
.jd__progress-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: var(--font-mono); }
.jd__bar { display: block; height: 6px; border-radius: 3px; background: var(--u-fill-3); overflow: hidden; }
.jd__bar i { display: block; height: 100%; background: var(--u-accent); }
.jd__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.jd__chips code { font: 400 12px/22px var(--font-mono); padding: 0 8px; border-radius: 4px; background: var(--u-fill-2); }
.jd__out { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jd__btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--u-line-2); font-weight: 500; opacity: .6; }
.jd__note { color: var(--u-muted); font-size: 12px; }
@container (max-width: 560px) { .jd__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.app__pane--open { container-type: inline-size; }

/* ---------------------------------------------------------------- the lit (sage) frames: the product's window on a light
   fragment surface, as a light card would give it (cards.css .stage reads --card) */
.frame--lit > .stage { --card: var(--ground-surface); }
.cc, .lg, .jd, .menu-call { color: var(--u-ink); }

/* ---------------------------------------------------------------- results: one check */
.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.res-list li { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: baseline; gap: var(--s-3); }
.res-list .vb { justify-self: start; transform: translateY(-1px); }
.cc { font: 400 13px/1.45 var(--font-text); padding-bottom: 20px; }
.cc .ui-head { padding: 0 20px; height: 48px; border-bottom: 1px solid var(--u-line); }
.cc__cost { color: var(--u-muted); font-family: var(--font-mono); }
.cc__input { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 20px 20px 0; height: 40px; padding: 0 4px 0 12px; border-radius: 4px; border: 1px solid var(--u-line-2); font-family: var(--font-mono); }
.cc__go { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 3px; background: var(--u-accent); color: var(--u-accent-ink); font: 500 13px/1 var(--font-text); }
.cc__result { display: flex; align-items: center; gap: 10px; margin: 20px 20px 0; }
.cc__result .vb { height: 28px; font-size: 14px; padding: 0 10px; }
.cc__reason { font-size: 16px; font-weight: 500; }
.cc__why { margin: 10px 20px 0; color: var(--u-text-2); }
.cc__flags { margin: 16px 20px 0; display: grid; }
.cc__flags > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--u-line); font-family: var(--font-mono); font-size: 12px; }
.cc__flags dt { color: var(--u-muted); }
.cc__flags dd { margin: 0; }
.cc__flags dd[data-v="true"] { color: color-mix(in oklab, #3f9a75 70%, var(--u-ink)); font-weight: 500; }

/* ---------------------------------------------------------------- developers */
.dev-icons { display: flex; align-items: center; gap: var(--s-5); }
.menu-call { display: grid; gap: 8px; position: absolute; left: 20px; top: 24px; right: -40px; padding: 14px 16px; border-radius: 6px;
             background: var(--u-bg); border: 1px solid var(--u-border); font: 400 12px/1.3 var(--font-mono); }
.menu-call__req { color: var(--u-muted); }
.menu-call__res { display: flex; align-items: center; gap: 10px; white-space: nowrap; }

/* ---------------------------------------------------------------- pricing */
.plans { margin-top: var(--s-5); }
.plan__for { color: var(--ink); min-height: 3em; }
.plan__credits { font-weight: 500; }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.plan__list li { padding-top: var(--s-2); border-top: 1px solid var(--line); }
.plans__topup { margin-top: var(--s-4); }

/* ---------------------------------------------------------------- credits ledger */
.lg { font: 400 13px/1.4 var(--font-text); }
.lg .ui-head { padding: 0 20px; height: 48px; border-bottom: 1px solid var(--u-line); }
.lg__bal { color: var(--u-muted); }
.lg__bal b { color: var(--u-ink); font: 500 15px/1 var(--font-mono); margin-left: 6px; }
.lg__rows { list-style: none; margin: 0; padding: 0; flex: 1 1 0; min-height: 0; overflow: hidden; display: grid; grid-template-rows: repeat(auto-fill, minmax(56px, 1fr)); grid-auto-rows: 0; }
.lg__rows > li { min-height: 0; overflow: hidden; }
.lg__rows li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--u-line); }
.lg__date { color: var(--u-muted); font-size: 12px; }
.lg__what { font-weight: 500; white-space: nowrap; overflow: hidden; }
.lg__what small { display: block; font-weight: 400; font-size: 12px; color: var(--u-muted); }
.lg__amt { font: 500 13px/1 var(--font-mono); }
.lg__amt[data-sign="plus"] { color: color-mix(in oklab, #3f9a75 70%, var(--u-ink)); }
.lg__amt[data-sign="zero"] { color: var(--u-muted); }
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.facts-list li { padding-top: var(--s-3); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- the statement's SMTP conversation */
.smtp__row { margin-top: var(--s-6); }
.smtp { padding: 16px 20px; font: 400 13px/1.5 var(--font-mono); color: var(--u-ink); }
.smtp__line { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; padding: 3px 0; }
.smtp__line[data-dir="in"] { color: var(--u-muted); }
.smtp__dir { color: var(--u-muted); }
.smtp__text { overflow-wrap: anywhere; }
.smtp__note { font-family: var(--font-text); color: var(--u-accent-text); white-space: nowrap; }
@media (max-width: 1023px) { .smtp { margin-top: var(--s-5); } }

/* ---------------------------------------------------------------- credits: the ledger window on the page ground */
.ledger { display: flex; min-height: 0; }
.ledger > .lg { flex: 1 1 auto; display: flex; flex-direction: column; border: 1px solid var(--u-border); border-radius: var(--u-r); background: var(--u-bg); box-shadow: var(--u-shadow); overflow: hidden; }
.plan-icons { display: flex; align-items: center; gap: var(--s-5); }
.faq__icons { display: inline-flex; align-items: center; gap: var(--s-2); margin-left: var(--s-3); vertical-align: -4px; }
#smtp .mo-la__sub { color: var(--ink); }
@media (max-width: 639px) {
  .hero__media--ui > .ly-float { display: none; }
  .nav__actions > .nav__link { display: none; }
  .ledger { height: 380px; flex: none; }
  #developers .ui-code { width: 100%; }
}

/* ---------------------------------------------------------------- screens at tablet and phone */
/* a tablet holds pricing and the questions in one screen each: the plan lists and the answer padding trimmed */
@media (min-width: 640px) and (max-width: 1023px) {
  .plan__list { display: none; }
  #faq { --h: 2; }
  .ledger { height: 440px; flex: none; }
}
/* a tall tablet (820x1180) holds the questions in one screen with their padding trimmed */
@media (min-width: 640px) and (max-width: 1023px) and (min-height: 1101px) {
  #faq { --h: 1; }
  #faq .faq > .faq__item { padding: var(--s-3) 0; gap: var(--s-1); }
  #faq .faq > .faq__item:first-child { padding-top: 0; }
}
@media (max-width: 359px) { #results, #developers { --hm: 2; } }
@media (max-width: 639px) {
  #pricing, #faq { --hm: 2; }
  #developers .split-col__end { display: none; }
  #faq .faq > .faq__item { padding: var(--s-7) 0; }
  #faq .faq > .faq__item:first-child { padding-top: 0; }
  #faq .faq > .faq__item { gap: var(--s-1); }
  #faq .faq:last-child > .faq__item:last-child { padding-bottom: var(--s-6); }
  #pricing .card--plan { gap: var(--s-3); }
  #developers .ui-code__ln:nth-child(n+10) { display: none; }
  .plan__for { min-height: 0; }
}
.dev-note { color: var(--muted); }
@media (max-width: 359px) { .nav__actions > .btn { display: none; } .closing__cta .btn--xl { font-size: 16px; } }
#developers .ui-code__pre code { line-height: 24px; }

/* Fig: the lit frames sit on a blush ground taken from the brand pink (#E86A8A). */
html[data-ground="sand"] { --ground-bg: #f4e1e5; --ground-surface: #faeef1; --ground-ink: #22171c; --ground-muted: #5f4f56; --ground-accent: #5b2a6e; }

/* ================================================================ Fig round 2 (24 Nov): no empty ground.
   Every section is as tall as its content (the kit's one-section-per-screen heights left 200 to 400px of blank
   ground under short sections). Visual frames get fixed heights that match what they hold. */
html main > :is(section, .section):not(.hero), html footer.closing {
  height: auto !important; min-height: 0 !important; padding: 112px 0 0 !important; display: block !important;
}
html main > :is(section, .section) > :is(.wrap, .container), html footer.closing > .wrap { height: auto !important; }
html main > .hero { height: auto !important; min-height: 0 !important; padding: calc(var(--nav) + 48px) 0 0 !important; display: block !important; }
html main > .hero > .wrap { height: auto !important; display: block !important; }
html footer.closing { padding-bottom: 32px !important; }
html footer.closing .closing__links { margin-top: 96px; }
@media (max-width: 1023px) {
  html main > :is(section, .section):not(.hero), html footer.closing { padding-top: 88px !important; }
  html footer.closing .closing__links { margin-top: 72px; }
}
@media (max-width: 639px) {
  html main > :is(section, .section):not(.hero), html footer.closing { padding-top: 72px !important; }
  html main > .hero { padding-top: calc(var(--nav) + 32px) !important; }
  html footer.closing .closing__links { margin-top: 56px; }
}

/* hero: words beside a live window of fixed height; the agents row under the buttons */
@media (min-width: 1024px) {
  .hero--split .hero__grid { align-items: center !important; }
  .hero--split .hero__text { align-self: center !important; }
}
@media (max-width: 1023px) { .hero--split .hero__media--ui { align-self: stretch !important; width: 100%; } }
.hero--split .hero__media--ui { height: 620px !important; flex: none !important; overflow: visible; background: none; border-radius: 0; }
.hero__works { display: grid; gap: 12px; padding-top: 28px; margin-top: 40px !important; border-top: 1px solid var(--line); }
.hero__works-label { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 1023px) { .hero--split .hero__media--ui { height: 560px !important; margin-top: 40px; } }
@media (max-width: 639px) { .hero--split .hero__media--ui { height: 460px !important; margin-top: 32px; } .hero__works { margin-top: 28px !important; padding-top: 20px; } }

.hl { position: relative; width: 100%; height: 100%; display: flex; }
.hl > .vw { flex: 1 1 auto; min-width: 0; border-radius: var(--r-lg, 12px); box-shadow: 0 24px 60px -28px rgba(40, 20, 50, .28); }
.hl .vw__table { grid-template-rows: repeat(auto-fill, minmax(42px, 1fr)); grid-auto-rows: 0; }
.hl-bar { display: block; height: 3px; background: var(--u-fill-2, #eee); flex: none; }
.hl-bar i { display: block; height: 100%; background: var(--p-accent, #5b2a6e); transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.hl-pulse { width: 8px; height: 8px; border-radius: 50%; background: #2e8b57; box-shadow: 0 0 0 0 rgba(46, 139, 87, .45); animation: hl-pulse 1.6s ease-out infinite; }
@keyframes hl-pulse { 70% { box-shadow: 0 0 0 7px rgba(46, 139, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 139, 87, 0); } }
.hl-num { font: 500 13px/1 var(--font-mono); }
.hl-tick { animation: hl-tick .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes hl-tick { from { opacity: .25; color: var(--p-accent, #5b2a6e); } }
.vw__row.hl-in { animation: hl-in .55s cubic-bezier(.2, .7, .2, 1); }
@keyframes hl-in { from { opacity: .15; transform: translateY(-10px); background: color-mix(in oklab, #5b2a6e 12%, transparent); } }
.vw__row.is-live { background: color-mix(in oklab, var(--p-accent, #5b2a6e) 7%, transparent); }
.vw__row.is-live .vw__reason { color: var(--u-muted); font-style: italic; }
.hl-checking { --vb: #5b2a6e; }
.hl-checking::before { display: none; }
.hl-spin { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: hl-spin .7s linear infinite; }
@keyframes hl-spin { to { transform: rotate(360deg); } }
.hl-pop { display: inline-flex; animation: hl-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hl-pop { from { transform: scale(.6); opacity: 0; } }

/* the source of the address being checked, in the window's summary bar */
.hl-via { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px 0 8px; border-radius: 6px; background: var(--u-fill, #f4f1ee); min-width: 0; overflow: hidden; }
.hl-via__k { color: var(--u-muted); font-size: 12px; }
.hl-via__logo { width: 18px; height: 18px; flex: none; animation: hl-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.hl-via__txt { white-space: nowrap; font-size: 12px; animation: hl-fade .4s ease-out; overflow: hidden; text-overflow: ellipsis; }
.hl-via__txt b { font-weight: 600; color: var(--u-ink); }
.hl-via__txt span { font-family: var(--font-mono); color: var(--u-muted); }
@keyframes hl-fade { from { opacity: 0; transform: translateX(-6px); } }
/* the window's footer: removed duplicates, and the refund count that flashes when an unknown lands */
.hl-foot { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px; flex: none; border-top: 1px solid var(--u-line); background: var(--u-fill, #f4f1ee); color: var(--u-muted); font-size: 12px; white-space: nowrap; overflow: hidden; }
.hl-refund { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 6px; color: var(--u-ink); }
.hl-refund b { font: 500 12px/1 var(--font-mono); color: #2e8b57; }
.hl-refund__dot { width: 7px; height: 7px; border-radius: 50%; background: #8b8690; }
.hl-refund[data-on] { animation: hl-flash 1.6s ease-out; }
@keyframes hl-flash { 0% { background: color-mix(in oklab, #2e8b57 22%, transparent); transform: scale(1.04); } 100% { background: transparent; transform: none; } }
@container (max-width: 600px) { .hl-foot > span:first-child { display: none; } .hl-via__txt span { display: none; } }
@container (max-width: 420px) { .hl-via { display: none; } }
@media (prefers-reduced-motion: reduce) { .hl *, .hl { animation: none !important; transition: none !important; } }

/* agents: real marks, a tile grid (developers) and a plain row (hero, pricing, questions) */
.ag-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ag-row img { width: auto; height: 26px; flex: none; }
.faq__icons .ag-row { gap: 8px; }
.faq__icons .ag-row img { height: 18px; }
.plan-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: var(--s-4); }
.ag-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ag-tile { display: grid; justify-items: start; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  transition: border-color .2s, transform .2s; }
.ag-tile:hover { border-color: color-mix(in oklab, var(--p-accent) 40%, var(--line)); transform: translateY(-2px); }
.ag-tile img { width: 28px; height: 28px; }
.ag-tile__name { font: 500 13px/1.2 var(--font-text); color: var(--ink); }
.ag-tile__via { font: 500 11px/1 var(--font-mono); color: var(--muted); }
@media (max-width: 639px) { .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* .fill blocks keep their own height now that sections are as tall as their content (flex 1 1 0 collapsed them) */
html main > :is(section, .section) > .wrap > .fill { flex: none !important; min-height: auto !important; }

/* split sections: frames sized to what they hold, so a card never ends in a blank panel */
#results .frame--fill { height: 480px !important; }
#developers .frame--fill { height: 560px !important; }
#how .app.fill { height: 600px; flex: none; }
#credits .ledger { height: 520px !important; flex: none; }
@media (min-width: 1024px) { #results .grid.fill, #credits .grid.fill { align-items: start; } }
@media (max-width: 1023px) { #results .grid.fill > *, #developers .grid.fill > *, #credits .grid.fill > * { align-self: stretch; width: 100%; } }
@media (max-width: 1023px) {
  #results .frame--fill { height: 470px !important; flex: none !important; }
  #developers .frame--fill { height: 540px !important; flex: none !important; }
  #how .app.fill { height: 560px; }
  #credits .ledger { height: 460px !important; margin-top: 32px; }
}
@media (max-width: 639px) {
  #how .app.fill { height: 460px; }
  #developers .frame--fill { height: 480px !important; }
  #developers .split-col__end { display: grid !important; }
  #faq .faq > .faq__item { padding: var(--s-5) 0 !important; }
  #faq .faq > .faq__item:first-child { padding-top: 0 !important; }
}
#developers .split-col { height: auto !important; }
#developers .split-col > .split-col__end { margin-top: 40px !important; }
#smtp .smtp__row { margin-top: 40px; }

/* credits: four facts in tiles */
.cr-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.cr-stats > div { padding: 14px 16px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.cr-stats dt { font-size: var(--t-small); color: var(--muted); }
.cr-stats dd { margin: 4px 0 0; font: 600 18px/1.2 var(--font-text); color: var(--ink); }

/* footer: links read as links */
.footer ul a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.footer ul a:hover, .footer ul a:focus-visible { color: var(--p-accent); text-decoration-color: currentColor; }
.footer__col ul a { overflow-wrap: anywhere; }

/* the lit frames hold their card whole, centred, with the blush around it (no card running into a blank foot) */
@media (min-width: 640px) {
  #results .stage, #developers .stage { -webkit-mask: none; mask: none; }
  #results .stage > .to-edge, #developers .stage > .to-edge { bottom: auto; }
  #results .stage > .to-edge > .ui, #developers .stage > .to-edge > .ui { height: auto; box-shadow: 0 24px 50px -30px rgba(60, 20, 50, .35); }
  #results .stage > .at-rise { top: 40px; }
  #developers .stage > .at-rise { top: max(40px, calc(50% - 236px)); }
}
@media (min-width: 1024px) {
  #developers .grid.fill { align-items: stretch; }
  #developers .frame--fill { height: auto !important; min-height: 600px; }
  #developers .section-head { margin-bottom: 32px; }
  #developers .split-col > .split-col__end { margin-top: 32px !important; }
  #results .frame--fill { height: 490px !important; }
}

/* ---------------------------------------------------------------- review fixes (24 Nov, second pass) */
/* blank code lines keep their height, so line numbers never overlap */
.ui-code__ln { min-height: 24px; }
/* the code card never wider than its frame */
#developers .stage > .at-rise { --w: min(460px, calc(100% - 48px)) !important; }
#developers .ui-code__pre { overflow-x: auto; }
/* developers: the panel text keeps one height whichever tab is on; tabs fit one row on a phone */
@media (min-width: 1280px) { #developers .dev-panel { min-height: 7.2em; } }
@media (max-width: 639px) {
  #developers .dev-panel { min-height: 0; }
  #developers .tabs { flex-wrap: nowrap; gap: 6px; }
  #developers .tab { padding-inline: 10px; font-size: 13px; white-space: nowrap; }
}
/* below 1280 the lit frames hold their card in flow, whole, never past the frame's edge */
@media (max-width: 1279px) {
  #results .frame--fill, #developers .frame--fill { height: auto !important; min-height: 0 !important; padding: 20px !important; }
  #results .stage, #developers .stage { position: relative !important; inset: auto !important; height: auto !important; -webkit-mask: none; mask: none; }
  #results .stage > .at-rise, #developers .stage > .at-rise { position: relative !important; inset: auto !important; left: auto !important; top: auto !important; width: 100% !important; }
  #results .stage > .to-edge > .ui, #developers .stage > .to-edge > .ui { height: auto !important; }
  #developers .ui-code__ln:nth-child(n+10) { display: block !important; }
  #results .frame--fill, #developers .frame--fill { padding: 32px !important; }
  #developers .ui-code { width: 100% !important; }
}
@media (max-width: 639px) { #results .frame--fill, #developers .frame--fill { padding: 16px !important; } }
/* the upload window as tall as the open file's contents */
@media (min-width: 1024px) { #how .app.fill { height: 480px; } }
/* close and footer closer together */
html footer.closing .closing__links { margin-top: 72px; }
/* air between a lead paragraph and the list or tiles under it */
#results .res-list, #credits .cr-stats { margin-top: 28px; }
/* pricing: the price on one line; two cards a row from 640 to 1279 */
.card--plan .price { flex-wrap: nowrap; white-space: nowrap; }
.card--plan .price .t-stat { font-size: clamp(28px, 2.4vw, 40px); }
@media (min-width: 640px) and (max-width: 1279px) { #pricing .plans > .card--plan { grid-column: span 6 !important; } #pricing .plan__list { display: grid !important; } }
@media (max-width: 639px) { .plan-icons { gap: 10px; } .plan-icons .ic, .plan-icons .ag-row img { height: 24px; } .plan-icons .ag-row { gap: 10px; } }
.plan-icons .ag-row { display: contents; }
/* questions: the agents row wraps under its question, not inside it */
.faq__icons--agents { display: flex !important; margin: 8px 0 0 !important; }
.menu-call { right: 20px !important; overflow: hidden; }
.menu-call__res { overflow: hidden; }
.menu-agents { display: block; padding: 4px 0 0; }
.menu-agents .ag-row { gap: 10px; }
.menu-agents .ag-row img { height: 20px; }

/* ---------------------------------------------------------------- review fixes (third pass) */
/* code samples hold real JSON arrays such as ["fig-mcp"]: the kit's placeholder guard must not outline them */
.ui-code [data-placeholder], [data-placeholder].ui-code__ln, pre [data-placeholder] { outline: none !important; }
/* cards centred in their lit frames at every width */
@media (min-width: 1280px) {
  #results .stage > .at-rise { left: 48px !important; right: 48px !important; width: auto !important; }
  #developers .stage > .at-rise { left: max(32px, calc(50% - 240px)) !important; right: max(32px, calc(50% - 240px)) !important; width: auto !important; --w: auto !important; }
  #developers .frame--fill { min-height: 0 !important; height: 560px !important; align-self: center; }
  #developers .grid.fill { align-items: center !important; }
  #developers .stage > .at-rise { top: 44px !important; }
}
/* below 1280: the frame is as tall as its card, the card fills the frame's width */
@media (max-width: 1279px) {
  #developers .frame--fill, #results .frame--fill { min-height: 0 !important; height: auto !important; align-self: start !important; }
  #developers .stage > .at-rise, #developers .stage > .to-edge, #results .stage > .at-rise { width: 100% !important; max-width: none !important; --w: 100% !important; }
  #developers .stage > .to-edge > .ui, #developers .ui-code { width: 100% !important; max-width: none !important; }
}
/* tabular "1" made a gap inside 11,999 */
.card--plan .price .t-stat { font-variant-numeric: proportional-nums; letter-spacing: -0.02em; }
/* agent tiles: the MCP / API label on one line across a row, however the name wraps */
.ag-tile { grid-template-rows: auto 1fr auto; align-items: start; }
.ag-tile__name { line-height: 1.25; }
/* hero counters stay on one line in a narrower window */
@container (max-width: 600px) { .vw__counts { gap: 6px 12px; font-size: 12px; } .vw__counts .vb { padding: 0 6px; } }
.hl .vw__head { position: relative; z-index: 2; }
.hl .vw__row.hl-in { position: relative; z-index: 1; }
@media (min-width: 1024px) and (max-height: 820px) { .hero--split .hero__media--ui { height: min(620px, calc(100svh - 150px)) !important; min-height: 480px; } }
/* credits: room between the tiles and the facts under them */
#credits .cr-stats { margin-bottom: 20px; }
/* code that runs past its panel shows a thin scrollbar as the cue */
.ui-code__pre { scrollbar-width: thin; }
@media (max-width: 1279px) { #results .stage, #developers .stage { width: 100% !important; max-width: none !important; margin: 0 !important; } }

/* ---------------------------------------------------------------- live review fixes */
/* 1024 to 1279: the code frame as tall as the words beside it, its card centred */
@media (min-width: 1024px) and (max-width: 1279px) {
  #developers .grid.fill { align-items: stretch !important; }
  #developers .frame--fill { align-self: stretch !important; display: flex !important; align-items: center; }
  #developers .frame--fill > .stage { flex: 1 1 auto; }
}
/* tile names never wrap: a little smaller where the tiles are narrow */
.ag-tile__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 1439px) { .ag-tile__name { font-size: 12px; } .ag-tile { padding: 10px; } }
/* the via chip keeps its width during the swap */
.hl-via { min-width: 150px; }

/* ================================================================ theme: System, Light, Dark (one choice shared with the portal,
   localStorage fig:theme; the inline head script sets html[data-dark] before first paint and keeps it in step with the OS) */
.theme-toggle { display: inline-grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); flex: none; }
.theme-opt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 7px;
  background: none; color: var(--muted); font: 500 13px/1 var(--font-text); cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform .12s var(--ease); }
.theme-opt:hover { color: var(--ink); }
.theme-opt:active { transform: scale(.94); }
.theme-opt svg { flex: none; }
.theme-toggle-compact .theme-opt { width: 34px; min-height: 32px; padding: 0; }
:root:not([data-theme-pref]) .theme-opt[data-v="system"],
:root[data-theme-pref="system"] .theme-opt[data-v="system"],
:root[data-theme-pref="light"] .theme-opt[data-v="light"],
:root[data-theme-pref="dark"] .theme-opt[data-v="dark"] { background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / .08); }
.footer__theme { justify-self: start; }
/* phone and tablet: the control sits in the open menu sheet, above the buttons, each part a 44px target */
@media (max-width: 1023px) {
  .nav.is-open .nav__actions > .theme-toggle { display: grid; width: 100%; }
  .nav.is-open .nav__actions > .theme-toggle .theme-opt { width: auto; min-height: 44px; }
  .nav.is-open .nav__links { padding-bottom: calc(var(--btn-h) * 3 + 80px); }
  .footer__theme .theme-opt { min-height: 44px; }
}

/* ---------------------------------------------------------------- dark: deep warm charcoal, the portal's palette.
   The kit derives every surface, line and fragment colour from these tokens, so the block is the palette plus the few
   colours the page sets by hand. */
html[data-dark] {
  color-scheme: dark;
  --p-bg: #171517; --p-surface: #1f1c1f; --p-ink: #f2eee9; --p-muted: #b5aeb4;
  --p-accent: #a46dc0; --p-accent-ink: #1c1021; --p-action: #a46dc0; --p-action-ink: #1c1021;
  --p-inv-bg: #0f0e10; --p-inv-surface: #1b191c; --p-inv-ink: #f2eee9; --p-inv-muted: #aba4aa;
  --p-inv-accent: #f2eee9; --p-inv-accent-ink: #16161a; --p-inv-action: #f2eee9; --p-inv-action-ink: #16161a;
  /* the lit frames: the blush ground becomes a deep fig plum */
  --ground-bg: #261821; --ground-surface: #2f1e29; --ground-ink: #f4e9ee; --ground-muted: #c6b2bc; --ground-accent: #8e5aa6;
  --fig-mark: #a46dc0;
}
/* product windows sit one step above the page, as cards do in the portal */
html[data-dark] .ui { --fx-bg: #1f1c1f; --fx-surface: #282428; }
html[data-dark] .frame--lit .ui, html[data-dark] .menu-call { --fx-bg: #1c191c; }
html[data-dark] .hl > .vw { box-shadow: 0 24px 60px -28px rgb(0 0 0 / .7); }
html[data-dark] :is(#results, #developers) .stage > .to-edge > .ui { box-shadow: 0 24px 50px -30px rgb(0 0 0 / .75); }
/* status colours lifted for charcoal, as in the portal */
html[data-dark] .vb[data-s="valid"] { --vb: #4fae7a; }
html[data-dark] .vb[data-s="risky"] { --vb: #e0a63a; }
html[data-dark] .vb[data-s="invalid"] { --vb: #ef6f7e; }
html[data-dark] .vb[data-s="unknown"] { --vb: #a39ca2; }
html[data-dark] .hl-checking { --vb: #c59cdb; }
html[data-dark] .vw__tick, html[data-dark] .hl-pulse { background: #4fae7a; }
html[data-dark] .hl-refund b { color: #79d4a0; }
html[data-dark] .hl-refund__dot { background: #a39ca2; }
html[data-dark] .cc__flags dd[data-v="true"], html[data-dark] .lg__amt[data-sign="plus"] { color: #79d4a0; }
/* single colour brand marks ship in near black; on charcoal they take their light form */
html[data-dark] img:is([src$="/agents/openai.svg"], [src$="/agents/codex.svg"], [src$="/agents/grok.svg"], [src$="/agents/cursor.svg"], [src$="/agents/githubcopilot.svg"], [src$="/agents/windsurf.svg"]) { filter: invert(1) brightness(.95); }
/* while the theme switches, colours change at once instead of each element easing on its own clock */
:root[data-theme-switching] *, :root[data-theme-switching] *::before, :root[data-theme-switching] *::after { transition: none !important; }

/* pricing: what never costs a credit, under the pack cards */
.pr-free { margin-top: 32px; display: grid; gap: 12px; }
.pr-free__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pr-free__grid p { margin: 6px 0 0; }
@media (max-width: 900px) { .pr-free__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pr-free__grid { grid-template-columns: 1fr; } }

/* film: self hosted launch film under the hero */
.hero__film { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; }
.film__head { margin-bottom: 28px; align-items: end; }
.film__frame { position: relative; width: 100%; max-width: 1120px; margin-inline: auto; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); background: #16161a; }
.film__frame.is-tall { aspect-ratio: 9 / 16; max-height: 82vh; }
.film__video, .film__poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film__video { object-fit: contain; background: #16161a; }
.film__poster { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.film__cta { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px 11px 13px; border-radius: 999px; background: var(--p-action); color: var(--p-action-ink); font: 600 15px/1 var(--font-text); white-space: nowrap; box-shadow: 0 10px 30px rgba(22, 22, 26, .18); transition: transform var(--dur, .2s) var(--ease, ease); }
.film__len { opacity: .75; font-weight: 500; font-variant-numeric: tabular-nums; }
.film__cta:hover, .film__cta:focus-visible { transform: scale(1.04); }
.film__cta:focus-visible { outline: 3px solid var(--p-action-ink); outline-offset: 2px; }
.film__poster:focus-visible { outline: 3px solid var(--p-action); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .film__cta { transition: none; } }
.film__cta svg { flex: none; }
.film__play { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding-left: 5px; background: var(--p-action); color: var(--p-action-ink); box-shadow: 0 16px 40px rgba(22, 22, 26, .3); transition: transform var(--dur, .2s) var(--ease, ease); }
.film__play:hover, .film__play:focus-visible { transform: scale(1.06); }
.film__play:focus-visible { outline: 3px solid var(--p-action-ink); outline-offset: 3px; }

/* "A product of AIsmith" credit in the footer brand column */
.footer__maker { display: inline-flex; flex-direction: column; align-items: flex-start; white-space: nowrap; gap: 4px; color: inherit; font-size: 13px; text-decoration: none; opacity: 0.72; transition: opacity 160ms ease; }
.footer__maker:hover { opacity: 1; }
.footer__maker-logo { height: 17px; width: auto; display: block; flex: none; }
.footer__maker-url { font-weight: 700; }
