/* Careers page. Cards, buttons, header and typography come from the main website's own
   style files (css/site/). This file only adds the page layout, the fixed background image
   and the small floating sign-up form. */

[hidden] { display: none !important; }
body.careers { background: #05070A; padding-top: var(--header-height, 72px); }

/* Fixed hexagon-and-logos image. A soft dark centre keeps the text readable. */
.careers-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: #05070A url("/assets/careers-bg-desktop.webp") center / cover no-repeat;
}
.careers-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 30% 72% at 50% 46%, rgba(5, 7, 10, .84) 0%, rgba(5, 7, 10, .6) 55%, rgba(5, 7, 10, 0) 100%);
}
@media (max-width: 899px), (orientation: portrait) {
  .careers-bg { background-image: url("/assets/careers-bg-mobile.webp"); }
  .careers-bg::after { background: linear-gradient(180deg, rgba(5, 7, 10, .74), rgba(5, 7, 10, .9)); }
}

/* A narrower column than the main site, so the logos stay visible at the sides on wide screens. */
.careers-main .container { max-width: 900px; }
.careers-hero { padding-top: 56px; padding-bottom: 24px; }
.careers-hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; max-width: 20ch; margin: 0 0 18px; }
.careers-hero .section-intro { max-width: 62ch; margin-left: 0; margin-right: 0; text-align: left; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.fine { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 10px 0 0; }

.careers-cards .section-heading { max-width: none; margin: 0; text-align: left; }
.careers-cards .section-heading h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0; }
.cards-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 760px) { .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.careers-card h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.careers-card p, .careers-card li { margin: 0; font-size: 15px; line-height: 1.6; }
.careers-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.careers-card .muted { color: var(--text-muted); font-size: 14px; }
.careers-card .card-art { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; }
.tick, .steps { margin: 0; padding-left: 1.1rem; display: grid; gap: 10px; }
.tick { list-style: none; padding-left: 0; }
.tick li { position: relative; padding-left: 22px; }
.tick li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 10px; background: var(--hex-accent, #14D8FF); opacity: .8; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.steps li::marker { color: var(--hex-accent, #14D8FF); font-weight: 700; }
.example-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.example-table th { text-align: left; color: var(--text-muted); font-weight: 500; padding: 6px 8px 6px 0; }
.example-table td { padding: 8px 8px 8px 0; border-top: 1px solid var(--border); }
.example-table .num { text-align: right; font-family: "JetBrains Mono", ui-monospace, monospace; white-space: nowrap; padding-right: 0; }

.careers-footer { padding: 36px 0 120px; text-align: center; color: var(--text-muted); font-size: 13px; }
.careers-footer a { color: inherit; }

/* The floating form: small, bottom left, can be minimised. */
.apply-float { position: fixed; left: 18px; bottom: 18px; z-index: var(--z-overlay, 999); }
.apply-panel { width: 268px; padding: 12px 12px 14px; display: none; background: rgba(8, 14, 20, .94); box-shadow: 0 14px 40px rgba(0, 0, 0, .55); }
.apply-float.is-open .apply-panel { display: block; }
.apply-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 15px; }
.apply-x { background: none; border: 0; color: var(--text-muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 8px; border-radius: 8px; }
.apply-x:hover { color: var(--text-primary); }
#apply-form { display: grid; gap: 7px; }
#apply-form input[type="text"], #apply-form input[type="email"], #apply-form input[type="password"] {
  width: 100%; font: inherit; font-size: 14px; color: var(--text-primary);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px;
}
#apply-form input::placeholder { color: var(--text-muted); }
#apply-form input:focus-visible, .apply-x:focus-visible { outline: 2px solid var(--hex-accent, #14D8FF); outline-offset: 2px; }
.apply-check { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-secondary, var(--text-muted)); line-height: 1.4; margin: 2px 0 4px; }
.apply-check input { margin-top: 2px; }
.apply-error { margin: 0; font-size: 12.5px; color: #f1b5ba; background: rgba(224, 108, 117, .1); border: 1px solid rgba(224, 108, 117, .4); border-radius: 8px; padding: 7px 9px; }
#apply-form .btn, #apply-signedin .btn { width: 100%; justify-content: center; padding: 10px 16px; font-size: 14px; }
#apply-signedin p { margin: 0 0 10px; font-size: 14px; }
.apply-pill { padding: 10px 18px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
@media (max-width: 899px) {
  .apply-float { left: 12px; right: 12px; bottom: 12px; }
  .apply-panel { width: auto; }
  .apply-pill { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ecosystem-card { transition: none; } }
