/* Job Actually marketing site. Components are ported from the design-system bundle.
   Breakpoints: 1024px tablet, 820px nav collapse, 480px small phones (down to 360px). */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: var(--weight-regular) 16px/1.55 var(--font-sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

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

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

::selection { background: var(--accent-pale); }

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

.skip-link {
  position: absolute;
  left: 16px; top: 12px;
  z-index: 100;
  transform: translateY(-200%);
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-raised);
  font-weight: var(--weight-medium);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font: var(--weight-medium) 14px/1 var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; transform: translateY(-0.5px); box-shadow: var(--shadow-card); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

.btn--cta { background: var(--cta); color: #FFFFFF; }
.btn--cta:hover { background: var(--cta-hover); }

.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--accent-deep); }

.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface-2); }

.btn--tertiary { background: transparent; color: var(--accent); border-color: var(--accent-pale); }
.btn--tertiary:hover { background: var(--accent-wash); box-shadow: none; }

.btn--disabled,
.btn--disabled:hover {
  background: var(--surface-2);
  color: var(--ink-muted);
  border-color: var(--border);
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* ---------- Cards, badges, tags ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid;
  border-radius: var(--radius-pill);
  font: var(--weight-medium) 12px/1.4 var(--font-sans);
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.badge--brand { background: var(--accent-wash); color: var(--accent-deep); border-color: var(--accent-pale); }
.badge--neutral { background: var(--surface-2); color: var(--ink-secondary); border-color: var(--border); }


/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 251, 252, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__logo { flex-shrink: 0; }
.nav__logo img { height: 28px; width: auto; }

.nav__links { display: flex; gap: 2px; margin-left: auto; }   /* right side, beside the buttons */
.nav__links a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink-secondary);
  font: var(--weight-medium) 14px/1 var(--font-sans);
  transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}
.nav__links a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }

