/* Palier — editorial guide on salary and negotiation.
   Palette: aubergine ink, violet brand, amber accent on a pale lilac paper.
   Type: Fraunces (headings) + Figtree (text). Class prefix: pl- */

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

:root {
    --pl-bg: #f5f2f9;
    --pl-card: #ffffff;
    --pl-line: #ddd5ea;
    --pl-ink: #231a36;
    --pl-soft: #5b5170;
    --pl-brand: #4b3a9e;
    --pl-brand-dk: #3a2c7d;
    --pl-tint: #ebe7f7;
    --pl-amber: #f0a53a;
    --pl-amber-tint: #fdf1dc;
    --pl-err: #b3261e;
    --pl-ok: #2d6a4f;
    --pl-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --pl-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --pl-radius: 18px;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    background: var(--pl-bg);
    color: var(--pl-ink);
    font-family: var(--pl-sans);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pl-brand); text-underline-offset: 3px; }
a:hover { color: var(--pl-brand-dk); }
h1, h2, h3 { font-family: var(--pl-serif); font-weight: 700; color: var(--pl-ink); }
:focus-visible { outline: 3px solid var(--pl-amber); outline-offset: 2px; border-radius: 6px; }

.pl-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

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

/* ---- header ---- */
.pl-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--pl-line); backdrop-filter: blur(6px); }
.pl-head__row { display: flex; align-items: center; gap: 22px; padding-top: 12px; padding-bottom: 12px; }
.pl-nav { display: flex; gap: 20px; margin-left: auto; }
.pl-nav a { color: var(--pl-soft); font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.pl-nav a:hover { color: var(--pl-ink); border-bottom-color: var(--pl-amber); }
.pl-head__cta {
    background: var(--pl-ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
    padding: 10px 18px; border-radius: 999px; white-space: nowrap;
}
.pl-head__cta:hover { background: var(--pl-brand-dk); color: #fff; }

/* ---- logo ---- */
.pl-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--pl-ink); }
.pl-logo__mark { flex: none; }
.pl-logo__txt { display: flex; flex-direction: column; line-height: 1; }
.pl-logo__name { font-family: var(--pl-serif); font-weight: 700; font-size: 25px; letter-spacing: -.01em; color: var(--pl-ink); }
.pl-logo__name i { font-style: normal; color: var(--pl-amber); }
.pl-logo__tag { margin-top: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pl-soft); }
.pl-logo--light .pl-logo__name { color: #fff; }
.pl-logo--light .pl-logo__tag { color: #b9afd2; }

/* ---- hero ---- */
.pl-hero { padding: 40px 0 8px; }
.pl-adlabel {
    display: inline-block; margin: 0 0 18px; padding: 5px 15px;
    border: 1.5px solid var(--pl-ink); border-radius: 999px; background: #fff;
    font-size: 13.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--pl-ink);
}
.pl-h1 { margin: 0 0 18px; max-width: 24em; font-size: clamp(1.75rem, 3.8vw, 2.65rem); line-height: 1.14; letter-spacing: -.015em; }
.pl-lead { margin: 0 0 16px; max-width: 46em; font-size: 1.16rem; line-height: 1.65; color: #342a4a; }
.pl-byline { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 24px; font-size: 14px; color: var(--pl-soft); }
.pl-hero__fig { margin: 0; }
.pl-hero__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; background: var(--pl-tint); }
.pl-hero__fig figcaption { margin-top: 8px; font-size: 13px; color: var(--pl-soft); }

/* ---- layout: article + aside ---- */
.pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 52px; align-items: start; padding-top: 28px; padding-bottom: 72px; }
.pl-article { max-width: 720px; }
.pl-article > h2 { position: relative; margin: 50px 0 16px; padding-top: 18px; font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.2; }
.pl-article > h2::before { content: ''; position: absolute; left: 0; top: 0; width: 46px; height: 4px; border-radius: 4px; background: var(--pl-amber); }
.pl-article > h2:first-child { margin-top: 12px; }
.pl-article p { margin: 0 0 18px; }

