/* FactorialOne! app landing pages. Brand: BRAND.md (Carbon, Bone, Amber, Signal Blue;
   Barlow Semi Condensed / Barlow / IBM Plex Mono). Mono is only for paths, versions and data. */

.fo-app {
  --fo-carbon: #17140f;
  --fo-panel: #1d1913;
  --fo-panel-2: #241f18;
  --fo-bone: #f7f4ee;
  --fo-dim: #b8b1a5;
  --fo-slate: #9b9488;
  --fo-amber: #f0a233;
  --fo-amber-ink: #17140f;
  --fo-blue: #3e8cd8;
  --fo-rule: rgba(247, 244, 238, 0.12);
  --fo-rule-strong: rgba(247, 244, 238, 0.22);
  --fo-display: var(--wp--preset--font-family--barlow-semi-condensed, "Barlow Semi Condensed", sans-serif);
  --fo-body: var(--wp--preset--font-family--barlow, Barlow, sans-serif);
  --fo-mono: var(--wp--preset--font-family--ibm-plex-mono, "IBM Plex Mono", monospace);
  --fo-wrap: 1200px;
  --fo-gutter: clamp(20px, 5vw, 48px);
  --fo-ease: cubic-bezier(0.16, 1, 0.3, 1);

  color: var(--fo-bone);
  background: var(--fo-carbon);
  font-family: var(--fo-body);
  font-size: 18px;
  line-height: 1.6;
  caret-color: var(--fo-amber);
}
body.fo-app-page { background: #17140f; }
html:has(body.fo-app-page) { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html:has(body.fo-app-page) { scroll-behavior: auto; } }

.fo-app ::selection { background: var(--fo-amber); color: var(--fo-amber-ink); }
.fo-app :focus-visible { outline: 2px solid var(--fo-amber); outline-offset: 3px; border-radius: 4px; }
.fo-app a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.fo-app a:hover { color: var(--fo-amber); }
.fo-app code, .fo-app .fo-mono { font-family: var(--fo-mono); font-size: 0.86em; }
.fo-app p code { background: var(--fo-panel-2); padding: 0.1em 0.35em; border-radius: 4px; }

/* Each section */
.fo-app > .wp-block-group,
.fo-app .fo-app-section {
  max-width: var(--fo-wrap);
  margin: 0 auto !important;
  padding-inline: var(--fo-gutter);
  box-sizing: border-box;
}
.fo-app .fo-app-section { padding-block: clamp(64px, 10vw, 128px); border-top: 1px solid var(--fo-rule); }

/* Type */
.fo-app h1, .fo-app h2, .fo-app h3 {
  font-family: var(--fo-display);
  color: var(--fo-bone);
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
.fo-app h1.fo-app-title { font-size: clamp(48px, 7.4vw, 92px); font-weight: 800; line-height: 0.9; letter-spacing: -0.02em; }
.fo-app h2 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; line-height: 0.95; margin-bottom: 20px; }
.fo-app h3 { font-size: clamp(28px, 3vw, 36px); font-weight: 700; line-height: 1; margin-bottom: 16px; }
.fo-app p { margin: 0 0 16px; max-width: 64ch; }
.fo-app .fo-app-lede { font-size: clamp(19px, 1.6vw, 22px); color: var(--fo-dim); max-width: 46ch; margin-top: 24px; }
.fo-app .fo-app-intro { color: var(--fo-dim); max-width: 60ch; }
.fo-app .fo-app-meta { font-family: var(--fo-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--fo-slate); margin-top: 20px; }
.fo-app .fo-app-meta a { color: var(--fo-dim); }

/* Nav */
.fo-app-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(23, 20, 15, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--fo-rule);
}
.fo-app-nav__in {
  max-width: var(--fo-wrap); margin: 0 auto; padding: 14px var(--fo-gutter);
  display: flex; align-items: center; gap: 24px;
}
.fo-app-nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--fo-display); font-weight: 800; font-size: 22px; letter-spacing: -0.015em; }
.fo-app-nav__brand svg { width: 24px; height: 24px; color: var(--fo-amber); flex: none; }
.fo-app-nav__brand .bang { color: var(--fo-amber); }
.fo-app-nav__crumb { color: var(--fo-slate); font-family: var(--fo-body); font-weight: 500; font-size: 16px; text-decoration: none; }
.fo-app-nav__links { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 16px; font-weight: 500; }
.fo-app-nav__links a { text-decoration: none; color: var(--fo-dim); }
.fo-app-nav__links a:hover { color: var(--fo-bone); }
.fo-app-nav__links a.fo-btn { color: var(--fo-amber-ink); }
@media (max-width: 760px) {
  .fo-app-nav__links a:not(.fo-btn) { display: none; }
  .fo-app-nav__crumb { display: none; }
}

