/* Fundlink homepage: page CSS for the visuals only (taste-skill: page CSS sits inside a visual).
   The d-* window pieces come from taste-skill assets/layout/demo.css and hero-collage.html. */

/* A tighter scale than the kit's defaults: smaller headings, a shorter header, less padding.
   html:root outranks the kit's :root rules, so this wins at every breakpoint. */
html:root {
  --t-h1: clamp(34px, 1.9vw + 26.6px, 54px);
  --t-h2: clamp(26px, 0.95vw + 22.3px, 36px);
  --t-stat: clamp(26px, 0.57vw + 23.8px, 32px);
  --nav: 64px;
  --padt: 104px;
  --padb: 56px;
  --hgap: 40px;
  --head-gap: 36px;
  --container: 1200px;
  --btn-h: 40px;
  --btn-h-sm: 34px;
  /* the hero's own scale (layout.css): 64 → 52 on the collage h1, 20 → 18 on the lead */
  --ly-scale: 0.82;
  --ly-lead: clamp(16px, 0.19vw + 15.3px, 18px);
}
@media (max-width: 639px) {
  html:root { --nav: 56px; --padt: 88px; --padb: 40px; --hgap: 32px; --head-gap: 28px; }
}
@media (min-width: 1024px) {
  html:root { --t-lead: 18px; --t-card: 18px; --t-h3: 22px; }
}

/* Sections take their content's height. The kit makes each one exactly one or two screens and
   stretches the visuals to fill what is left, which left large empty grounds between sections
   and cards of uneven height. Every block that used to fill the screen gets its own height below. */
