/* ==================================================================
   jobcracker.xyz homepage. Loaded after site.css, on index.html only.
   Product UI sits on "art" panels: warm brand gradients (a strong
   radial spot or two over a soft 135° wash) with a film grain on top.
   ================================================================== */

:root {
  --art-hero:
    radial-gradient(circle at 14% 18%, rgba(255, 181, 71, 0.95), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(252, 92, 28, 0.9), transparent 36%),
    radial-gradient(circle at 62% 6%, rgba(255, 128, 92, 0.6), transparent 28%),
    linear-gradient(135deg, #ffd8bd, #fff1e6 52%, #ffc6a3);
}

/* ── Art panels: gradient + grain ──────────────────────────────────── */

.art {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #f4f4f5;
}

/* Grain on the hero's warm panel only. */
.art--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(/assets/bg/grain.png);
  background-size: 160px;
  mix-blend-mode: overlay;
  opacity: 0.42;
  pointer-events: none;
}

.art--hero { background: var(--art-hero); }

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 0;
  text-align: center;
}

/* The acorn above the headline; site.js turns its head towards the pointer. */
.hero__mascot {
  --size: 104px;
  display: block;
  margin: 0 auto 20px;
}

.hero h1 {
  font-size: clamp(46px, 7.4vw, 88px);
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand-solid);
}

