/* bambulabdiscord.com. The look follows Bambu Lab's own pages: Manrope type, white pages with light gray tiles,
   near-square corners, black and green buttons, and brand green as the one accent. Colors are the store's own tokens,
   the same ones the store tracker's site uses. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("manrope-latin.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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --green: #00ae42;
  --green-hover: #008733;
  --plane: #ffffff;
  --surface: #f5f5f5;
  --raised: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #505050;
  --muted: #676767;
  --hairline: #e8e8e8;
  --border: #d9d9d9;
  --night: #0b0f11; /* the dark of the hero banner's left edge */
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --plane: #121212; --surface: #1a1a1a; --raised: #222222; --ink: #fafafa; --ink-2: #c2c2c2; --muted: #949494;
    --hairline: #2b2b2b; --border: #393939;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--plane); color: var(--ink); font: 500 16px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.08rem; letter-spacing: -0.01em; }
p { margin: 0; }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface); padding: 0.1em 0.35em; border-radius: var(--radius); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: var(--radius); }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 60; background: var(--raised); padding: 8px 12px; border-radius: var(--radius); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }

/* ---- frame: a green rule over a white header, as on the store */
.top { position: sticky; top: 0; z-index: 30; background: var(--plane); border-top: 4px solid var(--green); border-bottom: 1px solid var(--hairline); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.06rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-self: stretch; gap: 2px; margin-left: 6px; }
.nav a { display: flex; align-items: center; padding: 0 12px; font-weight: 650; position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: transparent; }
.nav a:hover::after, .nav a[aria-current="page"]::after { background: var(--green); }
.top .button { margin-left: auto; }
@media (max-width: 760px) { .nav { display: none; } }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius);
  font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.button.green { background: var(--green); color: #ffffff; }
.button.green:hover { background: var(--green-hover); }
.button.dark { background: var(--ink); color: var(--plane); }
.button.dark:hover { background: var(--green); color: #ffffff; }
.button.line { border-color: currentColor; }
.button.line:hover { color: var(--green); }
.button.small { min-height: 38px; padding: 0 16px; font-size: 0.95rem; }

/* ---- the first screen: Bambu Lab's own H3C banner, the picture behind the server's welcome */
.hero { position: relative; background: var(--night); color: #f5f5f5; overflow: hidden; }
.hero-art { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 12, 14, 0.94) 0%, rgba(8, 12, 14, 0.80) 30%, rgba(8, 12, 14, 0) 58%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 11vw, 132px); padding-bottom: clamp(64px, 11vw, 132px); }
.hero-words { max-width: 560px; }
.eyebrow { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 4.6vw, 4.4rem); margin-top: 14px; }
.hero .lead { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); color: #d6d6d6; margin-top: 18px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .button.line { color: #f5f5f5; }
.hero .button.line:hover { color: var(--green); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 34px; color: #bdbdbd; font-size: 0.95rem; font-weight: 600; }
.hero-facts b { color: #f5f5f5; font-weight: 800; }
@media (max-width: 760px) {
  .hero-art { position: static; }
  .hero-art img { height: auto; aspect-ratio: 4 / 3; object-position: 50% 50%; }
  .hero::after { display: none; }
  .hero .wrap { padding-top: 44px; padding-bottom: 36px; }
}

section { padding: clamp(52px, 7vw, 88px) 0; }
section.tint { background: var(--surface); }
.section-head { max-width: 46em; margin-bottom: 30px; }
.section-head p { color: var(--ink-2); margin-top: 12px; font-size: 1.05rem; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tile { background: var(--surface); border-radius: var(--radius); padding: 22px 22px 24px; }
section.tint .tile { background: var(--raised); }
.tile h3 { display: flex; align-items: center; gap: 10px; }
.tile h3 svg { flex: none; width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile p { color: var(--ink-2); margin-top: 10px; font-size: 0.97rem; }

.tools { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tool { background: var(--raised); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.tool .kind { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tool h3 { font-size: 1.3rem; }
.tool p { color: var(--ink-2); }
.tool .button { align-self: flex-start; margin-top: auto; }
.tool .address { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.bots { margin-top: 14px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bot { background: var(--raised); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px 22px; }
.bot p { color: var(--ink-2); margin-top: 8px; font-size: 0.95rem; }
.bot .links { display: flex; gap: 16px; margin-top: 12px; font-weight: 700; font-size: 0.93rem; }
.bot .links a, .text-link { color: var(--green); font-weight: 700; }
.bot .links a:hover, .text-link:hover { text-decoration: underline; }

.steps { counter-reset: step; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius); padding: 22px 22px 24px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #ffffff; font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--ink-2); margin-top: 8px; font-size: 0.97rem; }
.after-steps { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.after-steps span { color: var(--muted); font-size: 0.95rem; }

.company { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.company p { color: var(--ink-2); margin-top: 12px; font-size: 1.05rem; }
.company ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.company li a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--border); font-weight: 700; }
.company li a span { color: var(--muted); font-weight: 600; }
.company li a:hover { color: var(--green); }
@media (max-width: 760px) { .company { grid-template-columns: 1fr; } }

.foot { border-top: 1px solid var(--hairline); padding: 28px 0 44px; color: var(--muted); font-size: 0.92rem; }
.foot .wrap { display: grid; gap: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.foot nav a:hover, .foot p a:hover { color: var(--green); }
.foot p a { color: var(--green); font-weight: 650; }

/* ---- pages of words: the privacy policy, the page for a wrong address */
.prose { max-width: 760px; padding-top: clamp(36px, 6vw, 64px); padding-bottom: clamp(48px, 7vw, 80px); }
.prose h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.prose h2 { font-size: 1.3rem; margin-top: 2.3rem; padding-top: 1.4rem; border-top: 1px solid var(--hairline); }
.prose p, .prose ul { margin-top: 0.9rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.4rem 0; }
.prose a { color: var(--green); font-weight: 650; }
.prose a:hover { text-decoration: underline; }
.prose .updated { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }
.prose .apps { columns: 2; column-gap: 2rem; }
.prose .apps li { margin: 0; padding: 0.2rem 0; break-inside: avoid; }
@media (max-width: 520px) { .prose .apps { columns: 1; } }
.prose .note { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 0.92rem; }
.lost { text-align: center; padding: clamp(72px, 14vw, 160px) 0; }
.lost p { color: var(--ink-2); margin: 14px auto 28px; max-width: 30em; }