/* Buttons (core/buttons get the same treatment) */
.fo-app .fo-btn,
.fo-app .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fo-body); font-weight: 600; font-size: 17px; line-height: 1;
  padding: 16px 22px; border-radius: 10px; text-decoration: none;
  background: var(--fo-amber); color: var(--fo-amber-ink); border: 1px solid var(--fo-amber);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 24px -12px rgba(240, 162, 51, 0.55);
  transition: transform 160ms var(--fo-ease), box-shadow 200ms var(--fo-ease), background 160ms;
}
.fo-app .fo-btn:hover, .fo-app .wp-block-button__link:hover { color: var(--fo-amber-ink); background: #f5b252; transform: translateY(-1px); }
.fo-app .fo-btn:active, .fo-app .wp-block-button__link:active { transform: translateY(0) scale(0.98); }
.fo-app .fo-btn--sm { padding: 10px 14px; font-size: 15px; border-radius: 8px; }
.fo-app .is-style-outline .wp-block-button__link {
  background: transparent; color: var(--fo-bone); border-color: var(--fo-rule-strong); box-shadow: none;
}
.fo-app .is-style-outline .wp-block-button__link:hover { border-color: var(--fo-bone); background: transparent; color: var(--fo-bone); }
.fo-app .wp-block-buttons { gap: 12px; margin-top: 36px; }

/* Hero */
.fo-app .fo-app-hero { padding-block: clamp(48px, 9vw, 120px) clamp(64px, 9vw, 112px); }
.fo-app .fo-app-hero > .wp-block-columns { gap: clamp(40px, 6vw, 80px); align-items: center; margin: 0; }
.fo-app .fo-app-icon { margin: 0 0 28px; }
.fo-app .fo-app-icon img { width: 88px; height: 88px; display: block; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45)); }

/* Destination panel in the hero */
.fo-tree {
  margin: 0; background: var(--fo-panel); border: 1px solid var(--fo-rule-strong); border-radius: 12px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(247, 244, 238, 0.06) inset;
  overflow: hidden; font-family: var(--fo-mono); font-size: 13px; line-height: 1.5;
}
.fo-tree__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--fo-rule); color: var(--fo-slate); }
.fo-tree__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--fo-panel-2); border: 1px solid var(--fo-rule-strong); }
.fo-tree__bar span { margin-left: 8px; color: var(--fo-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-tree ul { list-style: none; margin: 0; padding: 12px 8px 16px; }
.fo-tree li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; color: var(--fo-bone); }
.fo-tree li[data-d="1"] { padding-left: 30px; }
.fo-tree li[data-d="2"] { padding-left: 52px; }
.fo-tree li svg { width: 16px; height: 16px; color: var(--fo-slate); }
.fo-tree li.is-dir svg { color: var(--fo-blue); }
.fo-tree li .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-tree li .t { font-size: 11px; letter-spacing: 0.06em; color: var(--fo-slate); white-space: nowrap; }
.fo-tree li.is-new { background: rgba(240, 162, 51, 0.08); }
.fo-tree li.is-new .t { color: var(--fo-amber); }
.fo-tree__foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--fo-rule); color: var(--fo-slate); font-size: 12px; }
.fo-tree__foot b { color: var(--fo-amber); font-weight: 500; }
@media (max-width: 520px) { .fo-tree li .t { display: none; } .fo-tree li[data-d="2"] { padding-left: 40px; } }

