/* Fold Band components. Built only from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.fb-page {
  margin: 0;
  min-height: 100vh;
  padding: var(--fb-space-6) calc(var(--fb-ribbon-w) + var(--fb-space-4)) var(--fb-space-8);
  background: var(--fb-hatch);
  color: var(--fb-ink);
  font-family: var(--fb-font-body);
  font-size: var(--fb-size-body);
  line-height: var(--fb-leading);
  overflow-x: clip;
}

/* ---------- Links and text ---------- */

a { color: var(--fb-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fb-link-hover); }

.fb-h1 {
  margin: 0 0 var(--fb-space-4);
  font-family: var(--fb-font-display);
  font-weight: 700;
  font-size: var(--fb-size-h1);
  line-height: var(--fb-leading-tight);
  color: var(--fb-ribbon);
  letter-spacing: -0.005em;
}
.fb-h2 {
  margin: var(--fb-space-7) 0 var(--fb-space-4);
  font-family: var(--fb-font-label);
  font-weight: 700;
  font-size: var(--fb-size-h2);
  line-height: 1.2;
  color: var(--fb-ink);
}
.fb-h3 {
  margin: 0 0 var(--fb-space-2);
  font-family: var(--fb-font-label);
  font-weight: 700;
  font-size: var(--fb-size-h3);
  line-height: 1.25;
  color: var(--fb-ink);
}
.fb-lede { font-size: 1.1875rem; color: var(--fb-ink-soft); margin: 0 0 var(--fb-space-5); }
.fb-muted { color: var(--fb-muted); }
.fb-small { font-size: var(--fb-size-small); }

.fb-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--fb-space-2);
  margin: 0 0 var(--fb-space-3);
  font-family: var(--fb-font-label);
  font-weight: 700;
  font-size: var(--fb-size-label);
  letter-spacing: var(--fb-track-caps);
  text-transform: uppercase;
  color: var(--fb-ribbon);
}
.fb-kicker::before { content: "\2605"; }

/* ---------- The sheet and its ribbon ---------- */

.fb-sheet {
  position: relative;
  max-width: var(--fb-sheet-w);
  margin: 0 auto;
  background: var(--fb-sheet);
  border-radius: 0 var(--fb-radius-sheet) 0 0;
  box-shadow: var(--fb-shadow-sheet);
}

/* Masthead: left stripe runs down beside it */
.fb-mast {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--fb-space-5);
  padding: var(--fb-space-5) var(--fb-pad) var(--fb-space-5);
}
.fb-mast::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--fb-ribbon-w) * -1);
  width: var(--fb-ribbon-w);
  background: var(--fb-stripes);
}
.fb-mast-title {
  display: block;
  font-family: var(--fb-font-display);
  font-weight: 700;
  font-size: var(--fb-size-mast);
  line-height: 0.95;
  color: var(--fb-ribbon);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.fb-mast-title:hover { color: var(--fb-fold); }
.fb-mast-tag { margin: var(--fb-space-2) 0 0; font-style: italic; color: var(--fb-muted); font-size: var(--fb-size-small); }
.fb-mast-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding-top: var(--fb-space-1);
}
.fb-mast-nav a {
  font-family: var(--fb-font-label);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
  letter-spacing: var(--fb-track-caps);
  text-transform: uppercase;
  color: var(--fb-ink);
  text-decoration: none;
}
.fb-mast-nav a:hover, .fb-mast-nav a[aria-current] { color: var(--fb-ribbon); }

/* The band: the ribbon folds across the sheet. It overhangs both edges
   and is cut into a parallelogram so the stripes meet it at a fold. */
