/* =====================================================================
   landing.css: home page only.
   White gallery theme: centred hero with an oversized headline, the
   sample documents as the "product render", #f5f5f7 bands with white
   28px cards. Flat, no gradients.
   ===================================================================== */

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Live A4 documents drawn at thumbnail size ----------
   The real 794px page is scaled with --s (set by landing.js). */
.doc-live { position: relative; width: 100%; aspect-ratio: 210 / 297; overflow: hidden; background: #fff; }
.doc-live > .rz-page { position: absolute; top: 0; left: 0; width: 794px; min-height: 1123px; height: 1123px;
  transform: scale(var(--s, .4)); transform-origin: top left; box-shadow: none; pointer-events: none; transition: none; }

/* ---------- Hero ---------- */
.hx { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 84px) 0 clamp(56px, 7vw, 90px); background: #fff; }
.hx-grid { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 56px); justify-items: center; }
.hx-text { text-align: center; max-width: 900px; }
.hx h1 { font-size: clamp(2.6rem, 7.4vw, 5rem); font-weight: 600; line-height: 1.05; letter-spacing: -.015em; margin: 14px auto 20px; max-width: 16ch; }
.hx-accent { color: inherit; }
.hx-sub { font-size: clamp(1.06rem, 1.8vw, 1.32rem); line-height: 1.38; letter-spacing: .01em; color: var(--rz-ink); max-width: 680px; margin: 0 auto 30px; }
.hx-sub strong { color: var(--rz-ink); font-weight: 600; }
.hx-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 22px; }
.hx-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: .88rem; color: var(--rz-muted); }
.hx-points li { display: flex; align-items: center; gap: 6px; }
.hx-points .rz-icon { width: 15px; height: 15px; color: var(--color-ok); }

/* AI powered / ATS friendly: bare launch-orange labels, no pills */
.hx-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.hx-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--rz-font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: .011em; color: var(--rz-ink); }
.hx-badge svg { width: 18px; height: 18px; flex: none; }
.hx-badge.is-ai { color: var(--color-launch-orange); }
.hx-badge.is-ats { color: var(--rz-ink); }

