/* The landing page. Brand colours from static/brand/README.md, as tokens in site.css.
   Motion rule: only transform and opacity are animated, and everything is switched off for
   people who ask their system for reduced motion. */

:root {
  /* Colours come from the light/dark tokens in site.css (--c-*). */
  --head: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }   /* clip, not hidden: the sticky header keeps working */
body.landing { margin: 0; font: 16px/1.6 var(--body); color: var(--c-text); background: var(--c-bg);
  overflow-x: clip; }   /* nothing may push the page sideways on a phone */
.landing h1, .landing h2, .landing h3 { font-family: var(--head); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin: 0; }
:where(.landing) p { margin: 0; }   /* zero-strength reset, so each paragraph's own spacing wins */
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.landing a { color: inherit; }
.landing :focus-visible { outline: 3px solid var(--c-accent-text); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-invert-bg); color: var(--c-invert-text);
  padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }   /* headings never hide under the header */

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 22px; border: 0; border-radius: 12px; font: 600 1rem/1 var(--head); text-decoration: none;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--c-shadow); }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn-orange, .landing a.btn-orange { background: var(--c-orange); color: var(--c-on-orange); }
.btn-black, .landing a.btn-black { background: var(--c-invert-bg); color: var(--c-invert-text); }
.btn-pill { border-radius: 999px; min-height: 44px; padding: 0 18px; font-size: 14px; }

/* ---------- 1. header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: transparent;
  transition: background-color .25s ease, box-shadow .25s ease; }
.site-header.scrolled { background: var(--c-header); box-shadow: 0 6px 24px var(--c-shadow); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; flex: none; }
.logo img { display: block; height: 28px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a, .signin { position: relative; text-decoration: none; font-weight: 500; padding: 6px 0; }
.signin { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }   /* 44px tap area */
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c-orange);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
@media (max-width: 820px) { .nav { display: none; } }
@media (max-width: 480px) { .wrap { padding: 0 20px; } }
.signin, .btn-pill { white-space: nowrap; }      /* "Sign in" and "Sign up free" never wrap */
@media (max-width: 480px) { .signin, .btn-pill { font-size: 13px; } }     /* the account buttons on phones */
@media (max-width: 400px) { .header-actions { gap: 8px; } .btn-pill { padding: 0 12px; } .logo img { height: 21px; } }
@media (max-width: 340px) {                 /* the smallest phones: everything still fits on one line */
  .site-header .wrap { padding: 0 12px; } .header-actions { gap: 4px; } .btn-pill { padding: 0 10px; }
  .logo img { height: 18px; } }

/* ---------- 2. hero ---------- */
.hero { padding: calc(40px + var(--header-h)) 0 88px;
  margin-top: calc(-1 * var(--header-h));   /* runs up behind the see-through header, so the glow has no seam */
  /* The soft orange glow: background only, so it never moves anything. */
  background: radial-gradient(ellipse 40% 55% at 78% 50%, var(--c-glow-1), transparent 70%),
              radial-gradient(ellipse 35% 45% at 6% 18%, var(--c-glow-2), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.kicker { font: 600 .8rem/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--c-muted); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.hero h1 .serif { color: var(--c-accent-text); font-size: 1.08em; }
.lead { font-size: 16px; line-height: 1.55; color: var(--c-text-2); margin: 20px 0 28px; max-width: 520px; }
.search { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 10px; align-items: end; padding: 12px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; box-shadow: 0 12px 40px var(--c-shadow); }
.field label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 4px 4px; }
.field input { width: 100%; min-height: 48px; padding: 0 14px; font: inherit; color: var(--c-text);
  border: 1px solid var(--c-border-strong); border-radius: 12px; background: var(--c-surface); }
.field input::placeholder { color: var(--c-placeholder); }
.field input:focus-visible { outline: 3px solid var(--c-accent-text); outline-offset: 1px; }
.hero-links { margin-top: 14px; }
.hero-links a { color: var(--c-accent-link); font-weight: 600; text-underline-offset: 3px; }
.small { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
@media (max-width: 640px) { .search { grid-template-columns: 1fr; } .search .btn { width: 100%; } }

.hero-visual { position: relative; padding: 44px 22px; background: var(--c-soft-section); border-radius: 28px; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.job-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 20px; padding: 22px;
  box-shadow: 0 24px 60px var(--c-shadow); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .2s ease-out; }
.example-tag { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--c-muted); border: 1px dashed var(--c-border-strong); border-radius: 6px; padding: 2px 8px; margin-bottom: 12px; }
.job-top { display: flex; justify-content: space-between; gap: 16px; }
.job-title { font-size: 1.35rem; }
.job-meta { color: var(--c-muted); margin-top: 4px; font-size: 13px; }
.job-pay { font-weight: 600; margin-top: 4px; font-size: 14px; }
.score { flex: none; align-self: flex-start; background: var(--c-green-bg); color: var(--c-green); border-radius: 12px;
  padding: 8px 12px; font-size: .9rem; }
.score strong { font: 700 1.5rem/1 var(--head); }
.chips { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--c-chip); color: var(--c-text); }
.chip-green { background: var(--c-green-bg); color: var(--c-green); }
.chip-orange { background: var(--c-soft); color: var(--c-accent-link); }
.why, .gaps { font-size: 14px; line-height: 1.5; margin-top: 8px; }
.float-chip { position: absolute; font-size: 12.5px; font-weight: 600; background: var(--c-invert-bg); color: var(--c-invert-text);
  padding: 9px 14px; border-radius: 999px; box-shadow: 0 10px 30px var(--c-shadow);
  animation: chip-in .6s var(--ease) both; }