.fb-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: var(--fb-space-1) var(--fb-space-3);
  min-height: var(--fb-band-h);
  margin: 0 calc(var(--fb-ribbon-w) * -1);
  padding: var(--fb-space-2) calc(var(--fb-ribbon-w) + var(--fb-pad));
  background: var(--fb-ribbon);
  clip-path: polygon(0 0, calc(100% - var(--fb-ribbon-w)) 0, 100% 100%, var(--fb-ribbon-w) 100%);
}
.fb-band::before, .fb-band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--fb-ribbon-w);
  background: var(--fb-fold);
}
.fb-band::before { left: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.fb-band::after { right: 0; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.fb-band a {
  display: inline-flex;
  align-items: center;
  gap: var(--fb-space-3);
  font-family: var(--fb-font-label);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: var(--fb-track-caps);
  text-transform: uppercase;
  color: var(--fb-on-ribbon);
  text-decoration: none;
  white-space: nowrap;
}
.fb-band a + a::before { content: "\2605"; font-size: 1.05em; }
.fb-band a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* The run: everything under the band, with the stripe down the right edge */
.fb-run {
  position: relative;
  padding: var(--fb-space-6) var(--fb-pad) var(--fb-space-6);
}
.fb-run::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc(var(--fb-ribbon-w) * -1);
  width: var(--fb-ribbon-w);
  background: var(--fb-stripes);
}

.fb-section { margin-top: var(--fb-space-7); }
.fb-section:first-child { margin-top: 0; }
.fb-rule { border: 0; border-top: var(--fb-border); margin: var(--fb-space-7) 0; }

/* ---------- Buttons ---------- */

.fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--fb-space-2);
  padding: 11px 20px 13px;
  border: 0;
  border-radius: var(--fb-radius);
  background: var(--fb-ribbon);
  box-shadow: inset 0 -3px 0 var(--fb-fold);
  color: var(--fb-on-ribbon);
  font-family: var(--fb-font-label);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: var(--fb-track-caps);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.fb-btn:hover { background: var(--fb-fold); color: var(--fb-on-ribbon); }
.fb-btn:focus-visible { outline: 3px solid var(--fb-ink); outline-offset: 2px; }
.fb-btn--ghost {
  background: transparent;
  color: var(--fb-ink);
  box-shadow: inset 0 0 0 2px var(--fb-ink);
}
.fb-btn--ghost:hover { background: var(--fb-ink); color: var(--fb-sheet); }
.fb-btn--block { display: flex; width: 100%; }
.fb-btn-row { display: flex; flex-wrap: wrap; gap: var(--fb-space-3); align-items: center; }

/* ---------- Hero ---------- */

.fb-hero { display: grid; grid-template-columns: 1fr 220px; gap: var(--fb-space-6); align-items: center; }
.fb-hero-art {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--fb-sheet-alt);
  box-shadow: inset 0 0 0 1px var(--fb-rule-strong);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.fb-hero-art svg { width: 100%; height: 100%; display: block; }

/* Drawing helpers for inline SVG (star charts, diagrams) */
.fb-fill-ink { fill: var(--fb-ink); }
.fb-fill-ribbon { fill: var(--fb-ribbon); }
.fb-fill-alt { fill: var(--fb-sheet-alt); }
.fb-fill-sheet { fill: var(--fb-sheet); }
.fb-fill-muted { fill: var(--fb-muted); }
.fb-stroke-ink { stroke: var(--fb-ink); fill: none; }
.fb-stroke-ribbon { stroke: var(--fb-ribbon); fill: none; }
.fb-stroke-rule { stroke: var(--fb-rule-strong); fill: none; }
.fb-svg-label { fill: var(--fb-muted); font-family: var(--fb-font-label); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Dated list ---------- */

.fb-dated { list-style: none; margin: 0; padding: 0; }
.fb-dated li {
  display: grid;
  grid-template-columns: 7.25rem 1fr auto;
  gap: var(--fb-space-3);
  align-items: baseline;
  padding: 5px 0;
}
.fb-dated time { color: var(--fb-muted); font-size: var(--fb-size-small); white-space: nowrap; }
.fb-dated a {
  font-family: var(--fb-font-label);
  font-weight: 500;
  font-size: 1rem;
  color: var(--fb-ink);
  text-decoration: none;
}
.fb-dated a:hover { color: var(--fb-link); text-decoration: underline; }
.fb-dated .fb-badge { justify-self: end; }

/* ---------- Badges ---------- */

.fb-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--fb-sheet-alt);
  color: var(--fb-ink-soft);
  font-family: var(--fb-font-label);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fb-badge--hot { background: var(--fb-ribbon); color: var(--fb-on-ribbon); }