.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__links + .nav__actions { margin-left: 0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--rule { border-top: 1px solid var(--border); }
.section--warm { background: var(--surface-3); }

.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__title {
  font: var(--weight-semibold) 32px/1.25 var(--font-sans);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
.section__lede {
  margin-top: 12px;
  color: var(--ink-secondary);
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font: var(--weight-semibold) 12px/1.3 var(--font-sans);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
}

.fineprint {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: 15px 0;   /* gap between the menu bar / bottom divider and the demo panel */
  background: var(--canvas);
}
/* Decorative network background, behind the copy and the demo panel. Adjust opacity to taste. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/hero-bg.webp") center / cover no-repeat;
  opacity: 0.25;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 49%);
  gap: 48px;
  align-items: stretch;
}
/* Title is sized to its column so it always breaks into the same three lines
   ("Automate your job search," is ~11.3em wide). */
.hero__copy { container-type: inline-size; align-self: center; padding: 32px 0; }
/* Full-height cream panel holding the portrait demo */
.hero__media {
  display: grid;
  place-items: center;
  padding: 16px 32px;   /* sides set the demo's width; keep them when changing the top/bottom */
  background: var(--surface-3);
  border-radius: var(--radius-panel);
}
/* Panel is 10% shorter than its content (5% off the top and bottom); the demo keeps its
   size and overhangs the panel's padding (its edges are transparent). Percent margins
   resolve against width: demo height = 1.25 x demo width (w), so 5% of the panel's
   content height (1.25w + 32px) = 6.25% of w + 1.6px. */
@media (min-width: 821px) {
  .hero .hero-demo { margin-block: calc(-6.25% - 1.6px); }
  /* Desktop: menu bar + hero fill 95% of the viewport height; the panel stretches, the demo keeps its size */
  .hero { display: grid; min-height: calc(95vh - var(--header-h)); }
}
.hero__title {
  font: var(--weight-semibold) min(46px, calc(100cqi / 11.6))/1.1 var(--font-sans);
  letter-spacing: var(--tracking-display);
}
.hero__line { display: block; }
.hero__lede {
  margin-top: 20px;
  max-width: 520px;
  color: var(--ink-secondary);
  font-size: 20px;
  line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__note { margin-top: 14px; max-width: 460px; color: var(--ink-muted); font-size: 14px; line-height: 1.5; text-wrap: pretty; }

/* ---------- Lead benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { padding: 28px 24px; }
.benefit__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent);
}
.benefit__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.benefit__title { font: var(--weight-semibold) 18px/1.35 var(--font-sans); letter-spacing: -0.01em; }
.benefit__body { margin-top: 8px; color: var(--ink-secondary); font-size: 15px; line-height: 1.55; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step { padding: 32px 28px; }
.step__num {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent);
  font: var(--weight-semibold) 15px/1 var(--font-sans);
}
.step__title { font: var(--weight-semibold) 18px/1.35 var(--font-sans); letter-spacing: -0.01em; }
.step__body { margin-top: 8px; color: var(--ink-secondary); font-size: 15px; line-height: 1.55; }

.hour { margin-top: 40px; padding: 32px; border-radius: var(--radius-panel); }
.hour__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.hour__title { font: var(--weight-semibold) 22px/1.25 var(--font-sans); letter-spacing: var(--tracking-display); }
.hour__caption { margin-top: 6px; color: var(--ink-secondary); font-size: 15px; }

.stat { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex-shrink: 0; }
.stat__value {
  color: var(--accent);
  font: var(--weight-semibold) 40px/1 var(--font-sans);
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: 6px; color: var(--ink-secondary); font-size: 14px; }

.table-wrap { overflow-x: auto; }
.hour__table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.hour__table th,
.hour__table td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--border-soft); }
.hour__table thead th {
  border-top: 0;
  padding-top: 0;
  color: var(--ink-muted);
  font: var(--weight-semibold) 12px/1.3 var(--font-sans);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
}
.hour__table .th-note { text-transform: none; letter-spacing: 0; font-weight: var(--weight-medium); }
.hour__table tbody th { font-weight: var(--weight-medium); }
.hour__table thead th:nth-child(1) { width: 30%; }
.hour__table thead th:nth-child(2) { width: 17%; }
.hour__table thead th:nth-child(3) { width: 15%; }
.hour__table td:nth-child(2),
.hour__table td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hour__table td:nth-child(2) { color: var(--ink-secondary); }
.hour__table td:nth-child(3) { color: var(--accent-deep); font-weight: var(--weight-semibold); }
.hour__table td:nth-child(4) { color: var(--ink-secondary); }
.hour__table tfoot th,
.hour__table tfoot td {
  border-top: 1px solid var(--border-strong);
  color: var(--ink);
  font-weight: var(--weight-semibold);
}
.hour .fineprint { margin-top: 20px; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  max-width: 920px;
  margin: 0 auto;
}
.feature { padding: 24px 0; border-top: 1px solid var(--border); }
.feature:nth-child(-n + 2) { border-top: 0; padding-top: 0; }
.feature__title { font: var(--weight-semibold) 18px/1.35 var(--font-sans); letter-spacing: -0.01em; }
.feature__body { margin-top: 6px; color: var(--ink-secondary); font-size: 16px; }

/* ---------- Traceability ---------- */
.trace { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.trace__title {
  font: var(--weight-semibold) 44px/1.12 var(--font-sans);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
.trace__body { margin-top: 16px; color: var(--ink-secondary); font-size: 18px; line-height: 1.6; }
.trace__kicker {
  margin-top: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--accent-mid);
  color: var(--prose);
  font-size: 17px;
  font-weight: var(--weight-medium);
  line-height: 1.5;
}


/* ---------- Why not ChatGPT ---------- */
.compare { max-width: 920px; margin: 0 auto; overflow: hidden; }
.compare__table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.compare__table th,
.compare__table td { width: 50%; padding: 14px 24px; text-align: left; vertical-align: top; }
.compare__table thead th {
  padding-top: 18px;
  padding-bottom: 12px;
  font: var(--weight-semibold) 12px/1.3 var(--font-sans);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
}
.compare__table thead th:last-child { color: var(--accent); }
.compare__table tbody tr + tr td { border-top: 1px solid var(--border-soft); }
.compare__table td:first-child { color: var(--ink-secondary); }
.compare__table td:last-child { background: color-mix(in srgb, var(--accent-wash) 45%, white); color: var(--ink); font-weight: var(--weight-medium); }
.compare__close {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--prose);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: balance;
}

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px 24px; }
.plan__status { display: flex; align-items: center; min-height: 24px; margin-bottom: 10px; }
.plan__name { font: var(--weight-semibold) 18px/1.35 var(--font-sans); }
.plan__price { display: flex; flex-direction: column; margin: 14px 0 0; }
.plan__amount {
  font: var(--weight-semibold) 40px/1 var(--font-sans);
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
}
.plan__per { margin-top: 6px; color: var(--ink-muted); font-size: 13px; }
.plan__line { margin-top: 14px; color: var(--ink-secondary); font-size: 15px; line-height: 1.5; }
.plan__features { flex: 1; margin: 18px 0 24px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.plan__features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--prose);
}
.plan__features li + li { margin-top: 8px; }
.plan__features li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 10px; height: 5px;
  border-left: 1.75px solid var(--accent);
  border-bottom: 1.75px solid var(--accent);
  transform: rotate(-45deg);
}