/* The documents: shown like a product render, no containing card */
.hx-visual { position: relative; width: min(860px, 100%); height: clamp(380px, 52vw, 560px); }
.hx-doc { position: absolute; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--rz-shadow-render); }
.hx-resume { width: 46%; left: 41%; top: 0; z-index: 2; }
.hx-letter { width: 40%; left: 10%; top: 9%; z-index: 1; transform: rotate(-4deg); }
/* Floating callouts: white capsules, hairline edge, no shadow */
.hx-tag { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .92); border: 1px solid var(--color-control-gray);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: var(--rz-radius-pill); padding: 8px 18px 8px 8px; font-family: var(--rz-font-body); font-weight: 600; color: var(--rz-ink); font-size: .86rem; letter-spacing: -.016em; }
.hx-tag small { display: block; font-weight: 400; color: var(--rz-muted); font-size: .75rem; }
.hx-tag .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.hx-tag .dot svg { width: 16px; height: 16px; }
.hx-tag .dot.g { background: var(--color-ok); }
.hx-tag .dot.b { background: var(--rz-primary); }
.hx-tag .dot.ai, .hl-ico { background: var(--rz-ink); color: #fff; }
.hx-tag.t1 { right: 0; bottom: 18%; }
.hx-tag.t2 { left: 0; bottom: 6%; }
.hx-tag.t3 { right: 4%; top: 2%; }
.hx-tag .ats-ring { width: 34px; height: 34px; }
.hx-tag .ats-ring > span { width: 26px; height: 26px; font-size: .74rem; }

@media (max-width: 640px) {
  .hx-visual { height: auto; aspect-ratio: 1 / 1.05; }
  .hx-resume { width: 62%; left: 34%; }
  .hx-letter { width: 54%; left: 2%; }
  .hx-tag { padding: 6px 12px 6px 6px; font-size: .76rem; }
  .hx-tag small { display: none; }
  .hx-tag .dot, .hx-tag .ats-ring { width: 28px; height: 28px; }
  .hx-tag .ats-ring > span { width: 22px; height: 22px; font-size: .66rem; }
  .hx-tag.t3 { right: 0; top: -2%; }
}

/* ---------- Fields strip ---------- */
.fields { padding: 8px 0 var(--rz-section-gap); }
.fields p { text-align: center; color: var(--rz-muted); font-size: .88rem; margin-bottom: 16px; font-weight: 400; }
.fields-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.field-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border: 1px solid var(--rz-line); border-radius: var(--rz-radius-pill);
  color: var(--rz-ink); font-family: var(--rz-font-body); font-weight: 400; font-size: .88rem; background: #fff; transition: border-color .15s ease; }
.field-chip svg { width: 17px; height: 17px; color: var(--rz-ink); }
.field-chip:hover { border-color: var(--color-steel); color: var(--rz-ink); text-decoration: none; }

/* ---------- ATS + AI highlights stage ---------- */
.hl { background: var(--rz-bg-soft); }
.hl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hl-card { border-radius: var(--rz-radius-lg); padding: clamp(28px, 4vw, 44px); border: 0; background: #fff; }
.hl-top { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.hl-top h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; line-height: 1.1; margin: 6px 0 0; }
.hl-kicker { display: inline-flex; align-items: center; gap: 6px; font-family: var(--rz-font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .011em; color: var(--rz-ink); }
.hl-kicker svg { width: 16px; height: 16px; }
.is-ai .hl-kicker { color: var(--color-launch-orange); }
.ats-ring.hl-ring { width: 72px; height: 72px; flex: none; }
.ats-ring.hl-ring > span { width: 58px; height: 58px; font-size: 1.3rem; }
.hl-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.hl-ico svg { width: 30px; height: 30px; }
.hl-card > p { color: var(--rz-ink); margin-bottom: 18px; }
.hl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hl-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--rz-ink); }
.hl-list .rz-icon { width: 17px; height: 17px; margin-top: 4px; flex: none; color: var(--color-ok); }
.is-ai .hl-list .rz-icon { color: var(--rz-ink); }
@media (max-width: 800px) { .hl-grid { grid-template-columns: 1fr; } }

/* ---------- Profession showcase ---------- */
.pro { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.pro-tabs { display: flex; flex-direction: column; gap: 2px; }
.pro-tab { display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: none; border-radius: var(--rz-radius-sm);
  padding: 10px 12px; cursor: pointer; color: var(--rz-ink); transition: background .15s ease; }
.pro-tab:hover { background: var(--rz-bg-soft); }
.pro-tab.is-active { background: var(--rz-bg-soft); box-shadow: none; }
.pro-tab strong { display: block; font-family: var(--rz-font-body); font-weight: 600; color: var(--rz-ink); font-size: .94rem; }
.pro-tab small { display: block; color: var(--rz-muted); font-size: .78rem; }
.pro-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--rz-bg-soft); color: var(--rz-ink); display: grid; place-items: center; flex: none; }
.pro-ico svg { width: 18px; height: 18px; }
.pro-tab.is-active .pro-ico { background: var(--rz-ink); color: #fff; }
.pro-stage { background: var(--rz-bg-soft); border-radius: var(--rz-radius-lg); padding: clamp(20px, 4vw, 44px); }
.pro-doc { max-width: 540px; margin: 0 auto; border-radius: 8px; overflow: hidden; box-shadow: var(--rz-shadow-render); }
.pro-info { max-width: 540px; margin: 24px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pro-info strong { display: block; font-family: var(--rz-font-head); font-weight: 600; color: var(--rz-ink); font-size: 1.1rem; }
.pro-info span { color: var(--rz-muted); font-size: .88rem; }
.pro-info .btn { flex: none; }
@media (max-width: 900px) {
  .pro { grid-template-columns: 1fr; }
  .pro-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .pro-tab { flex: none; scroll-snap-align: start; padding: 8px 14px 8px 8px; border-radius: var(--rz-radius-pill); }
  .pro-tab small { display: none; }
}
@media (max-width: 520px) { .pro-info { flex-direction: column; align-items: stretch; text-align: center; } }

/* ---------- Features (white cards on the mist band) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: #fff; border: 0; border-radius: var(--rz-radius-lg); padding: var(--card-padding, 28px) 28px 32px; }
.feature-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--rz-ink); margin-bottom: 20px; background: var(--rz-bg-soft); }
.feature-card h3 { font-size: 1.32rem; font-weight: 600; line-height: 1.17; margin-bottom: 8px; }
.feature-card p { color: var(--rz-muted); margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--rz-bg-soft); border-radius: var(--rz-radius-lg); padding: 32px 28px; }
.step-num { font-family: var(--rz-font-head); font-weight: 600; font-size: 3rem; line-height: 1; letter-spacing: -.015em; color: var(--rz-ink); margin-bottom: 18px; }
.step h3 { font-size: 1.32rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--rz-muted); margin: 0; }
.step:not(:last-child)::after { content: none; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ: hairline list, no boxes ---------- */
.faq-wrap { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--rz-line); }
.faq-item { border: 0; border-bottom: 1px solid var(--rz-line); border-radius: 0; background: none; margin: 0; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--rz-font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: .005em; color: var(--rz-ink); cursor: pointer; }
.faq-q .chev { transition: transform .2s ease; color: var(--rz-primary-600); flex: none; }
.faq-item.is-open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { padding: 0 0 22px; margin: 0; color: var(--rz-muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--rz-bg-soft); border-radius: var(--rz-radius-lg); padding: clamp(44px, 7vw, 80px) clamp(22px, 5vw, 64px); text-align: center; color: var(--rz-ink); position: relative; overflow: hidden; }
.cta-band h2 { color: var(--rz-ink); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 14px; }
.cta-band p { color: var(--rz-muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 600px; margin: 0 auto 28px; }

/* ---------- Spotlights (cover letter, tailor): editorial blocks ---------- */
.spot {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: var(--rz-bg-soft); border-radius: var(--rz-radius-lg); padding: clamp(28px, 5vw, 60px);
}
.spot-alt { background: var(--rz-bg-soft); }
.spot h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.08; margin: 8px 0 14px; }
.spot-text > p { color: var(--rz-ink); font-size: 1.06rem; }
.spot-list { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; gap: 10px; }
.spot-list li { display: flex; gap: 10px; align-items: center; color: var(--rz-ink); }
.spot-list .rz-icon { width: 17px; height: 17px; color: var(--color-ok); flex: none; }
.spot-visual { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.spot-jd { align-self: stretch; background: #fff; border-radius: var(--rz-radius); padding: 14px 18px; box-shadow: none; font-size: .9rem; }
.spot-jd small { display: block; font-size: .75rem; font-weight: 600; letter-spacing: -.01em; color: var(--rz-muted); margin-bottom: 4px; }
.spot-jd p { margin: 0; color: var(--rz-ink); }
.spot-jd mark, .sc-jd mark { background: var(--rz-primary-tint); color: var(--rz-primary-600); border-radius: 4px; padding: 0 3px; }
.spot-arrow { color: var(--color-steel); }
.spot-arrow svg { width: 22px; height: 22px; display: block; }
.spot-letter { position: relative; width: 82%; border-radius: 8px; overflow: hidden; box-shadow: var(--rz-shadow-render); }
.spot-card { background: #fff; border-radius: var(--rz-radius-lg); box-shadow: none; padding: 26px; font-size: .92rem; }
@media (max-width: 860px) { .spot { grid-template-columns: 1fr; } .spot-alt .spot-card { order: 2; } }

/* ---------- Template gallery ---------- */
.tpl-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -24px 0 32px; }
.tpl-filter button { border: 1px solid var(--color-steel); background: transparent; color: var(--rz-ink); border-radius: var(--rz-radius-pill); padding: 6px 16px;
  font-family: var(--rz-font-body); font-weight: 400; font-size: .82rem; letter-spacing: -.01em; cursor: pointer; }
.tpl-filter button:hover { border-color: var(--rz-ink); }
.tpl-filter button.is-active { background: var(--rz-ink); border-color: var(--rz-ink); color: #fff; }
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tpl-card { position: relative; border-radius: var(--rz-radius-lg); overflow: hidden; border: 0; background: #fff; color: inherit; transition: transform .25s ease; }
.tpl-card[hidden] { display: none; }
.tpl-card:hover { color: inherit; text-decoration: none; }
.tpl-thumb { padding: 18px 18px 0; background: #fff; }
.tpl-thumb .doc-live { border-radius: 6px 6px 0 0; box-shadow: 0 0 0 1px var(--color-control-gray); transition: transform .3s ease; }
.tpl-card:hover .tpl-thumb .doc-live { transform: scale(1.02); }
.tpl-foot { padding: 14px 20px 18px; border-top: 1px solid var(--color-control-gray); }
.tpl-foot strong { display: block; font-family: var(--rz-font-body); font-weight: 600; font-size: .96rem; color: var(--rz-ink); }
.tpl-foot span { display: block; font-size: .8rem; color: var(--rz-muted); }
.tpl-card .tpl-cta { position: absolute; inset: 0; background: rgba(255, 255, 255, .35); display: flex; align-items: flex-end; justify-content: center; padding: 0 0 86px; opacity: 0; transition: opacity .2s ease; }
.tpl-card:hover .tpl-cta, .tpl-card:focus-visible .tpl-cta { opacity: 1; }
.tpl-card .tpl-cta .btn { pointer-events: none; }
@media (max-width: 1050px) { .tpl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .tpl-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .tpl-thumb { padding: 12px 12px 0; } .tpl-foot { padding: 12px 14px 14px; } }
@media (max-width: 400px) { .tpl-grid { grid-template-columns: 1fr; } }

/* ---------- Job match card ---------- */
/* Score ring (conic fill shows the value in --p; it is a chart, not decoration) */
.ats-ring {
  --p: 90; width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--color-ok) calc(var(--p) * 1%), #e3f1e6 0);
  display: grid; place-items: center;
}
.ats-ring > span { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--rz-font-head); font-weight: 600; font-size: .85rem; color: var(--color-ok); }
.ats-ring.sm { width: 34px; height: 34px; }
.ats-ring.sm > span { width: 26px; height: 26px; font-size: .74rem; }

.sc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sc-title { font-family: var(--rz-font-head); font-weight: 600; color: var(--rz-ink); font-size: 1.05rem; }
.sc-score { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--color-ok); font-size: .85rem; }
.sc-jd { background: var(--rz-bg-soft); border-radius: var(--rz-radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.sc-jd small, .sc-label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: -.01em; color: var(--rz-muted); margin-bottom: 6px; }
.sc-jd p { margin: 0; color: var(--rz-ink); line-height: 1.6; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sc-chips:last-child { margin-bottom: 0; }
.chip { font-size: .78rem; font-weight: 400; border-radius: var(--rz-radius-pill); padding: 4px 12px; border: 1px solid; }
.chip.ok { color: var(--color-ok); background: #fff; border-color: #b7dcc0; }
.chip.miss { color: var(--rz-primary-600); background: #fff; border-color: #a9c9ec; border-style: dashed; }

/* ---------- Pricing band (mist stage, white cards) ---------- */
.pricing-dark { position: relative; overflow: hidden; background: var(--rz-bg-soft); color: var(--rz-ink); }

.free-vs-paid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 860px; margin: -24px auto 44px; }
.fvp { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 0; border-radius: var(--rz-radius); padding: 18px 20px; }
.fvp p { margin: 0; font-size: .92rem; color: var(--rz-ink); }
.fvp strong { color: var(--rz-ink); }
.fvp-tag { flex: none; font-family: var(--rz-font-body); font-weight: 600; font-size: .75rem; letter-spacing: -.01em; padding: 2px 0; color: var(--rz-muted); }
.fvp.is-paid .fvp-tag { color: var(--color-launch-orange); }
@media (max-width: 720px) { .free-vs-paid { grid-template-columns: 1fr; } }

.pricing-dark .plan-card { border-color: transparent; }
.pricing-dark .plan-cta .btn { width: 100%; }

.plan-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.extra-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: #fff; border: 0; border-radius: var(--rz-radius-lg); padding: 26px 28px;
}
.extra-card h3 { color: var(--rz-ink); font-size: 1.2rem; margin: 0 0 4px; }
.extra-card p { margin: 0; font-size: .9rem; color: var(--rz-muted); }
.extra-buy { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.extra-card .btn { white-space: nowrap; }
@media (max-width: 820px) { .plan-extras { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .extra-card { flex-direction: column; align-items: flex-start; } .extra-buy { align-items: stretch; width: 100%; } }

.pricing-fine { text-align: center; color: var(--rz-muted); font-size: .8rem; margin: 28px 0 0; }

/* Show the top of the page only: the bottom of a sample A4 is empty. */
.hx-doc .doc-live { aspect-ratio: 210 / 252; }
.spot-letter .doc-live { aspect-ratio: 210 / 236; }
.tpl-foot strong { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; }
.tpl-badge { font-style: normal; display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; color: var(--color-launch-orange); background: none; border-radius: 0; padding: 0; }
.tpl-badge .rz-crown { width: 11px; height: 11px; }
.tpl-badge.is-free { color: var(--color-ok); background: none; }