.fb-badge--ok { background: var(--fb-ok-bg); color: var(--fb-ok); }
.fb-badge--warn { background: var(--fb-warn-bg); color: var(--fb-warn); }

/* ---------- Cards ---------- */

.fb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--fb-space-4); }
.fb-card {
  padding: var(--fb-space-5) var(--fb-space-4) var(--fb-space-4);
  border: var(--fb-border);
  border-top: 4px solid var(--fb-ribbon);
  border-radius: 0 0 var(--fb-radius) var(--fb-radius);
  background: var(--fb-sheet);
}
.fb-card p { margin: 0; font-size: var(--fb-size-small); color: var(--fb-ink-soft); }
.fb-card-num {
  display: block;
  font-family: var(--fb-font-display);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--fb-ribbon);
  margin-bottom: var(--fb-space-2);
}

/* ---------- Table ---------- */

.fb-table-wrap { overflow-x: auto; }
.fb-table { width: 100%; border-collapse: collapse; font-size: var(--fb-size-small); }
.fb-table th {
  text-align: left;
  padding: var(--fb-space-2) var(--fb-space-3) var(--fb-space-2) 0;
  border-bottom: var(--fb-border-ink);
  font-family: var(--fb-font-label);
  font-weight: 700;
  font-size: var(--fb-size-label);
  letter-spacing: var(--fb-track-caps);
  text-transform: uppercase;
}
.fb-table td { padding: 9px var(--fb-space-3) 9px 0; border-bottom: var(--fb-border); vertical-align: top; }
.fb-table td:last-child, .fb-table th:last-child { padding-right: 0; }
.fb-check { color: var(--fb-ribbon); font-weight: 700; }

/* ---------- Quote and callout ---------- */

.fb-quote {
  margin: var(--fb-space-6) 0;
  padding: var(--fb-space-1) 0 var(--fb-space-1) var(--fb-space-5);
  border-left: 6px solid transparent;
  border-image: var(--fb-stripes) 1;
}
.fb-quote p { margin: 0 0 var(--fb-space-2); font-style: italic; font-size: 1.25rem; line-height: 1.45; color: var(--fb-ink); }
.fb-quote cite { font-style: normal; font-family: var(--fb-font-label); font-weight: 700; font-size: var(--fb-size-label); letter-spacing: var(--fb-track-caps); text-transform: uppercase; color: var(--fb-muted); }

.fb-callout {
  margin: var(--fb-space-5) 0;
  padding: var(--fb-space-4) var(--fb-space-5);
  background: var(--fb-sheet-alt);
  border-radius: var(--fb-radius);
  box-shadow: inset 4px 0 0 var(--fb-ribbon);
}
.fb-callout p { margin: 0; }
.fb-callout strong { font-family: var(--fb-font-label); }

/* A wide box for calls to action */
.fb-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--fb-space-4);
  padding: var(--fb-space-5);
  border: var(--fb-border-ink);
  border-radius: var(--fb-radius);
  background: var(--fb-sheet);
}
.fb-cta p { margin: 0; max-width: 32rem; }

/* ---------- Tab: a little ribbon that hangs off the sheet's right edge ---------- */

