:root {
  --navy: #1f3a5f;
  --navy-dark: #152a46;
  --accent: #e8a33d;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e3e7ee;
  --bg: #ffffff;
  --soft: #f5f7fb;
  --ok: #1f7a4d;
  --warn-bg: #fff6e5;
  --err: #b42318;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(21, 42, 70, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--navy); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* nav */
.nav { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 800; font-size: 20px; color: var(--navy); text-decoration: none; letter-spacing: -0.3px; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--navy); }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--navy); }

/* buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--navy); color: #fff !important; font-weight: 600; font-size: 16px;
  padding: 12px 22px; border-radius: 10px; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn.big { padding: 16px 30px; font-size: 18px; }
.btn.light { background: #fff; color: var(--navy) !important; border: 1px solid var(--line); }
.btn.light:hover { background: var(--soft); }
.btn.gold { background: var(--accent); color: #1d2433 !important; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* hero */
.hero { background: linear-gradient(160deg, #f5f8fd 0%, #eaf0f9 100%); padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -1px; color: var(--navy-dark); }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .price-note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.hero-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 26px; border: 1px solid var(--line); }
.mini-resume .n { font-weight: 800; color: var(--navy); text-align: center; font-size: 20px; letter-spacing: 1px; }
.mini-resume .h { text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.mini-resume .c { text-align: center; font-size: 11px; color: var(--muted); border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 10px; }
.mini-resume .s { color: var(--navy); font-weight: 700; font-size: 12px; border-bottom: 1px solid var(--navy); margin: 10px 0 6px; }
.mini-resume .l { height: 7px; background: #e6eaf1; border-radius: 4px; margin: 5px 0; }
.mini-resume .l.w80 { width: 80%; } .mini-resume .l.w60 { width: 60%; } .mini-resume .l.w90 { width: 90%; }

/* sections */
section.block { padding: 72px 0; }
section.block.soft { background: var(--soft); }
.section-title { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-title h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 10px; color: var(--navy-dark); letter-spacing: -0.5px; }
.section-title p { color: var(--muted); margin: 0; font-size: 17px; }
.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 6px 0 8px; font-size: 18px; color: var(--navy-dark); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.icon { font-size: 26px; }

.price-card { max-width: 460px; margin: 0 auto; text-align: center; border: 2px solid var(--navy); box-shadow: var(--shadow); }
.price { font-size: 52px; font-weight: 800; color: var(--navy-dark); margin: 6px 0; }
.price small { font-size: 16px; color: var(--muted); font-weight: 500; }
ul.checks { list-style: none; padding: 0; margin: 20px 0 26px; text-align: left; }
ul.checks li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px dashed var(--line); }
ul.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 800; }

.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; background: #fff; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--navy-dark); }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 60px 20px; }
.cta-band h2 { margin: 0 0 10px; font-size: 30px; }
.cta-band p { margin: 0 0 24px; opacity: .85; }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
label { display: block; font-weight: 600; margin: 18px 0 6px; font-size: 15px; }
label .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=tel], input[type=password], textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid #cdd4df; border-radius: 9px; font: inherit; font-size: 15px; background: #fff;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus { outline: 2px solid rgba(31, 58, 95, .25); border-color: var(--navy); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.drop {
  border: 2px dashed #b7c2d3; border-radius: 12px; padding: 28px; text-align: center; background: var(--soft);
  cursor: pointer; transition: background .15s, border-color .15s;
}
.drop.over { background: #e8eef8; border-color: var(--navy); }
.drop input { display: none; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; }
.file-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--soft); border-radius: 8px; margin-top: 6px; font-size: 14px; }
.file-list button { background: none; border: 0; color: var(--err); cursor: pointer; font-size: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; }

