/* ==========================================================================
   CVByAI — English homepage (/) stylesheet
   Scoped to the root index.html only (language pages keep /home.css)
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F6F7FB;
  --bg-tint: #EEF0FF;
  --ink: #0B1020;
  --ink-2: #2A3145;
  --muted: #5E6679;
  --line: #E4E7EF;
  --accent: #4338CA;
  --accent-2: #6D5DF6;
  --accent-hover: #3730A3;
  --accent-soft: #EEF2FF;
  --pink: #E7489B;
  --green: #0EA371;
  --green-soft: #E3F7EF;
  --amber: #F5A524;
  --dark: #0B1020;
  --dark-2: #151B2E;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, .06), 0 2px 8px rgba(11, 16, 32, .04);
  --shadow: 0 10px 30px -12px rgba(11, 16, 32, .18), 0 2px 6px rgba(11, 16, 32, .05);
  --shadow-lg: 0 40px 80px -30px rgba(67, 56, 202, .35), 0 12px 30px -10px rgba(11, 16, 32, .15);
  --grad: linear-gradient(120deg, #4338CA 0%, #6D5DF6 55%, #E7489B 100%);
  --wrap: 1200px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
h1, h2, h3, h4, .display {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section-soft { background: var(--bg-soft); }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 700; margin: 14px 0 18px; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; }
.center .lead { margin: 0 auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose a, .link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover, .link:hover { color: var(--accent-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 14px;
  font-weight: 600; font-size: 17px; white-space: nowrap;
  transition: transform .16s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(67, 56, 202, .7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--accent); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 11px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hover); box-shadow: 0 14px 30px -10px rgba(67, 56, 202, .8); }
  .btn-ghost:hover { border-color: #C9CEDB; }
  .btn-light:hover { background: #F2F2FF; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 25px; letter-spacing: -0.04em; color: var(--ink); }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background-color .15s, color .15s; }
@media (hover: hover) { .nav-links a:hover { background: var(--bg-soft); color: var(--ink); } }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease-out), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 760px; z-index: -1;
  background:
    radial-gradient(600px 380px at 15% 20%, rgba(109, 93, 246, .16), transparent 70%),
    radial-gradient(520px 360px at 85% 10%, rgba(231, 72, 155, .12), transparent 70%),
    radial-gradient(700px 400px at 60% 80%, rgba(67, 56, 202, .08), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.rating-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-size: 14px; color: var(--ink-2); font-weight: 500;
}
.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars svg { width: 15px; height: 15px; }
.rating-pill .stars { background: #FFF6E5; padding: 4px 7px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; margin: 18px 0 16px; line-height: 1.08; }
.hero-sub { font-size: 18.5px; color: var(--muted); max-width: 560px; margin-bottom: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; color: var(--muted); }
.hero-note li { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { color: var(--green); width: 17px; height: 17px; }

.hero-stats { display: flex; gap: 0; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 560px; }
.hero-stats > div { flex: 1; padding-right: 18px; }
.hero-stats > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.hero-stats strong { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.hero-stats span { font-size: 14px; color: var(--muted); }

/* Hero visual with real hero.png & floating ATS card */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: start;
  margin-top: 24px;
  padding: 0 0 24px;
}
.hero-mockup-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 32px 70px -24px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mockup-header-bar {
  height: 38px;
  background: #F4F4F5;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}
.mockup-dot { width: 9px; height: 9px; border-radius: 50%; }
.mockup-dot.red { background: #FDA4AF; }
.mockup-dot.yellow { background: #FDE047; }
.mockup-dot.green { background: #86EFAC; }
.mockup-url-bar {
  margin-left: 12px;
  height: 20px;
  flex: 1;
  max-width: 220px;
  background: #FFFFFF;
  border: 1px solid #E4E4E7;
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0 8px;
}
.hero-img { width: 100%; height: auto; display: block; }
.hero-floating-ats {
  position: absolute;
  right: -16px;
  bottom: -8px;
  width: 236px;
  background: var(--dark);
  color: #F4F4F5;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}
.ats-top-row { display: flex; justify-content: space-between; align-items: baseline; }
.ats-badge-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #A1A1AA; }
.ats-badge-score { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 32px; line-height: 1; color: #A5B4FC; }
.ats-progress-track { height: 6px; border-radius: 3px; background: #3F3F46; overflow: hidden; }
.ats-progress-fill { height: 100%; border-radius: 3px; background: #A5B4FC; transition: width 1s ease-out; }
.ats-meta-row { display: flex; justify-content: space-between; font-size: 13px; color: #D4D4D8; }
.ats-meta-status { color: #A5B4FC; font-weight: 600; }

/* ATS strip */
.ats-strip { padding: 34px 0 10px; }
.ats-strip p { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.ats-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; }
.ats-logos span { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 22px; color: #9AA1B2; letter-spacing: -0.02em; }

/* Intro (SEO copy) */
.intro { padding: 56px 0 0; }
.intro-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: 40px 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
}
.intro-box h2 { font-size: 30px; font-weight: 700; }
.intro-box p { color: var(--ink-2); font-size: 16.5px; }
.intro-box p + p { margin-top: 12px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; counter-reset: step; }
.step { position: relative; padding: 32px 28px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step-num {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 19px; color: #fff; background: var(--grad);
  margin-bottom: 22px; box-shadow: 0 10px 20px -10px rgba(67,56,202,.8);
}
.step h3 { font-size: 23px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }
.steps-cta { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- Templates ---------- */
.tpl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.tpl-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 44px 24px 28px; margin: 0 -24px;
  scrollbar-width: thin; scrollbar-color: #C8CCE0 transparent; overscroll-behavior-x: contain;
}
.tpl { scroll-snap-align: start; }
.tpl-thumb {
  position: relative; display: block; border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); aspect-ratio: 480 / 679;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.tpl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tpl-thumb .use {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 8px); opacity: 0;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tpl-thumb:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
  .tpl-thumb:hover .use { opacity: 1; transform: translate(-50%, 0); }
}
.tpl-meta { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px 0; }
.tpl-meta b { font-weight: 600; font-size: 15.5px; }
.tag { font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 4px 9px; border-radius: 999px; }
.tpl-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: border-color .15s, color .15s, background-color .15s;
}
@media (hover: hover) { .chip:hover { border-color: var(--accent); color: var(--accent); } }

/* ---------- Feature grid ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.feat { padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: box-shadow .25s var(--ease-out), border-color .25s; }
@media (hover: hover) { .feat:hover { box-shadow: var(--shadow); border-color: transparent; } }
.feat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.feat-ic svg { width: 24px; height: 24px; }
.feat h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.feat p { font-size: 16px; color: var(--muted); }

/* ---------- Alternating feature rows ---------- */
.rows { display: flex; flex-direction: column; gap: 120px; margin-top: 72px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.row:nth-child(even) .row-media { order: 2; }
.row-copy h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; margin: 12px 0 16px; }
.row-copy > p { color: var(--muted); font-size: 18px; margin-bottom: 22px; }
.checks { display: grid; gap: 12px; margin-bottom: 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 16.5px; }
.checks li svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.row-media {
  position: relative; border-radius: 24px; padding: 36px; min-height: 420px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(150deg, #EEF0FF 0%, #F7F2FF 55%, #FFF0F7 100%);
  border: 1px solid #E6E3FA;
}
.row-media.dark { background: radial-gradient(500px 300px at 80% 0%, rgba(109,93,246,.35), transparent 70%), var(--dark); border-color: var(--dark); }

/* Mock: AI writer */
.mock { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 22px; border: 1px solid var(--line); }
.mock-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mock-before { font-size: 14.5px; color: #8A90A2; text-decoration: line-through; text-decoration-color: #F0A6B6; background: #FFF6F8; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.mock-after { font-size: 14.5px; color: var(--ink); background: var(--green-soft); border-radius: 10px; padding: 12px 14px; line-height: 1.55; }
.mock-after b { color: var(--green); }
.mock-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mock-actions span { font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); }
.mock-actions span.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Mock: ATS */
.ats-mock { width: 100%; max-width: 440px; color: #fff; }
.ats-ring { display: flex; align-items: center; gap: 22px; padding: 22px; background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; margin-bottom: 14px; }
.ring { --p: 96; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#34D399 calc(var(--p) * 1%), rgba(255,255,255,.1) 0); }
.ring span { width: 74px; height: 74px; border-radius: 50%; background: var(--dark-2); display: grid; place-items: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 24px; }
.ats-ring h4 { color: #fff; font-size: 19px; margin-bottom: 4px; }
.ats-ring p { color: #A3AAC2; font-size: 14px; }
.kw { padding: 18px 22px; background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; }
.kw .mock-label { color: #A3AAC2; }
.kw-list { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-list span { font-size: 13px; padding: 6px 11px; border-radius: 999px; background: rgba(52, 211, 153, .14); color: #6EE7B7; }
.kw-list span.miss { background: rgba(251, 113, 133, .14); color: #FDA4AF; }

/* Mock: tailor */
.jd { width: 100%; max-width: 440px; display: grid; gap: 12px; }
.jd-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jd-card b { display: block; font-size: 15.5px; }
.jd-card small { color: var(--muted); font-size: 13px; }
.match { font-weight: 700; font-size: 14px; padding: 6px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.match.mid { background: #FFF4E0; color: #B7791F; }

/* Mock: headshot */
.shots { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; max-width: 440px; margin: 0 auto; }
.shot { position: relative; flex: 0 1 185px; width: 185px; aspect-ratio: 3 / 4; max-width: 44%; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 4px solid #fff; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.shot span { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(11,16,32,.75); color: #fff; line-height: 1.3; }
.shot.after span { background: var(--accent); }
.shots .arrow { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--accent); box-shadow: var(--shadow-sm); flex-shrink: 0; }
.shots .arrow svg { width: 16px; height: 16px; display: block; }

/* Mock: phone */
.phone { width: 288px; max-width: 100%; border-radius: 36px; background: var(--dark); padding: 10px; box-shadow: var(--shadow-lg); }
.phone-screen { width: 100%; border-radius: 28px; overflow: hidden; background: #fff; position: relative; padding-top: 26px; }
.phone-screen img { width: 100%; height: auto; display: block; }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 76px; height: 18px; border-radius: 20px; background: var(--dark); z-index: 2; }

/* ---------- Resume examples ---------- */
.ex-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.ex {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  font-weight: 600; font-size: 15.5px; transition: border-color .15s, box-shadow .2s, color .15s;
}
.ex svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s var(--ease-out), color .15s; }
@media (hover: hover) {
  .ex:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-sm); }
  .ex:hover svg { color: var(--accent); transform: translateX(3px); }
}
.ex-cta { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Comparison ---------- */
.compare-wrap { margin-top: 52px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 16px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 700; background: var(--bg-soft); }
.compare thead th.us { background: var(--accent); color: #fff; }
.compare td.us { background: #F7F6FF; font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.yes { color: var(--green); }
.no { color: #C2C7D3; }
.compare svg { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }

/* ---------- Reviews ---------- */
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.score-box { display: flex; align-items: center; gap: 16px; padding: 16px 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.score-box strong { font-family: 'Bricolage Grotesque', sans-serif; font-size: 40px; font-weight: 800; line-height: 1; }
.score-box small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.reviews { columns: 3; column-gap: 20px; margin-top: 48px; }
.review { break-inside: avoid; margin-bottom: 20px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.review .stars { margin-bottom: 14px; }
.review blockquote { font-size: 16.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 18px; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: var(--grad); }
.review figcaption b { display: block; font-size: 15px; }
.review figcaption small { color: var(--muted); font-size: 13.5px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 34px 30px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.plan h3 { font-size: 24px; font-weight: 700; }
.plan .desc { color: var(--muted); font-size: 15px; margin-top: 4px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-family: 'Bricolage Grotesque', sans-serif; font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price span { color: var(--muted); }
.plan ul { display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.plan li svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.plan .btn { width: 100%; }
.plan.featured { background: var(--dark); border-color: var(--dark); color: #fff; box-shadow: var(--shadow-lg); }
.plan.featured h3, .plan.featured .price strong { color: #fff; }
.plan.featured .desc, .plan.featured .price span { color: #A3AAC2; }
.plan.featured li { color: #E3E6F0; }
.plan.featured li svg { color: #A5B4FC; }
.plan-badge { position: absolute; top: -13px; left: 30px; background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; letter-spacing: .02em; }
.price-note { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 26px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side p { color: var(--muted); margin-bottom: 24px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-weight: 600; font-size: 18px; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: 0; line-height: 1.4; }
.faq-list summary .pm { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); flex-shrink: 0; transition: background-color .2s; }
.faq-list summary .pm::before, .faq-list summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .25s var(--ease-out); }
.faq-list summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] summary .pm { background: var(--accent-soft); }
.faq-list details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-list .answer { padding: 0 48px 24px 0; color: var(--ink-2); font-size: 16.5px; }
.faq-list .answer p + p { margin-top: 10px; }

/* ---------- Guide (long-form SEO) ---------- */
.guide { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.toc { position: sticky; top: 110px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.toc b { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0; font-size: 15px; color: var(--ink-2); }
@media (hover: hover) { .toc a:hover { color: var(--accent); } }
.prose { max-width: 760px; color: var(--ink-2); font-size: 17.5px; line-height: 1.75; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 700; margin: 0 0 18px; }
.prose h3 { font-size: 24px; font-weight: 700; margin: 40px 0 12px; scroll-margin-top: 100px; }
.prose p { margin-bottom: 16px; }
.prose ol, .prose ul { margin: 0 0 18px 22px; }
.prose ol { list-style: decimal; }
.prose ul { list-style: disc; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.callout { margin: 28px 0; padding: 22px 24px; border-radius: 16px; background: var(--accent-soft); border-left: 4px solid var(--accent); color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.final { padding: 0 0 112px; }
.final-box {
  position: relative; overflow: hidden; border-radius: 32px; padding: 80px 48px; text-align: center; color: #fff;
  background: radial-gradient(600px 300px at 15% 0%, rgba(231,72,155,.45), transparent 70%), radial-gradient(700px 360px at 90% 100%, rgba(109,93,246,.6), transparent 70%), var(--dark);
}
.final-box h2 { color: #fff; font-size: clamp(34px, 5vw, 58px); font-weight: 800; max-width: 820px; margin: 0 auto 18px; }
.final-box p { color: #C3C8DA; font-size: 19px; max-width: 560px; margin: 0 auto 34px; }
.final-box .hero-note { justify-content: center; margin-top: 22px; color: #C3C8DA; }
.final-box .hero-note svg { color: #6EE7B7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 72px 0 36px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.foot-brand p { color: var(--muted); margin: 14px 0 0; max-width: 280px; }
.foot-col h3 { font-family: 'Instrument Sans', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--muted); padding: 5px 0; }
@media (hover: hover) { .foot-col a:hover { color: var(--accent); } }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-langs a { color: var(--muted); }
.foot-langs a:hover { color: var(--accent); }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta { display: none; }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 10px; font-size: 14.5px; }
  .nav-login { display: none; }
  .hero-grid { gap: 32px; }
  .ex-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .section { padding: 84px 0; }
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility .2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 6px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-note { justify-content: center; }
  .hero-stats { margin-left: auto; margin-right: auto; text-align: left; }
  .hero-visual-wrapper { max-width: 520px; margin: 0 auto; align-self: center; }
  .intro-box { grid-template-columns: 1fr; gap: 16px; padding: 30px 26px; }
  .steps, .feat-grid, .price-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .row, .faq-grid, .guide { grid-template-columns: 1fr; gap: 40px; }
  .row:nth-child(even) .row-media { order: 0; }
  .rows { gap: 84px; }
  .row-media { min-height: 340px; padding: 28px 20px; }
  .reviews { columns: 2; }
  .faq-side, .toc { position: static; }
  .toc { display: none; }
  .price-grid { max-width: 480px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 68px 0; }
  .nav-actions .btn { display: none; }
  .rating-pill { font-size: 12.5px; padding: 5px 10px 5px 5px; gap: 6px; max-width: 100%; }
  .rating-pill .stars { padding: 3px 5px; gap: 1px; }
  .rating-pill .stars svg { width: 13px; height: 13px; }
  .hero h1 { font-size: clamp(28px, 7.8vw, 36px); overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
  .hero-sub { font-size: 16.5px; }
  .hero-ctas .btn { width: 100%; }
  .hero-stats { width: 100%; max-width: 100%; }
  .hero-stats > div { min-width: 0; }
  .hero-stats strong { font-size: 24px; }
  .hero-stats span { font-size: 12.5px; }
  .hero-stats > div + div { padding-left: 12px; }
  .hero-visual-wrapper { flex-direction: column; padding: 0; }
  .hero-mockup-frame { max-width: 100%; border-radius: 16px; }
  .mockup-header-bar { height: 34px; padding: 0 12px; }
  .mockup-url-bar { font-size: 10px; max-width: 180px; padding: 0 6px; }
  .hero-floating-ats { position: static; width: 100%; margin-top: 14px; border-radius: 14px; padding: 16px; }
  .ats-badge-score { font-size: 28px; }
  .ats-logos { gap: 10px 26px; }
  .ats-logos span { font-size: 17px; }
  .lead { font-size: 17px; }
  .feat-grid { grid-template-columns: 1fr; }
  .tpl-rail { grid-auto-columns: 72%; padding: 32px 18px 24px; margin: 0 -18px; scroll-padding: 0 18px; }
  .ex-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ex { padding: 15px 14px; font-size: 14.5px; }
  .reviews { columns: 1; }
  .row-media { padding: 22px 10px; }
  .shots { gap: 8px; }
  .shots .arrow { width: 28px; height: 28px; }
  .shots .arrow svg { width: 13px; height: 13px; }
  .shot { flex: 1 1 0; min-width: 0; max-width: 145px; width: auto; height: auto; aspect-ratio: 3 / 4; border-radius: 12px; border-width: 3px; }
  .shot span { font-size: 11px; padding: 2px 7px; left: 6px; bottom: 6px; }
  .faq-list summary { font-size: 16.5px; }
  .faq-list .answer { padding-right: 0; }
  .final { padding-bottom: 96px; }
  .final-box { padding: 56px 22px; border-radius: 24px; }
  .final-box .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .sticky-cta {
    display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
    transform: translateY(140%); transition: transform .3s var(--ease-out);
  }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { width: 100%; box-shadow: 0 18px 40px -12px rgba(67,56,202,.75); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