.fb-tab {
  position: relative;
  display: inline-block;
  padding: 4px 14px 5px;
  background: var(--fb-ribbon);
  color: var(--fb-on-ribbon);
  font-family: var(--fb-font-label);
  font-weight: 700;
  font-size: var(--fb-size-label);
  letter-spacing: var(--fb-track-caps);
  text-transform: uppercase;
  white-space: nowrap;
}
.fb-tab::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 10px;
  height: 8px;
  background: var(--fb-fold);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ---------- Pricing ---------- */

.fb-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--fb-space-4); align-items: stretch; }
.fb-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--fb-space-3);
  padding: var(--fb-space-5) var(--fb-space-4);
  border: var(--fb-border);
  border-radius: var(--fb-radius);
  background: var(--fb-sheet);
}
.fb-plan--pick { border: var(--fb-border-ink); }
.fb-plan--pick .fb-tab { position: absolute; top: -14px; right: -10px; }
.fb-plan-name { margin: 0; font-family: var(--fb-font-label); font-weight: 700; font-size: 1.125rem; }
.fb-price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.fb-price b { font-family: var(--fb-font-display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--fb-ribbon); }
.fb-price span { color: var(--fb-muted); font-size: var(--fb-size-small); }
.fb-plan ul { list-style: none; margin: 0; padding: 0; font-size: var(--fb-size-small); flex: 1; }
.fb-plan li { padding: 5px 0 5px 22px; position: relative; border-top: var(--fb-border); }
.fb-plan li::before { content: "\2605"; position: absolute; left: 0; color: var(--fb-ribbon); font-size: 0.85em; top: 6px; }

.fb-faq details { border-top: var(--fb-border); padding: var(--fb-space-3) 0; }
.fb-faq details:last-child { border-bottom: var(--fb-border); }
.fb-faq summary { cursor: pointer; font-family: var(--fb-font-label); font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: var(--fb-space-3); }
.fb-faq summary::-webkit-details-marker { display: none; }
.fb-faq summary::after { content: "+"; color: var(--fb-ribbon); font-size: 1.25rem; line-height: 1; }
.fb-faq details[open] summary::after { content: "\2212"; }
.fb-faq details p { margin: var(--fb-space-2) 0 0; color: var(--fb-ink-soft); }

/* ---------- Article ---------- */

.fb-article { max-width: 36rem; }
.fb-article p { margin: 0 0 var(--fb-space-4); }
.fb-article h2 { margin: var(--fb-space-6) 0 var(--fb-space-3); font-family: var(--fb-font-label); font-weight: 700; font-size: 1.375rem; line-height: 1.25; }
.fb-article ol, .fb-article ul { padding-left: 1.25rem; margin: 0 0 var(--fb-space-4); }
.fb-article li { margin-bottom: var(--fb-space-2); }
.fb-article li::marker { color: var(--fb-ribbon); font-family: var(--fb-font-label); font-weight: 700; }
.fb-byline { display: flex; flex-wrap: wrap; gap: var(--fb-space-2) var(--fb-space-4); align-items: center; margin: 0 0 var(--fb-space-6); font-size: var(--fb-size-small); color: var(--fb-muted); }
.fb-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--fb-sheet-alt); box-shadow: inset 0 0 0 2px var(--fb-ribbon); display: inline-grid; place-items: center; font-family: var(--fb-font-label); font-weight: 700; font-size: 0.8125rem; color: var(--fb-ribbon); }
.fb-figure { margin: var(--fb-space-5) 0; }
.fb-figure svg { display: block; width: 100%; height: auto; border-radius: var(--fb-radius); }
.fb-figure figcaption { margin-top: var(--fb-space-2); font-size: var(--fb-size-small); font-style: italic; color: var(--fb-muted); }
.fb-kbd { font-family: var(--fb-font-label); font-weight: 700; font-size: 0.875em; padding: 1px 6px; border: 1px solid var(--fb-rule-strong); border-bottom-width: 2px; border-radius: 3px; background: var(--fb-sheet-alt); }

/* ---------- Forms ---------- */

