/* Become Better website: Home, /download, /support, /get, /open, 404 and /leaving. Dark only (but
   /leaving), the app's tokens (Design/design-system/src/styles/tokens.css), Inter served from this
   site (nothing is loaded from outside). The legal pages keep their own style.css. Phone layout under
   700px, iPad from 700px, laptop from 1000px. */

/* Inter 5.3.0 (variable, Latin, SIL Open Font License: /fonts/inter-license.txt), from the
   @fontsource-variable/inter package. Text shows at once in a system font and swaps to Inter. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-v5-3-0.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root,
.bb-text-lg {
  --text-display: 700 calc(32px * var(--type-scale)) / calc(38px * var(--type-scale))
    var(--font-sans);
  --text-title: 700 calc(24px * var(--type-scale)) / calc(30px * var(--type-scale)) var(--font-sans);
  --text-heading: 600 calc(18px * var(--type-scale)) / calc(24px * var(--type-scale))
    var(--font-sans);
  --text-body: 400 calc(16px * var(--type-scale)) / calc(24px * var(--type-scale)) var(--font-sans);
  --text-body-strong: 600 calc(16px * var(--type-scale)) / calc(22px * var(--type-scale))
    var(--font-sans);
  --text-small: 400 calc(14px * var(--type-scale)) / calc(20px * var(--type-scale)) var(--font-sans);
}

:root {
  color-scheme: dark;
  --type-scale: 1;
  --bg-app: #0b0f19;
  --surface: #141a26;
  --surface-raised: #1b2231;
  --border: #23283a;
  --border-strong: #626b80;
  --text-primary: #f8fafc;
  --text-secondary: #9aa3b2;
  --bb-blue: #1e6bff;
  --bb-blue-bright: #4d8bff;
  --bb-blue-pressed: #1a5ce0;
  --bb-blue-tint: #1e6bff26;
  --on-blue: #ffffff;
  --success: #22c55e;
  --success-tint: #22c55e26;
  --danger: #f87171;
  --danger-tint: #f8717126;
  --external: #ba93fb;
  --external-tint: #ba93fb29;
  --font-sans:
    Inter, -apple-system, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  /* The pages fill the whole screen (viewport-fit=cover); the iPhone Duo's folded screen has a side
     strip (84 pt), so the gutters keep every section clear of it, the same on both sides. */
  --gutter: max(
    20px,
    calc(env(safe-area-inset-left, 0px) + 12px),
    calc(env(safe-area-inset-right, 0px) + 12px)
  );
}

@media (min-width: 1000px) {
  :root {
    --gutter: max(
      80px,
      calc(env(safe-area-inset-left, 0px) + 12px),
      calc(env(safe-area-inset-right, 0px) + 12px)
    );
  }
}

/* "Scroll for more" glides to the next section; with Reduce Motion it jumps. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg-app);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--bb-blue-bright);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  flex: none;
  display: block;
}

/* Header: the centred lockup (the emails' look): the mark and the name drawn in Satisfy (name-v1.svg). */
.site-header {
  padding: 24px var(--gutter) 0;
  display: flex;
  justify-content: center;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

@media (min-width: 1000px) {
  .site-header {
    padding-top: 32px;
  }
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 88px;
  padding: 48px var(--gutter) 64px;
}

@media (min-width: 1000px) {
  main {
    gap: 128px;
    padding-top: 80px;
    padding-bottom: 112px;
  }
}

/* Entrance animation of the hero (the design's bbRise); nothing moves with Reduce Motion. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

[data-anim] {
  animation: rise 700ms var(--ease-standard) both;
}

[data-anim='2'] {
  animation-delay: 350ms;
}

[data-anim='3'] {
  animation-delay: 700ms;
}

[data-anim='4'] {
  animation-delay: 900ms;
}

/* The headline's first line rotates every 2.6 s (Small steps., New skills., …); all white. */
.hero__rotate {
  display: grid;
  overflow: hidden;
}

.hero__rotate > span {
  grid-area: 1 / 1;
}

.hero__rotate > span:not(:first-child) {
  opacity: 0;
}

.hero__rotate > span {
  animation: hero-swap 10400ms var(--ease-standard) infinite backwards;
}

.hero__rotate > span:nth-child(2) {
  animation-delay: 2600ms;
}

.hero__rotate > span:nth-child(3) {
  animation-delay: 5200ms;
}

.hero__rotate > span:nth-child(4) {
  animation-delay: 7800ms;
}

.hero__fixed {
  display: block;
}

.note {
  font: var(--text-small);
}

.note--quiet {
  color: var(--text-secondary);
}

.badge {
  display: block;
  width: 162px;
  height: 54px;
}

.badge img {
  display: block;
  width: 162px;
  height: 54px;
}

/* Where a badge would be while the listing isn't live: the two private-testing lines. */
.soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.soon .note {
  color: var(--text-primary);
}

.soon .note--quiet {
  color: var(--text-secondary);
}

/* Home's first screen, option D (founder, 2026-11-23). Phones, the Duo and iPad upright: the words
   first, the mountain picture filling the rest of the first screen edge to edge; only its empty sky
   reaches up behind the words. Where it's cropped, the peak, the moon, the lit path and the climber
   stay. The section sits in <main> and reaches its edges (the negative margins undo main's padding
   and gap: the next title is 40 below). */
.hero-d {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 84px);
  margin: -48px calc(-1 * var(--gutter)) -48px;
}

