/* ============================================================================
   ADVOKE CV — home.css
   Homepage-only styles: hero, workflow, categories, comparison, FAQ,
   recommended strip, CTA band. Mobile-first, no layout shift, GPU-friendly.
   ============================================================================ */

/* ── 1. Hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(120% 90% at 12% 0%, var(--y-100) 0%, transparent 55%),
    radial-gradient(90% 100% at 100% 30%, #FFFDF0 0%, transparent 60%),
    var(--paper);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4.5rem;
  }
}

.hero__copy {
  max-width: 62ch;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.55rem;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--y-200);
  color: var(--y-800);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  box-shadow: var(--shadow-xs);
  margin-bottom: var(--s-5);
}

.hero__eyebrow svg {
  width: 16px;
  height: 16px;
  color: var(--y-700);
}

.hero__eyebrow b {
  color: var(--y-900);
  font-weight: var(--fw-bold);
}

.hero h1 {
  font-size: clamp(2.15rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: var(--ls-tighter);
  font-weight: var(--fw-extrabold);
  margin: 0 0 var(--s-5);
  text-wrap: balance;
}

.hero h1 .accent {
  position: relative;
  display: inline-block;
  color: var(--ink);
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.06em;
  height: 0.34em;
  background: var(--y-500);
  border-radius: 4px;
  z-index: -1;
  transform: skewX(-6deg);
}

.hero__lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 var(--s-6);
  max-width: 58ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--y-700);
  flex-shrink: 0;
}

/* ── 2. Hero preview card ─────────────────────────────────────────────── */

.hero__preview {
  position: relative;
  min-height: 380px;
}

@media (min-width: 960px) {
  .hero__preview { min-height: 520px; }
}

.hero__preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  max-width: 480px;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 24px 60px -20px rgba(15, 23, 42, 0.22),
    0 40px 80px -40px rgba(245, 179, 1, 0.35);
  overflow: hidden;
  transform: rotate(-1.5deg);
}

.hero__preview-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 60%, rgba(15, 23, 42, 0.04) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero__preview-canvas {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  overflow: hidden;
}

.hero__preview-canvas > * {
  transform-origin: top left;
  transform: scale(0.62);
  width: calc(100% / 0.62);
  min-height: calc(100% / 0.62);
}

@media (min-width: 768px) {
  .hero__preview-canvas > * {
    transform: scale(0.72);
    width: calc(100% / 0.72);
    min-height: calc(100% / 0.72);
  }
}

@media (min-width: 960px) {
  .hero__preview-canvas > * {
    transform: scale(0.78);
    width: calc(100% / 0.78);
    min-height: calc(100% / 0.78);
  }
}

.hero__preview-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  background: rgba(15, 23, 42, 0.85);
  color: var(--paper);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-sm);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3;
  letter-spacing: var(--ls-wide);
}

.hero__preview-badge svg {
  width: 12px;
  height: 12px;
  color: var(--y-500);
}

/* Floating chips around the preview */
.hero__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  z-index: 4;
  white-space: nowrap;
}

.hero__chip svg {
  width: 14px;
  height: 14px;
  color: var(--y-700);
}

.hero__chip--tl { top: 6%; left: 0; }
.hero__chip--tr { top: 12%; right: 0; }
.hero__chip--bl { bottom: 12%; left: 6%; }
.hero__chip--br { bottom: 4%; right: 4%; }

@media (max-width: 480px) {
  .hero__chip { font-size: 10px; padding: 0.35rem 0.6rem; }
  .hero__chip--tl, .hero__chip--tr { display: none; }
}

/* ── 3. Stats strip ───────────────────────────────────────────────────── */

.stats {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: var(--paper-2);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5) var(--s-6);
}

@media (min-width: 720px) {
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat {
  min-width: 0;
  text-align: left;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tighter);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.stat__value b {
  color: var(--y-700);
  font-weight: inherit;
}

.stat__label {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  letter-spacing: var(--ls-wide);
  line-height: 1.4;
}

/* ── 4. Workflow ──────────────────────────────────────────────────────── */

.workflow__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  counter-reset: step;
}

@media (min-width: 640px) {
  .workflow__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .workflow__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
}

.workflow__step {
  position: relative;
  counter-increment: step;
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  min-width: 0;
}

.workflow__step:hover {
  transform: translateY(-2px);
  border-color: var(--y-300);
  box-shadow: var(--shadow-md);
}

.workflow__step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--y-500);
  color: var(--ink);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-md);
  margin-bottom: var(--s-4);
  box-shadow: 0 0 0 4px var(--y-100);
}

.workflow__step h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  margin: 0 0 0.4rem;
}

.workflow__step p {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

/* ── 5. Categories ────────────────────────────────────────────────────── */

.cats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

@media (min-width: 640px) {
  .cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  height: 100%;
}

.cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--y-300);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.cat-card:focus-visible {
  outline: 3px solid var(--y-500);
  outline-offset: 2px;
}

.cat-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}

.cat-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--y-100);
  color: var(--y-800);
  border-radius: var(--r-md);
}

.cat-card__icon svg {
  width: 22px;
  height: 22px;
}

