/* Fonts: marketing layer (Replica LL, Geist, Geist Mono) + console layer (Roboto, Roboto Mono) */
@font-face { font-family: "ReplicaLL"; src: url(/assets/fonts/ReplicaLL-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "ReplicaLL"; src: url(/assets/fonts/ReplicaLL-Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/assets/fonts/Geist-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/assets/fonts/GeistMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/assets/fonts/GeistMono-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto"; src: url(/assets/fonts/roboto-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url(/assets/fonts/roboto-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url(/assets/fonts/roboto-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* Brand (qovery.com) */
  --q-purple: #642DFF;
  --q-purple-300: #9B7AFF;
  --q-purple-700: #4E17C3;
  --q-purple-900: #370087;
  --q-coral: #FE7F7F;
  --q-ink: #151B2B;
  --q-ice: #D6DDFF;

  /* Console tokens (light theme, libs/shared/ui) */
  --neutral-1: #fff;    --neutral-2: #faf9fb; --neutral-3: #f3f0f4; --neutral-4: #ebe8ed;
  --neutral-6: #dad7df; --neutral-7: #cfccd6; --neutral-8: #bbb9c6; --neutral-9: #8d8b98;
  --neutral-10: #83818d; --neutral-11: #65636e; --neutral-12: #222027;
  --brand-2: #f5f6ff; --brand-3: #f0f1ff; --brand-4: #e6e7ff; --brand-6: #cccdff;
  --brand-9: #662eff; --brand-10: #5521e4; --brand-11: #5f33f0; --brand-12: #2e1b79;
  --positive-2: #f4fbf6; --positive-6: #acdcc0; --positive-9: #30a66d; --positive-11: #218358;
  --negative-2: #fff6f5; --negative-6: #fdbeaf; --negative-11: #d13415;

  --f-head: "ReplicaLL", "Geist", Helvetica, sans-serif;
  --f-body: "Geist", Helvetica, Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;
  --f-ui: "Roboto", Helvetica, sans-serif;
  --f-code: "Roboto Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--q-ink); font: 400 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--q-purple); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* Typography */
.h1, .h2, .h3 { font-family: var(--f-head); font-weight: 400; letter-spacing: -0.03em; margin: 0; }
.h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; }
.h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; }
.h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.hl { color: var(--q-purple); }          /* highlight on light */
.hl-coral { color: var(--q-coral); }     /* highlight on purple */
.sub { font-size: 19px; font-weight: 300; color: #3a4054; max-width: 640px; margin: 20px 0 0; }

/* Marketing buttons (Geist Mono, as on qovery.com covers) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px;
  border-radius: 10px; border: 0; font: 500 16px var(--f-mono); text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-purple { background: var(--q-purple); color: #fff; }
.btn-purple:hover { background: var(--q-purple-700); }
.btn-white { background: #fff; color: var(--q-ink); }
.btn-white:hover { background: var(--brand-4); }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.btn-glass:hover { background: rgba(255,255,255,.22); }

/* Fixed nav: transparent over the hero, frosted once the page scrolls */
html { scroll-padding-top: 80px; }
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background-color .2s, box-shadow .2s; }
nav.scrolled { background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--neutral-6); }
.hero-tiles { padding-top: 80px; }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font: 400 18px var(--f-body); }
.brand img { height: 28px; width: auto; }
.brand .x { opacity: .6; }
nav .links { display: flex; align-items: center; gap: 28px; }
nav .links a { text-decoration: none; font: 400 15px var(--f-body); }
nav .links .btn { height: 40px; padding: 0 16px; font-size: 14px; color: var(--q-ink); }
@media (max-width: 820px) { nav .links a:not(.btn) { display: none; } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 112px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 72px; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Frosted glass card (guide cover) */
.glass { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32); border-radius: 20px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(30,0,90,.35); }

/* Console window (Roboto layer) */
.console { background: var(--neutral-1); color: var(--neutral-12); font: 400 14px/1.43 var(--f-ui); border-radius: 12px; border: 1px solid var(--neutral-6); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--neutral-6); background: var(--neutral-2); font-size: 13px; color: var(--neutral-11); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--neutral-6); }
.console-bar .title { margin-left: 8px; }
.console-body { padding: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--positive-9); flex: none; }
.dot.run { background: var(--brand-9); box-shadow: 0 0 0 0 rgba(102,46,255,.5); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(102,46,255,0); } 100% { box-shadow: 0 0 0 0 rgba(102,46,255,0); } }