.hero-d__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px var(--gutter) 32px;
}

.hero-d__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-d__title {
  display: flex;
  flex-direction: column;
  font: 700 32px / 38px var(--font-sans);
  text-wrap: balance;
}

.hero-d__line {
  margin-top: 16px;
  font: var(--text-body);
}

.hero-d__cta {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-d__cta > .note {
  color: var(--text-primary);
}

.hero-d__scene {
  order: 2;
  position: relative;
  flex: 1 0 auto;
  min-height: 33.5vw;
}

/* The picture at its full size on every screen: a phone shows about a third of it, so it needs every
   pixel to stay sharp (HERO_FILE in scripts/content.ts). */
.hero-d__img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: -28%;
  background: url('/hero-v2.webp') 68% 100% / cover no-repeat;
}

.hero-d__img::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 22%;
  background: linear-gradient(var(--bg-app), transparent);
}

.hero-d__scene::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 40px;
  background: linear-gradient(transparent, var(--bg-app));
}

/* "Scroll for more": a slim dark pill whose arrow moves gently up and down, and stays still with
   Reduce Motion (founder, 2026-11-23). It shows below 700 wide or 700 high (iPhones, both Duo screens,
   small laptop windows); otherwise the next section peeks in. */
.scroll-pill {
  position: absolute;
  left: 50%;
  /* 52 below the lanterns as agreed, lower on a short first screen (the Duo's folded screen) so it
     never covers them: the picture's bottom sits on the scene's, and the lanterns stand 24% of the
     picture's height (1.28 times the scene's) above it, so 30.7% of the scene; minus the pill's 32
     and 14 of space. */
  bottom: clamp(12px, calc(30.7% - 46px), 52px);
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px 6px 14px;
  border-radius: var(--radius-full);
  background: #0b0f19e6;
  color: var(--text-primary);
  font: 600 14px / 20px var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.scroll-pill:active {
  background: #0b0f19;
  transform: translateX(-50%) scale(0.96);
}

.scroll-pill .icon {
  stroke-width: 2.4;
  animation: bob 1.6s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(-2px);
  }

  50% {
    transform: translateY(3px);
  }
}

/* The section the pill goes to keeps a little space above its title. */
#pick {
  scroll-margin-top: 24px;
}

/* iPad upright: no pill; the first screen ends early so the next section's title shows. */
@media (min-width: 700px) and (min-height: 700px) {
  .scroll-pill {
    display: none;
  }

  .hero-d {
    min-height: calc(100svh - 84px - 150px);
  }
}

/* Laptop and iPad sideways: the picture runs the full width, drawn at 118% of the page width, and
   the words sit centred in the left half, on the dark sky. Mirror rule (founder, 2026-11-23): the
   right edge of the words and the mountain's tip sit the same distance (--d, 8% of the page width)
   either side of the page's centre line, at every width. The tip is at 51% of the picture's width,
   so the picture's left edge sits at --d minus 10.18% of the page width. A wide but short screen
   (900 wide and up, under 700 high: the iPhone Duo held flat, 951 x 563 in Safari) has no room to
   stack the words over the picture, so it takes this layout too, with the phone type sizes. */
