/*
 * BeeBEEP 6: the look of the new generation (WebMastro D35), from the
 * mockup design/home.html (direction C) and the application's own palette.
 * Loaded only by the pages already in the new design (/whats-new); in
 * December it becomes the stylesheet of the whole site.
 *
 * Contrast checked on every pair (WCAG 2.2 AA): text on navy #C9DAE3 or
 * #9FB6C6, text on honey #3A2A00, secondary text #5F6E7B on white and on
 * the page gray.
 */
:root {
  --bb-navy: #0B2A3F;
  --bb-navy-deep: #071A28;
  --bb-blue: #0277BD;
  --bb-blue-deep: #01579B;
  --bb-blue-light: #4FC3F7;
  --bb-blue-soft: #E3F2FB;
  --bb-honey: #F5B301;
  --bb-honey-soft: #FFF4D6;
  --bb-on-honey: #3A2A00;
  --bb-ink: #14202B;
  --bb-muted: #5F6E7B;
  --bb-muted-dark: #9FB6C6;
  --bb-page: #F4F6F8;
}

.bb-page {
  color: var( --bb-ink );

  h2 {
    font-weight: 700;
    letter-spacing: -0.01em;
  }
}

/* buttons: the honey of the application; the outline ones are Bootstrap's */
.bb-btn-honey {
  --bs-btn-color: var( --bb-on-honey );
  --bs-btn-bg: var( --bb-honey );
  --bs-btn-border-color: var( --bb-honey );
  --bs-btn-hover-color: var( --bb-on-honey );
  --bs-btn-hover-bg: #FFC93C;
  --bs-btn-hover-border-color: #FFC93C;
  --bs-btn-active-color: var( --bb-on-honey );
  --bs-btn-active-bg: #FFC93C;
  --bs-btn-active-border-color: #FFC93C;
  font-weight: 700;
}

.bb-btn-blue {
  --bs-btn-color: var( --bb-blue );
  --bs-btn-border-color: var( --bb-blue );
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var( --bb-blue );
  --bs-btn-hover-border-color: var( --bb-blue );
  --bs-btn-active-bg: var( --bb-blue-deep );
  --bs-btn-active-border-color: var( --bb-blue-deep );
}

.bb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* hero */
.bb-hero {
  color: #fff;
  overflow: hidden;
  padding: 3rem 0;
  background: radial-gradient( 60rem 30rem at 85% 20%, rgb( 79 195 247 / 0.18 ), transparent 60% ),
    radial-gradient( 40rem 25rem at 10% 90%, rgb( 245 179 1 / 0.12 ), transparent 60% ),
    linear-gradient( 180deg, var( --bb-navy ), var( --bb-navy-deep ) );

  h1 {
    margin: 1rem 0 1.5rem;
    font-size: clamp( 2.25rem, 5vw, 3.75rem );
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  .bb-lead {
    color: #C9DAE3;
    font-size: 1.3rem;

    strong {
      color: #fff;
    }
  }

  .bb-rumour {
    color: #C9DAE3;
  }

  .bb-read-on {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var( --bb-honey );

    &:hover,
    &:focus-visible {
      color: var( --bb-honey );
    }
  }
}

@media ( min-width: 992px ) {
  .bb-hero {
    padding: 6rem 0;
  }
}

.bb-eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var( --bb-navy-deep );
  background: var( --bb-honey );
}

.bb-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0;
  color: var( --bb-muted-dark );
  font-size: 0.95rem;

  .bi {
    font-size: 1.4rem;
    color: #fff;
  }
}

/* two columns that stack on small screens; .bb-flip puts the picture first on wide ones */
.bb-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media ( min-width: 992px ) {
  .bb-split {
    grid-template-columns: 1fr 1fr;
  }

  .bb-flip > :last-child {
    order: -1;
  }
}

/* screenshots: stand-ins from the design study until the real application */
.bb-shots {
  position: relative;
  padding-bottom: 3rem;
}

.bb-window {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #243039;
  box-shadow: 0 2rem 4rem rgb( 0 0 0 / 0.5 );
  background: #0F1418;

  img {
    display: block;
    width: 100%;
    height: auto;
  }
}