html:root { --sec-y: clamp(56px, 5.5vw, 88px); }
html main > :is(section, .section):not(.hero, .section--hero),
html footer.closing {
  height: auto; min-height: 0;
  padding: var(--sec-y) 0;
  scroll-margin-top: var(--nav);
}
html main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container),
html footer.closing > .wrap { height: auto; }
/* the two-screen features section becomes one stack of two card rows */
html main > .section.g2 > .wrap { display: flex; flex-direction: column; row-gap: var(--card-gap); }
html main > .section.g2 > .wrap > :is(.group, .grid),
html main > .section.g2 > .wrap > .group > .grid:last-child { flex: none; }
html main > .section.g2 > .wrap > :last-child { margin-block: 0; }
/* the feature cards: one panel height for all four, so the cards line up */
#features .card--open > .panel { --p-h: clamp(220px, 12vw + 112px, 280px); flex: none; height: var(--p-h); min-height: 0; }
/* the directory app frame used to fill the screen under its heading */
#directory .app.fill { flex: none; height: clamp(400px, 30vw + 100px, 520px); }
@media (max-width: 1023px) { #directory .app.fill { height: 520px; } }
@media (max-width: 639px) { #directory .app.fill { height: 420px; } }

/* Bands: every other section sits on a tinted ground with a hairline at its edges, so each section
   reads as its own block: hero, directory (tint), statement, features (tint), pricing (plain, its cards
   are the tint), pipeline (dark), questions, close (tint). */
html:root { --band: #e7efeb; --band-line: rgb(6 82 92 / 0.09); }
:is(#directory, #features, footer.closing#contact) {
  background: var(--band);
  box-shadow: inset 0 1px 0 var(--band-line), inset 0 -1px 0 var(--band-line);
}

/* the closing call to action: a step above a normal button, not the kit's full-width xl one */
.btn.fl-btn-lg { height: 48px; padding-inline: 28px; font-size: 16px; }

/* the hero: as tall as its content, the app collage a fixed height instead of the whole screen */
html main > .hero {
  height: auto; min-height: 0;
  padding: calc(var(--nav) + var(--hgap)) 0 var(--sec-y);
}
html main > .hero > .wrap { height: auto; }
@media (min-width: 1024px) {
  .hero--collage .hero__grid { align-items: center; }
  .hero--collage .hero__text { align-self: center; }
}
.hero--collage .hero__art { height: clamp(360px, 22vw + 150px, 470px); }
@media (max-width: 1023px) { .hero--collage .hero__art { flex: none; height: 380px; } }
@media (max-width: 639px) { .hero--collage .hero__art { height: 260px; } }
.d-win { background: #fff; color: #16181a; border-radius: 12px; overflow: hidden; font: 400 14px/1.4 var(--font-text);
         box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 24px 60px -28px rgb(0 0 0 / .45); text-align: left; }
.d-win--dark { background: #17191c; color: #eceef0; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 30px 70px -30px rgb(0 0 0 / .8); }
.d-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(0 0 0 / .07); font-size: 13px; color: #5d6268; }
.d-win--dark .d-win__bar { border-color: rgb(255 255 255 / .07); color: #9aa0a6; }
.d-win__dots { display: flex; gap: 6px; } .d-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dcdfe2; }
.d-win--dark .d-win__dots i { background: #3a3e43; }
.d-win__body { display: grid; grid-template-columns: 160px 1fr; min-height: 420px; }
.d-side { padding: 14px 10px; border-right: 1px solid rgb(0 0 0 / .07); display: grid; align-content: start; gap: 2px; font-size: 13px; color: #4d5257; }
.d-win--dark .d-side { border-color: rgb(255 255 255 / .07); color: #aeb3b8; }
.d-side b { font-weight: 500; color: #16181a; } .d-win--dark .d-side b { color: #eceef0; }
.d-side > span { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 7px; }
.d-side > span.is-on { background: rgb(0 0 0 / .05); color: #16181a; font-weight: 500; }
.d-win--dark .d-side > span.is-on { background: rgb(255 255 255 / .07); color: #fff; }
.d-side > span i { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: .3; flex: none; }
.d-side .d-side__label { font-size: 13px; color: #8a8f94; 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: 600 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: 7px; background: #16181a; color: #fff; font-size: 13px; font-weight: 500; }
.d-btn--ghost { background: rgb(0 0 0 / .05); color: #16181a; }
.d-tabs { display: flex; gap: 4px; font-size: 13px; } .d-tabs span { padding: 4px 10px; border-radius: 99px; color: #6b7076; } .d-tabs span.is-on { background: rgb(0 0 0 / .06); color: #16181a; font-weight: 500; }
.d-rows { display: grid; border-top: 1px solid rgb(0 0 0 / .07); }
.d-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 56px 96px 84px; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid rgb(0 0 0 / .07); font-size: 13px; }
.d-row img, .d-row .d-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #eef0ee; }
.d-row b { display: block; font-weight: 500; color: #16181a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row small { color: #7b8086; font-size: 13px; }
.d-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.d-row .when { color: #7b8086; font-size: 13px; text-align: right; white-space: nowrap; }
@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 84px; } .d-row .num { display: none; } }
.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: #e7f4ec; color: #17673f; white-space: nowrap; }
.d-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.d-chip--low { background: #fdf0dc; color: #8a5300; }
.d-chip--out { background: #fbe6e3; color: #a3271b; }
.d-card { background: #fff; color: #16181a; border-radius: 12px; padding: 14px 16px; font: 400 14px/1.4 var(--font-text); text-align: left;
          box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 18px 44px -20px rgb(0 0 0 / .45); }
.d-card h5 { margin: 0 0 4px; font: 600 14px/1.3 var(--font-text); }
.d-card p { margin: 0; color: #5d6268; font-size: 13px; }
.d-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-bar { height: 6px; border-radius: 99px; background: #eceeed; overflow: hidden; margin-top: 10px; }
.d-bar > i { display: block; height: 100%; width: var(--v, 40%); border-radius: inherit; background: var(--d-accent, #1f8a5b); }
.hero__art { background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 80%, var(--ground-accent)), transparent 70%),
    var(--ground-bg); }
.hero__art::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #3d4247; border-top: 1px solid rgb(0 0 0 / .06); }
.d-note__line:first-of-type { border-top: 0; }
.d-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e7f4ec; color: #17673f; font-style: normal; font-size: 13px; font-weight: 700; }
.d-note__line i.warn { background: #fdf0dc; color: #8a5300; }
.d-note__line b { font-weight: 500; color: #16181a; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
/* the window's rows without their time column; its content keeps --ly-cut-room clear at the right, so the frame cuts empty margin, not the chips */
.ly-piece--main .d-row { grid-template-columns: 36px minmax(0, 1fr) 56px 96px; }
.ly-piece--main .d-main { padding-right: var(--ly-cut-room); }
@media (max-width: 639px) { .ly-piece--main .d-row { grid-template-columns: 36px minmax(0, 1fr) 96px; } }
/* the second section: three cards, each with an inset panel on the hero's lit sage ground */

/* hero window: partner rows */
.ly-piece--main .fl-row { grid-template-columns: 36px minmax(0, 1fr) 96px; }
.fl-ini { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: #e3efec; color: #06525c; font: 500 13px/1 var(--font-text); flex: none; }
.fl-role { font-size: 13px; color: #4d5257; }
.fl-st--done { background: #e3f1ec; color: #0b5f4a; }
.fl-st--work { background: #e5eef8; color: #1d4f86; }
.fl-st--open { background: #fdf0dc; color: #7a4a00; }
.fl-st--idle { background: #eef0f0; color: #4d5257; }

/* app-frame recipe (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::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 > .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; }
}

/* directory list pane */
.fl-list { font: 400 14px/1.4 var(--font-text); color: #16181a; }
.fl-list__bar { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--u-line); }
.fl-list__q { flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; background: #f1f4f3; color: #3d4247; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-list ul { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; }
.fl-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; }
.fl-list li.is-on { background: #e8f1ef; }
.fl-list li b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-list li small { color: #5d6268; font-size: 13px; }
.fl-list li > span:last-child { min-width: 0; }

/* open organisation pane */
.fl-org { padding: 24px 28px; font: 400 14px/1.4 var(--font-text); color: #16181a; display: grid; gap: 18px; }
.fl-org__head { display: flex; align-items: center; gap: 14px; }
.fl-org__head > div { flex: 1; min-width: 0; }
.fl-org__head b { display: block; font: 500 22px/1.2 var(--font-display); letter-spacing: -0.01em; }
.fl-org__head small { color: #5d6268; font-size: 13px; }
.fl-org__logo { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: #06525c; color: #f7f9f8; font-weight: 500; }
.fl-org__add { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; background: #06525c; color: #f7f9f8; font-size: 13px; font-weight: 500; white-space: nowrap; }
.fl-org__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fl-org__stats > div { border: 1px solid var(--u-line); border-radius: 10px; padding: 12px 14px; }
.fl-org__stats b { display: block; font: 500 26px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.fl-org__stats small { color: #5d6268; font-size: 13px; }
.fl-org__progs, .fl-org__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.fl-org__progs span { padding: 3px 10px; border-radius: 99px; background: #e3efec; color: #0b4f47; font-size: 13px; }
.fl-org__project { border: 1px solid var(--u-line); border-radius: 10px; padding: 16px; display: grid; gap: 14px; }
.fl-org__ptitle { display: flex; gap: 12px; align-items: start; justify-content: space-between; }
.fl-org__ptitle b { font-weight: 500; }
.fl-org__role { flex: none; padding: 2px 10px; border-radius: 99px; background: #e3f1ec; color: #0b5f4a; font-size: 13px; font-weight: 500; }
.fl-org__project dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.fl-org__project dt { color: #5d6268; font-size: 13px; }
.fl-org__project dd { margin: 0; font-variant-numeric: tabular-nums; }
.fl-org__tags span { padding: 2px 10px; border-radius: 99px; border: 1px solid #b9d3cd; color: #0b4f47; font-size: 13px; }
@media (max-width: 639px) { .fl-org { padding: 16px; } .fl-org__add { display: none; } .fl-org__project dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* consortium board on the dark band: cards move from Potential to Confirmed (src/scripts/home.ts) */
.fl-board { position: relative; display: grid; gap: 16px; align-content: start; padding: 20px; border-radius: var(--u-r, 16px); background: var(--p-inv-surface); }
.fl-board__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--p-inv-ink); font-size: 14px; }
.fl-board__top > span:first-child { display: grid; }
.fl-board__top b { font-weight: 500; }
.fl-board__top small { color: var(--p-inv-muted); font-size: 13px; }
.fl-board__meter { display: grid; gap: 6px; min-width: 160px; text-align: right; font-size: 13px; color: var(--p-inv-muted); }
.fl-board__meter b { color: var(--p-inv-ink); }
.fl-board__meter i { display: block; height: 6px; border-radius: 6px; background: rgb(255 255 255 / .14); overflow: hidden; }
.fl-board__meter em { display: block; height: 100%; border-radius: inherit; background: #7fd1b4; transition: width .7s cubic-bezier(.22,1,.36,1); }
.fl-board__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fl-board__col { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 8px; border-radius: 12px; background: rgb(255 255 255 / .05); }
.fl-board__list { display: grid; gap: 8px; align-content: start; }
.fl-board__name { margin: 0 0 2px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--p-inv-ink); }
.fl-board__name em { font-style: normal; color: var(--p-inv-muted); }
.fl-board__card { position: relative; background: #f7f9f8; color: #16181a; border-radius: 10px; padding: 10px; display: grid; gap: 2px; font: 400 13px/1.35 var(--font-text); }
.fl-board__card .fl-ini { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; margin-bottom: 4px; }
.fl-board__card b { font-weight: 500; }
.fl-board__card small { color: #5d6268; font-size: 13px; }
.fl-board__card.is-open { background: transparent; color: var(--p-inv-ink); border: 1px dashed var(--p-inv-muted); }
.fl-board__card.is-open small { color: var(--p-inv-muted); }
.fl-board__card.is-open .fl-ini { background: transparent; color: var(--p-inv-ink); border: 1px dashed var(--p-inv-muted); }
.fl-board__card.is-flash { animation: fl-flash .9s ease-out; }
@keyframes fl-flash { 0% { box-shadow: 0 0 0 0 rgb(127 209 180 / .9); } 100% { box-shadow: 0 0 0 10px rgb(127 209 180 / 0); } }
.fl-board .loop-pause { --bg: #f7f9f8; --ink: #06525c; }
@media (max-width: 1023px) { .fl-board { margin-top: var(--s-6); } }
@media (max-width: 639px) { .fl-board__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the quote on the dark band, under the board */
.fl-quote { margin-top: var(--s-8, 64px); }
.ground-inverse .fl-quote .muted, .ground-inverse .person__role { color: var(--p-inv-muted); }
.fl-plans .badge { justify-self: start; width: fit-content; }
/* who it is for, under the quote */
.fl-who { list-style: none; margin: var(--s-8, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fl-who li { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid color-mix(in oklab, var(--p-ink) 20%, transparent); }
.fl-who b { font-weight: 500; }
.fl-who span { color: var(--p-muted); }
@media (max-width: 1023px) { .fl-who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .fl-who { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* pricing */
.fl-plans .price { font: var(--display-weight) 38px/1.1 var(--font-display); margin: 8px 0; }
.fl-plans .price small { font: 400 16px/1 var(--font-text); color: var(--p-muted); }
.fl-plans ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.fl-plans__more { margin-top: var(--s-6, 32px); }

/* the consent banner (its own component) drawn with the kit's buttons */
.consent .btn-primary { background: var(--p-action); color: var(--p-action-ink); }
.consent .btn-ghost { background: var(--p-surface); color: var(--p-ink); }
.linklike { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* card and plan body text in the ink (7:1) */
.card--row > p, .fl-plans .card > p.muted { color: var(--p-ink); }
.fl-plans .card { display: flex; flex-direction: column; gap: 8px; }
.fl-plans .card > ul { flex: 1; margin-bottom: 16px; align-content: start; }
.fl-plans .card > .btn { width: 100%; justify-content: center; }
.fl-board.ui { background: var(--p-inv-surface); border: 0; box-shadow: none; }
.quote .person { display: grid; justify-items: start; gap: 12px; }
.quote .person > span { display: grid; }
.fl-faq-quote { margin: var(--s-7, 48px) 0 0; }
.fl-faq-quote blockquote { font-size: var(--t-lead, 20px); }
@media (min-width: 1024px) { .fl-board { min-height: 640px; } }
.d-btn { background: #06525c; color: #f7f9f8; }

/* hero background: Quiet Network (public/hero-network.js) */
.hero { position: relative; isolation: isolate; }
.hero > .wrap { position: relative; z-index: 1; }
@media (max-width: 639px) { .hero > .hero-art { top: 56px; height: calc(100% - 56px); } }
.hero > .hero-art { position: absolute; top: 72px; left: 0; width: 100%; height: calc(100% - 72px); z-index: 0; pointer-events: none;
  -webkit-mask: linear-gradient(180deg, rgb(0 0 0 / .35) 0%, #000 55%); mask: linear-gradient(180deg, rgb(0 0 0 / .35) 0%, #000 55%); }

/* PIF card: the form is scanned, its fields come out and are saved (src/scripts/home.ts) */
.fl-pif { position: absolute; inset: 0; display: flex; align-items: center; gap: 16px; padding: 28px 32px; font: 400 14px/1.35 var(--font-text); color: #16181a; }
.fl-pif__doc { position: relative; flex: none; width: 112px; height: 150px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 14px 32px -18px rgb(0 0 0 / .4); padding: 30px 12px 12px; display: grid; gap: 7px; align-content: start; overflow: hidden; }
.fl-pif__doc i { height: 5px; border-radius: 3px; background: #e3e8e6; }
.fl-pif__doc i.s { width: 60%; }
.fl-pif__tag { position: absolute; top: 9px; left: 10px; font-size: 11px; font-weight: 600; color: #b42318; }
.fl-pif__scan { position: absolute; left: 0; right: 0; top: 0; height: 28px; background: linear-gradient(180deg, transparent, rgb(6 82 92 / .28)); border-bottom: 2px solid #06525c; opacity: 0; }
.fl-pif__ai { flex: none; display: grid; justify-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: #06525c; }
.fl-pif__ai svg { width: 20px; height: 20px; fill: #06525c; }
.fl-pif__fields { flex: 1; min-width: 0; display: grid; gap: 6px; }
.fl-pif__field { background: #fff; border-radius: 8px; padding: 6px 10px; box-shadow: 0 0 0 1px rgb(0 0 0 / .06); }
.fl-pif__field small { display: block; color: #5d6268; font-size: 13px; }
.fl-pif__field b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.fl-pif__saved { font-size: 13px; font-weight: 500; color: #0b5f4a; }
.fl-pif.is-on .fl-pif__scan { animation: fl-scan 1.2s ease-in-out .2s 1 both; }
.fl-pif.is-on .fl-pif__ai svg { animation: fl-spin 1.2s ease-in-out .2s 1; }
.fl-pif.is-on .fl-pif__field { animation: fl-in .45s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(1.1s + var(--k) * .3s); }
.fl-pif.is-on .fl-pif__saved { animation: fl-in .4s ease both 2.5s; }
@keyframes fl-scan { 0% { opacity: 1; transform: translateY(-28px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(150px); } }
@keyframes fl-spin { 50% { transform: rotate(90deg) scale(1.2); } }
@keyframes fl-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@media (max-width: 639px) { .fl-pif { padding: 20px 16px; gap: 10px; } .fl-pif__doc { width: 72px; height: 104px; padding: 24px 8px 8px; } .fl-pif__ai { font-size: 0; } }

/* the MCP mark on the AI assistant card */
.fl-mcp { width: 14px; height: 14px; flex: none; }
.fl-mcp-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 99px; background: #eef2f1; color: #16181a; font-size: 13px; font-weight: 500; }
.ui-chat__src .fl-mcp { margin-right: 4px; }

/* the questions column: demo button beside the email link */
#faq .btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
@media (max-width: 639px) {
  .fl-pif__field[style*="--k:2"], .fl-pif__field[style*="--k:3"] { display: none; }
  #faq .btn-row { flex-direction: column; align-items: flex-start; }
  #faq .btn-row .btn { width: 100%; }
}

/* Legal pages and the 404 (src/layouts/Legal.astro): long text on the kit's paper ground, under the fixed header.
   The header is fixed, so the page starts below it. */
.legal { padding: calc(var(--nav) + clamp(40px, 5vw, 72px)) 0 var(--sec-y, 72px); }
.legal-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
.legal nav { position: sticky; top: calc(var(--nav) + 24px); align-self: start; display: grid; gap: 4px; font-size: 15px; }
.legal nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.legal nav a:hover { background: var(--surface); color: var(--ink); }
.legal nav a[aria-current="page"] { background: var(--ink); color: var(--bg); font-weight: 500; }
.prose { max-width: 760px; font-size: 16px; line-height: 1.65; }
.prose h1 { font: var(--display-weight, 400) var(--t-h1) / 1.08 var(--font-display); letter-spacing: var(--display-tracking); margin: 0 0 10px; }
.prose h2 { font: 500 26px / 1.2 var(--font-display); letter-spacing: -0.02em; margin: 52px 0 14px; scroll-margin-top: calc(var(--nav) + 24px); }
.prose h3 { font: 500 18px / 1.3 var(--font-display); margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose a:not(.btn) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 24px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font: 500 13px / 1.4 var(--font-mono); color: var(--muted); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; }
.prose blockquote { margin: 0 0 1em; padding: 14px 20px; background: var(--surface); border-radius: var(--r-lg, 14px); }
.prose .updated { font-size: 14px; color: var(--muted); margin-bottom: 36px; }
.prose .lede { font-size: var(--t-lead, 18px); color: var(--muted); }
.legal--notfound .prose { min-height: 36vh; padding-top: 8vh; }
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .legal nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
}

/* Pricing page (src/pages/pricing.astro): the homepage's plan cards plus a billing toggle and a comparison table.
   The header is fixed, so the first section starts below it. */
html main > .section.fl-pagehead:not(.hero) { padding-top: calc(var(--nav) + clamp(40px, 5vw, 72px)); }
.fl-pagehead .section-head { margin-bottom: var(--s-5, 24px); }
.fl-toggle { display: flex; width: fit-content; max-width: 100%; gap: 4px; padding: 4px; border-radius: 999px; background: var(--p-surface); margin-bottom: var(--s-7, 40px); }
.fl-toggle button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--p-ink); font: 500 15px/1 var(--font-text); cursor: pointer; }
.fl-toggle button[aria-checked="true"] { background: var(--p-ink); color: var(--p-bg); }
.fl-toggle__save { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--p-bg); color: var(--p-ink); }
.fl-toggle button[aria-checked="false"] .fl-toggle__save { background: var(--band); }
.fl-plans .card h2 { font: var(--display-weight) var(--t-h3) / 1.2 var(--font-display); letter-spacing: var(--display-tracking); margin: 0; }
.fl-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg, 16px); background: var(--card, transparent); }
.fl-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.fl-table th, .fl-table td { text-align: left; vertical-align: top; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.fl-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.fl-table thead th { font: 500 15px/1.2 var(--font-display); background: var(--p-surface); color: var(--p-ink); }
.fl-table tbody th { font-weight: 500; width: 34%; }
.fl-yes { color: var(--p-ink); font-size: 13px; }
.fl-no { color: var(--p-muted); }
.fl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fl-table__note { margin-top: var(--s-4, 16px); }

.fl-pagehead .fl-plans .card { position: relative; }
.fl-pagehead .fl-plans .badge { position: absolute; top: var(--card-pad, 24px); right: var(--card-pad, 24px); }
