/* JobSwipe hub. Day is the default. Night is an override. */

:root {
  color-scheme: light;
  --bg: #f2f8f2;
  --card: #ffffff;
  --raised: #eaf4ec;
  --line: #e6ede7;
  --ink: #0e1116;
  --muted: #5b6270;
  --green: #1fc15c;
  --green-press: #0c8f53;
  --coral: #f5433e;
  --amber: #f5a623;
  --headline-from: #000000;
  --headline-to: #666666;
  --phone: #ffffff;
  --screen: #f2f8f2;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --overlay: rgba(242, 248, 242, 0.92);
  --callout: #eaf4ec;
  --word-dim: rgba(14, 17, 22, 0.32);
  --font: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --wrap: 1120px;
  --read: 680px;
}

html[data-theme="night"] {
  color-scheme: dark;
  --bg: #000000;
  --card: #181818;
  --raised: #1f1f1f;
  --line: #313131;
  --ink: #fafaf7;
  --muted: #9b9b9b;
  --green: #1fc15c;
  --green-press: #0c8f53;
  --coral: #ff5a5f;
  --amber: #f5a623;
  --headline-from: #ffffff;
  --headline-to: #9b9b9b;
  --phone: #181818;
  --screen: #000000;
  --nav-bg: rgba(24, 24, 24, 0.92);
  --overlay: rgba(0, 0, 0, 0.8);
  --callout: #272727;
  --word-dim: rgba(250, 250, 247, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
button, summary { font-family: inherit; }
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 80;
  transform: translateY(-48px);
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { transform: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read); }

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 24px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  background: var(--nav-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  padding-right: 8px;
}
.brand svg { display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 700ms var(--ease), background 700ms var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--raised); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: var(--green);
  color: #000;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background 700ms var(--ease), transform 700ms var(--ease);
}
.btn:hover { background: #28d07e; }
.btn:active { background: var(--green-press); transform: translateY(1px); }
.btn-sm { font-size: 14px; line-height: 20px; }

.toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 128px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
}
.toggle span {
  position: relative;
  z-index: 1;
  text-align: center;
  pointer-events: none;
}
.toggle::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 2px);
  border-radius: 999px;
  background: var(--green);
  transition: transform 700ms var(--ease);
}
html[data-theme="night"] .toggle::before { transform: translateX(100%); }
html[data-theme="day"] .toggle span:first-child,
html:not([data-theme="night"]) .toggle span:first-child { color: #000; }
html[data-theme="night"] .toggle span:last-child { color: #000; }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 700ms var(--ease);
}
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 19px; }
.menu-btn span:nth-child(3) { top: 23px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--overlay);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px 24px 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms var(--ease);
}
.overlay[hidden] { display: none; }
.overlay.open { opacity: 1; pointer-events: auto; }
.overlay a {
  text-decoration: none;
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.overlay.open a { opacity: 1; transform: none; }
.overlay.open a:nth-child(1) { transition-delay: 100ms; }
.overlay.open a:nth-child(2) { transition-delay: 150ms; }
.overlay.open a:nth-child(3) { transition-delay: 200ms; }
.overlay.open a:nth-child(4) { transition-delay: 300ms; }
.overlay a.btn {
  align-self: flex-start;
  font-size: 16px;
  line-height: 24px;
  margin-top: 16px;
}

.hero { padding: 64px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(280px, 1fr);
  gap: 48px;
  align-items: center;
}
h1 {
  max-width: 680px;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--headline-from), var(--headline-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 680px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
}
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 32px; }
.note { font-size: 14px; line-height: 20px; color: var(--muted); max-width: 680px; }
.receipt-line { margin-top: 32px; font-size: 16px; line-height: 24px; max-width: 680px; }