.bb-window-bar {
  height: 1.6rem;
  background: #1C242B;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.6rem;

  span {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #3A4650;
  }
}

.bb-phone-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.6rem;
  border: 0.45rem solid var( --bb-ink );
  background: var( --bb-ink );
  box-shadow: 0 1.5rem 3rem rgb( 0 0 0 / 0.35 );
}

.bb-shots .bb-phone-shot {
  position: absolute;
  width: 30%;
  right: -1rem;
  bottom: 0;
}

@media ( max-width: 575.98px ) {
  .bb-shots .bb-phone-shot {
    right: 0;
  }
}

.bb-phones {
  display: flex;
  gap: 1.5rem;
  justify-content: center;

  .bb-phone-shot {
    width: 45%;
    max-width: 15rem;
  }

  .bb-phone-shot:last-child {
    margin-top: 3rem;
  }
}

/* sections */
.bb-row {
  padding: 5rem 0;

  p,
  li {
    color: var( --bb-muted );
    font-size: 1.1rem;
  }
}

.bb-alt {
  background: var( --bb-page );
}

.bb-center {
  text-align: center;

  > p {
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
  }
}

.bb-intro {
  padding: 3rem 0 5rem;
  background: var( --bb-page );
  text-align: center;

  > .container > p {
    color: var( --bb-muted );
    font-size: 1.25rem;
  }
}

.bb-chips {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 3rem;

  li {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    background: #fff;
    border: 1px solid #E1E7EC;
    font-weight: 700;
  }

  .bi {
    color: var( --bb-blue );
    margin-right: 0.35rem;
  }
}

.bb-new {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.1rem 0.55rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var( --bb-on-honey );
  background: var( --bb-honey );
}

.bb-feature {
  display: flex;
  gap: 1rem;
}

.bb-hex {
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var( --bb-on-honey );
  background: var( --bb-honey );
  clip-path: polygon( 25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50% );
}

.bb-points {
  list-style: none;
  padding: 0;

  li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.75rem;
  }

  li::before {
    content: "\F26B";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    color: var( --bb-blue );
  }
}

/* open source */
.bb-open {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 1.25rem;
  text-align: left;
  color: #fff;
  background: linear-gradient( 160deg, var( --bb-navy ), var( --bb-navy-deep ) );

  p,
  li {
    color: #C9DAE3;
  }

  .bb-points li::before {
    color: var( --bb-blue-light );
  }

  .bb-big-icon {
    background: rgb( 255 255 255 / 0.1 );
    color: #fff;
  }

  .bb-soon {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    font-style: italic;
  }
}

.bb-big-icon {
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  font-size: 2rem;
}

/* the drawings of the features: decorative, the text says it all */
.bb-invite {
  width: 100%;
  max-width: 22rem;
  margin: auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem rgb( 20 32 43 / 0.15 );
  overflow: hidden;
}

.bb-invite-top {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1.25rem;
  color: #fff;
  background: var( --bb-blue );
}

.bb-invite-body {
  padding: 1.25rem;
  font-size: 0.95rem;
}

.bb-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0F1418;
  background: #FFC93C;
}

.bb-admins {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;

  span {
    font-size: 0.8rem;
    padding: 0.15rem 0.6rem;
    border-radius: 1rem;
    background: var( --bb-honey-soft );
    color: var( --bb-on-honey );
  }
}

.bb-invite-buttons {
  display: flex;
  gap: 0.5rem;

  span {
    flex: 1;
    padding: 0.25rem;
    border-radius: 0.375rem;
    text-align: center;
    border: 1px solid var( --bb-blue );
  }

  span:first-child {
    color: #fff;
    background: var( --bb-blue );
  }

  span:last-child {
    color: var( --bb-muted );
    border-color: #C9D3DB;
  }
}

.bb-mesh {
  position: relative;
  height: 18rem;

  svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  line {
    stroke: var( --bb-blue );
    stroke-opacity: 0.35;
    stroke-width: 0.6;
    stroke-dasharray: 2 1.5;
  }
}

