/* Shared styles for /careers and /careers/<job> */
:root {
  --ink: #0a0a0a;
  --muted: #5b5b5b;
  --soft: #8a8a86;
  --line: #e6e6e3;
  --bg: #fafaf9;
  --card: #ffffff;
  --err: #b42318;
  --ok: #0f7a3d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; }
main { flex: 1; }

/* Top bar */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand .symbol { width: 26px; height: auto; display: block; }
.brand .word { width: 96px; height: auto; display: block; }
.topnav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.topnav a { text-decoration: none; color: var(--muted); }
.topnav a:hover, .topnav a.active { color: var(--ink); }
.topnav a.btn, .topnav a.btn:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn.light { background: var(--card); color: var(--ink); }
.btn.small { padding: 8px 14px; font-size: 12px; text-transform: none; letter-spacing: 0; }
.btn svg { width: 14px; height: 14px; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Bordered frame with grid lines, Nango-style */
.frame { max-width: 1080px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--bg); }
.band { border-bottom: 1px solid var(--line); }
.band.top { border-top: 0; }
.spacer { height: 72px; border-bottom: 1px solid var(--line); }

.hero { display: grid; grid-template-columns: 180px 1fr 180px; }
.hero .cells {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 90px 90px; background-position: -1px -1px;
}
.hero .cells.left { border-right: 1px solid var(--line); }
.hero .cells.right { border-left: 1px solid var(--line); }
.hero-body { text-align: center; padding: 44px 24px 48px; background: var(--card); }
.pill { display: inline-block; font-size: 13px; padding: 5px 16px; border: 1px solid #d6d6d2; border-radius: 999px; background: var(--card); }
.hero h1 { font-size: clamp(30px, 4.4vw, 42px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; margin: 22px 0 14px; }
.hero p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 48ch; margin: 0 auto 26px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 56px 32px; }
.section-head h2 { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }

.why { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.why > div { padding: 30px 32px 36px; background: var(--card); }
.why > div + div { border-left: 1px solid var(--line); }
.why svg { width: 34px; height: 34px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.why h3 { font-size: 18px; font-weight: 500; margin: 22px 0 8px; }
.why p { color: var(--muted); margin: 0; line-height: 1.55; font-size: 15px; }

/* Open positions */
.positions { padding: 44px 32px 56px; background: var(--card); }
.positions h2 { font-size: 22px; font-weight: 600; margin: 0 0 18px; }
.filters-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.filters select { width: 260px; max-width: 100%; }
.filters select {
  font: inherit; font-size: 15px; padding: 10px 38px 10px 14px; border: 1px solid #cfcfcb; border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; color: var(--ink);
}
.dept { margin-bottom: 30px; }
.dept h3 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.job { display: block; padding: 16px 0; text-decoration: none; border-bottom: 1px solid #f0f0ee; }
.job:last-child { border-bottom: 0; }
.job .t { font-size: 17px; font-weight: 600; }
.job:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.job .meta { color: var(--muted); font-size: 14px; margin-top: 7px; line-height: 1.5; }
.job .comp { color: var(--soft); font-size: 13px; margin-top: 5px; }
.none { color: var(--muted); padding: 22px; border: 1px dashed #d6d6d2; border-radius: 12px; text-align: center; line-height: 1.6; }

/* Footer */
.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 16px; display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero .cells { display: none; }
  .why { grid-template-columns: 1fr; }
  .why > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .filters select { width: 100%; }
  .section-head { padding: 40px 20px; }
  .positions { padding: 34px 20px 44px; }
  .topnav .hide-sm { display: none; }
}

/* Scroll animations (see reveal.js). Without JavaScript everything simply shows. */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
/* The hero's grid squares light up one after another, like a system switching on. */
.hero .cells { position: relative; overflow: hidden; }
.hero .cells::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(10,10,10,.045) 50%, transparent);
  background-size: 100% 220px; background-repeat: no-repeat;
  animation: scan 6s ease-in-out infinite;
}
.hero .cells.right::after { animation-delay: 3s; }
@keyframes scan { 0% { background-position: 0 -220px; } 60%, 100% { background-position: 0 calc(100% + 220px); } }
@media (prefers-reduced-motion: reduce) { .hero .cells::after { animation: none; } }