.plan--featured { background: var(--surface-3); border-color: var(--accent-pale); box-shadow: var(--shadow-raised); }
.plan--soon { background: var(--canvas); box-shadow: none; }
.plan--soon .plan__amount { color: var(--ink-secondary); }
.plan--soon .plan__features li::before { border-color: var(--ink-faint); }

.pricing-notes { max-width: 720px; margin: 32px auto 0; text-align: center; }
.pricing-notes__honest { color: var(--prose); font-size: 15px; line-height: 1.6; text-wrap: balance; }
.pricing-notes__honest strong { font-weight: var(--weight-semibold); color: var(--ink); }
.pricing-notes .fineprint { margin-top: 10px; text-wrap: balance; }

/* ---------- Founder ---------- */
.founder { max-width: calc(760px + 2 * var(--gutter)); text-align: center; }
.founder__quote p {
  color: var(--prose);
  font: var(--weight-medium) 22px/1.5 var(--font-sans);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.founder__quote p + p { margin-top: 14px; }
.founder__by { margin-top: 16px; color: var(--ink-muted); font-size: 14px; }

/* ---------- Closing CTA ---------- */
.closing { background: var(--surface-3); border-top-color: var(--border); }
.closing__inner { text-align: center; }
.closing__title {
  font: var(--weight-semibold) 40px/1.15 var(--font-sans);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
.closing__lede { margin: 12px 0 28px; color: var(--ink-secondary); font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--canvas); }
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.footer__brand img { height: 22px; width: auto; }
.footer__tagline { margin-top: 8px; color: var(--ink-muted); font-size: 13px; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--ink-secondary); font-size: 14px; }
.footer__copy { color: var(--ink-muted); font-size: 13px; }

/* ---------- Simple pages (privacy, terms, contact, 404) ---------- */
.page { padding: 96px 0 120px; }
.page__inner { max-width: calc(640px + 2 * var(--gutter)); }
.page__title {
  font: var(--weight-semibold) 40px/1.15 var(--font-sans);
  letter-spacing: var(--tracking-display);
}
.page__body { margin-top: 16px; color: var(--ink-secondary); font-size: 18px; line-height: 1.6; }
.page__actions { margin-top: 32px; }

/* ---------- Narrow desktop: 1100px ---------- */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 46%); gap: 32px; }
  .hero__media { padding: 16px 24px; }
}