.bb-node {
  position: absolute;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var( --bb-blue );
  background: #fff;
  border: 2px solid var( --bb-blue );
  box-shadow: 0 0.5rem 1rem rgb( 20 32 43 / 0.1 );
}

.bb-n1 { left: 8%; top: 10%; }
.bb-n2 { left: 45%; top: 0; }
.bb-n3 { right: 6%; top: 25%; }
.bb-n4 { left: 20%; bottom: 5%; }

.bb-n5 { right: 25%; bottom: 0; }

.bb-node.bb-bt {
  color: #7A5600;
  background: var( --bb-honey-soft );
  border-color: var( --bb-honey );
}

/* languages */
.bb-languages {
  list-style: none;
  padding: 0;
  margin: 0;

  li {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    background: #fff;
    border: 1px solid #E1E7EC;
    font-weight: 700;
    color: var( --bb-ink );
  }
}

/* what does not change, moving from BeeBEEP 5 */
.bb-stays {
  background: var( --bb-honey-soft );

  ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
  }

  li {
    padding: 0.35rem 0;
    color: var( --bb-ink );
  }

  li .bi {
    margin-right: 0.5rem;
    color: #8A6400;
  }

  li a {
    color: var( --bb-blue-deep );
  }
}

.bb-bee {
  display: block;
  width: min( 22rem, 80% );
  height: auto;
  margin: auto;
  filter: drop-shadow( 0 1.5rem 3rem rgb( 0 0 0 / 0.25 ) );
}

.bb-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.bb-number {
  font-size: 3rem;
  font-weight: 700;
  color: var( --bb-blue );
  line-height: 1;
}

.bb-archive {
  padding: 2.5rem;
  border: 1px dashed #C9D3DB;
  border-radius: 1rem;
  background: #fff;

  .btn {
    white-space: nowrap;
  }
}

@media ( min-width: 992px ) {
  .bb-archive {
    display: flex;
    align-items: center;
    gap: 3rem;

    > div {
      flex-grow: 1;
    }
  }
}