.stage { display: flex; justify-content: center; }
.phone {
  width: 300px;
  padding: 12px;
  border-radius: 32px;
  background: var(--phone);
  border: 1px solid var(--line);
}
.screen {
  background: var(--screen);
  border-radius: 20px;
  padding: 16px 12px 12px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.card.back {
  transform: scale(0.96);
  opacity: 0.55;
  margin: 0 8px -28px;
}
.kicker {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.role { margin-top: 8px; font-size: 20px; line-height: 28px; font-weight: 600; }
.meta { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--ink);
}
.reasons { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.reason { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--muted); }
.reason svg { flex: none; margin-top: 2px; }
.actions { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: auto; padding-top: 8px; }
.act {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--card);
}
.act.apply { width: 64px; height: 64px; background: var(--green); border-color: var(--green); color: #000; }
.act.pass { color: var(--coral); }
.act.save { color: var(--muted); width: 40px; height: 40px; }
.caption { margin-top: 16px; text-align: center; font-size: 12px; line-height: 16px; color: var(--muted); max-width: 300px; }

.sec { padding: 96px 0; }
.sec h2 { font-size: 36px; line-height: 40px; max-width: 680px; }
.sec .intro { margin-top: 16px; color: var(--muted); max-width: 680px; font-size: 18px; line-height: 28px; }

.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.benefit {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.benefit h3 { font-size: 20px; line-height: 28px; }
.benefit p { margin-top: 12px; color: var(--muted); }

.tagline-sec { padding: 80px 0; }
.tagline {
  max-width: 680px;
  font-size: 48px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.tagline .line { display: block; }
.tagline .line + .line { margin-top: 12px; }
.reveal-word { color: var(--word-dim); transition: color 700ms var(--ease); }
.reveal-word.on { color: var(--ink); }
.reduce .reveal-word { color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.step .num {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--green);
}
.step h3 { margin-top: 12px; font-size: 20px; line-height: 28px; }
.step p { margin-top: 12px; color: var(--muted); }

.faq { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px;
}
summary {
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  flex: none;
  transition: transform 700ms var(--ease);
}
details[open] summary::after { transform: rotate(225deg); }
details p { margin-top: 12px; color: var(--muted); }
details a { color: var(--green); font-weight: 600; }

.close { padding: 80px 0 96px; }
.close h2 {
  max-width: 680px;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--headline-from), var(--headline-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.close .lead { margin-top: 24px; }
.close .hero-actions { margin-top: 32px; }

.foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.foot p, .foot a { font-size: 14px; line-height: 20px; color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }

.rise {
  opacity: 0;
  transform: translateY(64px);
  filter: blur(12px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease), filter 800ms var(--ease);
}
.rise.in { opacity: 1; transform: none; filter: none; }
.reduce .rise { opacity: 1; transform: none; filter: none; }

.doc { padding: 64px 0 96px; }
.doc h1 {
  font-size: 48px;
  line-height: 1;
  background: linear-gradient(90deg, var(--headline-from), var(--headline-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 680px;
}
.doc .date { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--muted); }
.doc .lead { margin-top: 24px; }
.doc h2 { margin-top: 48px; font-size: 24px; line-height: 32px; max-width: 680px; }
.doc h3 { margin-top: 24px; font-size: 18px; line-height: 28px; }
.doc p { margin-top: 12px; color: var(--muted); max-width: 680px; }
.doc ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.doc li { position: relative; padding-left: 16px; color: var(--muted); }
.doc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
}
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--green); font-weight: 600; }
.doc .callout {
  margin-top: 24px;
  max-width: 680px;
  background: var(--callout);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.doc .callout p { margin-top: 0; }
.doc .entity { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.back { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.back a { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--green); text-decoration: none; }

@media (max-width: 900px) {
  h1 { font-size: 48px; }
  .hero-grid, .benefits, .steps { grid-template-columns: 1fr; }
  .tagline, .close h2 { font-size: 36px; line-height: 40px; }
  .sec { padding: 64px 0; }
  .card.back { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-block; }
  .nav { width: calc(100% - 32px); justify-content: space-between; }
  h1 { font-size: 36px; line-height: 40px; }
  .doc h1 { font-size: 36px; line-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal-word, .overlay, .overlay a, .menu-btn span, .btn, summary::after {
    transition: none;
  }
  .rise { opacity: 1; transform: none; filter: none; }
  .reveal-word { color: var(--ink); }
}