/* ---------- Tablet: 1024px ---------- */
@media (max-width: 1024px) {
  .benefits, .plans { grid-template-columns: repeat(2, 1fr); }
  .trace { gap: 40px; }
  .trace__title { font-size: 36px; }
}

/* ---------- Nav collapse / stacked layouts: 820px ---------- */
@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .nav__links { display: none; }
  .nav__links + .nav__actions { margin-left: auto; }
  .section { padding: 64px 0; }
  .hero { padding: 32px 0 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }   /* stack: panel under the CTA, full width */
  .hero__copy { padding: 0; }
  .hero__media { aspect-ratio: 4 / 5; padding: 16px; border-radius: 12px; }
  .section__title { font-size: 28px; }
  .section__head { margin-bottom: 36px; }

  .steps { grid-template-columns: 1fr; }
  .trace { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(2) { border-top: 1px solid var(--border); padding-top: 24px; }

  .hour { padding: 24px 20px; }
  .hour__head { flex-direction: column; align-items: flex-start; }
  .stat { align-items: flex-start; text-align: left; }

  /* Tables become stacked rows */
  .hour__table thead,
  .compare__table thead { display: none; }
  .hour__table, .hour__table tbody, .hour__table tfoot, .hour__table tr,
  .hour__table th, .hour__table td,
  .compare__table, .compare__table tbody, .compare__table tr, .compare__table td { display: block; width: auto; }
  .hour__table tr { padding: 14px 0; border-top: 1px solid var(--border-soft); }
  .hour__table tbody tr:first-child { border-top: 0; padding-top: 0; }
  .hour__table tfoot tr { border-top: 1px solid var(--border-strong); }
  .hour__table th, .hour__table td { padding: 0; border: 0; }
  .hour__table tbody th, .hour__table tfoot th { width: auto; margin-bottom: 6px; }
  .hour__table tfoot th, .hour__table tfoot td { border: 0; }
  .hour__table td { display: flex; gap: 12px; font-size: 14px; white-space: normal; }
  .hour__table td + td { margin-top: 2px; }
  .hour__table td::before {
    content: attr(data-label);
    flex: 0 0 132px;
    color: var(--ink-muted);
    font-weight: var(--weight-regular);
  }
  .hour__table td:nth-child(2), .hour__table td:nth-child(3) { white-space: normal; }

  .compare__table tr { padding: 14px 20px; }
  .compare__table tbody tr + tr { border-top: 1px solid var(--border-soft); }
  .compare__table tbody tr + tr td { border-top: 0; }
  .compare__table td { padding: 0; background: none !important; }
  .compare__table td + td { margin-top: 8px; }
  .compare__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--ink-muted);
    font: var(--weight-semibold) 11px/1.3 var(--font-sans);
    letter-spacing: var(--tracking-overline);
    text-transform: uppercase;
  }
  .compare__table td:last-child::before { color: var(--accent); }

  .footer { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ---------- Mobile: 768px (16px gutter) ---------- */
@media (max-width: 768px) {
  :root { --gutter: 16px; }
}

/* ---------- Small phones: 480px (works to 360px) ---------- */
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .nav { gap: 12px; }
  .nav__logo img { height: 22px; }
  .nav__actions { gap: 6px; }
  .nav__actions .btn--sm { padding: 0 12px; }

  .hero { padding: 32px 0 56px; }
  .hero__lede { font-size: 18px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .section__title { font-size: 26px; }
  .section__lede { font-size: 17px; }

  .benefits, .plans { grid-template-columns: 1fr; }
  .plan__status:empty { display: none; }
  .trace__title { font-size: 30px; }
  .hour__table td::before { flex-basis: 112px; }
  .closing__title { font-size: 30px; }
  .founder__quote p { font-size: 19px; }
  .page { padding: 64px 0 88px; }
  .page__title { font-size: 32px; }
}
