/*
  Feature Fountain homepage: the palette and the page CSS the kit leaves to the page.
  Palette from: start.mjs brand --page software --bg "#f7f9fc" --ink "#13213b" --accent "#087f8c"
  --muted "#536179" --type host --radius soft (light) and --bg "#0c1729" --ink "#e8edf4"
  --accent "#3fb6c1" (html.dark, the app's dark theme). Teal on deep blue, from brand/tokens.css.
*/
:root {
  --p-bg: #f7f9fc; --p-surface: #eaedf2; --p-ink: #13213b; --p-muted: #536179;
  --p-accent: #087f8c; --p-accent-ink: #ffffff; --p-action: #087f8c; --p-action-ink: #ffffff;
  --p-inv-bg: #13213b; --p-inv-surface: #202e47; --p-inv-ink: #f7f9fc; --p-inv-muted: #a3abb8;
  --p-inv-accent: #3fb6c1; --p-inv-accent-ink: #0c1729; --p-inv-action: #3fb6c1; --p-inv-action-ink: #0c1729;
  --font-display: "Host Grotesk", system-ui, sans-serif;
  --font-text: "Host Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.04em;
}
html.dark {
  --p-bg: #0c1729; --p-surface: #152032; --p-ink: #e8edf4; --p-muted: #9aa4b3;
  --p-accent: #3fb6c1; --p-accent-ink: #0c1729; --p-action: #3fb6c1; --p-action-ink: #0c1729;
  --p-inv-bg: #070f1d; --p-inv-surface: #101b2e; --p-inv-ink: #e8edf4; --p-inv-muted: #9aa4b3;
  --p-inv-accent: #3fb6c1; --p-inv-accent-ink: #0c1729; --p-inv-action: #3fb6c1; --p-inv-action-ink: #0c1729;
}

/* Tailwind (globals.css) also reads the kit's start-N column classes as inset-inline-start
   utilities; on the kit's positioned frames that would shift them 28px right */
[class^="start-"], [class*=" start-"] { inset-inline-start: auto; }

