/* ============ Design tokens — modern pastel ============ */
:root {
  --bg:        #FAF9FF;   /* pale lavender white */
  --surface:   #FFFFFF;
  --surface-2: #F5F2FE;   /* soft panel */
  --ink:       #2B2840;   /* deep muted indigo */
  --ink-2:     #4C4870;   /* strong muted */
  --muted:     #918DAF;   /* labels / secondary */
  --muted-2:   #B9B4D1;   /* faint */
  --line:      #ECE7FA;   /* borders */
  --line-2:    #DED7F3;   /* stronger borders */

  --lav:       #B4A4F4;   /* primary pastel */
  --lav-deep:  #8A72EC;   /* deeper for text/hover */
  --pink:      #F5B4D2;
  --mint:      #A2E3C8;
  --peach:     #FBC9A6;
  --sky:       #AAD6F6;

  --grad:      linear-gradient(135deg, #B4A4F4 0%, #EBA9D6 55%, #F6C8A9 100%);
  --grad-soft: linear-gradient(135deg, #EDE8FE 0%, #FBEAF3 100%);

  --present:   #46A98A;
  --present-bg:#E4F6EE;
  --buried:    #C98A4E;
  --buried-bg: #FBEEDF;
  --missing:   #DC7591;
  --missing-bg:#FBE6EC;

  --maxw: 1180px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;

  --shadow-sm: 0 4px 16px -8px rgba(101, 78, 190, 0.28);
  --shadow-md: 0 20px 44px -22px rgba(101, 78, 190, 0.40);
  --shadow-lg: 0 34px 70px -34px rgba(101, 78, 190, 0.48);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}
/* soft pastel gradient blobs in the background */
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
}
body::before {
  width: 620px; height: 620px;
  top: -220px; right: -160px;
  background: radial-gradient(circle at 30% 30%, #D9C7FB, transparent 68%),
              radial-gradient(circle at 70% 70%, #F8CBE4, transparent 66%);
}
body::after {
  width: 560px; height: 560px;
  bottom: -240px; left: -180px;
  background: radial-gradient(circle at 40% 40%, #C9E9DC, transparent 66%),
              radial-gradient(circle at 70% 60%, #FBDDC4, transparent 66%);
  opacity: 0.5;
}

h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
/* Ensure [hidden] always wins over class-level display declarations */
[hidden] { display: none !important; }

.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
.mark {
  position: relative;
  background: linear-gradient(120deg, rgba(180,164,244,.45), rgba(245,180,210,.45));
  border-radius: 8px;
  padding: 0 .12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--solid { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: rgba(255,255,255,.7); color: var(--ink); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn--outline:hover { border-color: var(--lav); color: var(--lav-deep); transform: translateY(-2px); }
.link-ghost { font-weight: 600; font-size: 15px; color: var(--ink); }
.link-ghost:hover { color: var(--lav-deep); }

/* ============ Ticker bar ============ */
.ticker {
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(8px);
}
.ticker__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 11px 32px;
  display: flex; justify-content: space-between; gap: 20px;
}
.ticker__inner span:nth-child(2) { flex: 1; text-align: center; }

/* ============ Nav ============ */
.nav {
  max-width: var(--maxw); margin: 0 auto;
  padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand__name { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.nav__actions { display: flex; align-items: center; gap: 22px; }

/* ============ Hero ============ */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: 64px 32px 92px;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 64px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lav-deep); margin-bottom: 26px;
  background: rgba(180,164,244,.14); padding: 7px 14px; border-radius: 999px;
}
.eyebrow__rule { width: 20px; height: 2px; border-radius: 2px; background: var(--lav); }
h1.display { font-size: clamp(42px, 6.2vw, 66px); line-height: 1.03; }
.lede { margin-top: 26px; font-size: 19px; color: var(--ink-2); max-width: 33em; }
.lede strong { color: var(--ink); font-weight: 700; }
.hero__cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.fineprint { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ============ Proof card (glassy) ============ */
.proof {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.proof__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--grad-soft);
}
.proof__file { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lav-deep); }
.proof__tag { letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; }
.proof__body { padding: 24px 24px 8px; }
.proof__scoreRow { display: flex; justify-content: space-between; align-items: flex-start; }
.proof__label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.proof__score {
  font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: -0.03em;
  margin-top: 6px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.proof__score span { font-size: 30px; }
.proof__stats { text-align: right; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: grid; gap: 9px; padding-top: 8px; }
.proof__stats li { display: flex; gap: 12px; justify-content: flex-end; align-items: baseline; }
.proof__stats b { color: var(--ink); font-size: 14px; }

.proof__items { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; display: grid; gap: 12px; }
.pi {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start;
  font-size: 15px; line-height: 1.45;
  padding: 11px 14px; border-radius: 14px;
}
.pi--present { background: var(--present-bg); }
.pi--buried  { background: var(--buried-bg); }
.pi--missing { background: var(--missing-bg); }
.pi__glyph {
  width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
}
.pi--present .pi__glyph { background: var(--present); }
.pi--buried  .pi__glyph { background: var(--buried); }
.pi--missing .pi__glyph { background: var(--missing); }
.pi em { font-style: normal; color: var(--muted); }
.pi s { color: var(--muted); text-decoration-color: var(--missing); }
.proof__foot {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 16px 24px; border-top: 1px solid var(--line); margin-top: 14px;
  background: var(--grad-soft);
}

/* ============ Marquee ============ */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; overflow: hidden; background: rgba(255,255,255,0.4); }
.marquee__label { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.marquee__track { display: flex; width: max-content; animation: scroll 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; }
.marquee__group span { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--ink-2); padding: 0 26px; white-space: nowrap; }
.marquee__group i { color: var(--lav); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 32px; }
.section__head { margin-bottom: 54px; }
.section__marker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lav-deep); margin-bottom: 16px; background: rgba(180,164,244,.14); padding: 6px 13px; border-radius: 999px; }
.section__title { font-size: clamp(32px, 4.6vw, 48px); }
.section__sub { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.principle {
  background: var(--surface); padding: 34px 30px; border-radius: 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.principle:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.principle__num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--lav-deep);
  background: var(--grad-soft); margin-bottom: 20px;
}
.principle h3 { font-family: var(--display); font-size: 22px; margin: 0 0 12px; }
.principle p { color: var(--ink-2); font-size: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step {
  position: relative; background: var(--surface);
  padding: 28px 24px; border-radius: 20px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-family: var(--display); font-size: 18px; font-weight: 700;
  box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.step__meta { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lav-deep); margin-bottom: 10px; }
.step h3 { font-family: var(--display); font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.section__cta { margin-top: 58px; text-align: center; }

/* ============ Sub-processor table ============ */
.subproc { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.subproc__row { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; gap: 20px; padding: 20px 26px; border-top: 1px solid var(--line); align-items: center; font-size: 15.5px; }
.subproc__row:first-child { border-top: none; }
.subproc__row--head { background: var(--grad-soft); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.subproc__row b { font-family: var(--display); font-weight: 600; }
.subproc__row i { color: var(--muted); font-style: normal; font-size: 14px; }
.subproc__row span:nth-child(2), .subproc__row span:nth-child(3) { color: var(--ink-2); }
.subproc__note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }
@media (max-width: 700px) {
  .saveapp__grid { grid-template-columns: 1fr; }
  .app__row { align-items: flex-start; }
  .app__status { width: 100%; }
  .subproc__row { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
  .subproc__row--head { display: none; }
  .subproc__row span:nth-child(1) { font-size: 16px; margin-bottom: 2px; }
  .subproc__row span:nth-child(2)::before { content: "Purpose — "; color: var(--muted-2); }
  .subproc__row span:nth-child(3)::before { content: "Sees — "; color: var(--muted-2); }
}

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); background: rgba(255,255,255,0.45); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 34px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer__note { font-size: 13px; font-weight: 500; color: var(--muted); }
.footer__links { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--lav-deep); }

/* ============ Modals ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(43, 40, 64, 0.42); backdrop-filter: blur(4px); animation: fade .2s ease; }
.modal__card {
  position: relative; z-index: 1;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 48px); overflow-y: auto;
  margin: 24px auto; padding: 34px 34px 30px;
  background: var(--surface); border-radius: 26px;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  animation: pop .26s cubic-bezier(.2,.9,.3,1.1);
}
.modal__card--wide { width: min(920px, calc(100% - 32px)); }
.modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer; transition: all .18s ease;
}
.modal__close:hover { color: var(--ink); border-color: var(--lav); transform: rotate(90deg); }
.modal__head { margin-bottom: 22px; }
.modal__head .eyebrow { margin-bottom: 16px; }
.modal__head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.modal__sub { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; max-width: 52ch; }
.modal__note {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 14px; padding: 9px 14px; border-radius: 999px;
  background: rgba(180,164,244,.14); color: var(--lav-deep);
  font-size: 13.5px; font-weight: 600;
}
.modal__note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lav); flex: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* Analyzer form */
.analyzer { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; }
.field > label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.dropzone {
  border: 1.5px dashed var(--line-2); border-radius: 16px;
  padding: 22px 18px; text-align: center; cursor: pointer;
  background: var(--surface-2); transition: all .18s ease; margin-bottom: 12px;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-drag {
  border-color: var(--lav); background: var(--grad-soft); outline: none; transform: translateY(-1px);
}
.dropzone.is-loaded { border-style: solid; border-color: var(--present); background: var(--present-bg); }
.dropzone__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--lav-deep); box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.dropzone__title { font-weight: 600; font-size: 15px; }
.dropzone__hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.ta, .input {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 13px 15px; resize: vertical; transition: border-color .18s ease, box-shadow .18s ease;
}
.ta { min-height: 150px; }
.ta--tall { min-height: 300px; }
.ta:focus, .input:focus { outline: none; border-color: var(--lav); box-shadow: 0 0 0 4px rgba(180,164,244,.22); }
.analyzer__actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.analyzer__err { color: var(--missing); font-size: 14px; font-weight: 600; margin-right: auto; }
#runAnalyze.is-busy { opacity: .7; pointer-events: none; }

/* Result panel */
.result { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); animation: fade .3s ease; }
.result__top { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 22px; }
.ring { --p: 0; width: 118px; height: 118px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--lav-deep) calc(var(--p) * 1%), var(--line) 0); }
.ring__inner { width: 92px; height: 92px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.ring__num { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ring__lbl { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.result__verdict { flex: 1; min-width: 220px; }
.result__verdict h3 { font-family: var(--display); font-size: 21px; margin-bottom: 6px; }
.result__verdict p { color: var(--ink-2); font-size: 15px; }
.result__counts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.chip--present { background: var(--present-bg); color: var(--present); }
.chip--buried { background: var(--buried-bg); color: var(--buried); }
.chip--missing { background: var(--missing-bg); color: var(--missing); }
.result__items { display: grid; gap: 10px; }
.result__foot { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Verify (Step 2) banner */
.review {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--buried-bg); border: 1px solid #f0dcc2; border-radius: 12px;
  padding: 11px 14px; margin-bottom: 10px; font-size: 13.5px; color: #6b4d24;
}
.review__txt { flex: 1; min-width: 180px; }
.review__txt b { color: var(--buried); }
.review__ok {
  border: 1px solid #e2c49a; background: #fff; color: var(--buried);
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: all .16s ease;
}
.review__ok:hover { background: var(--buried); color: #fff; border-color: var(--buried); }
.ta.ta--review { border-color: var(--buried); box-shadow: 0 0 0 4px rgba(201,138,78,.15); }

/* Dashboard */
.dash { display: grid; gap: 12px; }
.dash__empty { text-align: center; color: var(--muted); padding: 40px 20px; background: var(--surface-2); border-radius: 16px; font-size: 15px; }
.dash__row {
  display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: var(--surface);
  transition: box-shadow .18s ease, transform .18s ease;
}
.dash__row:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.dash__score {
  --p: 0; flex: none; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--lav-deep) calc(var(--p) * 1%), var(--line) 0);
}
.dash__score span {
  width: 48px; height: 48px; border-radius: 50%; background: var(--surface); display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--lav-deep);
}
.dash__meta { flex: 1; }
.dash__meta b { font-size: 14.5px; }
.dash__chips { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dash__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* Signed-in nav bits */
.nav__email { font-size: 14px; color: var(--muted); font-weight: 600; }

/* Fill the gaps */
.gaps {
  margin-top: 24px; padding: 22px; border-radius: 18px;
  background: var(--grad-soft); border: 1px solid var(--line-2);
}
.gaps__head h3 { font-family: var(--display); font-size: 20px; margin-bottom: 6px; }
.gaps__head p { color: var(--ink-2); font-size: 14.5px; max-width: 60ch; }
.gaps__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.gaps .ta { min-height: 96px; background: #fff; }
.gaps .btn { margin-top: 14px; }
.gaps .btn[disabled] { opacity: .65; pointer-events: none; }

/* Export / ATS-ready CV */
.export { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.export__head h3 { font-family: var(--display); font-size: 21px; margin-bottom: 6px; }
.export__hint { color: var(--ink-2); font-size: 14.5px; max-width: 58ch; }
.tpl-picker { display: inline-flex; gap: 6px; margin: 18px 0; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.tpl { border: none; background: transparent; color: var(--muted); font-family: var(--sans); font-weight: 600; font-size: 14px; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: all .16s ease; }
.tpl:hover { color: var(--ink); }
.tpl.is-active { background: var(--surface); color: var(--lav-deep); box-shadow: var(--shadow-sm); }

.cv-preview {
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px;
  padding: 34px 40px; max-height: 420px; overflow-y: auto;
  box-shadow: var(--shadow-sm); color: #1c1c22;
}
.cvln { font-size: 13.5px; line-height: 1.5; }
.cvln--gap { height: 10px; }
.cvln--h {
  font-weight: 700; margin: 16px 0 6px; padding-bottom: 4px;
  border-bottom: 1px solid #e7e2d6; letter-spacing: .04em; text-transform: uppercase; font-size: 12.5px;
}
.cvln--h:first-child { margin-top: 0; }
/* Newly-added lines (woven in from the user's gap input) */
.cvln--added {
  background: var(--present-bg); box-shadow: inset 3px 0 0 var(--present);
  padding: 2px 8px; margin: 2px -8px; border-radius: 4px;
}
/* Template flavours (all single-column, ATS-safe) */
.cv-preview.tpl-classic { font-family: Georgia, "Times New Roman", serif; }
.cv-preview.tpl-classic .cvln--h { color: #6a2d2a; border-color: #e3d3d0; }
.cv-preview.tpl-compact { font-family: "Plus Jakarta Sans", system-ui, sans-serif; padding: 24px 30px; }
.cv-preview.tpl-compact .cvln { font-size: 12.8px; line-height: 1.4; }
.cv-preview.tpl-compact .cvln--h { margin: 11px 0 4px; color: #333; }
.cv-preview.tpl-modern { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.cv-preview.tpl-modern .cvln--h { color: var(--lav-deep); border-color: #e5def8; letter-spacing: .08em; }

.export__actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.export__msg { font-size: 13.5px; font-weight: 600; color: var(--present); }
.export__legend { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--present); margin: 4px 0 14px; }
.added-dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--present-bg); box-shadow: inset 3px 0 0 var(--present); flex: none; }
.ta--cv { min-height: 380px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.55; background: #fff; }

/* Save-to-applications inline form */
.saveapp { margin-top: 16px; padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.saveapp__title { font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.saveapp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.saveapp__grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.saveapp__grid label span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted-2); }
.saveapp__actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.saveapp__msg { font-size: 13.5px; font-weight: 600; color: var(--present); }
.saveapp__msg.is-err { color: var(--missing); }

/* My Applications list */
.apps { display: grid; gap: 12px; }
.app { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.app__row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; flex-wrap: wrap; }
.app__main { flex: 1; min-width: 180px; }
.app__co { font-size: 15.5px; }
.app__co b { font-family: var(--display); font-weight: 600; }
.app__co span { color: var(--muted); }
.app__meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.app__status { width: auto; min-width: 172px; padding: 8px 12px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.app__status.status--applied { border-color: var(--line-2); color: var(--ink-2); }
.app__status.status--interview_scheduled { border-color: var(--sky); color: #2a6f97; background: #eef6fc; }
.app__status.status--second_interview { border-color: var(--lav); color: var(--lav-deep); background: #f3effe; }
.app__status.status--reject { border-color: #ecc4cd; color: var(--missing); background: var(--missing-bg); }
.app__status.status--signed { border-color: var(--mint); color: var(--present); background: var(--present-bg); }
.app__actions { display: flex; gap: 14px; }
.app__actions .link-ghost { font-size: 13.5px; }
.app__del:hover { color: var(--missing); }
.app__cv { margin: 0 18px 18px; max-height: 320px; overflow-y: auto; }

/* Sign-in form */
.signin { display: flex; flex-direction: column; }
.signin > label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.signin .input { margin-bottom: 16px; }
.signin .btn { width: 100%; }
.signin__msg { font-size: 14px; font-weight: 600; margin-top: 14px; min-height: 20px; }
.signin__msg.is-ok { color: var(--present); }
.signin__msg.is-err { color: var(--missing); }

body.modal-open { overflow: hidden; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 44px; }
  .principles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .ticker__inner { padding: 10px 18px; font-size: 10px; }
  .ticker__inner span:nth-child(2) { display: none; }
  .nav { padding: 18px; }
  .hero { padding: 32px 18px 64px; }
  .section { padding: 66px 18px; }
  .steps { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .footer__inner { padding: 26px 18px; }
}
@media (max-width: 700px) {
  .analyzer { grid-template-columns: 1fr; }
  .ta--tall { min-height: 180px; }
  .modal__card { padding: 28px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