/* The one authored moment: the backup writes itself into the panel. */
@keyframes fo-row-in { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: no-preference) {
  .fo-tree li { animation: fo-row-in 520ms var(--fo-ease) both; }
  .fo-tree li:nth-child(1) { animation-delay: 150ms; } .fo-tree li:nth-child(2) { animation-delay: 230ms; }
  .fo-tree li:nth-child(3) { animation-delay: 310ms; } .fo-tree li:nth-child(4) { animation-delay: 390ms; }
  .fo-tree li:nth-child(5) { animation-delay: 470ms; } .fo-tree li:nth-child(6) { animation-delay: 550ms; }
  .fo-tree li:nth-child(7) { animation-delay: 630ms; } .fo-tree li:nth-child(8) { animation-delay: 710ms; }
  .fo-tree li:nth-child(9) { animation-delay: 790ms; } .fo-tree li:nth-child(10) { animation-delay: 870ms; }
  .fo-tree li:nth-child(11) { animation-delay: 950ms; }
}

/* How it works diagram */
.fo-flow { margin: 48px 0 0; }
.fo-flow svg { display: block; width: 100%; height: auto; }
.fo-flow .fo-flow__tall { display: none; max-width: 420px; margin: 0 auto; }
@media (max-width: 760px) { .fo-flow .fo-flow__wide { display: none; } .fo-flow .fo-flow__tall { display: block; } }

/* Feature rows */
.fo-app .fo-feature { gap: clamp(32px, 6vw, 88px); align-items: center; margin: 0; }
.fo-app .fo-feature + .fo-feature { margin-top: clamp(72px, 10vw, 128px); }
.fo-app .fo-feature.is-flipped { flex-direction: row-reverse; }
@media (max-width: 781px) { .fo-app .fo-feature.is-flipped { flex-direction: column; } }
.fo-app .fo-feature .wp-block-list { margin: 20px 0 0; padding: 0; list-style: none; }
.fo-app .fo-feature .wp-block-list li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--fo-rule); color: var(--fo-dim); }
.fo-app .fo-feature .wp-block-list li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 12px; height: 4px; border-radius: 2px; background: var(--fo-amber); }

/* Screenshot slot, until real screenshots arrive */
.fo-shot {
  aspect-ratio: 4 / 3; border-radius: 12px; border: 1px dashed var(--fo-rule-strong);
  background:
    linear-gradient(var(--fo-rule) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--fo-rule) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--fo-panel);
  display: grid; place-content: center; text-align: center; padding: 24px; gap: 8px;
  font-family: var(--fo-mono); font-size: 13px; color: var(--fo-slate);
}
.fo-shot b { color: var(--fo-amber); font-weight: 500; letter-spacing: 0.08em; }
.fo-app figure.fo-screenshot { margin: 0 auto; max-width: 100%; }
.fo-app figure.fo-screenshot img { display: block; max-width: 100%; height: auto; margin: 0 auto;
  filter: drop-shadow(0 0 0.6px rgba(247, 244, 238, 0.45)) drop-shadow(0 28px 36px rgba(0, 0, 0, 0.55)); }

/* Data panels used as feature visuals */
.fo-panel { background: var(--fo-panel); border: 1px solid var(--fo-rule-strong); border-radius: 12px; padding: 8px 24px; }
.fo-panel table { width: 100%; border-collapse: collapse; font-size: 16px; }
.fo-panel th { text-align: left; font-family: var(--fo-mono); font-size: 12px; letter-spacing: 0.1em; font-weight: 500; color: var(--fo-slate); padding: 16px 0 12px; }
.fo-panel td { padding: 14px 16px 14px 0; border-top: 1px solid var(--fo-rule); vertical-align: top; color: var(--fo-dim); }
.fo-panel td:first-child { color: var(--fo-bone); font-weight: 600; white-space: nowrap; }
.fo-panel td code { color: var(--fo-amber); }
.fo-steps { list-style: none; margin: 0; padding: 8px 0; counter-reset: s; }
.fo-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--fo-rule); color: var(--fo-dim); }
.fo-steps li:first-child { border-top: 0; }
.fo-steps li::before { content: counter(s); font-family: var(--fo-display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--fo-amber); font-variant-numeric: tabular-nums; }
.fo-steps strong { color: var(--fo-bone); font-weight: 600; display: block; }
.fo-steps code { color: var(--fo-bone); }

