/* =====================================================================
   MyCVMaker - "Paper & Ink" theme (loaded AFTER style.css, overrides it)
   Change the look of the whole site here: colours/fonts live in :root.
   ===================================================================== */
:root {
  --ink: #14213d;
  --primary: #4338ca;
  --primary-dark: #3730a3;
  --primary-light: #eceafc;
  --secondary: #0f9d8a;          /* teal accent */
  --secondary-light: #dff5f1;
  --background: #faf7f2;         /* warm paper */
  --surface: #ffffff;
  --text: #14213d;
  --muted: #6b7280;
  --border: #e8e2d6;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, .05), 0 4px 14px rgba(20, 33, 61, .05);
  --shadow-md: 0 10px 30px rgba(20, 33, 61, .09);
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, .15);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-heading: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --bs-primary: #4338ca;
  --bs-primary-rgb: 67, 56, 202;
  --bs-body-color: #14213d;
}

body {
  background-color: var(--background);
  background-image:
    radial-gradient(circle, rgba(20, 33, 61, .045) 1px, transparent 1.2px),
    radial-gradient(ellipse 700px 520px at 0% -8%, rgba(67, 56, 202, .10), transparent 62%),
    radial-gradient(ellipse 620px 480px at 100% 4%, rgba(15, 157, 138, .11), transparent 62%),
    radial-gradient(ellipse 560px 460px at 50% 100%, rgba(224, 165, 39, .08), transparent 62%);
  background-size: 24px 24px, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); letter-spacing: -.02em; color: var(--ink); }
.ct-wrap h1, .ct-wrap h2, .cv-marketing-hero h1, .hx-title, .faq-section h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; }