.hero__lede {
  max-width: 36em;
  margin: 22px auto 0;
  color: var(--ink-2);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.hero__actions .btn--lg {
  padding: 0 30px;
}

.hero__note {
  color: var(--muted);
  font-size: 14.5px;
}


/* ── Hero demo: a browser on a job post, the panel playing a clip ──── */

.wrap--wide {
  max-width: calc(1376px + var(--gutter) * 2);
}

.demo {
  margin-top: 56px;
  height: clamp(460px, 52vw, 720px);
  padding: clamp(28px, 4vw, 56px) clamp(20px, 5vw, 72px) 0;
}

.browser {
  display: flex;
  flex-direction: column;
  max-width: 1180px;
  height: calc(100% + 24px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(20, 22, 26, 0.06),
    0 40px 80px -30px rgba(110, 38, 8, 0.45);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #f6f6f8;
}

.browser__dots {
  display: flex;
  gap: 7px;
}

.browser__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.browser__dots i:nth-child(2) { background: #febc2e; }
.browser__dots i:nth-child(3) { background: #28c840; }

.browser__url {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
}

.browser__url b {
  color: var(--ink);
  font-weight: 500;
}

.browser__ext img {
  width: 20px;
  height: 20px;
}

.browser__body {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* A job post sketched in blocks: enough to read as a page, not compete. */
.jobpost {
  flex: 1;
  min-width: 0;
  padding: 34px 40px;
  text-align: left;
  font-size: 14px;
  color: var(--ink-2);
}

.jobpost__co {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.jobpost__co small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}

.jobpost__logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #5b4bdb;
  color: #fff;
  font-weight: 800;
}

.jobpost__title {
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.jobpost__chips,
.jobpost__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.jobpost__chips span {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--gray);
  font-size: 12.5px;
}

.jobpost__chips .is-fresh {
  background: #e6f5ec;
  color: #1f7a45;
}

.jobpost__btns span {
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-weight: 700;
  font-size: 13px;
}

.jobpost__btns .is-primary {
  background: #5b4bdb;
  box-shadow: none;
  color: #fff;
}

.jobpost__h {
  margin: 24px 0 10px;
  color: var(--ink);
  font-weight: 700;
}

.jobpost i {
  display: block;
  height: 9px;
  margin: 9px 0;
  border-radius: 5px;
  background: #eeeff2;
}

/* The apply clip's page: the job's application form. Its fields fill in when
   the clip presses Fill, the cover letter when it presses Insert (site.js
   sets is-filled and is-letter from the clip's time). */
.browser__apply,
.appform {
  display: none;
}

.demo[data-scene='apply'] .browser__apply {
  display: inline;
}

.demo[data-scene='apply'] .jobpost {
  display: none;
}

.demo[data-scene='apply'] .appform {
  display: block;
  flex: 1;
  min-width: 0;
  padding: 30px 40px;
  overflow: hidden;
  text-align: left;
  font-size: 14px;
  color: var(--ink-2);
  animation: appform-in 0.4s var(--ease);
}

@keyframes appform-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.appform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin-top: 6px;
}

.appform__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.appform__field.is-wide {
  grid-column: 1 / -1;
}

.appform__field small {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.appform__field > span {
  position: relative;
  display: block;
  height: 38px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 36px;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: background-color 0.6s var(--ease), border-color 0.6s var(--ease);
}

/* Filled values fade in one after another, with a brief highlight. */
.appform__field > span[data-v]::after {
  content: attr(data-v);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.demo.is-filled .appform__field > span[data-v] {
  background: #fff8f3;
  border-color: rgba(252, 92, 28, 0.35);
}

.demo.is-filled .appform__field > span[data-v]::after {
  opacity: 1;
}

.demo.is-filled .appform__field:nth-child(2) > span::after { transition-delay: 0.08s; }
.demo.is-filled .appform__field:nth-child(3) > span::after { transition-delay: 0.16s; }
.demo.is-filled .appform__field:nth-child(4) > span::after { transition-delay: 0.24s; }
.demo.is-filled .appform__field:nth-child(5) > span::after { transition-delay: 0.32s; }
.demo.is-filled .appform__field:nth-child(6) > span::after { transition-delay: 0.4s; }

.appform__field.is-letter > span {
  height: 132px;
  padding: 10px 12px;
  line-height: 1.5;
  white-space: normal;
}

.appform__letter em {
  display: block;
  margin-bottom: 8px;
  font-style: normal;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.demo.is-letter .appform__field.is-letter > span {
  background: #fff8f3;
  border-color: rgba(252, 92, 28, 0.35);
}

.demo.is-letter .appform__letter em {
  opacity: 1;
  transform: none;
}

.demo.is-letter .appform__letter em:nth-child(2) { transition-delay: 0.12s; }
.demo.is-letter .appform__letter em:nth-child(3) { transition-delay: 0.24s; }

/* The side panel: clips recorded from the real panel at 400×632 CSS px. */
.panel {
  position: relative;
  flex: none;
  width: 400px;
  border-left: 1px solid var(--line);
  background: #f4f4f6;
}

.panel__clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.panel__clip.is-active {
  opacity: 1;
}

/* Hotspots over the panel's own rail icons (Home, Applied, This job, Resume). */
.panel__rail {
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 100%;
}

.panel__rail button {
  position: absolute;
  left: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.panel__rail button:hover {
  background: rgba(252, 92, 28, 0.08);
}

.panel__rail [data-pick='analyze'] { top: var(--rail-1, 54px); }
.panel__rail [data-pick='track'] { top: var(--rail-2, 100px); }
.panel__rail [data-pick='apply'] { top: var(--rail-3, 146px); }
.panel__rail [data-pick='resume'] { top: var(--rail-4, 192px); }

.demo-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.demo-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.demo-tabs button:hover {
  color: var(--ink);
}

.demo-tabs [aria-selected='true'] {
  background: var(--gray);
  color: var(--ink);
}

.demo-tabs [aria-selected='true'] .i {
  color: var(--brand-solid);
}

.demo__caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  text-align: center;
}

/* ── Feature rows: text and art, alternating ──────────────────────── */

.rows {
  gap: 144px;
}

.feature {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.feature--flip {
  grid-template-columns: 7fr 5fr;
}

.feature--flip .feature__text {
  order: 2;
}

.feature h2 {
  font-size: clamp(32px, 3.8vw, 46px);
  letter-spacing: -0.035em;
}

/* Analyze is the core of the product: a bigger heading and a taller screen. */
.feature--lead h2 {
  font-size: clamp(38px, 4.8vw, 58px);
}

.feature--lead .art {
  aspect-ratio: 7 / 7;
}

.ticks {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: 12px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
}

.ticks .i {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: #fff0e8;
  color: var(--brand-solid);
}

.ticks strong {
  color: var(--ink);
}

/* The panel screenshot rises from the bottom edge of its art panel. */
.feature .art {
  display: flex;
  justify-content: center;
  aspect-ratio: 7 / 6;
  padding-top: clamp(32px, 5vw, 60px);
}

.art__shot {
  width: min(60%, 380px);
  height: auto;
  align-self: flex-start;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(20, 22, 26, 0.06),
    0 24px 48px -24px rgba(20, 22, 26, 0.25);
}

.art--tall .art__shot {
  width: min(64%, 400px);
}

/* ── Where it works ────────────────────────────────────────────────── */

.sites {
  padding: 0 0 128px;
}

.sites__card {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  text-align: center;
}

.sites__chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
}

.sites__chips li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #f4f4f5;
  font-size: 14.5px;
  font-weight: 600;
}

.sites__chips .is-more {
  background: var(--ink);
  color: #fff;
}

/* ── Closing call to action ───────────────────────────────────────── */

.cta__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(48px, 7vw, 88px) 24px;
  border-radius: 28px;
  background: #f4f4f5;
  text-align: center;
}

.cta__mascot {
  --size: 112px;
  margin-bottom: 24px;
}

.cta__card .btn {
  margin-top: 30px;
}

/* ── Pricing: period switch, Starter and Pro ──────────────────────── */

.periods {
  position: relative;
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 36px auto 0;
  padding: 5px;
  border: 0;
  border-radius: 999px;
  background: var(--gray);
}

.periods input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.periods label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.periods label:hover {
  color: var(--ink);
}

.periods input:checked + label {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.08), 0 4px 12px -6px rgba(20, 22, 26, 0.18);
}

.periods input:focus-visible + label {
  outline: 2px solid var(--brand-vivid);
  outline-offset: 2px;
}

.periods__save {
  padding: 3px 8px;
  border-radius: 999px;
  background: #e3f6ee;
  color: #0e8f63;
  font-size: 12px;
  font-weight: 800;
}

.plans--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin-top: 28px;
}

.plans--two .plan {
  padding: 34px;
}

.plans--two .plan__name {
  min-height: 30px;
}

.plans--two .probadge {
  font-size: 18px;
  height: 30px;
}

.plan__pitch {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* One offer per period; the checked radio picks which one shows. */
.plan__offer {
  display: none;
}

.pricing:has(#period-monthly:checked) [data-period='monthly'],
.pricing:has(#period-quarterly:checked) [data-period='quarterly'],
.pricing:has(#period-annual:checked) [data-period='annual'] {
  display: block;
}

.plan__deal--none {
  color: var(--muted);
}

.plan__features {
  display: grid;
  gap: 11px;
  margin: 26px 0 32px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan--featured .plan__features {
  border-top-color: var(--line);
}

.plan__features li {
  display: flex;
  gap: 10px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.4;
}

.plan__features .i {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #0e8f63;
}

.plan__features strong {
  color: var(--ink);
}

.plan__features .is-off {
  color: var(--faint);
}

.plan__features .is-off .i {
  color: var(--faint);
}

.trial {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 880px;
  margin: 20px auto 0;
  padding: 18px 22px;
  border-radius: 20px;
  background: #fff4ec;
  color: var(--ink-2);
  font-size: 16px;
}

.trial strong {
  color: var(--ink);
}


.pricing-fine {
  max-width: 880px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

@media (max-width: 900px) {
  .plans--two {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .periods label {
    padding: 0 12px;
    font-size: 14px;
  }
  .periods__save {
    display: none;
  }
  .trial {
    align-items: flex-start;
  }
}

/* ── Smaller screens ──────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .feature,
  .feature--flip {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .feature--flip .feature__text {
    order: 0;
  }
}

/* Phones and small tablets: the panel alone, centred on the art. */
@media (max-width: 860px) {
  .jobpost,
  .demo[data-scene='apply'] .appform {
    display: none;
  }
  .browser {
    max-width: 400px;
  }
  .browser__url span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .panel {
    width: 100%;
    border-left: 0;
  }
  .demo {
    height: 640px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 48px;
  }
  .hero__mascot {
    --size: 84px;
    margin-bottom: 14px;
  }
  .demo {
    height: 560px;
    border-radius: 22px;
  }
  /* The four tabs stay on one line and scroll sideways if they must. */
  .demo-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .demo-tabs button {
    flex: none;
    padding: 0 14px;
    font-size: 14px;
  }
  .rows {
    gap: 96px;
  }
}