.chip-a { top: 0; right: -6px; animation-delay: .35s; }
.chip-b { bottom: 4px; left: -10px; background: var(--c-orange); color: var(--c-on-orange); animation-delay: .55s; }
@keyframes chip-in { from { opacity: 0; transform: translateX(18px); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-bottom: 56px; }
  .chip-a { right: 0; } .chip-b { left: 0; }
}

/* ---------- shared section bits ---------- */
.section { padding: 96px 0; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 20em; }
.section h2 .serif { color: var(--c-accent-text); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 20px; padding: 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card h3 { font-size: 1.25rem; margin: 14px 0 8px; }
.card p { color: var(--c-text-2); font-size: 15px; line-height: 1.55; }
.icon, .step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--c-soft); color: var(--c-accent-link); font: 700 1rem/1 var(--head); }

/* ---------- 3. features: the white band (paper / white / paper ...) ---------- */
.features { background: var(--c-band); border-block: 1px solid var(--c-border); }
.features .card { background: var(--c-card-on-band); }

/* ---------- 4. poster band ---------- */
.band { background: var(--c-poster); border-block: 1px solid var(--c-poster-border); color: #FFFFFF; padding: 88px 0 96px; overflow: hidden; text-align: center; }
.band-kicker { font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: #CFCFCF; }
.band-art { position: relative; isolation: isolate; margin: 96px auto 28px; max-width: 900px; padding: 24px 0; }
.big { position: relative; z-index: 2; display: block; font: 700 clamp(4.5rem, 19vw, 12rem)/.9 var(--head);
  letter-spacing: -0.04em; }
.big-1 { color: #FFFFFF; }
.big-2 { color: #111111; }   /* black on the orange block, both themes */
.torn { position: absolute; z-index: 1; left: 8%; right: 8%; top: 46%; bottom: -4%; background: var(--c-orange);
  clip-path: polygon(0 8%, 6% 2%, 12% 7%, 19% 0, 27% 6%, 34% 1%, 42% 7%, 50% 2%, 58% 8%, 66% 1%, 73% 6%, 81% 0,
    88% 7%, 94% 2%, 100% 6%, 100% 92%, 94% 98%, 87% 93%, 79% 100%, 71% 94%, 63% 99%, 55% 93%, 47% 100%,
    39% 94%, 31% 99%, 23% 93%, 15% 100%, 8% 94%, 0 99%); }
.band-title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.band-tag { color: #FFF4EC; font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 6px 0 30px; }
[data-parallax] { will-change: transform; }

/* The mascot stands behind the right end of the wordmark (z-index 0: behind the orange block and the
   letters). Its lower body is hidden by the JOBZ block; helmet and shoulders rise above it.
   It is sized and placed in the wordmark's own size (em of the same clamp), so it lines up at every
   screen width: the helmet (57% across the picture) is centred 1.38em right of the wordmark's middle,
   just past EZZE and over the Z of JOBZ, and the picture is 2.3em tall (440px on desktop, never under 220px). */
.band-mascot { position: absolute; z-index: 0; left: 50%; bottom: 0; line-height: 0;
  font-size: clamp(4.5rem, 19vw, 12rem); margin-left: 1.38em; transform: translateX(-57%); }
.band-mascot img { display: block; height: max(220px, 2.3em); width: auto;
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, .12)); }   /* so the black helmet doesn't vanish */
.band-stage { margin-top: 8px; }
.band-copy { margin: 0 auto; max-width: 560px; }

/* Example job snippets drifting up beside the helmet (decorative). Transform-only, ~9s loop. */
.data-stream { position: absolute; top: 2%; left: 80%; width: 168px; height: 190px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); text-align: left; }
.stream-track { margin: 0; padding: 0; list-style: none; animation: stream-up 9s linear infinite;
  font: 500 12px/24px ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #F26A1B; white-space: nowrap; }
.stream-track li { overflow: hidden; text-overflow: ellipsis; }   /* narrow screens: trim, never spill */
@keyframes stream-up { to { transform: translateY(-50%); } }   /* the list is doubled, so -50% loops seamlessly */
.js .band:not(.in-view) .stream-track { animation-play-state: paused; }   /* off screen: no work */

@media (max-width: 1100px) { .data-stream { width: min(130px, .68em); }   /* em: shrinks with the wordmark */
  .stream-track { font-size: 11px; line-height: 21px; } }
@media (max-width: 768px) {                /* small tablets: the mascot shrinks with the wordmark (em sizes above) */
  .band-art { margin-top: 64px; }
  .data-stream { height: 120px; }
  .stream-track { font-size: 10px; line-height: 20px; }
}
@media (max-width: 480px) { .data-stream { display: none; } }   /* small phones: calm and light */

/* ---------- 5. soft orange ---------- */
.soft { background: var(--c-soft-section); }
.soft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.soft-grid p { font-size: 15px; line-height: 1.55; margin-bottom: 22px; max-width: 30em; }
@media (max-width: 860px) { .soft-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- 6. how it works ---------- */
.steps { list-style: none; padding: 0; }
.mini-example { margin-top: 14px; font-size: 13px !important; color: var(--c-muted); }
.mini-example .example-tag { margin: 0 6px 0 0; }

/* ---------- 7. plans ---------- */
.plans { background: var(--c-band); border-block: 1px solid var(--c-border); }
.plans .card:not(.plan-pro) { background: var(--c-card-on-band); }
.beta-note { display: inline-block; margin-top: 16px; font-size: 13px !important; background: var(--c-invert-bg); color: var(--c-invert-text);
  border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .92rem; }
.plan h3 { margin-top: 0; font-size: 1.5rem; }
.plan ul { padding: 0; margin: 16px 0 0; list-style: none; }
.plan li { font-size: 15px; padding: 9px 0; border-top: 1px solid var(--c-border); }
.plan-price { font-weight: 600; margin-top: 6px; font-size: 15px !important; }
.plan-pro { background: var(--c-pro); color: #FFFFFF; border-color: var(--c-pro-border); }
.plan-pro p, .plan-pro li { color: #FFFFFF; }
.plan-pro li { border-top-color: var(--c-pro-line); }
.plan-pro .plan-price { color: var(--c-orange); }
.badge { display: inline-block; background: var(--c-orange); color: var(--c-on-orange) !important; font-weight: 600;
  font-size: .8rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.soon { font-size: .78rem; font-weight: 600; color: var(--c-accent-link); background: var(--c-soft); padding: 2px 8px; border-radius: 999px; }

/* ---------- 8, 9. privacy line and footer ---------- */
.privacy-line { padding: 28px 0; color: var(--c-muted); font-size: 15px; }
.site-footer { font-size: 13px; background: var(--c-poster); border-top: 1px solid var(--c-poster-border); color: #FFFFFF; padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: #FFFFFF; text-underline-offset: 3px; }

/* ---------- phones: supporting text one step smaller (headlines unchanged) ---------- */
@media (max-width: 480px) {
  .lead { font-size: 15px; }
  .card p, .soft-grid p, .plan li, .privacy-line { font-size: 14px; }
  .plan-price { font-size: 14px !important; }
}

/* ---------- motion ---------- */
/* Scroll reveal: hidden only when JavaScript has put the "js" class on <html>. */
.js .reveal { opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hover details only on screens with a real pointer, never on touch screens. */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after { transform: scaleX(1); }
  .grid-3 .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px var(--c-shadow); }
  .js .reveal.in.card:hover { transform: translateY(-4px); }
  .signin:hover { color: var(--c-accent-link); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .job-card { transform: none; }
  [data-parallax] { transform: none !important; }
}

/* ---------- the privacy page ---------- */
.privacy-text { max-width: 760px; padding-top: 32px; padding-bottom: 64px; }
.privacy-text h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 12px; }
.privacy-text h2 { font-size: 1.25rem; margin: 30px 0 10px; }
.privacy-text p, .privacy-text li { font-size: 15px; line-height: 1.6; color: var(--c-text-2); }
.privacy-text ul { padding-left: 20px; margin: 0; }
.privacy-text li { margin-bottom: 8px; }
.privacy-text a { color: var(--c-accent-link); }