/* Requirements table (core/table) */
.fo-app .fo-reqs { margin: 40px 0 0; }
.fo-app .fo-reqs table { width: 100%; border-collapse: collapse; }
.fo-app .fo-reqs th { text-align: left; font-family: var(--fo-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--fo-slate); padding: 0 16px 14px 0; border: 0; border-bottom: 1px solid var(--fo-rule-strong); }
.fo-app .fo-reqs td { padding: 18px 16px 18px 0; border: 0; border-bottom: 1px solid var(--fo-rule); color: var(--fo-dim); vertical-align: top; }
.fo-app .fo-reqs td:first-child { color: var(--fo-bone); font-weight: 600; }
.fo-app .fo-reqs td:last-child { white-space: nowrap; }
@media (max-width: 600px) { .fo-app .fo-reqs td:last-child { white-space: normal; } .fo-app .fo-reqs td, .fo-app .fo-reqs th { font-size: 15px; } }
.fo-app .fo-note { margin-top: 32px; padding: 20px 24px; border: 1px solid var(--fo-rule-strong); border-radius: 12px; background: var(--fo-panel); color: var(--fo-dim); max-width: none; }
.fo-app .fo-note strong { color: var(--fo-bone); }

/* FAQ (core/details) */
.fo-app .fo-faq { margin-top: 40px; border-top: 1px solid var(--fo-rule-strong); }
.fo-app .fo-faq details { border-bottom: 1px solid var(--fo-rule); margin: 0; }
.fo-app .fo-faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 0; font-family: var(--fo-display); font-weight: 700; font-size: clamp(21px, 2vw, 26px); line-height: 1.15; color: var(--fo-bone);
}
.fo-app .fo-faq summary::-webkit-details-marker { display: none; }
.fo-app .fo-faq summary::after { content: "+"; font-family: var(--fo-body); font-weight: 400; color: var(--fo-amber); transition: transform 240ms var(--fo-ease); }
.fo-app .fo-faq details[open] summary::after { transform: rotate(45deg); }
.fo-app .fo-faq summary:hover { color: var(--fo-amber); }
.fo-app .fo-faq details > p { color: var(--fo-dim); padding: 0 0 24px; margin: 0; }

/* Download band */
.fo-app .fo-app-cta { gap: clamp(32px, 6vw, 80px); align-items: center; margin: 0; }
.fo-app .fo-app-cta h2 { font-size: clamp(44px, 6.4vw, 80px); font-weight: 800; line-height: 0.9; }
.fo-app .fo-app-cta .fo-app-icon img { width: clamp(120px, 16vw, 200px); height: auto; margin-left: auto; }
@media (max-width: 781px) { .fo-app .fo-app-cta .fo-app-icon img { margin-left: 0; width: 112px; } }

/* More apps */
.fo-app .fo-more { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; padding-block: 40px 72px !important; }
.fo-app .fo-more p { margin: 0; }
.fo-app .fo-more a { font-family: var(--fo-display); font-weight: 700; font-size: 24px; text-decoration: none; }
.fo-app .fo-more .fo-more__label { font-family: var(--fo-body); font-size: 16px; color: var(--fo-slate); }

/* Keep the theme's own spacing out of our sections */
.fo-app .wp-block-columns { margin-bottom: 0; }
.fo-app .wp-block-column > *:last-child { margin-bottom: 0; }

/* Template chrome: no gap above the app nav */
body.fo-app-page .wp-site-blocks { padding-top: 0 !important; }
body.fo-app-page .wp-site-blocks > *:first-child, .fo-app { margin-top: 0 !important; margin-block-start: 0 !important; }
.fo-app .fo-reqs thead { border-bottom: 0; }

/* Coming-soon marker in place of a download button */
.fo-app .fo-soon {
  display: inline-flex; align-items: center; gap: 10px; margin: 36px 12px 0 0; padding: 15px 20px;
  border: 1px dashed var(--fo-rule-strong); border-radius: 10px; vertical-align: middle;
  font-family: var(--fo-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--fo-dim); max-width: none;
}
.fo-app .fo-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fo-amber); box-shadow: 0 0 0 4px rgba(240, 162, 51, 0.18); }
.fo-app .fo-soon + .wp-block-buttons { display: inline-flex; vertical-align: middle; }
.fo-app .fo-app-cta .fo-soon { margin-top: 28px; }