.alert { padding: 14px 16px; border-radius: 10px; margin: 0 0 18px; font-size: 15px; }
.alert.err { background: #fdecea; color: var(--err); }
.alert.ok { background: #e7f6ee; color: var(--ok); }
.alert.warn { background: var(--warn-bg); color: #7a4b00; }

/* order pages */
.page-head { padding: 40px 0 10px; }
.page-head h1 { margin: 0 0 6px; color: var(--navy-dark); font-size: clamp(26px, 4vw, 34px); }
.page-head p { color: var(--muted); margin: 0; }
.summary-table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; }
.summary-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-table td:last-child { text-align: right; font-weight: 600; }
.progress-box { text-align: center; padding: 50px 20px; }
.spinner { width: 54px; height: 54px; border: 5px solid #dde3ec; border-top-color: var(--navy); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 22px; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps-list { list-style: none; padding: 0; max-width: 380px; margin: 24px auto 0; text-align: left; }
.steps-list li { padding: 8px 0 8px 30px; position: relative; color: var(--muted); }
.steps-list li::before { content: "○"; position: absolute; left: 4px; }
.steps-list li.done { color: var(--ok); } .steps-list li.done::before { content: "✓"; }
.steps-list li.now { color: var(--navy); font-weight: 600; } .steps-list li.now::before { content: "●"; }

.review { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; padding-bottom: 60px; }
.preview { position: sticky; top: 80px; }
.pages { max-height: 80vh; overflow-y: auto; background: #e9edf3; border-radius: 12px; padding: 14px; }
.pages img { display: block; width: 100%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); margin-bottom: 14px; }
.pages img:last-child { margin-bottom: 0; }
.download-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.editor fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px 18px; margin: 0 0 18px; background: #fff; }
.editor legend { font-weight: 700; color: var(--navy); padding: 0 6px; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; }
.editor .job { border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 14px; }
.editor .job:first-of-type { border-top: 0; margin-top: 0; }
.editor .del { font-weight: 400; color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.sticky-save { position: sticky; bottom: 0; background: rgba(255,255,255,.96); padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.notes { margin-bottom: 18px; }
.notes ul { margin: 6px 0 0; padding-left: 20px; }

/* legal + admin */
.prose h2 { color: var(--navy-dark); margin-top: 32px; font-size: 22px; }
.prose p, .prose li { color: #3a4253; }
table.admin { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin th, table.admin td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }

/* footer */
footer { background: #0f1f35; color: #b9c3d3; padding: 44px 0 30px; font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
footer a { color: #dfe6f1; text-decoration: none; display: block; padding: 3px 0; }
footer .brand { color: #fff; }
footer .copy { grid-column: 1 / -1; border-top: 1px solid #22344f; padding-top: 18px; margin-top: 10px; color: #7f8ba0; }

@media (max-width: 900px) {
  .hero .wrap, .review, .grid.three, .grid.four, .grid.two, footer .wrap { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .preview { position: static; }
  .pages { max-height: none; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px; border-bottom: 1px solid var(--line); gap: 14px; }
  .nav-links.open { display: flex; }
  .row2, .row3 { grid-template-columns: 1fr; }
  section.block { padding: 52px 0; }
  .form-card { padding: 20px; }
}

/* template picker */
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.tpl { display: block; border: 2px solid var(--line); border-radius: 10px; padding: 6px; cursor: pointer; text-align: center; background: #fff; font-weight: 600; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.tpl input { position: absolute; opacity: 0; pointer-events: none; }
.tpl img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid #eee; display: block; margin-bottom: 6px; }
.tpl:hover { border-color: #9fb3cf; }
.tpl.on, .tpl:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 58, 95, .15); }
.tpl-switch { margin: 14px 0; }
.tpl-switch .tpl-grid { gap: 8px; }
.tpl-switch .tpl { font-size: 12px; padding: 4px; }
@media (max-width: 600px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }

/* accounts */
.signin-card { text-align: center; margin: 30px 0 70px; }
.signin-card h1 { margin: 0 0 6px; }
.signin-card .g_id_signin { display: flex; justify-content: center; margin: 22px 0 6px; }
.signin-note { font-size: 13px; color: var(--muted); margin-top: 16px; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; margin: 10px 0 70px; }
.doc-card { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.doc-card:hover { box-shadow: 0 10px 30px rgba(21, 42, 70, .12); transform: translateY(-2px); }
.doc-thumb { aspect-ratio: 210 / 297; background: #f3f6fa; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-meta { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.doc-meta span { font-size: 13px; color: var(--muted); }
.doc-meta .doc-tag { color: var(--ok); font-weight: 600; }

/* build modes, match score, cover letter */
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.mode { display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; font-weight: 400; background: #fff; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode strong { color: var(--navy-dark); font-size: 16px; }
.mode span { color: var(--muted); font-size: 14px; }
.mode.on { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 58, 95, .15); }
.match-card { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; background: #fff; }
.match-card p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.match-ring { --p: 0; flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), #e6ebf2 0); }
.match-ring span { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--navy-dark); }
.cover-card { margin-bottom: 14px; padding: 16px; }
.cover-card p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .mode-pick { grid-template-columns: 1fr; } }

/* landing: template stack, gallery, comparison */
.hero-stack { position: relative; height: 440px; }
.hero-stack img { position: absolute; width: 250px; border-radius: 8px; box-shadow: 0 18px 40px rgba(21, 42, 70, .18); border: 1px solid #e3e8ef; background: #fff; }
.hero-stack .s1 { left: 0; top: 50px; transform: rotate(-8deg); }
.hero-stack .s2 { left: 60px; top: 25px; transform: rotate(-3deg); }
.hero-stack .s3 { left: 120px; top: 10px; transform: rotate(2deg); }
.hero-stack .s4 { left: 180px; top: 0; transform: rotate(6deg); }
.hero-badge { position: absolute; right: 0; bottom: 30px; background: #fff; border-radius: 14px; padding: 12px 18px; box-shadow: 0 12px 30px rgba(21, 42, 70, .18); display: flex; flex-direction: column; align-items: center; }
.hero-badge strong { font-size: 26px; color: var(--ok); line-height: 1; }
.hero-badge span { font-size: 13px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gallery-item { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(21, 42, 70, .14); }
.gallery-item img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; display: block; border-bottom: 1px solid var(--line); }
.gallery-item div { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.gallery-item span { color: var(--navy); font-size: 14px; font-weight: 600; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(21, 42, 70, .06); }
table.compare th, table.compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
table.compare th { background: var(--navy); color: #fff; }
table.compare td:first-child { color: var(--muted); font-weight: 600; }
table.compare td:nth-child(2) { background: #f1f8f4; }
@media (max-width: 900px) {
  .hero-stack { height: 330px; max-width: 420px; }
  .hero-stack img { width: 180px; }
  .hero-stack .s2 { left: 45px; } .hero-stack .s3 { left: 90px; } .hero-stack .s4 { left: 135px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) { table.compare th, table.compare td { font-size: 13px; padding: 9px 8px; } }

.prod-pick { grid-template-columns: repeat(3, 1fr); }
.li-card { display: block; text-decoration: none; color: inherit; border-left: 4px solid #0a66c2; }
.li-card strong { color: #0a66c2; }
.version-card summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.version-card summary strong { color: var(--navy-dark); }
.version-card textarea { width: 100%; }
@media (max-width: 760px) { .prod-pick { grid-template-columns: 1fr; } }
/* LinkedIn page */
.li-section { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.li-section h3 { margin: 0 0 4px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 17px; }
.li-section .meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.li-section textarea { width: 100%; font: inherit; font-size: 15px; line-height: 1.5; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; resize: vertical; }
.li-section .count { font-size: 12px; color: var(--muted); text-align: right; }
.li-section .count.over { color: #b42318; font-weight: 700; }
.copy-btn { font-size: 13px; padding: 6px 12px; }
.li-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.li-skills span { background: #eef3f8; border-radius: 999px; padding: 5px 12px; font-size: 14px; }

.price-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price-row .price-card { max-width: none; margin: 0; position: relative; }
.price-card.featured { border: 2px solid var(--accent); }
.price-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
@media (max-width: 900px) { .price-row { grid-template-columns: 1fr; } }