/* Sections */
section { padding: 112px 0; }
@media (max-width: 640px) { section { padding: 72px 0; } }
.tint { background: var(--brand-2); }
.head { max-width: 760px; }
.grid { display: grid; gap: 20px; margin-top: 56px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--neutral-6); border-radius: 16px; padding: 28px; }
.card .label { font: 500 13px var(--f-mono); color: var(--q-purple); margin-bottom: 18px; display: block; }
.card { position: relative; }
.card-logo { position: absolute; top: 24px; right: 24px; width: 32px; height: 32px; }
.card p { margin: 12px 0 0; color: var(--neutral-11); font-size: 16px; }

/* Agent tiles (brand rule: four agents, same size, white rounded squares) */
.agents { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; }
.agent { width: 96px; text-align: center; font: 500 14px var(--f-body); color: var(--q-ink); }
.tile { width: 96px; height: 96px; border-radius: 22%; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(21,27,43,.10); margin-bottom: 10px; color: var(--q-ink); }
.tile img { width: 58%; height: 58%; }

/* Steps */
.steps { counter-reset: s; }
.step .num { font: 400 56px/1 var(--f-head); color: var(--q-purple); letter-spacing: -0.03em; }
.step .h3 { margin-top: 24px; }
.code { margin-top: 16px; background: var(--q-ink); color: #e6e7ff; border-radius: 10px; padding: 14px 16px; font: 400 14px/1.5 var(--f-mono); overflow-x: auto; white-space: pre; }
.code .p { color: var(--q-purple-300); user-select: none; }
.step-hl { background: var(--brand-3); border: 1px solid var(--brand-6); border-radius: 16px; padding: 28px; box-shadow: 0 12px 32px rgba(100,45,255,.12); }
.step-hl .sub { color: var(--q-ink); }
.cmd-label { display: block; margin-top: 20px; font: 500 13px var(--f-mono); color: var(--q-purple); }
.cmd { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; padding: 12px 12px 12px 16px; }
.cmd code { flex: 1; min-width: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy { flex: none; height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: rgba(255,255,255,.12); color: #fff; font: 500 12px var(--f-mono); cursor: pointer; transition: background-color .15s; }
.copy:hover { background: rgba(255,255,255,.22); }
.copy.done, .copy.done:hover { background: var(--positive-9); }

/* Sign up on the lilac background */
.signup { background: linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)), #e9e5ff url(/assets/img/bg-lilac.jpg) center top / cover no-repeat; }
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 960px) { .signup-grid { grid-template-columns: 1fr; gap: 40px; } }
.signup .sub { color: var(--q-ink); }
.note { font-size: 15px; color: var(--q-ink); margin-top: 20px; max-width: 520px; }

/* Console form components (inputs, segmented control, button, callout) */
.form { padding: 24px; }
.form h3 { font: 500 16px/1.5 var(--f-ui); margin: 0 0 4px; }
.form .desc { font-size: 14px; color: var(--neutral-11); margin: 0 0 20px; }
.field { margin-bottom: 16px; }
.input { position: relative; min-height: 52px; border: 1px solid var(--neutral-6); border-radius: 6px; background: var(--neutral-1); padding: 8px 12px; cursor: text; transition: 120ms all cubic-bezier(.25,.1,.25,1); }
.input:hover { border-color: var(--neutral-8); }
.input:focus-within { border-color: var(--brand-9); outline: 2px solid var(--brand-4); }
.input.error { border-color: var(--negative-11); }
.input label { position: absolute; top: 8px; left: 12px; font-size: 12px; line-height: 16px; color: var(--neutral-11); pointer-events: none; }
.input input, .input select { position: absolute; left: 0; right: 0; bottom: 7px; width: 100%; padding: 0 12px; border: 0; background: transparent; font: 400 14px var(--f-ui); color: var(--neutral-12); outline: none; appearance: none; -webkit-appearance: none; }
.input select { cursor: pointer; padding-right: 36px; }
.input .chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; pointer-events: none; }
.input input::placeholder { color: var(--neutral-10); }
.hint { font-size: 12px; line-height: 16px; color: var(--neutral-11); margin: 4px 12px 0; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 36px; padding: 0; margin-bottom: 12px; border-radius: 4px; background: var(--neutral-3); font: 500 14px var(--f-ui); }
.segmented button { border: 1px solid transparent; background: transparent; color: var(--neutral-10); font: inherit; border-radius: 4px; cursor: pointer; }
.segmented button[aria-pressed=true] { background: var(--neutral-1); border-color: var(--neutral-6); color: var(--neutral-12); }

.qbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(102,46,255,.6); background: var(--brand-9); color: #fff; font: 500 14px var(--f-ui); cursor: pointer; width: 100%; transition: background-color .15s, transform .1s; }
.qbtn:hover { background: var(--brand-10); }
.qbtn:active { transform: scale(.97); }
.qbtn:focus-visible { outline: 2px solid var(--brand-9); outline-offset: 2px; }
.qbtn[disabled] { pointer-events: none; background: var(--neutral-3); border-color: var(--neutral-6); color: var(--neutral-10); }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.callout { display: none; gap: 12px; margin-top: 16px; padding: 16px; border: 1px solid; border-radius: 6px; font: 400 14px/1.43 var(--f-ui); }
.callout.ok { display: flex; background: var(--positive-2); border-color: var(--positive-6); color: var(--positive-11); }
.callout.err { display: flex; background: var(--negative-2); border-color: var(--negative-6); color: var(--negative-11); }
.callout .body { color: var(--neutral-12); }
.callout .body b { font-weight: 500; }
.callout a.qbtn { width: auto; margin-top: 10px; text-decoration: none; }
.callout svg { flex: none; margin-top: 2px; }
.hidden { display: none !important; }

/* Leaderboard (console table) */
.board { display: grid; gap: 20px; grid-template-columns: 2fr 1fr; margin-top: 56px; }
@media (max-width: 960px) { .board { grid-template-columns: 1fr; } }
.table { font: 400 14px var(--f-ui); color: var(--neutral-12); }
.thead, .trow { display: grid; grid-template-columns: 56px 1fr 120px; align-items: center; }
.thead { height: 44px; border-bottom: 1px solid var(--neutral-6); font: 500 12px var(--f-code); color: var(--neutral-11); }
.thead > div, .trow > div { padding: 0 16px; }
.trow { min-height: 56px; border-bottom: 1px solid var(--neutral-6); }
.trow:last-child { border-bottom: 0; }
.r { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 4px; background: var(--neutral-3); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand-9); border-radius: 2px; transition: width .6s; }
.empty { padding: 32px 16px; color: var(--neutral-11); text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border: 1px solid var(--positive-6); background: var(--positive-2); color: var(--positive-11); border-radius: 999px; font: 400 12px var(--f-ui); }
.badge .dot { width: 6px; height: 6px; }
.stat b { display: block; font: 400 88px/1 var(--f-head); letter-spacing: -0.04em; color: var(--q-purple); margin-top: 8px; }
.stat span { font: 500 13px var(--f-mono); color: var(--neutral-11); }
.people .trow { grid-template-columns: 40px 1fr 56px; min-height: 52px; }
.people .who small { display: block; color: var(--neutral-11); font-size: 12px; }

/* FAQ */
.faq { margin-top: 48px; border-top: 1px solid var(--neutral-6); }
details { border-bottom: 1px solid var(--neutral-6); padding: 24px 0; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; font: 400 22px/1.3 var(--f-head); letter-spacing: -0.02em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 24px var(--f-mono); color: var(--q-purple); }
details[open] summary::after { content: "–"; }
details p { margin: 14px 0 0; max-width: 760px; color: var(--neutral-11); }

/* Footer */