/* Screenshot variants: framed crops with their own background, and phone renders */
.fo-app figure.fo-frame img { border-radius: 12px; border: 1px solid var(--fo-rule-strong); filter: none; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.fo-app figure.fo-phone img { width: min(300px, 72vw) !important; filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.55)); }
.fo-app .fo-app-hero figure.fo-screenshot img { max-height: 680px; width: auto; }
.fo-app .fo-app-hero figure.fo-frame img { width: 100%; max-height: none; }

/* Forms (the Jetpack beta sign-up) */
.fo-app .fo-form { max-width: 560px; margin-top: 32px; }
.fo-app .fo-form label { display: block; font-family: var(--fo-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fo-slate); margin-bottom: 8px; }
.fo-app .fo-form input[type="text"], .fo-app .fo-form input[type="email"] {
  width: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: 10px; font: 500 17px var(--fo-body);
  background: var(--fo-panel); color: var(--fo-bone); border: 1px solid var(--fo-rule-strong);
}
.fo-app .fo-form input:focus { outline: 2px solid var(--fo-amber); outline-offset: 2px; border-color: transparent; }
.fo-app .fo-form .grunion-field-wrap, .fo-app .fo-form .grunion-field-name-wrap, .fo-app .fo-form .grunion-field-email-wrap { margin-bottom: 20px; }

/* Stages: large screenshots on a wide rounded backdrop, the way dockdoor.net shows its UI.
   .fo-stage.is-center | is-menu | is-crop | is-fill  >  core/image.fo-stage__shot  (+ p.fo-stage__cap) */