.fb-form { display: grid; gap: var(--fb-space-5); }
.fb-field { display: grid; gap: 6px; }
.fb-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fb-fieldset legend { padding: 0; margin-bottom: 6px; }
.fb-label {
  font-family: var(--fb-font-label);
  font-weight: 700;
  font-size: var(--fb-size-label);
  letter-spacing: var(--fb-track-caps);
  text-transform: uppercase;
  color: var(--fb-ink);
}
.fb-hint { font-size: var(--fb-size-small); color: var(--fb-muted); margin: 0; }
.fb-input, .fb-select {
  width: 100%;
  padding: 11px 12px;
  border: 2px solid var(--fb-rule-strong);
  border-radius: var(--fb-radius);
  background: var(--fb-sheet);
  color: var(--fb-ink);
  font-family: var(--fb-font-body);
  font-size: 1rem;
}
.fb-input:focus, .fb-select:focus { outline: none; border-color: var(--fb-ribbon); box-shadow: 0 0 0 3px var(--fb-warn-bg); }
.fb-choices { display: flex; flex-wrap: wrap; gap: var(--fb-space-2); }
.fb-choice { position: relative; }
.fb-choice input { position: absolute; opacity: 0; inset: 0; }
.fb-choice span {
  display: inline-block;
  padding: 7px 14px;
  border: 2px solid var(--fb-rule-strong);
  border-radius: var(--fb-radius);
  font-family: var(--fb-font-label);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}
.fb-choice input:checked + span { border-color: var(--fb-ribbon); background: var(--fb-ribbon); color: var(--fb-on-ribbon); }
.fb-choice input:focus-visible + span { outline: 3px solid var(--fb-ink); outline-offset: 2px; }
.fb-check-row { display: flex; gap: var(--fb-space-2); align-items: flex-start; font-size: var(--fb-size-small); }
.fb-check-row input { accent-color: var(--fb-ribbon); width: 18px; height: 18px; margin-top: 3px; flex: none; }

/* ---------- Footer ---------- */

.fb-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--fb-space-3) var(--fb-space-5);
  margin-top: var(--fb-space-7);
  padding-top: var(--fb-space-4);
  border-top: var(--fb-border);
  font-family: var(--fb-font-label);
  font-weight: 500;
  font-size: var(--fb-size-label);
  color: var(--fb-muted);
}
.fb-foot nav { display: flex; flex-wrap: wrap; gap: var(--fb-space-2) var(--fb-space-4); }
.fb-foot a { color: var(--fb-ink-soft); text-decoration: none; text-transform: uppercase; letter-spacing: var(--fb-track-caps); font-weight: 700; }
.fb-foot a:hover { color: var(--fb-ribbon); }
.fb-below { max-width: var(--fb-sheet-w); margin: var(--fb-space-4) auto 0; text-align: center; font-family: var(--fb-font-label); font-size: var(--fb-size-label); color: var(--fb-desk-ink); }

/* ---------- Phone ---------- */

@media (max-width: 640px) {
  body.fb-page { padding-top: var(--fb-space-4); }
  .fb-mast { flex-direction: column; gap: var(--fb-space-3); }
  .fb-mast-nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--fb-space-1) var(--fb-space-3); }
  .fb-band { justify-content: flex-start; padding-top: var(--fb-space-2); padding-bottom: var(--fb-space-2); }
  .fb-band a { font-size: 0.875rem; }
  .fb-hero { grid-template-columns: 1fr; }
  .fb-hero-art { max-width: 180px; }
  .fb-cards, .fb-plans { grid-template-columns: 1fr; }
  .fb-plans { gap: var(--fb-space-5); }
  .fb-plan--pick .fb-tab { right: -6px; }
  .fb-dated li { grid-template-columns: 1fr auto; gap: 0 var(--fb-space-3); padding: 7px 0; }
  .fb-dated time { grid-column: 1 / -1; font-size: 0.8125rem; }
  .fb-dated .fb-badge { grid-row: 2; grid-column: 2; }
}