nav .links a { color: var(--q-ink); opacity: .8; transition: opacity .15s, color .15s; }
nav .links a:not(.btn):hover, nav .links a[aria-current] { color: var(--q-ink); opacity: 1; }
nav .links a.btn, nav .links a.btn:hover { color: #fff; opacity: 1; }
nav .links .btn { color: #fff; opacity: 1; }
nav .brand { color: var(--q-ink); }
.btn-outline { background: #fff; color: var(--q-ink); box-shadow: inset 0 0 0 1px var(--neutral-6); }
.btn-outline:hover { background: var(--neutral-2); }

/* Hero: lilac background, overlapping rotated tiles (integration cover pattern) */
.hero-tiles { position: relative; overflow: hidden; color: var(--q-ink); background: #e9e5ff url(/assets/img/bg-lilac.jpg) center top / cover no-repeat; }
.hero-tiles .sub { color: var(--q-ink); }
.stack { position: relative; height: 460px; }
.stack .t { position: absolute; background: #fff; border-radius: 22%; display: grid; place-items: center; box-shadow: 0 24px 60px -20px rgba(55,0,135,.35); }
.stack .t img { width: 58%; height: 58%; }
.stack .t.big { width: 220px; height: 220px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(4deg); z-index: 3; }
.stack .t.big img { width: 62%; height: 62%; }
.stack .t.s { width: 128px; height: 128px; }
.stack .t1 { left: 6%; top: 4%; transform: rotate(-8deg); }
.stack .t2 { right: 4%; top: 0; transform: rotate(7deg); }
.stack .t3 { left: 2%; bottom: 6%; transform: rotate(6deg); }
.stack .t4 { right: 8%; bottom: 2%; transform: rotate(-6deg); z-index: 4; }
.stack .t5 { left: 40%; bottom: -6%; transform: rotate(-3deg); z-index: 2; color: var(--q-ink); }
.stack .t6 { left: 40%; top: -8%; transform: rotate(5deg); z-index: 2; }
.stack .aws-tile svg { width: 62%; height: auto; }
.glass-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 44px; max-width: 620px; }
.glass-facts > div { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.glass-facts b { display: block; font: 400 24px/1.1 var(--f-head); letter-spacing: -0.02em; }
.glass-facts span { font: 400 12px var(--f-mono); color: #3a4054; }
@media (max-width: 960px) {
  .stack { height: auto; display: grid; grid-template-columns: repeat(4, 72px); gap: 14px; justify-content: center; }
  .stack .t, .stack .t.big, .stack .t.s { position: relative; inset: auto; width: 72px; height: 72px; transform: none; }
  .stack .t.big, .stack .t.s.t5 { grid-row: 1 / 3; width: 158px; height: 158px; }
  .stack .t.big { grid-column: 1 / 3; transform: rotate(-4deg); }
  .stack .t.s.t5 { grid-column: 3 / 5; transform: rotate(4deg); }
  .stack .t1, .stack .t2, .stack .t3, .stack .t4 { grid-row: 3; }
  .stack .t.s.t6 { display: none; }
}
@media (max-width: 560px) { .glass-facts { grid-template-columns: repeat(2, 1fr); } }

/* Partner lockup: Qovery x Alan x AWS */
.brand { gap: 12px; }
.brand .lg-q { height: 28px; }
.brand .lg-alan { height: 22px; width: auto; }
.brand .lg-alan-text { font: 500 20px var(--f-body); letter-spacing: -0.01em; }
.brand .lg-aws { display: inline-flex; color: inherit; }
.brand .lg-aws svg { height: 42px; width: auto; display: block; margin: -4px 0; }
.brand .x { font-size: 16px; }
/* Partner logos turn white on the dark footer */
.brand.on-dark .lg-alan { filter: brightness(0) invert(1); }
@media (max-width: 520px) { .brand { gap: 8px; } .brand .lg-q { height: 24px; } .brand .lg-alan { height: 18px; } .brand .lg-aws svg { height: 34px; } }

/* Inner pages: first section clears the fixed nav */
.page-first { padding-top: 160px; min-height: calc(100vh - 140px); }
@media (max-width: 640px) { .page-first { padding-top: 120px; } }
.nav-links-active { opacity: 1 !important; font-weight: 500; }

/* Home: next-step band (sign up + leaderboard) */
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .next { grid-template-columns: 1fr; } }
.next .card { padding: 36px; display: flex; flex-direction: column; gap: 4px; }
.next .card.hi { background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)), #e9e5ff url(/assets/img/bg-lilac.jpg) center / cover; border-color: transparent; }
.next .card .btn { margin-top: 28px; align-self: flex-start; }
#next { padding-top: 0; }

/* Get started: steps 01-02 on the left, the full step 03 sequence on the right */
.steps2 { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; margin-top: 56px; align-items: start; }
@media (max-width: 960px) { .steps2 { grid-template-columns: 1fr; } }
.steps-left { display: grid; gap: 20px; }
.steps2 .step.card .h3 { margin-top: 18px; }
.steps2 .step.card .sub { margin-top: 12px; }
.pickers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pick { display: inline-flex; padding: 3px; border-radius: 8px; background: #fff; border: 1px solid var(--brand-6); }
.pick button { border: 0; background: transparent; padding: 6px 12px; border-radius: 6px; font: 500 13px var(--f-mono); color: var(--neutral-11); cursor: pointer; }
.pick button[aria-pressed=true] { background: var(--q-purple); color: #fff; }
.cmds { list-style: none; counter-reset: c; padding: 0; margin: 6px 0 0; }
.cmds li { counter-increment: c; }
.cmds .cmd-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cmds .cmd-label::before { content: counter(c) ". "; margin-right: -4px; }
.cmds .cmd-label { justify-content: flex-start; }
.cmds .toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 400 12px var(--f-mono); color: var(--q-ink); cursor: pointer; }
.cmds .toggle input { accent-color: var(--q-purple); margin: 0; }
.hint2 { margin: 6px 2px 0; font-size: 13px; color: var(--neutral-11); }
.copy-all-row { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.copy-all-row .btn { height: 44px; font-size: 14px; }
#copy-all-ok { font: 500 13px var(--f-mono); color: var(--positive-11); }

/* Mobile menu: a button next to Sign up opens a dropdown with the nav links */
.menu-btn { display: none; position: relative; width: 40px; height: 40px; border: 1px solid var(--neutral-6); border-radius: 10px; background: rgba(255,255,255,.7); cursor: pointer; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 1px; background: var(--q-ink); transition: transform .25s cubic-bezier(.22,1,.36,1), top .25s; }
.menu-btn span:first-child { top: 15px; } .menu-btn span:last-child { top: 23px; }
nav.open .menu-btn span:first-child { top: 19px; transform: rotate(45deg); }
nav.open .menu-btn span:last-child { top: 19px; transform: rotate(-45deg); }
.menu { display: none; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  nav .links { gap: 10px; }
  nav.open { background: rgba(255,255,255,.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--neutral-6); }
  .menu:not([hidden]) { display: grid; padding: 4px 16px 16px; animation: menuIn .22s cubic-bezier(.22,1,.36,1); }
  .menu a { padding: 14px 4px; border-top: 1px solid var(--neutral-4); color: var(--q-ink); text-decoration: none; font: 400 17px var(--f-body); }
  .menu a[aria-current] { color: var(--q-purple); }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .menu, .menu-btn span { animation: none; transition: none; } }

/* Footer: same structure and tokens as www.qovery.com (landing-page Footer.tsx) */
.site-footer { --f-ink: #1c162f; --f-secondary: #323037; --f-muted: #615f68; --f-border: #ebebeb; background: #fff; color: var(--f-ink); font: 400 16px/24px var(--f-body); padding: 80px 0 0; border-top: 1px solid var(--f-border); }
@media (max-width: 1023px) { .site-footer { padding-top: 48px; } }
.site-footer a { text-decoration: none; }
.f-top { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) { .f-top { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.f-about { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 495px; }
.f-brand { color: var(--f-ink); padding: 6px; margin-left: -6px; }
.f-about p { margin: 0; color: var(--f-secondary); }
.f-status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 10px; border: 1px solid var(--f-border); border-radius: 4px; font: 500 14px/20px var(--f-body); color: var(--f-secondary); transition: background-color .15s; }
.f-status:hover { background: #f5f5f7; }
.f-dot { width: 4px; height: 4px; border-radius: 50%; background: #b7791f; }
.f-status.ok .f-dot { background: #218358; }
.f-status.bad .f-dot { background: #c53030; }
.f-socials { display: flex; gap: 16px; padding-top: 4px; }
@media (min-width: 1024px) { .f-socials { padding-top: 12px; } }
.f-socials a { display: inline-flex; width: 20px; height: 20px; color: var(--f-muted); transition: color .15s; }
.f-socials a:hover { color: var(--q-purple); }
.f-socials svg { width: 20px; height: 20px; }
.f-rule { margin-top: 32px; border-top: 1px solid var(--f-border); }
@media (min-width: 1024px) { .f-rule { margin-top: 40px; } }
.f-cols { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
@media (min-width: 1024px) { .f-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0; } }
.f-group { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.f-group h2 { margin: 0; font: 500 14px/20px var(--f-body); color: var(--f-muted); }
.f-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.f-group a { color: var(--f-ink); transition: color .15s; }
.f-group a:hover { color: var(--q-purple); }
.f-bottom { margin-top: 40px; padding-bottom: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--f-muted); }
@media (min-width: 1024px) { .f-bottom { margin-top: 48px; padding: 24px 0; flex-direction: row; align-items: center; justify-content: space-between; } }
.f-bottom p { margin: 0; }
.f-legal { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) { .f-legal { flex-direction: row; align-items: center; } }
.f-legal a { color: var(--f-muted); transition: color .15s; }
.f-legal a:hover { color: var(--f-ink); }

/* --- Accounts, teams, leaderboard, admin ----------------------------------- */
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; background: var(--brand-4); color: var(--brand-11); display: inline-grid; place-items: center; font: 500 12px var(--f-ui); }
.linkbtn { background: none; border: 0; padding: 6px 0; font: 500 13px var(--f-ui); color: var(--brand-11); cursor: pointer; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--negative-11); }
.linkbtn.center { display: block; text-align: center; margin-top: 8px; }
.qbtn-outline { background: #fff; color: var(--neutral-12); border-color: var(--neutral-6); text-decoration: none; margin-bottom: 8px; }
.qbtn-outline:hover { background: var(--neutral-2); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: -4px 0 20px; border-radius: 8px; background: var(--neutral-2); border: 1px solid var(--neutral-4); font: 400 14px var(--f-ui); }
.user-chip > div { flex: 1; min-width: 0; }
.user-chip b { display: block; font-weight: 500; }
.user-chip small { display: block; color: var(--neutral-11); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-card { border: 1px solid var(--brand-6); background: var(--brand-2); border-radius: 10px; padding: 16px; font-family: var(--f-ui); }
.team-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.team-head small { display: block; font-size: 12px; color: var(--neutral-11); }
.team-head b { font: 400 26px/1.2 var(--f-head); letter-spacing: -0.02em; }
.rank-pill { flex: none; padding: 4px 10px; border-radius: 99px; background: var(--brand-9); color: #fff; font: 500 12px var(--f-ui); text-decoration: none; }
.members { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.members li { display: flex; align-items: center; gap: 10px; }
.team-settings { margin-top: 18px; padding: 0; border-bottom: 0; font-family: var(--f-ui); }
.team-settings summary { font: 500 14px var(--f-ui); color: var(--neutral-11); }
.team-settings summary::after { font-size: 16px; }
.team-settings form { margin-top: 14px; }
.team-settings .linkbtn { margin-top: 8px; }

.gate { max-width: 560px; margin-top: 56px; }
.gate p { color: var(--neutral-11); }
.board-root .board { margin-top: 56px; }
.muted { color: var(--neutral-11); }
.lb-teams { display: grid; gap: 10px; align-content: start; }
.lb-team { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--neutral-6); }
.lb-team.lead { border-color: var(--brand-6); background: linear-gradient(90deg, var(--brand-3), #fff 70%); }
.lb-team.mine { box-shadow: 0 0 0 2px var(--q-purple); }
.lb-rank { font: 400 30px/1 var(--f-head); color: var(--neutral-10); text-align: center; }
.lb-team.lead .lb-rank { color: var(--q-purple); }
.lb-name { font: 500 17px var(--f-body); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.you { font: 500 11px var(--f-mono); color: var(--q-purple); background: var(--brand-3); border: 1px solid var(--brand-6); padding: 2px 8px; border-radius: 99px; }
.lb-members { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--neutral-11); }
.lb-members li { display: flex; align-items: center; gap: 6px; }
.lb-members .avatar { width: 24px; height: 24px; font-size: 10px; }
.lb-score { text-align: right; }
.lb-score b { display: block; font: 400 40px/1 var(--f-head); letter-spacing: -0.03em; }
.lb-score small { font: 400 12px var(--f-mono); color: var(--neutral-11); }
.stat small { display: block; margin-top: 8px; font-size: 13px; }
.flight { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14px; }
.flight li { display: flex; gap: 10px; align-items: flex-start; }
.flight .dot { margin-top: 6px; }
.flight small { display: block; color: var(--neutral-11); font: 400 12px var(--f-mono); }
@media (max-width: 560px) { .lb-team { grid-template-columns: 30px 1fr auto; padding: 14px; gap: 12px; } .lb-rank { font-size: 24px; } .lb-score b { font-size: 30px; } }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 56px; }
.admin-teams { display: grid; gap: 14px; }
.admin-team-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.admin-team-head b { font: 400 22px var(--f-head); }
.admin-team-head small { color: var(--neutral-11); font-size: 13px; }
.admin-team-head .spacer { flex: 1; }
.admin-members { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.admin-members li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--neutral-4); font-size: 14px; }
.admin-members li > div { flex: 1; min-width: 0; }
.admin-members b { font-weight: 500; }
.admin-members small { display: block; color: var(--neutral-11); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
ul.card.admin-members { padding: 8px 24px; }
.flash { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 60; padding: 10px 18px; border-radius: 99px; background: var(--q-ink); color: #fff; font-size: 14px; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.flash.show { transform: translate(-50%, 0); }
.flash.bad { background: var(--negative-11); }
ul.card.admin-members li:first-child { border-top: 0; }
.qbtn .prov { width: 18px; height: 18px; flex: none; margin-right: 4px; }

/* Console-style select (Qovery/console select.scss) */
.input.qs { cursor: pointer; }
.input.qs .chev { transition: transform .15s; }
.input.qs.is-open .chev { transform: translateY(-50%) rotate(180deg); }
.qs-value { position: absolute; inset: 0; width: 100%; padding: 24px 36px 7px 12px; border: 0; background: transparent; text-align: left; font: 400 14px var(--f-ui); color: var(--neutral-12); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: none; }
.qs-value.is-placeholder { color: var(--neutral-10); }
.qs-menu { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 30; padding: 8px; max-height: 260px; overflow-y: auto; background: var(--neutral-1); border-radius: 6px; box-shadow: 0 0 0 1px var(--neutral-6), 0 4px 11px hsla(0, 0%, 0%, .1); cursor: default; }
.qs-option { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; cursor: pointer; }
.qs-option label { position: static; font: 500 13px/1.4 var(--f-ui); color: var(--neutral-11); cursor: pointer; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-option .qs-check { width: 16px; height: 16px; flex: none; color: var(--brand-9); opacity: 0; }
.qs-option.is-selected .qs-check { opacity: 1; }
.qs-option.is-selected label { color: var(--neutral-12); }
.qs-option.is-focused { background: var(--brand-3); }
.qs-option.is-focused label { color: var(--brand-10); }
.qs-empty { padding: 16px 8px; text-align: center; font: 500 12px var(--f-ui); color: var(--neutral-11); }
.console:has(.qs.is-open) { overflow: visible; }
.console-bar { border-radius: 12px 12px 0 0; }
.input.qs:focus-within, .input.qs.is-open { border-color: var(--brand-9); outline: 2px solid var(--brand-4); outline-offset: 0; }
.qs-value:focus, .qs-value:focus-visible { outline: none; box-shadow: none; }
.sim-banner { margin-top: 40px; padding: 14px 18px; border-radius: 12px; border: 1px solid #f3d7a6; background: #fff8eb; color: #7a4b00; font-size: 15px; }
.board-root .sim-banner + .board { margin-top: 20px; }
.admin-grid .btn { height: 44px; padding: 0 18px; font-size: 14px; }
.admin-grid .card p { margin-bottom: 16px; }

/* Leaderboard views */
.views { display: inline-grid; width: auto; margin-top: 40px; margin-bottom: 0; grid-auto-columns: minmax(110px, auto); }
.views button { padding: 0 16px; }
.board-root .views + div .board { margin-top: 24px; }
#sim-slot:empty { display: none; }

/* Timeline */
.tl { margin-top: 24px; border: 1px solid var(--neutral-6); border-radius: 16px; background: #fff; padding: 20px 20px 24px; }
.tl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; }
.tl-legend { display: flex; gap: 16px; color: var(--neutral-11); }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend i { width: 14px; height: 8px; border-radius: 4px; background: var(--brand-9); }
.tl-legend i.run { background: repeating-linear-gradient(45deg, var(--brand-6) 0 4px, var(--brand-9) 4px 8px); }
.tl-legend i.err { background: var(--negative-11); }
.tl-grid { --label: 240px; position: relative; }
.tl-axis { position: relative; height: 24px; margin-left: var(--label); border-bottom: 1px solid var(--neutral-4); }
.tl-axis-track span { position: absolute; bottom: 6px; transform: translateX(-50%); font: 400 11px var(--f-mono); color: var(--neutral-10); white-space: nowrap; }
.tl-axis { overflow: hidden; }
.tl-body { position: relative; }
.tl-lane { display: grid; grid-template-columns: var(--label) 1fr; align-items: center; height: 44px; border-bottom: 1px solid var(--neutral-3); background: #fff; }
.tl-lane.mine { background: var(--brand-2); }
.tl-label { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding-right: 14px; min-width: 0; }
.tl-rank { font: 400 18px var(--f-head); color: var(--neutral-10); text-align: center; }
.tl-team { min-width: 0; display: flex; align-items: center; gap: 8px; }
.tl-team b { font: 500 14px var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-avatars { display: flex; flex: none; }
.tl-avatars .avatar { width: 20px; height: 20px; font-size: 8px; margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
.tl-avatars .avatar:first-child { margin-left: 0; }
.tl-score { font: 400 20px var(--f-head); min-width: 24px; text-align: right; }
.tl-track { position: relative; height: 100%; overflow: hidden; }
.tl-bar { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: 6px; background: var(--brand-9); min-width: 6px; }
.tl-bar[data-status="ERROR"] { background: var(--negative-11); }
.tl-bar[data-status="ONGOING"] { background: repeating-linear-gradient(45deg, var(--brand-6) 0 6px, var(--brand-9) 6px 12px); background-size: 17px 17px; animation: tlStripes .8s linear infinite; box-shadow: 0 0 12px rgba(102, 46, 255, .45); }
.tl-bar.enter { animation: tlStripes .8s linear infinite, tlEnter .5s cubic-bezier(.22,1,.36,1); }
.tl-bar.landed { animation: tlLand 1.1s cubic-bezier(.22,1,.36,1); }
.tl-bar.crashed { animation: tlCrash .45s; }
.tl-plus { position: absolute; right: -4px; top: -20px; font: 500 12px var(--f-mono); color: var(--q-purple); animation: tlPlus 1.1s cubic-bezier(.22,1,.36,1) forwards; pointer-events: none; }
@keyframes tlStripes { to { background-position: 17px 0; } }
@keyframes tlEnter { from { transform: scaleY(0); opacity: 0; } }
@keyframes tlLand { 0% { box-shadow: 0 0 0 0 rgba(102, 46, 255, .7); transform: scaleY(1.6); } 100% { box-shadow: 0 0 0 10px rgba(102, 46, 255, 0); transform: none; } }
@keyframes tlCrash { 25%, 75% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@keyframes tlPlus { from { transform: translateY(6px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-10px); opacity: 0; } }
.tl-now { position: absolute; right: 0; top: 0; bottom: 0; border-right: 2px solid var(--q-purple); pointer-events: none; }
.tl-now span { position: absolute; right: -2px; top: -2px; transform: translateX(50%); padding: 1px 6px; border-radius: 99px; background: var(--q-purple); color: #fff; font: 500 10px var(--f-mono); }
.tl-now::after { content: ""; position: absolute; right: -6px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--q-purple); animation: pulse 1.6s infinite; }
@media (max-width: 760px) { .tl-grid { --label: 130px; } .tl-avatars, .tl-rank { display: none; } .tl-label { grid-template-columns: 1fr auto; } .tl { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .tl-bar, .tl-now::after { animation: none !important; } }
.tl-bar { box-shadow: 0 0 0 1.5px #fff; }
.tl-bar[data-status="ONGOING"] { box-shadow: 0 0 0 1.5px #fff, 0 0 12px rgba(102, 46, 255, .45); }
.tl-lane.mine .tl-bar { box-shadow: 0 0 0 1.5px var(--brand-2); }
