/* =========================================================
   CV Fit AI — landing page
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #061B32;
    --navy-deep: #082B43;
    --teal-dark: #006F73;
    --teal: #008C88;
    --mint: #8FEDE0;
    --mint-soft: #DDF8F3;
    --mint-faint: #EFFBF8;
    --paper: #FAFAF7;
    --text: #071B32;
    --text-2: #52667B;
    --border: #DCEBE8;
    --shadow-card: 0 18px 40px -18px rgba(6, 27, 50, .28), 0 2px 6px rgba(6, 27, 50, .06);
    --font-head: 'Sora', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --maxw: 1240px;
}

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* ---------- Background decorations ---------- */
.bg-decor { position: absolute; inset: 0 0 auto 0; height: 1180px; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; }
.blob-tl  { left: -120px; top: -40px; width: 460px; height: 520px; }
.blob-l   { left: -90px; top: 360px; width: 240px; height: 360px; }
.blob-tr  { right: -60px; top: -30px; width: 460px; height: 320px; }
.blob-mid { right: -140px; top: 120px; width: 820px; height: 640px; }
.hero-zone { position: relative; }
.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 240px; z-index: 0; pointer-events: none; }
.hero, .facts { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 16px; z-index: 40;
    padding: 0 20px;
}
.site-header-inner {
    max-width: var(--maxw); margin: 16px auto 0;
    display: flex; align-items: center; gap: 24px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 12px 24px;
    box-shadow: 0 10px 30px -18px rgba(6, 27, 50, .22);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-icon { height: 48px; width: auto; }
.brand-word { height: 21px; width: auto; }

.nav-panel { display: flex; align-items: center; flex: 1; gap: 24px; }
.main-nav { display: flex; gap: 44px; margin: 0 auto 0 56px; }
.main-nav a {
    text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text);
    padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--teal-dark); border-color: var(--mint); }

.auth-actions { display: flex; align-items: center; gap: 14px; }
.user-area form { display: inline; }

.credits-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--mint-soft); color: var(--teal-dark);
    border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600;
}