.cat-card__count {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  color: var(--y-800);
  background: var(--y-50);
  border: 1px solid var(--y-200);
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  letter-spacing: var(--ls-wide);
  white-space: nowrap;
}

.cat-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  margin: 0;
}

.cat-card__desc {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
  flex: 1 1 auto;
}

.cat-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--y-800);
  margin-top: var(--s-2);
}

.cat-card__cta svg {
  width: 15px;
  height: 15px;
  transition: transform var(--t-base);
}

.cat-card:hover .cat-card__cta svg {
  transform: translateX(3px);
}

/* ── 6. Recommended strip ─────────────────────────────────────────────── */

.recommended__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

@media (min-width: 560px) {
  .recommended__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .recommended__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.rec-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.rec-card:hover {
  transform: translateY(-3px);
  border-color: var(--y-300);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.rec-card__thumb {
  position: relative;
  aspect-ratio: 210 / 297;
  background: var(--paper-3);
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
  contain: strict;
}

.rec-card__canvas {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
}

.rec-card__canvas > * {
  transform-origin: top left;
  transform: scale(0.42);
  width: calc(100% / 0.42);
  min-height: calc(100% / 0.42);
  pointer-events: none;
}

.rec-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: var(--fs-3xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  padding: 0.2rem 0.45rem;
  border-radius: var(--r-xs);
  background: var(--y-500);
  color: var(--ink);
  z-index: 2;
}

.rec-card__badge--ats {
  background: var(--ink);
  color: var(--paper);
}

.rec-card__body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 auto;
  min-width: 0;
}

.rec-card__name {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  margin: 0;
}

.rec-card__meta {
  font-size: var(--fs-2xs);
  color: var(--ink-3);
  letter-spacing: var(--ls-wide);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.rec-card__meta b {
  color: var(--y-800);
  font-weight: var(--fw-semibold);
}

.rec-card__footer {
  margin-top: auto;
  padding-top: var(--s-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--y-800);
}

.rec-card__footer svg {
  width: 14px;
  height: 14px;
}

/* ── 7. Comparison ────────────────────────────────────────────────────── */

.compare__table {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.compare__head,
.compare__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
  align-items: center;
}

.compare__head {
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  font-weight: var(--fw-bold);
  color: var(--ink-3);
}

.compare__head > *,
.compare__row > * {
  padding: 0.85rem 1rem;
  min-width: 0;
}

.compare__head > :not(:first-child),
.compare__row > :not(:first-child) {
  text-align: center;
  border-left: 1px solid var(--line-2);
}

.compare__row {
  border-top: 1px solid var(--line-2);
  font-size: var(--fs-sm);
}

.compare__row:first-of-type {
  border-top: 0;
}

.compare__row:hover {
  background: var(--y-50);
}

.compare__feature {
  color: var(--ink-2);
  line-height: 1.45;
}

.compare__advoke {
  font-weight: var(--fw-semibold);
  color: var(--ink);
  background: rgba(255, 193, 7, 0.06);
}

.compare__yes,
.compare__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.compare__yes {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-line);
}

.compare__no {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-line);
}

.compare__yes svg,
.compare__no svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 560px) {
  .compare__head,
  .compare__row {
    grid-template-columns: 1.6fr 1fr 1fr;
    font-size: 11px;
  }
  .compare__head > *,
  .compare__row > * {
    padding: 0.6rem 0.5rem;
  }
  .compare__yes, .compare__no {
    width: 18px;
    height: 18px;
  }
  .compare__yes svg,
  .compare__no svg { width: 11px; height: 11px; }
}

/* ── 8. Guide strip ──────────────────────────────────────────────────── */

.guides__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

@media (min-width: 640px) {
  .guides__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .guides__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.guide-tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  height: 100%;
}

.guide-tile:hover {
  border-color: var(--y-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.guide-tile__tag {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--y-800);
}

.guide-tile__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}

.guide-tile__excerpt {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
  flex: 1 1 auto;
}

.guide-tile__cta {
  margin-top: var(--s-2);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--y-800);
}

.guide-tile__cta svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-base);
}

.guide-tile:hover .guide-tile__cta svg {
  transform: translateX(3px);
}

/* ── 9. FAQ ───────────────────────────────────────────────────────────── */

.faq {
  max-width: 780px;
  margin-inline: auto;
}

.faq .accordion__summary {
  font-size: var(--fs-md);
}

.faq .accordion__body {
  font-size: var(--fs-sm);
}

/* ── 10. Final CTA ───────────────────────────────────────────────────── */

.cta-band {
  background:
    radial-gradient(80% 100% at 100% 0%, #FFF4C2 0%, transparent 60%),
    radial-gradient(60% 100% at 0% 100%, #FFFDF0 0%, transparent 55%),
    var(--paper);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.cta-band__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tighter);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

.cta-band p {
  font-size: var(--fs-lg);
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 var(--s-6);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
}

/* ── 11. Footer ───────────────────────────────────────────────────────── */

/* Footer structure lives in layout.css; nothing extra needed here. */

/* ── 12. Reduced motion ───────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .hero__preview-frame { transform: none; }
  .workflow__step:hover,
  .cat-card:hover,
  .rec-card:hover,
  .guide-tile:hover { transform: none; }
}