/* Terms, app and editorial components. Shared roles/tokens are defined once in typography.css and design-tokens.css.
   Phone artwork retains proportional labels and geometry rather than inheriting page control styles. */
.bf-section.bf-import { --bfs-primary: var(--blue); --bfx-primary: var(--blue); --bfs-accent: var(--red); --bfx-accent: var(--red); --bfs-ink: var(--navy); --bfx-ink: var(--navy); --bfs-card: var(--white); --bfx-card: var(--white); --bfs-soft: var(--paper); --bfx-soft: var(--paper); --bfs-muted: var(--muted); --bfx-muted: var(--muted); --bfs-line: var(--border); --bfx-line: var(--border); --bfs-on-primary: var(--white); --bfx-on-primary: var(--white); --bfs-container: var(--max); --bfx-container: var(--max); --bfs-radius: var(--radius); --bfx-radius: var(--radius); --bfs-heading-weight: var(--bridge-heading-weight); width: 100%; max-width: none; margin: 0; color: var(--navy); background: var(--white); font-family: var(--bridge-font-family); font-size: var(--bridge-paragraph-size); font-weight: var(--bridge-paragraph-weight); line-height: var(--bridge-paragraph-line-height); scroll-margin-top: 2rem; }
.bf-import, .bf-import *, .bf-import *::before, .bf-import *::after { box-sizing: border-box; }
.bf-import img { max-width: 100%; }
.bf-import :is(button,input,select,textarea) { font-family: inherit; }
.bf-import .bf-button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: var(--fb-button-min-height); padding: var(--fb-button-padding); border: 1px solid transparent; border-radius: var(--fb-button-radius); background: var(--blue); color: var(--white); font-family: inherit; font-size: var(--bridge-control-size); font-weight: var(--bridge-control-weight); line-height: var(--bridge-ui-line-height); text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--fb-state-duration) ease; }
.bf-import .bf-button:hover { background: var(--fb-button-hover); color: var(--white); }
.bf-import .bf-button--light { background: var(--white); color: var(--blue); }
.bf-import .bf-text-button { padding: .55rem 0; border: 0; background: transparent; color: var(--blue); font: inherit; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.bf-import :is(.bf-sr-only,.bf-visually-hidden) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.bf-terms { padding-block: var(--fb-section-space); overflow: hidden; }
.bf-terms__heading { width: min(calc(100% - 2 * var(--fb-gutter)), var(--bfx-container)); margin: 0 auto var(--fb-section-intro-gap); text-align: center; }
.bf-terms__heading h2 { margin: 0 auto var(--bridge-heading-space); color: var(--navy); }
.bf-terms__heading p { margin: 0 auto; }
.bf-terms__scene { position: relative; height: clamp(29rem, 55vw, 48rem); max-width: 1500px; margin: auto; isolation: isolate; overflow: hidden; }
.bf-terms__scene::after { content: ''; position: absolute; z-index: 2; bottom: -1px; left: 0; right: 0; height: 12%; background: linear-gradient(transparent, var(--bfx-card)); pointer-events: none; }
.bf-terms__collage { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bf-terms__phone { position: absolute; z-index: 1; top: 7%; left: 50%; transform: translateX(-50%); width: 38%; max-width: 520px; aspect-ratio: .58; padding: 1.4%; border-radius: 15% / 8.7%; background: #050505; border: 3px solid #77756f; box-shadow: 0 0 0 2px #c0bfb9, 0 .8rem 1rem rgb(0 0 0 / .15); font-size: clamp(var(--bridge-art-label-size), 1.35vw, 18px); }
.bf-terms__screen { width: 100%; height: 100%; overflow: hidden; border-radius: 13% / 7.5%; background: #f7f7f8; color: var(--bfx-primary); padding: 4.4% 4%; }
.bf-terms__status { position: relative; display: flex; align-items: center; justify-content: space-between; color: #050505; min-height: 2em; padding: 0 2.5%; font-size: clamp(var(--bridge-art-label-size), .95em, 22px); }
.bf-terms__status b { font-weight: 600; }
.bf-terms__island { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 33%; height: 1.8em; border-radius: 2em; background: #050505; }
.bf-terms__signals { display: flex; align-items: center; gap: .3em; }
.bf-terms__signals svg { width: 1.15em; height: 1em; fill: currentColor; }
.bf-terms__battery { display: inline-block; width: 1.45em; height: .65em; background: #050505; border: 2px solid #aaa; border-radius: .2em; }
.bf-terms__greeting { display: flex; justify-content: space-between; align-items: center; margin: 1.6em 0 1.1em; }
.bf-terms__greeting strong { font-size: clamp(var(--bridge-art-label-size), 1.13em, 22px); font-weight: 600; }
.bf-terms__greeting > div { display: flex; gap: 1.1em; }
.bf-terms__greeting svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; }
.bf-terms__pills { display: flex; gap: .5em; white-space: nowrap; margin-bottom: 1.5em; }
.bf-terms__pills > span { padding: .45em .75em; background: var(--bfx-card); border-radius: 2em; box-shadow: 0 1px 4px rgb(0 0 0 / .12); font-size: clamp(var(--bridge-art-label-size), .86em, 22px); }
.bf-terms__pills b { padding: .12em .28em; color: var(--bfx-on-primary); background: var(--bfx-primary); border-radius: .4em; font-size: clamp(var(--bridge-art-label-size), .85em, 22px); font-weight: 400; }
.bf-terms__accounts { background: var(--bfx-card); border: 1px solid var(--bfx-line); border-radius: .8em; padding: 1em; }
.bf-terms__accounts-title { display: flex; justify-content: space-between; align-items: center; margin: 0 0 .9em; }
.bf-terms__accounts-title strong { font-size: clamp(var(--bridge-art-label-size), 1.1em, 22px); font-weight: 600; }
.bf-terms__account-tabs { display: flex; margin-bottom: .85em; padding: .12em; background: var(--bfx-soft); border: 1px solid var(--bfx-line); border-radius: .6em; text-align: center; font-size: clamp(var(--bridge-art-label-size), .85em, 22px); }
.bf-terms__account-tabs span { flex: 1; padding: .45em; }
.bf-terms__account-tabs span:first-child { background: var(--bfx-card); border-radius: .5em; box-shadow: 0 1px 4px rgb(0 0 0 / .12); }
.bf-terms__balances { overflow: hidden; border-radius: .65em; box-shadow: 0 2px 5px rgb(0 0 0 / .12); margin-bottom: 1.5em; }
.bf-terms__total { display: flex; justify-content: space-between; gap: .5em; background: var(--bfx-primary); color: var(--bfx-on-primary); padding: 1em .7em; font-size: clamp(var(--bridge-art-label-size), .85em, 22px); }
.bf-terms__balance { display: flex; align-items: center; gap: .4em; padding: 1.3em .7em; color: var(--bfx-muted); font-size: clamp(var(--bridge-art-label-size), .8em, 22px); }
.bf-terms__balance small { font-size: clamp(var(--bridge-art-label-size), .9em, 22px); }
.bf-terms__balance b { margin-left: auto; color: var(--bfx-ink); font-size: clamp(var(--bridge-art-label-size), 1.35em, 22px); font-weight: 400; }
.bf-terms__chevron { color: var(--bfx-primary); font-size: clamp(var(--bridge-art-label-size), 1.8em, 22px); line-height: .6; }
.bf-terms__screen-button { display: block; margin-top: .55em; padding: .4em; border: 1px solid var(--bfx-line); border-radius: 2em; background: var(--bfx-soft); text-align: center; font-size: clamp(var(--bridge-art-label-size), .95em, 22px); }
@media (max-width: 760px) {
  .bf-terms__scene { height: 36rem; }
  .bf-terms__collage { width: 1000px; max-width: none; left: 50%; transform: translateX(-50%); object-fit: cover; height: 100%; }
  .bf-terms__phone { top: 8%; width: 21.5rem; max-width: 66%; padding: .65rem; font-size: var(--bridge-metadata-size); }
}
@media (max-width: 480px) {
  .bf-terms__scene { height: 27rem; }
  .bf-terms__collage { width: 750px; height: 100%; }
  .bf-terms__phone { top: 11%; width: 76%; max-width: none; padding: .5rem; font-size: var(--bridge-art-label-size); }
  .bf-terms__greeting > div { gap: .5em; }
  .bf-terms__pills { gap: .3em; }
  .bf-terms__pills > span { padding: .4em .5em; }
}
/* Approved app composition. Phone artwork keeps its proportional labels; support owns its separate section. */
.bf-section.bf-app {
  --app-blue: var(--fb-credit-blue);
  --app-panel-blue: #00368c;
  --app-panel-border: #5683c8;
  padding: var(--fb-section-space) var(--fb-gutter);
  background: var(--app-blue);
  color: var(--white);
  overflow: clip;
}
.bf-app__container { width: min(100%, var(--max)); margin-inline: auto; }
.bf-app__layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1.2fr) minmax(0,.7fr); gap: var(--fb-grid-gap); align-items: start; }
.bf-app__intro { min-width: 0; padding-top: 20px; text-align: left; }
.bf-app__intro :is(h2,h3,p) { color: var(--white); margin-inline: 0; }
.bf-app__eyebrow { margin: 0 0 var(--bridge-heading-space); text-transform: uppercase; }
.bf-app__downloads { margin-top: var(--fb-grid-gap); }
.bf-app__downloads h3 { margin-bottom: var(--bridge-subheading-space); }
.bf-app__store-buttons { display: flex; flex-wrap: wrap; gap: var(--fb-action-gap); }
.bf-app .bf-app__store { display: flex; align-items: center; gap: 8px; width: 164px; max-width: 100%; min-height: 50px; padding: 6px 10px; border: 1px solid #d8e6ff; border-radius: var(--fb-radius); background: #050505; color: var(--white); text-align: left; font-family: inherit; cursor: pointer; }
.bf-app__store svg { width: 24px; height: 28px; flex: none; }
.bf-app__store span { display: block; min-width: 0; }
.bf-app__store small { display: block; font-size: 10px; line-height: 1.1; white-space: nowrap; }
.bf-app__store strong { display: block; font-size: 17px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.bf-app .bf-app__store:hover { background: #242424; }
.bf-app__intro .bf-app__preview-note { margin: 12px 0 0; color: var(--white); }
.bf-app__notice { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--app-panel-border); border-radius: var(--fb-radius); background: var(--app-panel-blue); }
.bf-app__qr-area { margin-top: 16px; width: 84px; color: var(--white); }
.bf-app__download-symbol,.bf-app__qr-image { width: 84px; height: 84px; object-fit: contain; }
.bf-app__phones { position: relative; isolation: isolate; width: 100%; max-width: 440px; height: 450px; margin-inline: auto; overflow: hidden; }
.bf-app__phones::before { content: ''; position: absolute; z-index: -1; top: 0; left: 12%; width: 84%; height: 470px; border: 1px solid #b8d5ff; border-radius: 50% 50% 0 0 / 35% 35% 0 0; }
.bf-app__features { display: grid; margin: 0; align-self: center; padding: 0; list-style: none; min-width: 0; }
.bf-app__feature { display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 20px; min-width: 0; padding: 26px 0; border-bottom: 1px solid #b8d5ff; }
.bf-app__feature:last-child { border-bottom: 0; }
.bf-app__feature svg { width: 32px; height: 32px; color: var(--white); }
.bf-app__feature .bridge-subheading { margin: 0; color: var(--white); }
.bf-app :is(a,button,summary):focus-visible { outline: 3px solid var(--fb-focus-on-dark); outline-offset: 4px; }
.bf-app__phone { position: absolute; padding: 5px; border: 3px solid #aaa79e; border-radius: 39px; background: #191918; box-shadow: 2px 0 0 #514e48, -2px 0 0 #ddd7c8; overflow: hidden; }
.bf-app__phone--back { left: 0; top: 90px; width: 61%; height: 390px; transform: rotate(-4deg); }
.bf-app__phone--front { right: 3%; top: 30px; width: 64%; height: 466px; transform: none; }
.bf-app__screen { height: 100%; border-radius: 30px; padding: 8px 8px 15px; background: #f8f8fa; color: var(--bfx-primary); overflow: hidden; }
.bf-app__screen--brand { background: #2548af; color: var(--bfx-on-primary); }
.bf-app__status { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 0 5px; height: 20px; margin-bottom: 9px; font-size: var(--bridge-art-label-size); font-weight: 600; }
.bf-app__island { position: absolute; left: 50%; transform: translateX(-50%); top: 0; width: 37%; height: 17px; border-radius: 20px; background: #070707; }
.bf-app__wordmark { position: absolute; inset: 38% 8px auto; font-size: 18px; line-height: 1.3; font-weight: 600; }
.bf-app__wordmark svg { width: 24px; height: 24px; flex: 0 0 auto; }
.bf-app__greeting { display: flex; align-items: center; justify-content: space-between; gap: 3px; padding: 4px 1px 11px; font-size: var(--bridge-art-label-size); }
.bf-app__greeting strong { font-weight: 600; }
.bf-app__greeting > span { white-space: nowrap; font-size: 12px; }
.bf-app__screen-card { background: var(--white); border: 1px solid #e6e6e9; border-radius: 8px; margin-bottom: 8px; padding: 11px 9px; font-size: var(--bridge-art-label-size); box-shadow: 0 1px 3px rgb(0 0 0 / .03); }
.bf-app__screen-card > strong { display: block; font-size: var(--bridge-art-label-size); font-weight: 600; margin-bottom: 9px; }
.bf-app__screen-card > strong > span { margin-left: 3px; }
.bf-app__score { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bf-app__score b { font-size: var(--bridge-number-size); font-weight: 600; color: #353b40; line-height: 1; }
.bf-app__score-caption { color: #4c6d5f; font-size: var(--bridge-art-label-size); }
.bf-app__score-track { height: 4px; margin: 0 0 12px; background: #e4eae7; border-radius: 6px; }
.bf-app__score-track > span { display: block; width: 76%; height: 100%; background: #77a589; border-radius: inherit; }
.bf-app__screen-card small { display: block; font-size: var(--bridge-art-label-size); color: #7c7e83; }
.bf-app__spending { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 13px; }
.bf-app__spending b { display: block; font-size: var(--bridge-paragraph-size); font-weight: 600; color: #4c5054; margin: 3px 0; }
.bf-app__ring { display: block; flex: 0 0 39px; height: 39px; border-radius: 50%; background: conic-gradient(var(--bfx-primary) 0 43%, #9dd4dc 43% 85%, #edd69a 85% 100%); position: relative; }
.bf-app__ring::after { content: ''; position: absolute; inset: 6px; background: var(--white); border-radius: 50%; }
.bf-app__screen-tabs { display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid #eee; color: #85818e; font-size: var(--bridge-art-label-size); }
.bf-app__balance b { display: block; color: #3e454a; font-size: var(--bridge-subheading-size); margin-bottom: 3px; }

.bf-app__screen { line-height: 1.25; }
@media (max-width: 1000px) {
  .bf-app__layout { grid-template-columns: minmax(0,1.05fr) minmax(0,1.1fr); }
  .bf-app__phones { height: 480px; }
  .bf-app__features { grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; }
  .bf-app__feature { padding: 12px 20px; border-bottom: 0; border-right: 1px solid #b8d5ff; gap: 14px; }
  .bf-app__feature:first-child { padding-left: 0; }
  .bf-app__feature:last-child { border-right: 0; padding-right: 0; }
}
@media (max-width: 760px) {
  .bf-app__layout { grid-template-columns: minmax(0,1fr); }
  .bf-app__intro { padding-top: 0; }
  .bf-app__phones { max-width: 380px; height: 440px; }
  .bf-app__features { grid-template-columns: minmax(0,1fr); }
  .bf-app__feature,.bf-app__feature:first-child,.bf-app__feature:last-child { padding: 16px 0; border-right: 0; border-bottom: 1px solid #7fa6df; }
  .bf-app__feature:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  .bf-app__phones { max-width: 360px; height: 440px; }
  .bf-app__phone--back { width: 62%; height: 365px; left: 0; top: 75px; }
  .bf-app__phone--front { width: 68%; right: 2%; height: 466px; }
  .bf-app__screen-card { padding: 9px 7px; }
  .bf-app .bf-app__store { width: 150px; flex: 0 1 calc((100% - 12px) / 2); padding: 6px 8px; gap: 6px; }
  .bf-app__store svg { width: 20px; height: 24px; }
  .bf-app__store strong { font-size: 15px; }
}
@media (max-width: 360px) {
  .bf-app__phones { width: calc(100% + 28px); max-width: none; height: 450px; margin-inline: -14px; }
}

/* Approved white editorial panel, using the site's shared text roles. */
.bf-section.bf-blog { padding: var(--fb-section-space) var(--fb-gutter); background: var(--white); color: var(--navy); }
.bf-blog__container { width: min(100%,var(--max)); margin-inline: auto; padding-bottom: var(--fb-grid-gap); border-bottom: 1px solid var(--border); }
.bf-blog__header { margin-bottom: var(--fb-grid-gap); }
.bf-blog__header::before { content: ''; display: block; width: 48px; height: 5px; margin-bottom: 12px; background: var(--red); }
.bf-blog__header .bridge-heading { margin-bottom: 4px; }
.bf-blog__updated { margin: 0; }
.bf-blog__updated time { font: inherit; }
.bf-blog__lead { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: var(--fb-grid-gap); align-items: stretch; }
.bf-blog__image { display: block; width: 100%; height: 100%; min-height: 250px; aspect-ratio: 2.3; object-fit: cover; border-radius: var(--fb-radius); }
.bf-blog__lead-stories { display: grid; gap: 16px; }
.bf-blog__story { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.bf-blog__lead-stories .bf-blog__story + .bf-blog__story { padding-top: 16px; border-top: 1px solid var(--border); }
.bf-blog .bf-blog__meta { margin: 0 0 5px; text-transform: uppercase; }
.bf-blog__meta strong { font-weight: 800; }
.bf-blog__story .bridge-subheading { margin-bottom: 5px; }
.bf-blog__story .bridge-paragraph { margin-bottom: 5px; }
.bf-blog__read { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: auto; color: var(--blue); font-size: var(--bridge-link-size); font-weight: 700; text-underline-offset: .2em; }
.bf-blog__read:hover { color: var(--navy); }
.bf-blog__read:focus-visible { outline: 3px solid var(--fb-focus-color); outline-offset: 3px; }
.bf-blog__related { margin-top: 24px; }
.bf-blog__related > h3 { display: flex; align-items: center; gap: 18px; max-width: none; margin-bottom: 16px; }
.bf-blog__related > h3::after { content: ''; height: 1px; flex: 1; background: var(--border); }
.bf-blog__related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--fb-grid-gap); }
.bf-blog__related-grid .bf-blog__story + .bf-blog__story { padding-left: var(--fb-grid-gap); border-left: 1px solid var(--border); }
@media (max-width: 900px) {
  .bf-blog__lead { grid-template-columns: minmax(0,1fr); }
  .bf-blog__image { height: auto; min-height: 0; aspect-ratio: 2.3; }
  .bf-blog__lead-stories { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--fb-grid-gap); }
  .bf-blog__lead-stories .bf-blog__story + .bf-blog__story { padding-top: 0; padding-left: var(--fb-grid-gap); border-top: 0; border-left: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .bf-blog__lead-stories,.bf-blog__related-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .bf-blog__lead-stories .bf-blog__story + .bf-blog__story,.bf-blog__related-grid .bf-blog__story + .bf-blog__story { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .bf-blog__image { aspect-ratio: 1.65; }
}
