/* CV Tailor site: same "tailor's bench" identity as the extension (paper, ink, red thread, stitched seams). */
:root {
  --bg: #f6f2ea;
  --surface: #fffdf8;
  --ink: #1e1a15;
  --muted: #6a6155;
  --line: #ddd4c5;
  --thread: #b0361c;
  --thread-soft: #f4e2d9;
  --ok: #2d6a43;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161411; --surface: #1f1c18; --ink: #eee7db; --muted: #a59b8c; --line: #3b352d;
    --thread: #e5734f; --thread-soft: #3b231b; --ok: #8fc8a1; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--thread); text-underline-offset: 3px; }
a:hover { color: var(--thread); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0; }
.muted { color: var(--muted); }
.eyebrow { font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--thread); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--thread); outline-offset: 2px; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 20px/1 var(--serif); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: 50%; top: -6px; bottom: -6px; border-left: 2px dashed var(--thread); transform: rotate(35deg); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; }
.nav .link { color: var(--muted); }
@media (max-width: 720px) { .nav .link { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 6px; font: 600 15.5px/1 var(--sans); cursor: pointer; border: 1.5px solid transparent; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--thread); color: var(--bg); }
.btn.ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--thread); color: var(--thread); }
.btn.small { height: 38px; padding: 0 14px; font-size: 14.5px; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 48px; } }
.hero h1 em { font-style: italic; color: var(--thread); }
.lead { font-size: 19.5px; color: var(--muted); margin: 20px 0 28px; max-width: 34em; }
.lead strong { color: var(--ink); font-weight: 600; }

/* ---------- signup form ---------- */
.signup { display: grid; gap: 10px; max-width: 520px; }
.signup .row { display: flex; gap: 8px; }
@media (max-width: 520px) { .signup .row { flex-direction: column; } .signup .btn { width: 100%; } }
.signup input[type="email"] { flex: 1; min-width: 0; height: 46px; padding: 0 14px; font: 16px var(--sans); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 6px; }
.signup input[type="email"]:focus { border-color: var(--thread); outline: none; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--thread); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 14px; min-height: 1.4em; }
.form-msg.ok { color: var(--ok); font-weight: 600; }
.form-msg.err { color: var(--thread); }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.trust span::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* ---------- hero visual: a CV sheet + a "what changed" card ---------- */
.visual { position: relative; min-height: 430px; }
.sheet { position: absolute; inset: 0 40px 30px 0; background: #fffefa; color: #1b1b1b; border-radius: 3px; padding: 30px 30px 26px; box-shadow: 0 2px 4px rgb(0 0 0 / .08), 0 22px 50px rgb(40 25 10 / .16); transform: rotate(-1.4deg); font-size: 12.5px; line-height: 1.5; }
.sheet .name { font: 600 25px/1.1 var(--serif); }
.sheet .role { color: #6b6257; margin: 3px 0 14px; }
.sheet .h { font: 700 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #7a2a17; border-bottom: 1px solid #e3dacb; padding-bottom: 4px; margin: 14px 0 7px; }
.sheet ul { margin: 0; padding-left: 16px; }
.sheet li { margin: 3px 0; }
.sheet mark { background: #f6dfd3; color: inherit; padding: 0 2px; border-radius: 2px; }
.sheet .seam { position: absolute; left: 14px; top: 18px; bottom: 18px; border-left: 2px dashed #e3d4c2; }
.stamp { position: absolute; right: 26px; top: 26px; font: 700 11px/1 var(--sans); letter-spacing: .08em; color: #7a2a17; border: 1.5px solid #7a2a17; border-radius: 3px; padding: 6px 8px; transform: rotate(4deg); }
.change-card { position: absolute; right: 0; bottom: 0; width: min(320px, 86%); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; box-shadow: 0 16px 36px rgb(40 25 10 / .18); font-size: 13.5px; }
.change-card .tag { font: 700 10.5px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.change-card .tag b { color: var(--thread); font-weight: 700; }
.change-card .from { margin: 8px 0 4px; color: var(--muted); padding-left: 10px; border-left: 2px solid var(--line); }
.change-card .to { padding-left: 10px; border-left: 2px solid var(--thread); }
@media (max-width: 520px) { .visual { min-height: 470px; } .sheet { right: 12px; } }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; border-top: 2px dashed var(--line); }
.steps li { position: relative; }
.steps .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--ink); font: 600 18px/1 var(--serif); position: relative; margin-bottom: 18px; }
.band .steps .num { background: var(--surface); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { left: 21px; right: auto; top: 22px; bottom: 22px; border-top: 0; border-left: 2px dashed var(--line); }
  .steps li { padding-left: 64px; }
  .steps .num { position: absolute; left: 0; top: 0; }
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 26px 24px; }
.band .feature { background: var(--bg); }
.feature .icon { width: 38px; height: 38px; border-radius: 8px; background: var(--thread-soft); color: var(--thread); display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 16px; }

.countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.country { display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.country b { font: 700 12px/1 var(--sans); letter-spacing: .06em; color: var(--thread); min-width: 30px; }
.country span { font-size: 15px; }
.country small { display: block; color: var(--muted); font-size: 13px; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 600 19px/1.35 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--thread); font-family: var(--sans); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); }

.cta-box { background: var(--ink); color: var(--bg); border-radius: 14px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .cta-box { grid-template-columns: 1fr; padding: 32px 24px; } }
.cta-box p { color: color-mix(in srgb, var(--bg) 75%, transparent); margin-top: 12px; }
.cta-box .signup input[type="email"] { background: var(--bg); }
.cta-box .consent { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.cta-box .btn.primary { background: var(--thread); }
.cta-box .btn.primary:hover { background: var(--bg); color: var(--ink); }
.cta-box .form-msg.ok { color: #9fdcb2; }
.cta-box .form-msg.err { color: #ffb39c; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14.5px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; padding: 56px 24px 80px; margin: 0 auto; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 38px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .updated { color: var(--muted); margin-bottom: 24px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; }
.note { background: var(--thread-soft); border-left: 3px solid var(--thread); padding: 12px 16px; border-radius: 0 6px 6px 0; margin-top: 16px; }
