/* Jobiee landing — cool blueprint palette, Space Grotesk + system + JetBrains Mono */

:root {
  --paper: #eef1f5;
  --surface: #fcfdfe;
  --ink: #0b1220;
  --muted: #566274;
  --line: #d3dbe6;
  --line-strong: #b9c4d3;
  --accent: #0b6b4f;
  --accent-hover: #08543e;
  --accent-soft: #e2efe9;
  --warn: #8a4b12;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --pad: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

section, [id] { scroll-margin-top: 80px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

code, .m { font-family: var(--mono); font-size: 0.88em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark { width: 24px; height: 24px; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-gh {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 14px;
  background: var(--surface);
}
.nav-links .nav-gh:hover { border-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* ---------- hero ---------- */
.hero {
  min-height: calc(100svh - 65px);
  display: flex;
  align-items: center;
  padding: clamp(32px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  max-width: 16ch;
}
.lede {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18.5px);
  max-width: 44ch;
}

.install {
  margin-top: 26px;
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--ink);
  border-radius: 10px;
  overflow: hidden;
  max-width: 100%;
}
.install code {
  flex: 1;
  min-width: 0;
  color: #e8eef6;
  padding: 13px 16px;
  font-size: 12.8px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}
.install .copy {
  flex: 0 0 auto;
  background: #1b2534;
  color: #dbe6f2;
  border: 0;
  border-left: 1px solid #2b3749;
  padding: 0 16px;
  font: 500 12.5px var(--body);
  cursor: pointer;
}
.install .copy:hover { background: #263243; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 9px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, background-color .16s ease, border-color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-hover); color: #fff; }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--ink); }

.fact {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
.fact strong { color: var(--ink); font-weight: 600; }

/* ---------- app frame ---------- */
.hero-app {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px -28px rgba(11, 18, 32, .45);
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #f6f8fb;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.app-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.app-body { padding: 16px; }
.app-cmd, .app-foot {
  font-family: var(--mono);
  font-size: 12.6px;
  color: var(--ink);
  white-space: nowrap;
  overflow-x: auto;
}
.prompt { color: var(--accent); font-weight: 500; }
.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.jobs {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 12.4px;
}
.jobs th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .02em;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.jobs td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.jobs td:first-child { font-family: var(--mono); width: 52px; color: var(--muted); }
.jobs tr.hl td { background: var(--accent-soft); }
.jobs tr.hl td:first-child { color: var(--accent); font-weight: 600; }
.app-note {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
section > .wrap > h2 {
  font-size: clamp(25px, 2.9vw, 36px);
  max-width: 26ch;
}
.sub {
  margin-top: 14px;
  color: var(--muted);
  max-width: 62ch;
}

.demo { border-bottom: 1px solid var(--line); }
.demo-frame {
  margin: 30px 0 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 18px 50px -30px rgba(11, 18, 32, .4);
}
.demo-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.browser { border-bottom: 1px solid var(--line); }
.browser-frame {
  margin: 30px 0 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px -30px rgba(11, 18, 32, .4);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #F4F7FA;
}
.browser-url {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 8px;
}
.browser-frame img { display: block; width: 100%; height: auto; }

/* steps: real sequence, single column with rules */
.how { border-bottom: 1px solid var(--line); }
.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.steps li {
  padding: 26px 28px 28px 0;
  border-bottom: 1px solid var(--line);
}
.steps li:nth-child(odd) { border-right: 1px solid var(--line); }
.steps li:nth-child(even) { padding-left: 28px; }
.step-head { display: flex; align-items: baseline; gap: 12px; }
.step-n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.steps h3 { font-size: 20px; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 46ch; }

code.inline {
  display: inline-block;
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
  color: var(--ink);
  font-size: 12.5px;
}

/* tables */
.router { border-bottom: 1px solid var(--line); }
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  font-size: 14.5px;
}
.tbl th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line-strong);
}
.tbl td {
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tbl tr.hl td { background: var(--accent-soft); }
.tbl tr.hl td:first-child { font-weight: 600; }
.tbl.tight { margin-top: 0; max-width: 420px; }
.tbl td.m { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* full-bleed dark movement: resets the eye mid-page */
.dark {
  background: var(--ink);
  color: #dce5f0;
  border-bottom: 1px solid var(--ink);
}
.dark h2 { color: #f4f8fc; }
.dark .sub { color: #9fadc0; }
.dark .tbl th { color: #8f9db0; border-bottom-color: #2a3547; }
.dark .tbl td { border-bottom-color: #222c3c; color: #cfd9e6; }
.dark .tbl td.m { color: #8f9db0; }
.dark .tbl tbody tr:hover td { background: #16202e; }
.dark .tbl tr.hl td { background: #12291f; color: #d9f2e4; }
.dark .tbl tr.hl td:first-child { color: #7fd3ab; }
.dark code { color: #b8e6cd; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.cost { border-bottom: 1px solid var(--line); }
.compare { border-bottom: 1px solid var(--line); }
.fine {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  max-width: 70ch;
}

/* faq */
.faq { border-bottom: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:first-of-type { margin-top: 26px; border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 500;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p {
  padding: 0 0 18px;
  color: var(--muted);
  max-width: 70ch;
  font-size: 15.5px;
}

/* install */
.install.wide {
  margin: 28px 0 0;
  max-width: 760px;
}
.manual {
  margin: 26px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
}
.manual li { margin: 10px 0; }
.manual code.inline { margin: 0; }

/* footer */
.foot { padding: 34px 0; }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* hero entrance: one moment */
[data-enter] .hero-copy > *,
[data-enter] .hero-app {
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
}
[data-enter] .hero-copy > *:nth-child(2) { animation-delay: .06s; }
[data-enter] .hero-copy > *:nth-child(3) { animation-delay: .12s; }
[data-enter] .hero-copy > *:nth-child(4) { animation-delay: .18s; }
[data-enter] .hero-app { animation-delay: .1s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* hover on table rows: a quiet answer to the pointer */
.tbl tbody tr { transition: background-color .15s ease; }
.tbl tbody tr:hover td { background: #f4f7fb; }
.tbl tbody tr.hl:hover td { background: #d8ebe2; }

/* responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero h1 { max-width: 20ch; }
  .two-col { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(odd) { border-right: 0; }
  .steps li:nth-child(even) { padding-left: 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px var(--pad) 20px;
    display: none;
  }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; font-size: 16px; }
  .nav-links .nav-gh { border: 0; background: none; padding: 10px 0; }
  .tbl { display: block; overflow-x: auto; white-space: nowrap; }
  .tbl td, .tbl th { padding-right: 18px; }
  .install code { white-space: normal; word-break: break-all; }
  .actions .btn { width: 100%; }
  .hero-app .jobs td:nth-child(2) { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-enter] .hero-copy > *, [data-enter] .hero-app { opacity: 1; transform: none; }
  .caret { animation: none; }
}