.btn .m-arrow, .btn svg { flex: none; }
.hero .setup-notice, .hero .field-error { margin-top: var(--s-4); font-size: var(--t-small); color: var(--muted); }
.hero .setup-notice { border: 0; padding: 0; }
.hero .field-error { color: #b23b27; }
.ff-win feature-fountain { display: inline-block; border-radius: 8px; }
.ff-win feature-fountain:is(:focus-visible, :focus-within) { outline: 2px solid var(--action); outline-offset: 3px; }
.hero__art .loop-pause:focus-visible { outline-color: #13213b; }
html.dark .hero .field-error { color: #f09a89; }
/* a phone's bar holds the logo and the menu; the main action waits in the menu and the hero */
@media (max-width: 639px) { .nav:not(.is-open) .nav__actions > .btn { display: none; } }
/* the unconfigured-service notice (local and preview builds only) waits for a wider screen */
@media (max-width: 639px) { .hero .setup-notice { display: none; } }

/* ---------------------------------------------------------------- hero: the host app and the draft card */
.ff-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; }
.ff-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 var(--ly-cut-room) 0 14px;
  border-bottom: 1px solid rgb(0 0 0 / .07); font-size: 13px; color: #4d535a; }
.ff-win__dots { display: flex; gap: 6px; } .ff-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dcdfe2; }
.ff-win__badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 99px; background: #e6f3f4; color: #065f69; font-weight: 500; }
.ff-win__badge > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ff-win__body { display: grid; justify-items: start; align-content: start; gap: 10px; min-height: 720px;
  padding: 56px var(--ly-cut-room) 48px 48px; }
.ff-win .request-symbol { width: 48px; height: 48px; color: #087f8c; margin-bottom: 6px; }
.ff-win .request-symbol svg { width: 100%; height: 100%; }
.ff-win__title { margin: 0; font: 500 22px/1.25 var(--font-display); letter-spacing: -0.01em; color: #13213b; }
.ff-win__text { margin: 0 0 10px; color: #4d535a; font-size: 15px; }
.ff-win__trigger { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px;
  border: 1.5px solid #087f8c; background: #fff; color: #087f8c; font: 500 15px/1 var(--font-text); }
.ff-win .demo-note { margin-top: 6px; color: #4d535a; font-size: 13px; }
.ff-card { margin: 0; background: #fff; color: #16181a; border-radius: 12px; padding: 14px 16px; font: 400 14px/1.4 var(--font-text);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 18px 40px -20px rgb(0 0 0 / .4); }
/* the draft card sits on the host window's lower-left, inside it, so it never hangs off the window */
.hero__art > .ly-piece--note { left: calc(var(--s-8) + var(--s-5)); bottom: var(--s-6); width: 300px; z-index: 2; }
.ff-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ff-card__label { font-size: 13px; color: #4d535a; }
.ff-card__title { margin: 6px 0 4px; font: 500 15px/1.3 var(--font-text); color: #13213b; }
.ff-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px;
  font-size: 13px; font-weight: 500; background: #e6f3f4; color: #065f69; white-space: nowrap; }
.ff-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ff-card__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); }
.ff-card__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: #e6f3f4; color: #065f69; font-style: normal; font-size: 12px; font-weight: 600; }
@media (max-width: 1023px) {
  .hero__art > .ly-piece--note { left: calc(var(--s-6) + var(--s-4)); bottom: var(--s-4); width: 270px; }
  .ff-win__body { min-height: 360px; padding: 32px var(--ly-cut-room) 32px 32px; }
}
@media (max-width: 639px) { .ff-win__body { padding: 24px var(--ly-cut-room) 24px 24px; } }

/* ---------------------------------------------------------------- app-frame (sections-library.md) */
.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; }
}
/* the open draft fills its pane: the page on the left, the note beside it */
.app .ui-doc { width: 100%; min-height: 100%; padding: 0 248px 0 0; }
.app .ui-doc__page { border: 0; border-radius: 0; box-shadow: none; padding: 28px 32px; }
.app .ui-doc__note { right: 32px; width: 200px; margin-top: 28px; }
.ff-meta { margin-top: 8px; border-collapse: collapse; font: 400 13px/21px var(--font-mono); color: color-mix(in oklab, var(--u-ink) 82%, var(--u-bg)); }
.ff-meta td { padding: 4px 24px 4px 0; border-bottom: 1px solid var(--u-line); }
.ff-meta tr:first-child td { color: var(--u-muted); }
.app .ui-doc__text b { font-weight: 500; color: var(--u-ink); }
.app .ui-win__row .ui-avatar svg { width: 14px; height: 14px; }
@media (max-width: 639px) { .app .ui-doc { padding: 0; } .app .ui-doc__page { padding: 20px; } .app .ui-doc__note { display: none; } }

/* ---------------------------------------------------------------- setup steps */
#how-it-works .panel { --p-h: 300px; }
@media (min-width: 640px) and (max-width: 1279px) { #how-it-works { --h: 2; } }
@media (max-width: 639px) { #how-it-works { --hm: 2; } }
#how-it-works .steps { list-style: none; padding: 0; margin-block: var(--s-7) 0; }
@media (max-width: 639px) { #how-it-works .panel { --p-h: 196px; } }

/* ---------------------------------------------------------------- the embed code */
.integration__text > * + * { margin-top: var(--s-5); }
.integration__facts { list-style: none; padding: 0; margin: var(--s-6) 0 0; }
.integration__facts li { padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.integration__facts li:last-child { border-bottom: 1px solid var(--line); }
.integration__frame { aspect-ratio: 5 / 4; background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    var(--ground-bg); }
.integration__code { position: absolute; left: var(--s-8); top: var(--s-8); right: calc(-1 * var(--s-6)); bottom: calc(-1 * var(--s-8)); }
.integration__code .code-example { height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px;
  background: #0f1d33; color: #e6edf5; box-shadow: 0 0 0 1px rgb(0 0 0 / .1), 0 24px 60px -28px rgb(0 0 0 / .5); }
.integration__code .code-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px;
  padding: 0 calc(var(--s-6) + 16px) 0 20px; border-bottom: 1px solid rgb(255 255 255 / .1); font-size: 13px; color: #b6c2d1; }
.integration__code .code-heading button { min-height: 44px; padding: 0 14px; border: 1px solid rgb(255 255 255 / .22); border-radius: 8px;
  background: transparent; color: #e6edf5; font: 500 13px/1 var(--font-text); cursor: pointer; }
.integration__code .code-heading button:hover { background: rgb(255 255 255 / .08); }
.integration__code pre { margin: 0; padding: 20px calc(var(--s-6) + 20px) 20px 20px; font: 400 13px/1.7 var(--font-mono); white-space: pre-wrap; word-break: break-word; }
.integration__code .copy-result { padding: 0 20px; font-size: 13px; color: #b6c2d1; }
@media (max-width: 1023px) { .integration__frame { aspect-ratio: 21 / 9; margin-top: var(--s-6); } .integration__code { left: var(--s-6); top: var(--s-6); } }
@media (max-width: 639px) { .integration__frame { aspect-ratio: 4 / 3; } .integration__code { left: var(--s-4); top: var(--s-4); } }

/* ---------------------------------------------------------------- pricing and questions */
.plan__marks { display: flex; gap: var(--s-2); margin-bottom: var(--s-5); }
.plan__marks .ic-tile { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.plan__marks img { width: 28px; height: 28px; border-radius: 6px; }
#pricing .section-head p + p { margin-top: var(--s-3); }
#pricing .grid { margin-top: var(--s-6); }
@media (min-width: 640px) and (max-width: 1023px) { #pricing .grid > .card { grid-column: auto / span 4; min-height: 340px; } }
/* a phone: two screens, the plans taking the room the second screen gives them */
@media (max-width: 639px) { #pricing { --hm: 2; } #pricing .grid > .card { min-height: 300px; } }
#pricing .btn-row { margin-top: var(--s-6); }
#pricing .price { margin: var(--s-3) 0 var(--s-4); font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: -0.02em; }
/* the six questions: three across on a wide screen (one screen), two across from 1024, one column below;
   the tablet and the phone take two screens */
.faq--grid { margin-top: var(--s-6); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter, 24px); row-gap: var(--s-6); align-content: start; }
.faq--grid > .faq__item { padding-top: 0; align-content: start; }
@media (max-width: 1279px) { #faq { --h: 2; } .faq--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .faq--grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) {
  /* six open answers in two phone screens: the feedback line waits for the footer, the rows sit closer */
  #faq { --hm: 2; }
  #faq .faq--grid { margin-top: var(--s-3); row-gap: 0; }
  #faq .faq__aside { display: none; }
  #faq .faq__item { padding-block: var(--s-2) var(--s-3); }
  #faq .faq__item h3 { font-size: 17px; line-height: 1.25; }
  #faq .faq__item p { line-height: 1.45; margin-top: var(--s-1); }
}

/* ---------------------------------------------------------------- footer: the theme switch at tap size */
.theme-toggle-home .theme-toggle-options { display: inline-flex; gap: 8px; padding: 0; border: 0; background: transparent; }
.theme-toggle-home button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: var(--r-sm);
  border: 1px solid color-mix(in oklab, currentColor 22%, transparent); background: transparent; color: inherit; cursor: pointer; }
.theme-toggle-home button[aria-checked="true"] { background: color-mix(in oklab, currentColor 14%, transparent); }
.theme-toggle-home svg { width: 18px; height: 18px; }
.closing__cta .btn--xl { justify-content: center; gap: var(--s-4); }
.footer__legal { flex-wrap: wrap; row-gap: var(--s-4); }
@media (max-width: 639px) { .closing__cta .btn--xl { white-space: normal; min-width: 0; } }
.closing__signed-in { display: grid; gap: var(--s-5); justify-items: start; }
