/* .guido page: centred hero and the feature grid ("bento") of glass cards. Tokens come from site.css. */

.bhero { position: relative; text-align: center; padding: clamp(56px, 9vw, 104px) 0 12px; }
.bhero::before { content: ""; position: absolute; inset: -80px 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 35%, rgba(163,230,53,.18), transparent 70%); }
.bhero h1 { margin: 0 auto 26px; width: min(300px, 62vw); }
.bhero h1 img { width: 100%; height: auto; display: block; }
.bhero .lead { margin: 0 auto 16px; max-width: 14ch; font: 700 clamp(34px, 6.4vw, 68px)/1.04 var(--display); letter-spacing: -.035em;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bhero .sub { margin: 0 auto 28px; max-width: 46ch; color: var(--text-2); font-size: clamp(17px, 2vw, 20px); line-height: 1.45; }
.bhero .cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 20px; }

.bx { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: 44px; scroll-margin-top: calc(var(--header) + 16px); }
@media (min-width: 700px) { .bx { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } .bx .c2 { grid-column: span 2; } .bx .c3 { grid-column: span 3; } .bx .c6 { grid-column: span 6; } }
@media (min-width: 1000px) { .bx { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; } .bx .d4 { grid-column: span 4; } .bx .d5 { grid-column: span 5; } .bx .d7 { grid-column: span 7; } .bx .d8 { grid-column: span 8; } .bx .r2 { grid-row: span 2; } }