/* closing band */
.bb-cta {
  color: #fff;
  text-align: center;
  background: radial-gradient( 50rem 20rem at 50% 0, rgb( 79 195 247 / 0.16 ), transparent 70% ),
    linear-gradient( 180deg, var( --bb-navy ), var( --bb-navy-deep ) );

  h2 {
    font-size: clamp( 2rem, 4vw, 3rem );
  }

  p {
    color: #C9DAE3;
    font-size: 1.2rem;
  }

  .bb-actions {
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  .bb-small {
    color: var( --bb-muted-dark );
    font-size: 0.95rem;

    a {
      color: #fff;
    }
  }
}

.bb-bee-small {
  width: 6rem;
  height: 6rem;
  margin-bottom: 1rem;
}

/* the drawings of the new features: as wide as they may be (a grid item with
   margin: auto would shrink to its content) */
.bb-chat {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 26rem;
  margin: auto;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #EDF1F4;
  box-shadow: 0 1.5rem 3rem rgb( 20 32 43 / 0.15 );
}

.bb-bubble {
  position: relative;
  max-width: 85%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.9rem;
  font-size: 0.95rem;

  small {
    display: block;
    font-weight: 700;
  }
}

.bb-in {
  align-self: flex-start;
  color: var( --bb-ink );
  background: #fff;
  border: 1px solid #E1E7EC;
  border-bottom-left-radius: 0.2rem;

  small {
    color: var( --bb-blue );
  }
}

.bb-out {
  align-self: flex-end;
  color: #fff;
  background: var( --bb-blue );
  border-bottom-right-radius: 0.2rem;
}

.bb-quote {
  display: block;
  margin-bottom: 0.25rem;
  padding-left: 0.5rem;
  border-left: 3px solid var( --bb-honey );
  font-size: 0.8rem;
  opacity: 0.85;
}

.bb-bubble .bb-ticks {
  display: block;
  text-align: right;
  font-weight: 400;
  font-size: 0.75rem;
  color: #fff;
}

.bb-reaction {
  position: absolute;
  bottom: -0.8rem;
  right: 0.5rem;
  padding: 0 0.35rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #E1E7EC;
  font-size: 0.8rem;
  color: #B07F00;
}

.bb-transfer {
  width: 100%;
  max-width: 24rem;
  margin: auto;
  padding: 1.25rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1.5rem 3rem rgb( 20 32 43 / 0.15 );

  small {
    color: var( --bb-muted );
  }
}

.bb-file {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.bb-file-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 0.75rem;
  font-size: 1.5rem;
  color: var( --bb-blue );
  background: var( --bb-blue-soft );
}

.bb-progress {
  height: 0.5rem;
  margin: 1rem 0 0.5rem;
  border-radius: 1rem;
  background: #E1E7EC;
  overflow: hidden;

  span {
    display: block;
    width: 62%;
    height: 100%;
    background: var( --bb-blue );
  }
}

.bb-file-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bb-pause {
  padding: 0.15rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  color: var( --bb-blue );
  border: 1px solid var( --bb-blue );
}

.bb-voice-note {
  width: 100%;
  max-width: 24rem;
  margin: auto;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  border-bottom-right-radius: 0.3rem;
  color: #fff;
  background: var( --bb-blue );
  box-shadow: 0 1.5rem 3rem rgb( 20 32 43 / 0.15 );
}

.bb-voice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bb-play {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var( --bb-blue );
  background: #fff;
}

.bb-wave {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 3px;
  height: 2rem;

  span {
    flex: 1;
    border-radius: 2px;
    background: currentcolor;
  }

  span:nth-child( 4n + 1 ) { height: 45%; }
  span:nth-child( 4n + 2 ) { height: 100%; }
  span:nth-child( 4n + 3 ) { height: 65%; }
  span:nth-child( 4n ) { height: 30%; }

  span:nth-child( n + 11 ) {
    opacity: 0.45;
  }
}

.bb-speed {
  padding: 0.1rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var( --bb-on-honey );
  background: var( --bb-honey );
}

.bb-voice-time {
  display: block;
  margin: 0.5rem 0 0 3.25rem;
  font-size: 0.8rem;
  color: #fff;
}

/* rendered with the application's own color emoji font (Noto Color Emoji),
   so every visitor sees them in color, whatever their system has */
.bb-emoji-shot {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin: auto;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem rgb( 20 32 43 / 0.15 );
}

/* the other news: the console, privacy, large networks, the platforms */
.bb-console {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  overflow-x: auto;
  color: #E8EDF1;
  background: #0F1418;
  font-family: ui-monospace, "DejaVu Sans Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre;
  box-shadow: 0 1.5rem 3rem rgb( 20 32 43 / 0.25 );

  .bb-p {
    color: var( --bb-honey );
  }

  .bb-c {
    color: #98A6B3;
  }
}

.bb-secure {
  width: 100%;
  max-width: 26rem;
  margin: auto;
  padding: 1.25rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1.5rem 3rem rgb( 20 32 43 / 0.15 );

  p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
  }

  .bb-lock {
    color: #8A6400;
    font-weight: 700;
  }

  .bb-verified {
    color: var( --bb-blue );
  }

  .bb-warning {
    color: #B02A37;
  }
}

.bb-metrics {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: left;
}

@media ( min-width: 768px ) {
  .bb-metrics {
    grid-template-columns: repeat( 3, 1fr );
  }
}

.bb-metric {
  height: 100%;
  padding: 1.25rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.25rem 1rem rgb( 20 32 43 / 0.08 );

  .bb-n {
    font-size: 2.25rem;
    font-weight: 700;
    color: var( --bb-blue );
    line-height: 1.1;
  }

  .bb-was {
    color: var( --bb-muted );
    text-decoration: line-through;
  }

  p {
    font-size: 0.95rem;
    margin: 0;
  }
}

.bb-devices {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;

  div {
    text-align: center;
  }

  .bi {
    font-size: 3rem;
    color: var( --bb-blue );
  }

  strong {
    display: block;
  }

  small {
    color: var( --bb-muted );
  }
}