.pl-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.pl-toc, .pl-aside__note { background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: var(--pl-radius); padding: 20px 20px 18px; }
.pl-toc h2, .pl-aside__note h2 { margin: 0 0 10px; font-family: var(--pl-sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pl-soft); }
.pl-toc ol { margin: 0; padding-left: 20px; font-size: 15px; }
.pl-toc li { margin: 0 0 8px; padding-left: 4px; }
.pl-toc a { text-decoration: none; color: var(--pl-ink); }
.pl-toc a:hover { color: var(--pl-brand); text-decoration: underline; }
.pl-aside__note { background: var(--pl-amber-tint); border-color: #f0dcb3; }
.pl-aside__note p { margin: 0; font-size: 14px; line-height: 1.6; color: #4a3c20; }

/* ---- simulation ---- */
.pl-sim { margin: 28px 0 26px; padding: 26px 26px 22px; background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: var(--pl-radius); box-shadow: 0 10px 30px -22px rgba(35, 26, 54, .45); }
.pl-sim h3 { margin: 0 0 6px; font-size: 1.2rem; line-height: 1.3; }
.pl-sim__intro { margin: 0 0 18px !important; font-size: 15px; color: var(--pl-soft); }
.pl-sim__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.pl-field label { display: flex; align-items: flex-end; min-height: 2.7em; margin-bottom: 6px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.pl-field input {
    width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--pl-ink);
    background: #fff; border: 1.5px solid var(--pl-line); border-radius: 12px;
}
.pl-field input:focus { outline: none; border-color: var(--pl-brand); box-shadow: 0 0 0 3px rgba(75, 58, 158, .18); }
.pl-err { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--pl-err); }
.pl-sim__out { margin-top: 18px; padding: 16px 18px; background: var(--pl-tint); border-left: 5px solid var(--pl-amber); border-radius: 0 12px 12px 0; font-size: 16px; line-height: 1.6; }
.pl-sim__out strong { font-family: var(--pl-serif); font-size: 1.35rem; color: var(--pl-brand-dk); white-space: nowrap; }
.pl-sim__foot { margin: 14px 0 0 !important; font-size: 13px !important; line-height: 1.55; color: var(--pl-soft); }

/* ---- buttons ---- */
.pl-btn {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 13px 24px; border: 0; border-radius: 12px;
    background: var(--pl-brand); color: #fff !important; text-decoration: none !important;
    font: inherit; font-size: 16px; font-weight: 700;
    transition: background .18s ease, transform .18s ease;
}
.pl-btn:hover { background: var(--pl-brand-dk); transform: translateY(-1px); }
.pl-btn--amber { background: var(--pl-amber); color: var(--pl-ink) !important; }
.pl-btn--amber:hover { background: #f5b455; }

/* ---- four steps ---- */
.pl-situ { margin: 6px 0 30px; padding: 0; list-style: none; display: grid; gap: 12px; }
.pl-situ li { margin: 0; padding: 14px 18px 14px 20px; background: var(--pl-card); border: 1px solid var(--pl-line); border-left: 4px solid var(--pl-amber); border-radius: 12px; color: #3b3150; }
.pl-situ strong { color: var(--pl-ink); }
.pl-steps { counter-reset: pl-step; list-style: none; margin: 8px 0 34px; padding: 0; }
.pl-steps li { counter-increment: pl-step; position: relative; margin: 0; padding: 0 0 26px 66px; }
.pl-steps li::before {
    content: counter(pl-step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--pl-brand); color: #fff; font-family: var(--pl-serif); font-weight: 700; font-size: 1.15rem;
}
.pl-steps li::after { content: ''; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--pl-line); }
.pl-steps li:last-child { padding-bottom: 0; }
.pl-steps li:last-child::after { display: none; }
.pl-steps h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.pl-steps p { margin: 0; color: #3b3150; }

/* ---- recommendation card ---- */
.pl-reco { margin: 34px 0; padding: 30px 30px 26px; border-radius: 24px; color: #efeafa; background: linear-gradient(145deg, #2b2160 0%, #3a2c7d 100%); }
.pl-reco__tag { display: inline-block; margin: 0 0 12px !important; padding: 3px 12px; border-radius: 999px; background: rgba(240, 165, 58, .18); color: #ffd79b; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pl-reco h3 { margin: 0 0 12px; color: #fff; font-size: 1.3rem; line-height: 1.3; }
.pl-reco p { color: #ddd5f3; }
.pl-reco .pl-btn { margin-top: 4px; }
.pl-reco__legal { margin: 14px 0 0 !important; font-size: 13px; color: #b9afd2 !important; }

/* ---- FAQ ---- */
.pl-faq { margin: 8px 0 12px; border-top: 1px solid var(--pl-line); }
.pl-faq details { border-bottom: 1px solid var(--pl-line); }
.pl-faq summary { position: relative; cursor: pointer; list-style: none; padding: 16px 40px 16px 2px; font-weight: 700; }
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary::after { content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 500; color: var(--pl-brand); transition: transform .18s ease; }
.pl-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pl-faq details p { margin: 0 0 18px; padding-right: 8px; color: #3b3150; }

.pl-sum { margin: 0 0 30px; padding: 0; list-style: none; }
.pl-sum li { position: relative; margin: 0 0 10px; padding: 12px 16px 12px 46px; background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: 12px; }
.pl-sum li::before { content: '✓'; position: absolute; left: 16px; top: 12px; font-weight: 700; color: var(--pl-ok); }

.pl-final { margin: 34px 0 0; padding: 28px 28px 24px; background: var(--pl-amber-tint); border: 1px solid #f0dcb3; border-radius: 24px; }
.pl-final h3 { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.3; }
.pl-final p { color: #3f3320; }
.pl-final__legal { margin: 14px 0 0 !important; font-size: 13px; color: #6a5a38 !important; }

/* ---- documents (legal, about, contact) ---- */
.pl-doc { padding: 44px 0 80px; }
.pl-doc__col { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.pl-doc h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 3.6vw, 2.3rem); line-height: 1.15; }
.pl-doc h2 { margin: 34px 0 10px; font-size: 1.3rem; }
.pl-doc h3 { margin: 22px 0 8px; font-size: 1.05rem; }
.pl-doc p, .pl-doc li { color: #342a4a; }
.pl-doc p { margin: 0 0 16px; }
.pl-doc ul { padding-left: 22px; }
.pl-doc__meta { margin: 0 0 22px; font-size: 14px; color: var(--pl-soft); }
.pl-doc table { width: 100%; margin: 12px 0 18px; border-collapse: collapse; font-size: 14.5px; background: #fff; border-radius: 12px; overflow: hidden; }
.pl-doc th, .pl-doc td { padding: 10px 12px; border: 1px solid var(--pl-line); text-align: left; vertical-align: top; }
.pl-doc th { background: var(--pl-tint); }
.pl-card { margin: 18px 0 22px; padding: 20px 22px; background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: var(--pl-radius); }
.pl-card p { margin: 0 0 6px; }
.pl-card p:last-child { margin-bottom: 0; }

/* ---- footer ---- */
.pl-foot { margin-top: 0; background: #1c1430; color: #cfc6e4; }
.pl-foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-top: 46px; padding-bottom: 34px; }
.pl-foot__brand p { margin: 16px 0 0; max-width: 34em; font-size: 14.5px; line-height: 1.65; color: #b9afd2; }
.pl-foot__col h2 { margin: 0 0 14px; font-family: var(--pl-sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8f84ad; }
.pl-foot__col a, .pl-foot__linkbtn { display: block; margin: 0 0 9px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; text-align: left; color: #e4def2; text-decoration: none; cursor: pointer; }
.pl-foot__col a:hover, .pl-foot__linkbtn:hover { color: var(--pl-amber); text-decoration: underline; }
.pl-foot__note { background: #150f26; padding: 18px 0; }
.pl-foot__note p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #a79cc4; max-width: 62em; }
.pl-foot__bar { border-top: 1px solid #2c2243; }
.pl-foot__barrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.pl-foot__barrow p { margin: 0; font-size: 13px; color: #8f84ad; }
.pl-foot__badge { padding: 3px 12px; border: 1px solid #3a2f55; border-radius: 999px; font-size: 12px; color: #a79cc4; }

/* ---- cookie banner: floating card, equal Accept / Reject ---- */
.pl-consent {
    position: fixed; left: 16px; bottom: 16px; z-index: 300; width: min(440px, calc(100% - 32px));
    padding: 18px 18px 16px; background: #fff; border: 1px solid var(--pl-line); border-radius: 20px;
    box-shadow: 0 18px 50px -12px rgba(35, 26, 54, .45);
}
.pl-consent[hidden] { display: none; }
.pl-consent__title { margin: 0 0 6px; font-size: 1.05rem; }
.pl-consent__text { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: #3b3150; }
.pl-consent__panel { margin: 0 0 12px; padding: 12px; background: var(--pl-bg); border-radius: 12px; }
.pl-consent__panel[hidden] { display: none; }
.pl-consent__opt { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; }
.pl-consent__opt input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pl-brand); }
.pl-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pl-cbtn {
    min-height: 44px; padding: 10px 14px; border: 2px solid var(--pl-ink); border-radius: 12px;
    background: var(--pl-ink); color: #fff; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.pl-cbtn:hover { background: var(--pl-brand-dk); border-color: var(--pl-brand-dk); }
.pl-cbtn--ghost { grid-column: 1 / -1; background: #fff; color: var(--pl-ink); border-color: var(--pl-line); font-weight: 600; }
.pl-cbtn--ghost:hover { background: var(--pl-tint); color: var(--pl-ink); border-color: var(--pl-line); }
.pl-consent__panel .pl-cbtn { width: 100%; }

/* ---- responsive ---- */
@media (max-width: 960px) {
    .pl-layout { grid-template-columns: 1fr; gap: 28px; }
    .pl-aside { position: static; }
}
@media (max-width: 760px) {
    body { font-size: 16.5px; }
    .pl-nav { display: none; }
    .pl-head__cta { margin-left: auto; }
    .pl-sim__grid { grid-template-columns: 1fr; }
    .pl-field label { min-height: 0; }
    .pl-sim { padding: 20px 18px 18px; }
    .pl-reco, .pl-final { padding: 24px 20px 20px; }
    .pl-foot__grid { grid-template-columns: 1fr; gap: 26px; }
    .pl-foot__col a, .pl-foot__linkbtn { margin: 0; padding: 8px 0; }
    .pl-toc a { display: inline-block; padding: 4px 0; }
    .pl-hero__fig img { border-radius: 16px; }
}
@media (max-width: 520px) {
    .pl-wrap, .pl-doc__col { padding-left: 18px; padding-right: 18px; }
    .pl-consent { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 14px 14px 12px; border-radius: 16px; }
    .pl-consent__title { font-size: 1rem; }
    .pl-consent__text { font-size: 13px; margin-bottom: 10px; }
    .pl-cbtn { min-height: 42px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pl-btn, .pl-faq summary::after { transition: none; }
}