.nav-toggle {
    display: none; margin-left: auto;
    width: 46px; height: 46px; border-radius: 14px;
    background: #fff; border: 1px solid var(--border); cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 600 15px/1 var(--font-body);
    text-decoration: none; cursor: pointer;
    border-radius: 16px; padding: 16px 24px; border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-light { background: #fff; border-color: var(--border); color: var(--text); box-shadow: 0 1px 0 rgba(6,27,50,.03); }
.btn-light:hover { border-color: var(--mint); background: var(--mint-faint); }
.btn-navy { background: linear-gradient(135deg, var(--navy-deep), var(--teal-dark)); color: #fff; box-shadow: 0 10px 22px -12px rgba(0, 63, 80, .7); }
.btn-navy:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(0, 63, 80, .8); }
.btn-mint { background: var(--mint); color: var(--navy); box-shadow: 0 12px 26px -14px rgba(143, 237, 224, .9); }
.btn-mint:hover { background: #a6f2e7; transform: translateY(-1px); }
.btn-ghost { background: rgba(6, 27, 50, .35); border-color: rgba(143, 237, 224, .35); color: #fff; }
.btn-ghost:hover { border-color: var(--mint); background: rgba(6, 27, 50, .55); }
.btn-lg { padding: 20px 30px; font-size: 17px; border-radius: 18px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
main { position: relative; z-index: 1; }

.hero {
    max-width: var(--maxw); margin: 0 auto;
    padding: 48px 20px 40px;
    display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 24px;
    align-items: start;
}
.hero-copy { position: relative; z-index: 2; padding-top: 4px; }

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--mint-soft); border: 1px solid #C6EEE6; color: var(--teal-dark);
    border-radius: 999px; padding: 9px 18px; font: 600 12.5px/1 var(--font-body); letter-spacing: .1em;
}

.hero-title {
    font-family: var(--font-head); font-weight: 800;
    font-size: clamp(2.7rem, 5.3vw, 4.7rem);
    line-height: 1.02; letter-spacing: -.045em;
    margin: 28px 0 24px;
}
.hero-title span { display: block; white-space: nowrap; }
.t-navy { color: var(--navy); }
.t-teal { background: linear-gradient(90deg, var(--teal-dark), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }

.hero-lead { max-width: 580px; font-size: 1.3rem; line-height: 1.5; color: var(--text-2); }

/* steps */
.steps { display: flex; align-items: center; gap: 12px; margin: 34px 0 34px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; position: relative; }
.step-num {
    flex: none; width: 28px; height: 28px; border-radius: 50%;
    background: var(--teal); color: #fff; display: inline-grid; place-items: center;
    font: 700 13px/1 var(--font-body);
}
.step-icon {
    flex: none; width: 54px; height: 54px; border-radius: 50%;
    background: var(--mint-soft); display: grid; place-items: center; color: var(--teal-dark);
}
.step-icon svg, .trust-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step-label { font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--text); }
.step-arrow { color: #9fb4b1; font-size: 18px; margin: 0 4px; }

/* alerts */
.alert { border-radius: 14px; padding: 14px 18px; font-size: 14px; margin-bottom: 18px; max-width: 620px; }
.alert-error { background: #FDECEC; border: 1px solid #F5C2C2; color: #8A1F1F; }
.alert-credits { background: #FFF6E0; border: 1px solid #F1DFA6; color: #6B5200; display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.alert-credits a { font-weight: 600; color: var(--teal-dark); }

/* CTA card */
.cta-card {
    position: relative; overflow: hidden; max-width: 668px;
    background: linear-gradient(120deg, #06233b 0%, var(--navy-deep) 55%, #07414f 100%);
    border-radius: 26px; color: #fff; text-align: center;
    box-shadow: 0 30px 50px -30px rgba(6, 27, 50, .7);
}
.cta-camo { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-body { position: relative; padding: 44px 40px 40px; }
.cta-card h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.35rem); letter-spacing: -.03em; line-height: 1.15; }
.cta-card p { margin: 12px 0 28px; color: #dbeceb; font-size: 1.05rem; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-buttons .btn-mint { min-width: 310px; }
.cta-buttons .btn-ghost { min-width: 172px; }

/* form card (signed-in users) */
.form-card { text-align: left; padding: 36px 36px 32px; }
.form-card h2 { margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #bfe9e2; margin-bottom: 8px; }
.upload-zone {
    position: relative; border: 1.5px dashed rgba(143, 237, 224, .5); border-radius: 16px;
    background: rgba(255,255,255,.05); padding: 26px 20px; text-align: center; cursor: pointer;
    transition: border-color .2s, background .2s;
}
.upload-zone:hover, .upload-zone:focus-within { border-color: var(--mint); background: rgba(255,255,255,.09); }
.upload-zone.has-file { border-color: var(--mint); border-style: solid; }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-text { color: #e8f7f5; font-size: 15px; }
.file-selected { display: none; margin-top: 8px; color: var(--mint); font-weight: 600; font-size: 14px; word-break: break-all; }
textarea {
    width: 100%; min-height: 140px; resize: vertical;
    background: rgba(255,255,255,.07); color: #fff;
    border: 1px solid rgba(143, 237, 224, .35); border-radius: 14px; padding: 14px 16px;
    font: 400 15px/1.5 var(--font-body);
}
textarea::placeholder { color: #9fc4c4; }
textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(143,237,224,.25); }
#jd-word-count { display: block; margin-top: 6px; color: #a9d3d1; font-size: 12.5px; }
#jd-word-count.over { color: #ffb4b4; }

/* trust features */
.trust { display: flex; gap: 22px; margin-top: 30px; max-width: 700px; flex-wrap: wrap; }
.trust li { display: flex; align-items: center; gap: 12px; flex: 1 1 190px; }
.trust-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--mint-soft); color: var(--teal-dark); display: grid; place-items: center; }
.trust-icon svg { width: 22px; height: 22px; }
.trust strong { display: block; font-size: 14px; font-weight: 600; }
.trust small { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.35; }

/* ---------- Hero illustration ---------- */
.hero-art { container-type: inline-size; position: relative; z-index: 1; margin-top: -8px; margin-right: calc(-1 * clamp(0px, calc((100vw - 1240px) / 2 + 20px - 36px), 90px)); }
.stage {
    position: relative; width: 62em; height: 76em;
    font-size: calc(100cqw / 62);
    left: 0;
}
.stage > * { position: absolute; }
.chameleon { left: 15em; top: -4em; width: 46em; height: auto; opacity: .7; }
.flow-arrows { left: 0; top: 0; width: 62em; height: 76em; overflow: visible; z-index: 3; }

.card {
    background: #fff; border: 1px solid #EDF1F0; border-radius: 1.8em; box-shadow: var(--shadow-card);
    padding: 1.7em 1.8em;
}
.card-head { display: flex; align-items: center; gap: .9em; font: 700 1.3em/1 var(--font-head); white-space: nowrap; letter-spacing: -.01em; color: var(--navy); margin-bottom: 1em; }
.chip-icon { width: 2.9em; height: 2.9em; border-radius: .9em; background: #F1F4F4; display: inline-grid; place-items: center; color: var(--navy); flex: none; }
.chip-icon svg { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.doc { background: #fff; border: 1px solid #EEF1F1; border-radius: 1.2em; padding: 1.3em 1.5em 1.5em; box-shadow: 0 6px 14px -10px rgba(6,27,50,.25); }
.doc b { display: block; font: 700 1.4em/1.2 var(--font-head); color: var(--navy); letter-spacing: -.01em; }
.doc span { display: block; font-size: 1.15em; color: var(--text-2); margin: .2em 0 1em; }
.ln { display: block; height: .7em; border-radius: .4em; background: #E1E6EA; margin: .75em 0; }
.ln.hl { background: var(--mint); height: .8em; }
.ln.hl2 { background: #A9F0E6; }
.w95 { width: 95%; } .w90 { width: 90%; } .w85 { width: 85%; } .w80 { width: 80%; } .w75 { width: 75%; }
.w70 { width: 70%; } .w65 { width: 65%; } .w60 { width: 60%; } .w55 { width: 55%; }
.bul { display: flex; align-items: center; gap: .8em; }
.bul .ln { flex: 1; margin: .55em 0; }
.dot { width: .65em; height: .65em; border-radius: 50%; background: #6c7b8a; flex: none; }
.dot.hl { background: var(--teal); }

.card-resume { left: 1.500em; top: 19.500em; width: 23.500em; transform: rotate(5deg); z-index: 2; }
.file-chip {
    left: -.2em; top: 36em; width: 22.500em; z-index: 4; transform: rotate(2deg);
    display: flex; align-items: center; gap: 1.1em; background: #fff; border-radius: 1.5em; padding: 1.2em 1.4em;
    box-shadow: var(--shadow-card); border: 1px solid #EDF1F0;
}
.file-meta b { display: block; font: 600 1.2em/1.2 var(--font-body); color: var(--navy); }
.file-meta small { font-size: 1.05em; color: var(--text-2); }
.ok { margin-left: auto; width: 2.2em; height: 2.2em; border-radius: 50%; background: #2fc16b; display: grid; place-items: center; flex: none; }
.ok svg { width: 1.2em; height: 1.2em; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.card-job { left: 36em; top: 22.500em; width: 24em; transform: rotate(7deg); z-index: 1; }
.src { display: flex; align-items: center; gap: .6em; background: #F7F9F9; border: 1px solid #E5EBEB; border-radius: .8em; padding: .8em 1em; font-size: 1.05em; color: var(--text-2); margin-top: 1.2em; }
.src svg { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-job .doc span { margin-bottom: .6em; }

.ai-badge {
    left: 24.500em; top: 41.500em; width: 14.5em; z-index: 5;
    display: flex; align-items: center; gap: 1em; padding: 1.4em 1.4em;
    background: linear-gradient(135deg, #061B32, #082B43 60%, #064049); color: #fff; border-radius: 1.8em;
    box-shadow: 0 20px 34px -16px rgba(6,27,50,.7); 
}
.ai-badge > span { white-space: nowrap; font: 600 1.15em/1.3em var(--font-body); }
.spark { width: 3em; height: 3em; color: #fff; flex: none; animation: pulse 3.600s ease-in-out infinite; }

.card-out { left: 9.500em; top: 49.500em; width: 37em; transform: rotate(6deg); z-index: 2; }
.matched { margin-left: auto; background: var(--mint-soft); border: 1px solid #BFEDE4; color: var(--teal-dark); border-radius: 999px; padding: .6em 1.1em; font: 600 .95em/1 var(--font-body); white-space: nowrap; }
.doc.out { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2em; padding: 1.5em 1.7em 1.7em; }
.out-right { padding-top: 1.2em; }
.out-right .ln { background: #E6EAED; }

.checklist { animation: cardin .8s 1.1s ease both; left: 48em; top: 58em; width: 14em; z-index: 3; color: var(--text-2); transform: rotate(-9deg); }
.checklist li { font: 500 1.12em/1 var(--font-body); }
.checklist li { display: flex; align-items: center; gap: .6em; margin-bottom: 1.2em; }
.ck { width: 1.7em; height: 1.7em; border: 1.5px solid var(--teal); color: var(--teal); border-radius: 50%; display: inline-grid; place-items: center; font-size: .8em; flex: none; }

/* floating motion (very subtle) */
.float { animation: cardin .8s ease both, floaty 7s ease-in-out infinite; }
.f1 { animation-delay: .5s, 0s; } .f2 { animation-delay: .62s, -1.5s; } .f3 { animation-delay: .74s, -3s; } .f4 { animation-delay: .86s, -4.5s; } .f5 { animation-delay: .98s, -2.3s; }
@keyframes cardin { from { opacity: 0; } to { opacity: 1; } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.55em; } }
@keyframes pulse { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.08) rotate(6deg); opacity: .85; } }
.flow-arrows { animation: arrowpulse 3.6s ease-in-out infinite; }
@keyframes arrowpulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* entrance */
.site-header-inner, .badge, .hero-title, .hero-lead, .steps, .cta-card, .trust, .alert { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.badge { animation-delay: .08s; } .hero-title { animation-delay: .16s; } .hero-lead { animation-delay: .24s; }
.steps { animation-delay: .32s; } .cta-card { animation-delay: .4s; } .trust { animation-delay: .48s; }
.hero-art .chameleon { animation: fade 1.2s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: .7; } }

/* ---------- Facts row ---------- */
.facts { max-width: var(--maxw); margin: 24px auto 0; padding: 0 20px 110px; text-align: center; }
.facts-title { font-size: 12px; letter-spacing: .18em; color: var(--text-2); margin-bottom: 20px; }
.facts ul { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; }
.facts li { font-size: 14.5px; color: var(--text-2); }
.facts strong { color: var(--navy); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 84px 20px; }
.section-tint { background: linear-gradient(180deg, var(--mint-faint), var(--paper)); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-inner.narrow { max-width: 820px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; font-weight: 600; color: var(--teal); margin-bottom: 14px; }
.section-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.035em; line-height: 1.12; max-width: 720px; }
.section-lead { color: var(--text-2); margin-top: 14px; font-size: 1.05rem; max-width: 640px; }

.how-grid, .price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.how-card, .price-card {
    background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 32px 30px;
    box-shadow: 0 18px 36px -28px rgba(6,27,50,.35);
}
.how-card h3, .price-card h3 { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: -.02em; margin: 18px 0 10px; }
.how-card p { color: var(--text-2); font-size: .98rem; }

.price-card { position: relative; text-align: left; }
.price-card h3 { margin-top: 0; }
.price-card.featured { border-color: var(--teal); box-shadow: 0 24px 44px -26px rgba(0,111,115,.55); }
.price-flag { position: absolute; top: -14px; right: 24px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.price { font: 800 2.6rem/1.1 var(--font-head); letter-spacing: -.04em; margin: 8px 0 4px; }
.price-sub { color: var(--text-2); font-size: .95rem; margin-bottom: 24px; }

.faq { background: #fff; border: 1px solid var(--border); border-radius: 18px; margin-top: 14px; }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--teal); line-height: 1; }
.faq[open] summary::after { content: '–'; }
.faq p { padding: 0 24px 22px; color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); background: #fff; }
.site-footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-footer .brand-icon { height: 36px; } .site-footer .brand-word { height: 15px; }
.site-footer nav { display: flex; gap: 24px; margin-left: auto; }
.site-footer nav a { text-decoration: none; font-size: 14px; color: var(--text-2); } .site-footer nav a:hover { color: var(--teal-dark); }
.site-footer p { font-size: 13px; color: var(--text-2); }

/* ---------- Loading overlay ---------- */
.loading-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(250, 250, 247, .94); flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.loading-overlay.active { display: flex; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--mint-soft); border-top-color: var(--teal); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font: 700 1.2rem var(--font-head); }
.loading-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.loading-step { color: #8aa0a0; font-size: 14px; display: flex; gap: 10px; }
.loading-step::before { content: '○'; }
.loading-step.active { color: var(--navy); }
.loading-step.active::before { content: '◉'; color: var(--teal); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .main-nav { gap: 26px; margin-left: 24px; }
    .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
    .hero-title { font-size: clamp(2.4rem, 5.4vw, 3.6rem); }
    .steps { gap: 8px; }
    .step-icon { width: 46px; height: 46px; }
}

@media (max-width: 1020px) {
    .nav-toggle { display: inline-flex; }
    .nav-panel {
        display: none; position: absolute; left: 20px; right: 20px; top: calc(100% + 10px);
        flex-direction: column; align-items: stretch; gap: 18px;
        background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 20px;
        box-shadow: 0 24px 40px -20px rgba(6,27,50,.35);
    }
    .nav-panel.open { display: flex; }
    .site-header { top: 8px; }
    .site-header-inner { position: relative; padding: 10px 14px 10px 18px; }
    .main-nav { flex-direction: column; gap: 4px; margin: 0; }
    .main-nav a { padding: 12px 6px; font-size: 16px; }
    .auth-actions { flex-direction: column; align-items: stretch; }
    .auth-actions .btn { width: 100%; }
    .site-header-inner { gap: 0; }

    .hero { grid-template-columns: 1fr; padding-top: 32px; }
    .hero-art { max-width: 680px; width: 100%; margin: 24px auto 0; order: 2; }
    .hero-copy { order: 1; }
    .cta-card { max-width: none; }
    .bg-decor { height: 1400px; }
    .how-grid, .price-grid { grid-template-columns: 1fr; }
}

/* Single-column layout (tablet / narrow windows): centre content on the page's vertical axis */
@media (max-width: 1020px) {
    .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero-lead { max-width: 52ch; margin-inline: auto; }
    .cta-card { margin-inline: auto; }
    .trust { justify-content: center; }
    .section-inner, .section-title, .section-lead, .eyebrow { text-align: center; margin-inline: auto; }
    .how-card, .price-card { text-align: center; }
    .how-card .step-num { margin-inline: auto; display: grid; }
    .price-flag { right: 50%; transform: translateX(50%); }
    .faq summary { justify-content: center; text-align: center; }
    .faq p { text-align: center; }
    .site-footer-inner { flex-direction: column; text-align: center; gap: 18px; }
    .site-footer nav { justify-content: center; flex-wrap: wrap; margin-left: 0; width: 100%; }
}

@media (max-width: 640px) {
    .brand-icon { height: 40px; } .brand-word { height: 17px; }
    .hero { padding: 24px 16px 24px; }
    .hero-title { font-size: clamp(2.2rem, 10.5vw, 3rem); margin: 22px 0 18px; }
    .hero-title span { white-space: normal; }
    .hero-lead { font-size: 1.08rem; }
    .hero-lead br { display: none; }
    .card-head { flex-wrap: wrap; row-gap: .6em; }
    .steps { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 26px 0; }
    .step-arrow { display: none; }
    .cta-body { padding: 34px 20px 28px; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; min-width: 0 !important; }
    .form-card { padding: 28px 20px; }
    .trust { flex-direction: column; gap: 16px; }
    .trust li { flex: none; }
    .hero-art { margin-top: 36px; }
    .chameleon { opacity: .6; }

    /* mobile illustration: stacked composition instead of a shrunken desktop scene */
    .hero-art { margin-top: 28px; margin-right: 0; }
    .stage { width: 100%; height: auto; font-size: 12.5px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding-top: 150px; }
    .stage > * { position: relative; left: auto !important; top: auto !important; width: auto !important; }
    .chameleon { position: absolute !important; right: -24px; top: 0 !important; width: 230px !important; left: auto !important; }
    .flow-arrows { display: none; }
    .checklist { transform: none; padding-left: 8px; }
    .card-resume, .card-job, .card-out { transform: rotate(0); padding: 1.3em; }
    .card-resume { transform: rotate(-1.5deg); } .card-job { transform: rotate(1.5deg); } .card-out { transform: rotate(-1deg); }
    .file-chip { transform: none; margin-top: -4px; }
    .ai-badge { align-self: center; width: auto !important; }
    .mobile-check { display: block; }
    .facts { padding-bottom: 70px; }
    .section { padding: 60px 16px; }
    .site-header { padding: 0 12px; }
    .blob-tl, .blob-mid { opacity: .7; }
    .site-footer nav { margin-left: 0; width: 100%; }

    /* ---- phone: everything on the page's vertical centre axis ---- */
    .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero-lead { max-width: 34ch; margin-inline: auto; }
    .steps { grid-template-columns: repeat(3, 1fr); gap: 8px; justify-items: center; width: 100%; }
    .step { flex-direction: column; text-align: center; gap: 8px; }
    .step-label { font-size: 13px; }
    .matched { margin-left: 0; }
    .doc.out .out-left { text-align: center; }
    .alert, .alert-credits { text-align: center; justify-content: center; }
    .cta-card { width: 100%; }
    .form-card, .form-card form { text-align: center; }
    .form-card .field label { text-align: left; }
    .trust { align-items: center; }
    .trust li { flex-direction: column; text-align: center; gap: 8px; max-width: 26ch; }
    .chameleon { left: 50% !important; right: auto !important; transform: translateX(-50%); }
    .stage > .card, .stage > .file-chip { margin-inline: auto; width: 100% !important; max-width: 420px; }
    .card-head { justify-content: center; text-align: center; }
    .doc { text-align: center; }
    .doc .bul, .doc.out { text-align: left; }
    .doc .ln { margin-inline: auto; }
    .bul .ln { margin-inline: 0; }
    .src { justify-content: center; }
    .file-chip { justify-content: center; text-align: left; }
    .checklist { align-self: center; width: auto !important; }
    .checklist li { justify-content: flex-start; }
    .section-inner, .section-title, .section-lead, .eyebrow { text-align: center; margin-inline: auto; }
    .how-card, .price-card { text-align: center; }
    .how-card .step-num { margin-inline: auto; display: grid; }
    .price-flag { right: 50%; transform: translateX(50%); }
    .faq summary { justify-content: center; text-align: center; }
    .faq p { text-align: center; }
    .site-footer-inner { flex-direction: column; text-align: center; gap: 18px; }
    .site-footer nav { justify-content: center; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .hero-art .chameleon { opacity: .7; }
}