@media (min-width: 1000px), (min-width: 900px) and (max-height: 699px) {
  .hero-d {
    --d: 8cqw;
    container-type: inline-size;
    height: calc(100svh - 84px - 130px);
    /* 480 tall, or the whole first screen when that is shorter (a phone held sideways). */
    min-height: min(480px, calc(100svh - 84px));
  }

  .hero-d__scene {
    position: absolute;
    inset: 0;
    min-height: 0;
  }

  .hero-d__img {
    top: 0;
    background:
      linear-gradient(90deg, #0b0f19b3 0, #0b0f1980 35%, transparent 52%) 0 0 / 100% 100% no-repeat,
      linear-gradient(var(--bg-app), transparent 14%, transparent 86%, var(--bg-app)) 0 0 / 100%
        100% no-repeat,
      url('/hero-v2.webp') calc(var(--d) - 10.18cqw) 40% / 118% auto no-repeat;
    background-color: var(--bg-app);
  }

  .hero-d__img::before,
  .hero-d__scene::after {
    display: none;
  }

  .hero-d__text {
    width: 50%;
    flex: none;
    height: 100%;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0 var(--d) 0 24px;
  }
}

@media (min-width: 1000px) {
  .hero-d {
    margin-top: -80px;
    margin-bottom: -88px;
  }

  .hero-d__title {
    font-size: 48px;
    line-height: 57px;
  }

  .hero-d__line {
    margin-top: 20px;
    font-size: 20px;
    line-height: 30px;
  }
}

/* Sections */
.section {
  width: 100%;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.title {
  font: var(--text-title);
  text-wrap: balance;
}

.heading {
  font: var(--text-heading);
}

.ask {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.askbar {
  width: 100%;
  min-height: 64px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  border: 2px solid var(--bb-blue);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font: var(--text-body);
  text-align: left;
}

.askbar__icon {
  flex: none;
  display: flex;
  color: var(--bb-blue-bright);
}

.askbar__text {
  flex: 1;
  min-width: 0;
}

/* The examples type themselves (it can't be typed in, founder 2026-11-23); the caret stays put. */
.askbar .caret {
  display: inline-block;
  width: 1.5px;
  height: 18px;
  margin-left: 1px;
  vertical-align: -3px;
  background: var(--bb-blue-bright);
}

.askbar__text {
  overflow: hidden;
  white-space: nowrap;
  /* The typed examples are white (founder, 2026-11-23). */
  color: var(--text-primary);
}

/* The ask bar and the suggestions are real buttons (links once the listing is live): a tap shows. */
button.askbar,
button.chip {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.askbar,
.chip {
  transition: transform 120ms var(--ease-standard);
}

.askbar:active,
.chip:active {
  transform: scale(0.97);
}

.heading--gap {
  margin-top: 16px;
}

.areas {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.area {
  --area: var(--bb-blue-bright);
  --area-tint: var(--bb-blue-tint);
  --area-line: color-mix(in srgb, var(--bb-blue-bright) 40%, transparent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.area--mind {
  --area: var(--external);
  --area-tint: var(--external-tint);
  --area-line: color-mix(in srgb, var(--external) 40%, transparent);
}

.area--relations {
  --area: var(--danger);
  --area-tint: var(--danger-tint);
  --area-line: color-mix(in srgb, var(--danger) 40%, transparent);
}

.area--life {
  --area: var(--success);
  --area-tint: var(--success-tint);
  --area-line: color-mix(in srgb, var(--success) 40%, transparent);
}

.area__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.area__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--area-tint);
  color: var(--area);
  display: flex;
  align-items: center;
  justify-content: center;
}

.area__name {
  font: var(--text-heading);
  color: var(--area);
}

.area__skills {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.area__skills li {
  display: flex;
}

.chip {
  flex: 1;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  border: 1px solid var(--area-line);
  color: var(--text-primary);
  font: var(--text-body);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-in {
  margin-top: 16px;
  font: var(--text-heading);
  text-wrap: balance;
}

@media (min-width: 1000px) {
  .areas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .area__skills {
    flex-direction: column;
  }
}

/* Phones: Mind, Work, Relations and Life in a compact 2 by 2 grid, every suggestion on one line, so
   the section is about one screen (founder, 2026-11-23). iPad upright: four columns. */
@media (max-width: 999px) {
  .areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .area {
    padding: 14px 10px;
    gap: 12px;
  }

  .area__head {
    flex-direction: row;
    gap: 8px;
  }

  .area__icon {
    width: 32px;
    height: 32px;
  }

  .area__icon .icon {
    width: 18px;
    height: 18px;
  }

  .area__skills {
    flex-direction: column;
    gap: 6px;
  }

  .areas .chip {
    flex: none;
    width: 100%;
    min-height: 36px;
    padding: 6px 10px;
    font: 400 13px / 17px var(--font-sans);
    text-align: center;
    white-space: nowrap;
  }
}

@media (min-width: 700px) and (max-width: 999px) {
  .areas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* FAQ: <details> rows, all closed at first; the chevron turns when a row opens. */
.faq {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
}

.faq__title {
  margin-bottom: 16px;
  font: var(--text-title);
  text-align: center;
}

.faq--left .faq__title {
  text-align: left;
}

.faq details {
  border-top: 1px solid var(--border);
}

.faq summary {
  min-height: 64px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font: var(--text-body-strong);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq__chevron {
  flex: none;
  display: flex;
  color: var(--text-secondary);
  transition: transform 200ms var(--ease-standard);
  transform: rotate(90deg);
}

.faq details[open] .faq__chevron {
  transform: rotate(270deg);
}

.faq__answer {
  /* The full column width, wrapped plainly (founder, 2026-11-23: a 40 pt right inset and
     balanced wrapping left big gaps on the right on a phone). */
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font: var(--text-body);
}

.faq__answer ul {
  padding-left: 22px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq__answer li {
  display: list-item;
}

/* End band */
.band {
  width: 100%;
  max-width: 1040px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.band .title {
  max-width: 560px;
}

@media (min-width: 1000px) {
  .band {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

/* Bigger type on iPad (700 wide and up) and laptop (1000 and up) below the first screen (founder,
   2026-11-23: "Describe it in your own words" looked too small). Phones are unchanged. */
@media (min-width: 700px) {
  .section .title,
  .faq__title,
  .band .title {
    font-size: 30px;
    line-height: 36px;
  }

  .section .heading {
    font-size: 20px;
    line-height: 28px;
  }

  .askbar {
    min-height: 68px;
    font-size: 18px;
    line-height: 26px;
  }

  .areas .chip {
    font-size: 17px;
    line-height: 24px;
  }

  .lead-in {
    font-size: 20px;
    line-height: 28px;
  }

  .area__name {
    font-size: 20px;
    line-height: 26px;
  }

  .faq summary {
    font-size: 18px;
    line-height: 26px;
  }

  .faq__answer {
    font-size: 17px;
    line-height: 26px;
  }

  .hero-d__cta > .note,
  .band > .note,
  .soon .note {
    font-size: 16px;
    line-height: 22px;
  }
}

@media (min-width: 700px) and (max-width: 999px) {
  .areas .chip {
    font-size: 15px;
    line-height: 20px;
  }
}

/* A narrow laptop window (1000 to 1159 wide): the four columns are tight, so the cards and
   suggestions take less padding and the suggestions shrink a little (never under 15), keeping
   every suggestion on one line. From 1160 (iPad sideways, 1180) they are as agreed. */
@media (min-width: 1000px) and (max-width: 1159px) {
  .area {
    padding-left: 12px;
    padding-right: 12px;
  }

  .areas .chip {
    padding-left: 10px;
    padding-right: 10px;
    font-size: clamp(15px, 1.55vw, 17px);
    white-space: nowrap;
  }
}

@media (min-width: 1000px) {
  .section .title,
  .faq__title,
  .band .title {
    font-size: 36px;
    line-height: 44px;
  }

  .section .heading {
    font-size: 22px;
    line-height: 30px;
  }

  .askbar {
    min-height: 72px;
  }

  .lead-in {
    font-size: 22px;
    line-height: 30px;
  }

  .faq summary {
    font-size: 19px;
    line-height: 28px;
  }

  .faq__answer {
    font-size: 18px;
    line-height: 28px;
  }
}

/* /download */
.download {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.download__phones {
  display: none;
  order: 1;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

/* The App Store's first three iPhone screenshots (founder, 2026-11-23). */
.panel {
  display: block;
  flex: none;
  width: 150px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgb(0 0 0 / 50%);
}

.download__code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.download__title {
  font: var(--text-title);
}

.qr {
  position: relative;
  padding: 18px;
}

.qr__corner {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 0 solid var(--bb-blue);
}

.qr__corner--tl {
  left: 0;
  top: 0;
  border-left-width: 4px;
  border-top-width: 4px;
  border-top-left-radius: 8px;
}

.qr__corner--tr {
  right: 0;
  top: 0;
  border-right-width: 4px;
  border-top-width: 4px;
  border-top-right-radius: 8px;
}

.qr__corner--bl {
  left: 0;
  bottom: 0;
  border-left-width: 4px;
  border-bottom-width: 4px;
  border-bottom-left-radius: 8px;
}

.qr__corner--br {
  right: 0;
  bottom: 0;
  border-right-width: 4px;
  border-bottom-width: 4px;
  border-bottom-right-radius: 8px;
}

/* The code is 320 points, big enough to scan easily (founder, 2026-11-23); a narrow window shrinks it. */
.qr__code {
  width: min(320px, calc(100vw - 2 * var(--gutter) - 36px));
  aspect-ratio: 1;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-md);
}

.qr__code img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Under the code: "Scan the QR code", a space, the badge, then the trial line, all white. */
.download__notes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.download__scan + .badge {
  margin-top: 20px;
}

.download__notes > .note {
  color: var(--text-primary);
}

.download__scan {
  max-width: 320px;
  font: var(--text-body);
  text-wrap: pretty;
}

.open {
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Computer first: with scripts off (or no data-device) the QR block is what shows. */
.open--computer {
  display: flex;
}

.open--apple,
.open--android {
  display: none;
}

html[data-device='apple'] .open--computer,
html[data-device='android'] .open--computer {
  display: none;
}

html[data-device='apple'] .open--apple,
html[data-device='android'] .open--android {
  display: flex;
}

.textlink {
  color: var(--bb-blue-bright);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 560px) {
  .download__phones {
    display: flex;
  }
}

@media (min-width: 1000px) {
  .download {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
  }

  .download__phones {
    order: 0;
  }

  /* The screenshots sit level with the QR code and are exactly as tall as its blue corners, top to
     bottom: 320 + 2 x 18 = 356 points (founder, 2026-11-23). The code column's parts join the page
     grid, so the screenshots share the code's row. */
  .download {
    grid-template-rows: auto auto auto;
    row-gap: 28px;
  }

  .download__code {
    display: contents;
  }

  .download__title {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .download .qr {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
  }

  .download__notes {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
  }

  .download__phones {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }

  .panel {
    width: auto;
    height: 356px;
  }

  /* Before the listing there's no code: the title and the two lines sit level with the screenshots. */
  .download--soon .download__code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }

  .download--soon .download__notes {
    align-self: center;
  }
}

/* /support */
.support {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.support__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support__title {
  font: var(--text-display);
  letter-spacing: -0.5px;
}

.support__intro,
.support__item p {
  font: var(--text-body);
  text-wrap: pretty;
}

.support__item {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support__item h2 {
  font: var(--text-heading);
}

/* 404 */
.notfound {
  flex: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 80px;
}

.notfound__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.notfound__title {
  font: var(--text-title);
}

.notfound__line {
  font: var(--text-body);
  text-wrap: pretty;
}

.button {
  margin-top: 28px;
  align-self: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: var(--bb-blue);
  color: var(--on-blue);
  font: var(--text-body-strong);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button:active {
  background: var(--bb-blue-pressed);
}

@media (min-width: 1000px) {
  .button {
    max-width: 280px;
  }
}

/* Footer */
.site-footer {
  margin: 0 var(--gutter);
  border-top: 1px solid var(--border);
  padding: 20px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font: var(--text-small);
  color: var(--text-secondary);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 24px;
}

.site-footer a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: underline;
}

/* The tap note while the listing isn't live: a tap on the ask bar or a suggestion shows the two
   private-testing lines for a few seconds, above Safari's bar. */
.soon-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface-raised);
  box-shadow: 0 12px 40px rgb(0 0 0 / 50%);
  color: var(--text-primary);
  font: var(--text-small);
  text-align: center;
  white-space: nowrap;
  transition:
    opacity 200ms,
    transform 200ms;
}

.soon-toast.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Reduce Motion: nothing moves. The headline holds on "Small steps.", the pill's arrow stays still
   and the ask bar keeps its first example (the script checks the same setting). */
@media (prefers-reduced-motion: reduce) {
  [data-anim],
  .hero__rotate > span,
  .scroll-pill .icon {
    animation: none !important;
  }

  [data-anim] {
    opacity: 1 !important;
  }

  .hero__rotate > span:first-child {
    opacity: 1;
  }

  .hero__rotate > span:not(:first-child) {
    display: none;
  }

  .faq__chevron,
  .askbar,
  .chip,
  .soon-toast {
    transition: none;
  }
}

/* The headline's swap. */
@keyframes hero-swap {
  0% {
    opacity: 0;
    transform: translateY(0.6em);
  }
  5% {
    opacity: 1;
    transform: none;
  }
  24.99% {
    opacity: 1;
    transform: none;
  }
  25% {
    opacity: 0;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: none;
  }
}

/* Anything with the hidden attribute stays hidden whatever its own display says. */
[hidden] {
  display: none !important;
}

/* /third-party-notices (generated from notices.manifest.json). The Support page's column; the
   licence texts are the file's words, paragraphs kept. */
.notices {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.notices__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notices__title {
  font: var(--text-display);
  letter-spacing: -0.5px;
}

.notices__updated {
  font: var(--text-small);
  color: var(--text-secondary);
}

.notices__intro {
  font: var(--text-body);
  text-wrap: pretty;
}

.notices__contents ul {
  display: flex;
  flex-direction: column;
}

.notices__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--bb-blue-bright);
  font: var(--text-body);
  text-decoration: underline;
}

.notices__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: 16px;
}

.notices__heading {
  font: var(--text-heading);
  text-wrap: balance;
}

.notices__libs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notices__name {
  font: var(--text-body-strong);
  overflow-wrap: anywhere;
}

.notices__copy {
  font: var(--text-small);
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.notices__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font: var(--text-body);
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.notices__p--i1 {
  margin-left: 1rem;
}

.notices__p--i2 {
  margin-left: 2rem;
}

.notices__p--i3 {
  margin-left: 3rem;
}

.notices__p--i4 {
  margin-left: 4rem;
}

.notices__rule {
  overflow: hidden;
  white-space: nowrap;
}

.notices__own {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* In the app (?app=1, a web view under the app's own bar): no header or footer, the title in
   --text-title, BB's gutter, and on wide screens a centred column of 600 x the app's text size
   (--zoom, below). Same rules as the legal pages' style.css. */
html.in-app .site-header,
html.in-app .site-footer {
  display: none;
}

html.in-app main {
  padding-top: 20px;
  padding-bottom: 40px;
}

html.in-app .notices {
  max-width: calc(600px * var(--zoom, 1));
}

html.in-app .notices__title {
  font: var(--text-title);
  letter-spacing: 0;
}

html.in-app .notices__intro {
  color: var(--text-secondary);
}

/* The app sets the iOS text size on <html> as an inline text-size-adjust (100 to 150%); the column reads it from that attribute, one line per whole percent. */
html.in-app[style*='adjust: 101%'] {
  --zoom: 1.01;
}

html.in-app[style*='adjust: 102%'] {
  --zoom: 1.02;
}

html.in-app[style*='adjust: 103%'] {
  --zoom: 1.03;
}

html.in-app[style*='adjust: 104%'] {
  --zoom: 1.04;
}

html.in-app[style*='adjust: 105%'] {
  --zoom: 1.05;
}

html.in-app[style*='adjust: 106%'] {
  --zoom: 1.06;
}

html.in-app[style*='adjust: 107%'] {
  --zoom: 1.07;
}

html.in-app[style*='adjust: 108%'] {
  --zoom: 1.08;
}

html.in-app[style*='adjust: 109%'] {
  --zoom: 1.09;
}

html.in-app[style*='adjust: 110%'] {
  --zoom: 1.1;
}

html.in-app[style*='adjust: 111%'] {
  --zoom: 1.11;
}

html.in-app[style*='adjust: 112%'] {
  --zoom: 1.12;
}

html.in-app[style*='adjust: 113%'] {
  --zoom: 1.13;
}

html.in-app[style*='adjust: 114%'] {
  --zoom: 1.14;
}

html.in-app[style*='adjust: 115%'] {
  --zoom: 1.15;
}

html.in-app[style*='adjust: 116%'] {
  --zoom: 1.16;
}

html.in-app[style*='adjust: 117%'] {
  --zoom: 1.17;
}

html.in-app[style*='adjust: 118%'] {
  --zoom: 1.18;
}

html.in-app[style*='adjust: 119%'] {
  --zoom: 1.19;
}

html.in-app[style*='adjust: 120%'] {
  --zoom: 1.2;
}

html.in-app[style*='adjust: 121%'] {
  --zoom: 1.21;
}

html.in-app[style*='adjust: 122%'] {
  --zoom: 1.22;
}

html.in-app[style*='adjust: 123%'] {
  --zoom: 1.23;
}

html.in-app[style*='adjust: 124%'] {
  --zoom: 1.24;
}

html.in-app[style*='adjust: 125%'] {
  --zoom: 1.25;
}

html.in-app[style*='adjust: 126%'] {
  --zoom: 1.26;
}

html.in-app[style*='adjust: 127%'] {
  --zoom: 1.27;
}

html.in-app[style*='adjust: 128%'] {
  --zoom: 1.28;
}

html.in-app[style*='adjust: 129%'] {
  --zoom: 1.29;
}

html.in-app[style*='adjust: 130%'] {
  --zoom: 1.3;
}

html.in-app[style*='adjust: 131%'] {
  --zoom: 1.31;
}

html.in-app[style*='adjust: 132%'] {
  --zoom: 1.32;
}

html.in-app[style*='adjust: 133%'] {
  --zoom: 1.33;
}

html.in-app[style*='adjust: 134%'] {
  --zoom: 1.34;
}

html.in-app[style*='adjust: 135%'] {
  --zoom: 1.35;
}

html.in-app[style*='adjust: 136%'] {
  --zoom: 1.36;
}

html.in-app[style*='adjust: 137%'] {
  --zoom: 1.37;
}

html.in-app[style*='adjust: 138%'] {
  --zoom: 1.38;
}

html.in-app[style*='adjust: 139%'] {
  --zoom: 1.39;
}

html.in-app[style*='adjust: 140%'] {
  --zoom: 1.4;
}

html.in-app[style*='adjust: 141%'] {
  --zoom: 1.41;
}

html.in-app[style*='adjust: 142%'] {
  --zoom: 1.42;
}

html.in-app[style*='adjust: 143%'] {
  --zoom: 1.43;
}

html.in-app[style*='adjust: 144%'] {
  --zoom: 1.44;
}

html.in-app[style*='adjust: 145%'] {
  --zoom: 1.45;
}

html.in-app[style*='adjust: 146%'] {
  --zoom: 1.46;
}

html.in-app[style*='adjust: 147%'] {
  --zoom: 1.47;
}

html.in-app[style*='adjust: 148%'] {
  --zoom: 1.48;
}

html.in-app[style*='adjust: 149%'] {
  --zoom: 1.49;
}

html.in-app[style*='adjust: 150%'] {
  --zoom: 1.5;
}

/* /leaving, "Why are you leaving?" (round B; SitePage.dc.html, page "leaving"). The one page that
   follows the visitor's light or dark setting; the light colours are the emails' (email-look.md).
   The blue button and the logo do not change. A 560 px column, the logo lockup under the content. */
@media (prefers-color-scheme: light) {
  html.leaving-page {
    color-scheme: light;
    --bg-app: #ffffff;
    --surface: #f2f4f8;
    --surface-raised: #f2f4f8;
    --border: #dde2ea;
    --border-strong: #8a93a3;
    --text-primary: #0b0f19;
    --text-secondary: #4e5768;
    --bb-blue-bright: #1a5ce0;
    --bb-blue-tint: #1e6bff1f;
    --danger: #c0262d;
  }
}

.leaving-page {
  --text-caption: 400 calc(12px * var(--type-scale)) / calc(16px * var(--type-scale))
    var(--font-sans);
}

.leaving {
  flex: 1;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.leaving__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leaving__title {
  font: var(--text-display);
  letter-spacing: -0.5px;
}

.leaving__title:focus {
  outline: none;
}

.leaving__line {
  font: var(--text-body);
  text-wrap: pretty;
}

.leaving__form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* The "Other" field sits 12 px under the answers, like the list's own gap. */
.leaving__other {
  margin-top: -20px;
}

.leaving__answers {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* One answer: the app's OptionRow (multiple). The real checkbox covers the row, so the whole row
   is the target; the drawn box shows the state. */
.option {
  position: relative;
  width: 100%;
  min-height: 56px;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: flex-start;
  align-content: center;
  gap: var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
}

.option__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.option__box {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: calc(12px * var(--type-scale) - 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  color: transparent;
}

.option__text {
  flex: 1;
  min-width: 0;
  font: var(--text-body);
  overflow-wrap: anywhere;
}

.option--on {
  background: var(--bb-blue-tint);
  border-color: var(--bb-blue-bright);
  box-shadow: inset 0 0 0 1px var(--bb-blue-bright);
}

.option--on .option__box {
  border-color: var(--bb-blue);
  background: var(--bb-blue);
  color: var(--on-blue);
}

.option:has(.option__input:focus-visible) {
  outline: 2px solid var(--bb-blue-bright);
  outline-offset: 2px;
}

.option--locked:not(.option--on) {
  border-color: var(--border);
  color: var(--text-secondary);
  cursor: default;
}

.option--locked:not(.option--on) .option__text {
  color: var(--text-secondary);
}

/* A text field: the app's TextField. The label sits in the box and floats up into the outline on
   focus or when there is text. */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field__box {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 0 var(--space-4);
}

.field--area .field__box {
  align-items: flex-start;
  min-height: 120px;
}

.field__outline {
  position: absolute;
  top: calc(-8px * var(--type-scale));
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.field__legend {
  max-width: 0.01px;
  height: calc(16px * var(--type-scale));
  padding: 0;
  font: var(--text-caption);
  visibility: hidden;
  white-space: nowrap;
  overflow: hidden;
  transition: max-width 120ms var(--ease-standard);
}

.field__legend > span {
  padding: 0 4px;
}

.field__label {
  position: absolute;
  top: 50%;
  left: var(--space-4);
  max-width: calc(100% - 32px);
  transform: translateY(-50%);
  pointer-events: none;
  font: var(--text-body);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    top 120ms var(--ease-standard),
    font-size 120ms var(--ease-standard),
    line-height 120ms var(--ease-standard);
}

.field--area .field__label {
  top: calc(16px + 12px * var(--type-scale));
}

.field__input {
  position: relative;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 16px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font: var(--text-body);
  /* 16 px or more, so iPhone Safari does not zoom in when the field gets focus. */
  font-size: max(16px, calc(16px * var(--type-scale)));
  caret-color: var(--bb-blue-bright);
  resize: none;
}

/* The "Other" field: 3 lines high, scrolling inside. */
.field__input[rows] {
  height: calc(72px * var(--type-scale) + 44px);
  padding: 28px 0 16px;
  overflow-y: auto;
}

.field__box:focus-within .field__legend,
.field__box:has(.field__input:not(:placeholder-shown)) .field__legend {
  max-width: 100%;
}

.field__box:focus-within .field__label,
.field__box:has(.field__input:not(:placeholder-shown)) .field__label {
  top: 0;
  font: var(--text-caption);
}

.field__box:focus-within .field__outline {
  border: 2px solid var(--bb-blue-bright);
}

.field__box:focus-within .field__label {
  color: var(--bb-blue-bright);
}

/* An error wins over focus, as in the app's TextField: the box stays red while it is focused. */
.field--error .field__box .field__outline,
.field--error .field__box:focus-within .field__outline {
  border: 2px solid var(--danger);
}

.field--error .field__box .field__label,
.field--error .field__box:focus-within .field__label {
  color: var(--danger);
}

.field__input:disabled {
  opacity: 0.4;
}

.field__msg {
  font: var(--text-small);
  color: var(--text-secondary);
}

.field__msg--count {
  text-align: right;
}

.field__msg--error {
  color: var(--danger);
}

.leaving__send {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.leaving__confirm {
  width: 100%;
  min-height: 52px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--bb-blue);
  color: var(--on-blue);
  font: var(--text-body-strong);
  cursor: pointer;
}

.leaving__confirm:active:not(:disabled) {
  background: var(--bb-blue-pressed);
}

.leaving__confirm:focus-visible {
  outline: 2px solid var(--bb-blue-bright);
  outline-offset: 2px;
}

.leaving__confirm:disabled {
  opacity: 0.4;
  cursor: default;
}

.leaving__fail {
  font: var(--text-small);
  color: var(--danger);
  text-align: center;
}

/* Thank-you and the used link: the same page, the form gone; centred in the free height. */
.leaving--done {
  align-self: center;
  max-width: 480px;
  justify-content: center;
  gap: 0;
  padding-bottom: 80px;
  text-align: center;
}

.leaving--done .leaving__title {
  font: var(--text-title);
  letter-spacing: 0;
}

.leaving--done .leaving__head {
  gap: 12px;
}

.leaving--done .leaving__line {
  padding: 0 24px;
  text-wrap: balance;
}

/* The logo lockup under the content, above the footer (this page only; the others keep it at the top). */
.leaving-logo {
  padding: 0 var(--gutter) 32px;
  display: flex;
  justify-content: center;
}

.leaving-logo a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.leaving-logo a:focus-visible {
  outline: 2px solid var(--bb-blue-bright);
  outline-offset: 2px;
}