.fo-app .fo-stage {
  position: relative; overflow: hidden; box-sizing: border-box; margin: 48px 0 0 !important;
  display: flex; align-items: center; justify-content: center; padding: 56px 6% 48px;
  min-height: clamp(260px, 38vw, 540px); border-radius: 24px; border: 1px solid var(--fo-rule-strong);
  background: #17140f url("stage-wallpaper.svg?v=2") center / cover no-repeat;
  box-shadow: 0 60px 100px -70px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(247, 244, 238, 0.06) inset;
}
.fo-app .fo-stage figure.fo-stage__shot { margin: 0; }
.fo-app .fo-stage figure.fo-stage__shot img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 520px;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
}
/* Menu bar window: a menu bar strip across the top, the window under it on the right */
.fo-app .fo-stage.is-menu { align-items: flex-start; justify-content: flex-end; padding: 40px 7% 40px; }
.fo-app .fo-stage.is-menu::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 26px;
  background:
    linear-gradient(rgba(247, 244, 238, 0.7), rgba(247, 244, 238, 0.7)) 18px 50% / 64px 8px no-repeat,
    linear-gradient(rgba(247, 244, 238, 0.4), rgba(247, 244, 238, 0.4)) 98px 50% / 28px 8px no-repeat,
    linear-gradient(rgba(247, 244, 238, 0.4), rgba(247, 244, 238, 0.4)) 140px 50% / 28px 8px no-repeat,
    linear-gradient(rgba(247, 244, 238, 0.4), rgba(247, 244, 238, 0.4)) calc(100% - 18px) 50% / 70px 8px no-repeat,
    linear-gradient(#f0a233, #f0a233) calc(100% - 104px) 50% / 14px 14px no-repeat,
    rgba(15, 13, 10, 0.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(247, 244, 238, 0.08);
}
.fo-app .fo-stage.is-menu figure.fo-stage__shot img { max-height: 560px; }
/* Tall window: anchored to the top and cut off by the stage's bottom edge */
.fo-app .fo-stage.is-crop { align-items: flex-start; height: clamp(320px, 40vw, 540px); min-height: 0; padding-bottom: 0; }
.fo-app .fo-stage.is-crop figure.fo-stage__shot img { max-height: none; max-width: min(100%, 680px); }
/* The image is already a full scene */
.fo-app .fo-stage.is-fill { padding: 0; min-height: 0; background: #0f121a; }
.fo-app .fo-stage.is-fill figure.fo-stage__shot { width: 100%; }
.fo-app .fo-stage.is-fill figure.fo-stage__shot img { width: 100%; max-width: none; max-height: none; filter: none; }
/* Caption bar along the bottom of a stage */
.fo-app .fo-stage .fo-stage__cap {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; max-width: none; z-index: 2;
  padding: 12px 24px; font-size: 15px; color: var(--fo-dim);
  background: rgba(15, 13, 10, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(247, 244, 238, 0.08);
}
.fo-app .fo-stage:has(.fo-stage__cap) { padding-bottom: 72px; }
.fo-app .fo-stage.is-crop:has(.fo-stage__cap) { padding-bottom: 0; }
@media (max-width: 781px) {
  .fo-app .fo-stage { border-radius: 16px; padding: 40px 5% 32px; margin-top: 32px !important; }
  .fo-app .fo-stage.is-menu { padding: 36px 5% 24px; justify-content: center; }
  .fo-app .fo-stage.is-menu::before { height: 20px; }
  .fo-app .fo-stage figure.fo-stage__shot img, .fo-app .fo-stage.is-menu figure.fo-stage__shot img { max-height: 440px; }
  .fo-app .fo-stage .fo-stage__cap { position: static; margin: 24px -6% -32px; }
}

/* Section that leads with a big headline beside its intro, then a full-width stage, then notes */
.fo-app .fo-split-head { gap: clamp(24px, 6vw, 96px); align-items: flex-end; margin: 0; }
.fo-app .fo-split-head h2 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; line-height: 0.9; margin: 0; }
.fo-app .fo-split-head p { color: var(--fo-dim); margin: 0; }
.fo-app .fo-stage-block + .fo-stage-block { margin-top: clamp(88px, 12vw, 152px) !important; }
.fo-app .fo-stage-block + .fo-feature, .fo-app .fo-feature + .fo-stage-block { margin-top: clamp(88px, 12vw, 152px) !important; }
.fo-app .fo-notes { gap: clamp(20px, 3vw, 40px); margin: 40px 0 0 !important; align-items: flex-start; }
.fo-app .fo-notes > .wp-block-column { border-top: 1px solid var(--fo-rule-strong); padding-top: 18px; }
.fo-app .fo-notes h4 { font-family: var(--fo-body); font-weight: 700; font-size: 18px; letter-spacing: 0; margin: 0 0 6px; color: var(--fo-bone); }
.fo-app .fo-notes p { font-size: 16px; color: var(--fo-dim); margin: 0; }

/* Wide hero: headline left, intro and actions right, stage across the full width */
.fo-app .fo-app-hero.is-wide > .wp-block-columns { align-items: flex-end; }
.fo-app .fo-app-hero.is-wide .fo-app-lede { margin-top: 0; }
.fo-app .fo-app-hero.is-wide .fo-stage { margin-top: clamp(40px, 6vw, 72px) !important; }
.fo-app .fo-stage figure.fo-stage__shot { width: fit-content; margin-inline: auto; }
.fo-app .fo-stage.is-menu figure.fo-stage__shot { margin-inline: 0; }
.fo-app .fo-stage.is-fill figure.fo-stage__shot { width: 100%; }
@media (max-width: 781px) {
  .fo-app .fo-stage { flex-direction: column; align-items: center !important; justify-content: flex-start !important; }
  .fo-app .fo-stage .fo-stage__cap { align-self: stretch; margin: 24px calc(-5.3% - 1px) -24px; font-size: 14px; }
  .fo-app .fo-stage.is-menu figure.fo-stage__shot { margin-inline: auto; }
}
.fo-app .fo-stage:not(.is-menu) figure.fo-stage__shot img { margin-inline: auto; }
.fo-app .fo-stage.is-menu { min-height: clamp(240px, 28vw, 400px); }

/* Support: bug form beside the tip jar */
.fo-app .fo-support { gap: clamp(32px, 6vw, 80px); align-items: flex-start !important; margin: 0; }
.fo-app .fo-form textarea {
  width: 100%; min-height: 160px; box-sizing: border-box; padding: 14px 16px; border-radius: 10px; font: 500 17px/1.5 var(--fo-body);
  background: var(--fo-panel); color: var(--fo-bone); border: 1px solid var(--fo-rule-strong); resize: vertical;
}
.fo-app .fo-form textarea:focus { outline: 2px solid var(--fo-amber); outline-offset: 2px; border-color: transparent; }
.fo-app .fo-form .contact-form__error, .fo-app .fo-form .contact-form-submission { color: var(--fo-dim); }
.fo-app .fo-tip {
  margin-top: 8px; padding: 32px; border-radius: 20px; border: 1px solid var(--fo-rule-strong);
  background: #17140f url("stage-wallpaper.svg?v=2") center / cover no-repeat;
}
.fo-app .fo-tip h3 { margin-bottom: 12px; }
.fo-app .fo-tip p { color: var(--fo-dim); }
.fo-app .fo-tip .wp-block-buttons { margin-top: 20px; }
.fo-app .fo-tip .fo-tip__privacy { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--fo-rule); font-size: 16px; }

/* Privacy and other reading pages */
.fo-app .fo-doc > * { max-width: 760px; }
.fo-app .fo-doc { border-top: 0; padding-top: clamp(40px, 7vw, 88px); }
.fo-app .fo-doc h1.fo-doc__title { font-size: clamp(44px, 6vw, 72px); font-weight: 800; line-height: 0.92; }
.fo-app .fo-doc h2 { font-size: clamp(26px, 2.6vw, 32px); margin: 48px 0 12px; }
.fo-app .fo-doc p, .fo-app .fo-doc li { color: var(--fo-dim); max-width: 68ch; }
.fo-app .fo-doc strong { color: var(--fo-bone); }
.fo-app .fo-doc .wp-block-list { padding-left: 1.2em; margin: 0 0 16px; }
.fo-app .fo-doc .wp-block-list li { margin: 6px 0; }
.fo-app .fo-doc__summary { margin-top: 32px; padding: 20px 24px; border: 1px solid var(--fo-rule-strong); border-radius: 12px; background: var(--fo-panel); }
.fo-app .fo-doc__summary p { color: var(--fo-bone); margin: 0; }
.fo-app .fo-doc__foot { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--fo-rule); }