.bxc { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); border: 1px solid var(--line); min-height: 250px; padding: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08); display: flex; flex-direction: column; }
.bxc h2 { margin: 0 0 6px; font: 650 clamp(22px, 2.4vw, 28px)/1.12 var(--display); letter-spacing: -.025em; }
.bxc p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.5; max-width: 36ch; }
.bx-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--lime-ink); margin-bottom: 12px; font-weight: 550; }
.bx-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none; }
.bx-big { font: 700 clamp(64px, 9vw, 104px)/.92 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin: auto 0 8px;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bx-big.lime { background: linear-gradient(180deg, #D4F77A, #7CC400); -webkit-background-clip: text; background-clip: text; }

/* A phone that rises out of the card's lower edge. */
.bx-phone { margin: 22px auto -120px; width: min(250px, 72%); border-radius: 38px; padding: 7px; background: linear-gradient(160deg, #3a3a3f, #121214 40%, #2a2a2e);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); transition: transform .7s var(--ease); }
.bx-phone img { display: block; border-radius: 31px; width: 100%; height: auto; aspect-ratio: 600/1304; object-fit: cover; object-position: top; }
.bxc:hover .bx-phone { transform: translateY(-10px); }
.bx-side { flex-direction: row; gap: 20px; align-items: stretch; }
.bx-side > div:first-child { flex: 1; display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 560px) { .bx-side { flex-direction: column; } }

/* Rest timer ring */
.bx-ring { position: relative; width: 168px; height: 168px; margin: 18px auto 4px; }
.bx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bx-ring circle { fill: none; stroke-width: 9; }
.bx-ring .track { stroke: rgba(255,255,255,.08); }
.bx-ring .fill { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 465; stroke-dashoffset: 0; animation: bx-drain 12s linear infinite; filter: drop-shadow(0 0 10px rgba(163,230,53,.45)); }
@keyframes bx-drain { to { stroke-dashoffset: 465; } }
.bx-ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 650 40px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* Ranks as a rising ladder: seven steps in the app's rank colours. */
.bx-ladder { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; margin: auto 0 0; padding: 22px 0 0; }
.bx-ladder li { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 8px; min-width: 0; }
.bx-ladder i { display: block; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 18%, transparent)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); transform-origin: bottom; transition: transform .6s var(--ease); }
.bx-ladder b { font-size: 12px; font-weight: 600; color: var(--c); text-align: center; white-space: nowrap; }
@media (min-width: 1000px) and (max-width: 1140px) { .bx-ladder b { font-size: 10.5px; letter-spacing: -.02em; } }
.bxc:hover .bx-ladder i { transform: scaleY(1.08); }
.bx-ladder li:nth-child(2) i { transition-delay: .03s; } .bx-ladder li:nth-child(3) i { transition-delay: .06s; } .bx-ladder li:nth-child(4) i { transition-delay: .09s; }
.bx-ladder li:nth-child(5) i { transition-delay: .12s; } .bx-ladder li:nth-child(6) i { transition-delay: .15s; } .bx-ladder li:nth-child(7) i { transition-delay: .18s; }
@media (max-width: 420px) { .bx-ladder { gap: 4px; } .bx-ladder b { font-size: 10px; letter-spacing: -.02em; overflow: visible; text-overflow: clip; } }

/* Week strip and activity squares */
.bx-week { display: flex; gap: 8px; margin-top: auto; padding-top: 22px; }
.bx-week i { flex: 1; aspect-ratio: 1; max-width: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-style: normal; font-size: 13px; color: var(--text-3); }
.bx-week i.on { background: var(--lime); border-color: var(--lime); color: var(--on-lime); font-weight: 700; }
.bx-sq { display: grid; grid-template-columns: repeat(18, 1fr); gap: 5px; margin-top: auto; padding-top: 24px; }
.bx-sq i { aspect-ratio: 1; border-radius: 4px; background: rgba(255,255,255,.06); }
.bx-sq i.l1 { background: rgba(163,230,53,.3); } .bx-sq i.l2 { background: rgba(163,230,53,.6); } .bx-sq i.l3 { background: var(--lime); }

/* What is behind a number: on a wide screen with a mouse it covers the card on hover or keyboard focus; everywhere else
   (touch screens, narrow windows) the list sits under the text, so nothing is ever cut off. */
.bx-more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.bx-more li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.3; color: var(--text); overflow-wrap: break-word; }
.bx-more { margin-top: 18px; position: relative; z-index: 1; }
.bx-more .bx-tag { display: none; }
.bx-has-more .bx-phone { display: none; }
@media (min-width: 700px) and (max-width: 999px) { .bx-more ul { grid-template-columns: minmax(0, 1fr); } }
/* Touch screens and narrow windows: the list stays folded until the card is tapped; a small + in the corner says so. */
@media (hover: none), (max-width: 999px) {
  .bx-has-more { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .bx-has-more::after { content: ""; position: absolute; top: 22px; right: 22px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong);
    background: linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat; color: var(--text); opacity: .7; transition: transform .35s var(--ease); }
  .bx-has-more.open::after { transform: rotate(45deg); }
  .bx-more { display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: 0; transition: grid-template-rows .4s var(--ease), opacity .3s var(--ease), margin-top .4s var(--ease); }
  .bx-more ul { min-height: 0; overflow: hidden; }
  .bx-has-more.open .bx-more { grid-template-rows: 1fr; opacity: 1; margin-top: 18px; }
}
@media (hover: hover) and (min-width: 1000px) {
  .bx-has-more { min-height: 372px; }
  .bx-has-more .bx-phone { display: block; }
  .bx-more .bx-tag { display: inline-flex; margin-bottom: 0; }
  .bx-more { position: absolute; inset: 0; z-index: 2; margin: 0; padding: 24px 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; border-radius: inherit;
    background: rgba(16,16,18,.975); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .45s var(--ease); pointer-events: none; }
  .bx-has-more:hover .bx-more, .bx-has-more:focus-visible .bx-more { opacity: 1; transform: none; }
}

/* Monthly report, drawn in the page with example numbers (the app's own card, not a screenshot). */
.bx-report { flex: 0 0 52%; align-self: center; border: 1.5px solid var(--lime); border-radius: 22px; padding: 18px; background: #151517; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bx-report-top { display: flex; gap: 12px; align-items: center; }
.bx-report-top .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; flex: none; }
.bx-report-top svg { width: 20px; height: 20px; }
.bx-report-top b { display: block; font-size: 16px; font-weight: 600; } .bx-report-top small { color: var(--lime-ink); font-size: 14px; }
.bx-report-month { font: 650 clamp(24px, 2.6vw, 30px)/1.1 var(--display); letter-spacing: -.03em; }
.bx-report-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bx-report-nums span { background: #0A0A0B; border-radius: 12px; padding: 12px 8px 12px 10px; font-size: 12.5px; color: var(--text-2); display: block; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.bx-report-nums b { display: block; color: var(--text); font-size: 18px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bx-report-btn { background: #F5F5F4; color: #0A0A0B; border-radius: 14px; padding: 13px; text-align: center; font-weight: 600; font-size: 16px; }
@media (max-width: 560px) { .bx-report { margin-top: 22px; align-self: stretch; } }
/* On a phone the three numbers become rows, so long words such as "entraînement" never break. */
@media (max-width: 560px) {
  .bx-report-nums { grid-template-columns: minmax(0, 1fr); }
  .bx-report-nums span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; hyphens: manual; }
}

@media (prefers-reduced-motion: reduce) {
  .bx-ring .fill { animation: none; }
  .bx-phone, .bx-ladder i, .bx-more { transition: none; }
  .bxc:hover .bx-phone, .bxc:hover .bx-ladder i { transform: none; }
}

/* Home page: the app card and the "next app" card, in the same glass grid. */
.bx-home { margin-top: 0; }
.bx-link { text-decoration: none; color: inherit; min-height: 440px; padding: clamp(26px, 3.4vw, 44px); transition: border-color .3s var(--ease); }
.bx-link:hover { border-color: var(--line-strong); }
.bx-link .icon { width: 72px; height: 72px; border-radius: 18px; border: 1px solid var(--line-strong); box-shadow: 0 20px 40px -12px rgba(0,0,0,.8); }
.bx-link .bx-name { margin: 24px 0 0; font-size: clamp(48px, 6.4vw, 84px); line-height: 1; letter-spacing: -.05em; }
.bx-link p { margin-top: 14px; font-size: clamp(17px, 1.7vw, 20px); max-width: 30ch; }
.bx-link .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: auto; padding-top: 28px; }
.bx-link .bx-phone { flex: 0 0 min(250px, 40%); margin: 0 0 -190px; align-self: flex-start; }
@media (max-width: 560px) { .bx-link .bx-phone { margin: 28px auto -150px; flex-basis: auto; align-self: center; } }
.bx-next h2 { margin-top: 0; }
.bx-dots { display: flex; gap: 8px; margin-top: auto; padding-top: 28px; }
.bx-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); animation: bx-pulse 1.8s ease-in-out infinite; }
.bx-dots i:nth-child(2) { animation-delay: .25s; } .bx-dots i:nth-child(3) { animation-delay: .5s; }
@keyframes bx-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bx-dots i { animation: none; } }
/* The next app is not .guido: silver instead of lime. */
.bx-next .bx-tag { color: #D9DADD; }
.bx-next .bx-tag i { background: var(--silver); }
.bx-next .bx-dots i { background: rgba(217,218,221,.32); }
/* Rank names on one line under narrower bars: the bars leave room, the names stay apart. */
.bx-ladder { gap: 4px; }
.bx-ladder li { align-items: center; }
.bx-ladder i { width: 68%; }
.bx-ladder b { font-size: 10.5px; letter-spacing: -.01em; line-height: 1.2; overflow: visible; }
/* Leaderboard card: the text beside a small weekly board. */
@media (min-width: 1000px) { .bx .d12 { grid-column: span 12; } }
.bx-lb > div:first-child { max-width: 520px; }
.bx-board { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; max-width: 460px; margin-left: auto; width: 100%; }
.bx-board li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: #151517; border: 1px solid rgba(255,255,255,.06); }
.bx-board li.me { background: #1C1C1F; border-color: rgba(255,255,255,.14); }
.bx-board .n { width: 18px; font-weight: 700; color: var(--lime-ink); font-variant-numeric: tabular-nums; }
.bx-board li.me .n { color: var(--text); }
.bx-board svg { flex: none; }
.bx-board .who { flex: 1; min-width: 0; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-board .xp { font-weight: 700; font-variant-numeric: tabular-nums; }
/* In a narrow card seven names cannot share one line: the bars turn sideways, names aligned on the left. */
.bxc:has(.bx-ladder) { container-type: inline-size; }
@container (max-width: 440px) {
  .bx-ladder { grid-template-columns: minmax(0, 1fr); height: auto; gap: 8px; padding-top: 18px; }
  .bx-ladder li { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; height: auto; gap: 10px; }
  .bx-ladder li b { order: -1; text-align: left; font-size: 13px; }
  .bx-ladder li i { width: var(--h); height: 12px; border-radius: 3px 8px 8px 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 30%, transparent), var(--c)); transform-origin: left; }
  .bxc:hover .bx-ladder i { transform: scaleX(1.04); }
}