/* ---------- buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: -.005em; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { background: linear-gradient(135deg, #4f46e5, #3730a3); border: 0; box-shadow: 0 6px 18px rgba(67, 56, 202, .32); }
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(135deg, #4338ca, #2e2791); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(67, 56, 202, .38); }
.btn-outline-primary { color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.form-control, .form-select { border-radius: 12px; border-color: var(--border); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .22rem rgba(67, 56, 202, .15); }

/* ---------- header / logo wordmark ---------- */
.main-navbar { background: rgba(250, 247, 242, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border); padding-top: .55rem; padding-bottom: .55rem; }
.main-navbar .nav-link { color: #4b5563 !important; font-weight: 600; border-radius: 999px; padding: .45rem .9rem !important; }
.main-navbar .nav-link:hover { color: var(--primary) !important; background: var(--primary-light); }
.main-navbar .nav-link.active { color: var(--primary) !important; background: var(--primary-light); }
.main-navbar .nav-link.nav-cta { color: #fff !important; background: var(--ink); margin-left: .35rem; }
.main-navbar .nav-link.nav-cta:hover { background: var(--primary); }

.brand-wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-wordmark .wm { position: relative; display: inline-flex; align-items: baseline; line-height: 1; padding-bottom: 7px; white-space: nowrap; }
.wm-my { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.32rem; color: var(--ink); margin-right: 1px; transform: translateY(-1px); }
.wm-cv { font-family: var(--font-heading); font-weight: 800; font-size: 1.55rem; letter-spacing: -.05em;
  background: linear-gradient(120deg, #4338ca 0%, #7c3aed 45%, #0f9d8a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.wm-maker { font-family: var(--font-heading); font-weight: 500; font-size: 1.32rem; letter-spacing: -.035em; color: var(--ink); margin-left: 2px; }
.wm-line { position: absolute; left: 0; bottom: 0; width: 100%; height: 8px; overflow: visible; }
.wm-line path { fill: none; stroke: url(#wmGrad); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 0; transition: stroke-dashoffset .6s ease; }
.brand-wordmark:hover .wm-line path { animation: wmDraw .8s ease; }
@keyframes wmDraw { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }
.brand-wordmark.on-dark .wm-my, .brand-wordmark.on-dark .wm-maker { color: #fff; }

/* ---------- hero (index) ---------- */
.hx-hero { position: relative; padding: 3.2rem 0 2.2rem; overflow: hidden; }
.hx-hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); background: var(--secondary-light); padding: .35rem .8rem; border-radius: 999px; }
.hx-title { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.06; margin: 1rem 0 1rem; color: var(--ink); }
.hx-title em { font-style: italic; font-weight: 500; background: linear-gradient(120deg, #4338ca, #0f9d8a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hx-lead { font-size: 1.12rem; color: #4b5563; max-width: 34rem; }
.hx-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.5rem; }
.hx-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 1.4rem; font-size: .88rem; color: #4b5563; font-weight: 500; }
.hx-trust i { color: var(--secondary); margin-right: .25rem; }

/* animated CV card: it "writes itself" (JS restarts the cycle by toggling .play) */
.hx-stage { position: relative; display: flex; justify-content: center; padding: 1rem 0 1.5rem; }
.hx-stage::before { content: ""; position: absolute; inset: 6% 8%; border-radius: 40px; background: linear-gradient(140deg, rgba(67, 56, 202, .16), rgba(15, 157, 138, .18)); filter: blur(34px); }
.hx-cv { --acc: #4338ca; position: relative; width: min(360px, 100%); aspect-ratio: 210/297; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); padding: 7.5% 8%; font-size: 11px; color: #1e293b; transform: rotate(-2.2deg); transition: transform .5s ease; overflow: hidden; }
.hx-cv:hover { transform: rotate(0deg) translateY(-4px); }
.hx-cv .hx-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--acc); transition: background .6s ease; }
.hx-head { display: flex; gap: 10px; align-items: center; border-bottom: 2px solid var(--acc); padding-bottom: 8px; transition: border-color .6s; }
.hx-photo { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(140deg, var(--acc), #0f9d8a); flex: none; display: grid; place-items: center; color: #fff; font-size: 20px; }
.hx-name { font-family: var(--font-heading); font-weight: 800; font-size: 16px; color: var(--acc); white-space: nowrap; overflow: hidden; width: 0; border-right: 2px solid var(--acc); transition: color .6s; }
.hx-role { color: #64748b; font-size: 10.5px; opacity: 0; }
.hx-sec { margin-top: 9px; opacity: 0; transform: translateY(8px); }
.hx-sec h4 { font-family: var(--font-heading); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin: 0 0 4px; border-bottom: 1px solid #e2e8f0; padding-bottom: 2px; transition: color .6s; }
.hx-sec p { margin: 0 0 3px; line-height: 1.45; font-size: 10px; color: #475569; }
.hx-sec b { color: #111827; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.hx-chips span { border: 1px solid var(--acc); color: var(--acc); border-radius: 9px; padding: 1px 8px; font-size: 9.5px; opacity: 0; transform: scale(.6); transition: border-color .6s, color .6s; }
.hx-badge { position: absolute; right: 7%; bottom: 5%; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; padding: 5px 10px; border-radius: 999px; opacity: 0; transform: translateY(8px); display: flex; gap: 5px; align-items: center; }
.hx-cv.play .hx-name { animation: hxType 1.4s steps(12, end) .5s forwards, hxCaret .7s step-end 3 .5s; }
.hx-cv.play .hx-role { animation: hxFade .5s ease 1.9s forwards; }
.hx-cv.play .hx-s1 { animation: hxUp .6s ease 2.2s forwards; }
.hx-cv.play .hx-s2 { animation: hxUp .6s ease 3s forwards; }
.hx-cv.play .hx-s3 { animation: hxUp .6s ease 3.8s forwards; }
.hx-cv.play .hx-s4 { animation: hxUp .6s ease 5.4s forwards; }
.hx-cv.play .hx-s5 { animation: hxUp .6s ease 6s forwards; }
.hx-cv.play .hx-chips span { animation: hxPop .35s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.hx-cv.play .hx-chips span:nth-child(1) { animation-delay: 4.3s; } .hx-cv.play .hx-chips span:nth-child(2) { animation-delay: 4.5s; }
.hx-cv.play .hx-chips span:nth-child(3) { animation-delay: 4.7s; } .hx-cv.play .hx-chips span:nth-child(4) { animation-delay: 4.9s; }
.hx-cv.play .hx-chips span:nth-child(5) { animation-delay: 5.1s; }
.hx-cv.play .hx-badge { animation: hxUp .5s ease 6.8s forwards; }
.hx-cv.t2 { --acc: #0f766e; } .hx-cv.t3 { --acc: #be123c; } .hx-cv.t4 { --acc: #14213d; }
@keyframes hxType { from { width: 0; } to { width: 12ch; border-right-color: transparent; } }
@keyframes hxCaret { 50% { border-right-color: transparent; } }
@keyframes hxFade { to { opacity: 1; } }
@keyframes hxUp { to { opacity: 1; transform: translateY(0); } }
@keyframes hxPop { to { opacity: 1; transform: scale(1); } }
.hx-float { z-index: 3; position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-md); padding: .5rem .8rem; font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: .45rem; animation: hxBob 5s ease-in-out infinite; }
.hx-float i { color: var(--secondary); font-size: 1rem; }
.hx-float.f1 { left: 0; top: 4%; } .hx-float.f2 { right: 0; bottom: 20%; animation-delay: -2.2s; } .hx-float.f2 i { color: var(--primary); }
@keyframes hxBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 880px) {
  .hx-hero .container { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hx-lead { margin-inline: auto; } .hx-actions, .hx-trust { justify-content: center; }
  .hx-stage { order: 2; } .hx-float.f1 { left: 4%; } .hx-float.f2 { right: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-cv .hx-name { width: 12ch; border: 0; } .hx-cv .hx-role, .hx-cv .hx-sec, .hx-cv .hx-chips span, .hx-cv .hx-badge { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hx-float { animation: none; }
}

/* ---------- cards / sections ---------- */
.landing-choice-card, .ct-card, .rv-card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.landing-choice-card:hover, .ct-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cvm-reviews { background: transparent !important; }

/* ---------- footer: one line of links in a floating pill ---------- */
.main-footer { border: 0 !important; background: transparent; padding-top: 2.5rem !important; color: var(--muted); }
.ft-cta { max-width: 900px; margin: 0 auto 1.4rem; text-align: center; }
.ft-cta p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--ink); margin: 0 0 .9rem; }
.ft-pill { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .15rem .1rem; background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 999px; padding: .4rem .55rem; box-shadow: var(--shadow-sm); max-width: 100%; }
.ft-pill a { color: #374151; text-decoration: none; font-size: .88rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; transition: background .2s, color .2s; white-space: nowrap; }
.ft-pill a:hover { background: var(--ink); color: #fff; }
.ft-pill .ft-brand { padding: 0 .6rem 0 .4rem; display: inline-flex; }
.ft-pill .ft-brand:hover { background: transparent; }
.ft-pill .ft-sep { width: 1px; height: 16px; background: var(--border); margin: 0 .2rem; }
.main-footer .footer-credit { margin-top: 1.1rem; font-size: .8rem; }
.coffee-fab { box-shadow: 0 8px 24px rgba(20, 33, 61, .22); }

/* compact footer (builder page) and tighter default footer */
.main-footer { padding-top: 1.2rem !important; }
.ft-cta { margin-bottom: 1rem; }
.ft-compact { padding: .4rem 0 .6rem !important; margin-top: .5rem !important; }
.ft-compact .ft-pill { transform: scale(.94); }
.ft-compact .footer-credit { margin-top: .4rem; }