/* App message forms ([fo_report], [fo_beta]) */
.fo-app .fo-msg p { margin: 0 0 18px; max-width: none; }
.fo-app .fo-msg label { display: block; font-family: var(--fo-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fo-slate); margin-bottom: 8px; }
.fo-app .fo-msg .fo-msg__opt { text-transform: none; letter-spacing: 0; color: var(--fo-slate); opacity: 0.8; }
.fo-app .fo-msg input, .fo-app .fo-msg textarea {
  width: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: 10px; font: 500 17px/1.5 var(--fo-body);
  background: var(--fo-panel); color: var(--fo-bone); border: 1px solid var(--fo-rule-strong);
}
.fo-app .fo-msg textarea { min-height: 160px; resize: vertical; }
.fo-app .fo-msg input:focus, .fo-app .fo-msg textarea:focus { outline: 2px solid var(--fo-amber); outline-offset: 2px; border-color: transparent; }
.fo-app .fo-msg__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .fo-app .fo-msg__row { grid-template-columns: 1fr; } }
.fo-app .fo-msg .wp-block-buttons { margin-top: 8px; }
.fo-app .fo-msg button { cursor: pointer; }
.fo-app .fo-msg__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fo-app .fo-msg__ok, .fo-app .fo-msg__err { padding: 14px 18px; border-radius: 10px; margin: 0 0 20px; max-width: none; }
.fo-app .fo-msg__ok { background: rgba(240, 162, 51, 0.12); border: 1px solid rgba(240, 162, 51, 0.5); color: var(--fo-bone); }
.fo-app .fo-msg__err { background: rgba(214, 72, 52, 0.12); border: 1px solid rgba(214, 72, 52, 0.55); color: var(--fo-bone); }
.fo-app .fo-support > .wp-block-column { align-self: flex-start !important; }
.fo-app .fo-support > .wp-block-column:last-child { position: sticky; top: 96px; }
.fo-app .fo-msg .wp-block-buttons { display: flex; }
.fo-app .fo-msg .wp-block-buttons .wp-block-button__link { width: auto; }
/* Support stacks: bug form first, then the Made by Vinny card */
.fo-app .fo-support__form { max-width: 760px; }
.fo-app #support .fo-tip { max-width: 760px; margin-top: clamp(56px, 8vw, 96px); position: static; }
