/* ============================================================
   Every Talent Co , Coming soon
   Minimal, single screen. ETC tokens carried forward:
   cream #fffadb, marigold #f1b240, black #020301.
   Cormorant Garamond (display) + PT Sans (body).
   ============================================================ */

:root {
  --cream:      #fffadb;
  --cream-2:    #fff5cc;
  --ink:        #020301;
  --ink-70:     rgba(2, 3, 1, 0.70);
  --ink-50:     rgba(2, 3, 1, 0.50);
  --ink-35:     rgba(2, 3, 1, 0.35);
  --ink-15:     rgba(2, 3, 1, 0.15);
  --ink-08:     rgba(2, 3, 1, 0.08);
  --marigold:   #f1b240;
  --marigold-d: #b8842a;
  --border:     rgba(2, 3, 1, 0.14);
  --white:      #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'PT Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Stage ─────────────────────────────────────────────── */
.stage {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4rem 1.5rem 2rem;
  position: relative; overflow: hidden;
}

/* one soft marigold wash, top. Calm, not busy. */
.glow {
  position: absolute; top: -30vh; left: 50%; transform: translateX(-50%);
  width: 120vw; height: 80vh; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(241, 178, 64, 0.28), rgba(241, 178, 64, 0) 62%);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero { max-width: 44rem; text-align: center; position: relative; }

.mark {
  display: inline-flex; gap: 4px; margin-bottom: 1.25rem;
}
.mark span {
  width: 8px; height: 26px; border-radius: 2px; background: var(--ink);
  transform: skewX(-14deg); display: block;
}
.mark span:nth-child(2) { background: var(--marigold); height: 34px; margin-top: -4px; }
.mark span:nth-child(3) { opacity: .55; }

.wordmark {
  font-family: 'PT Sans', sans-serif; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; font-size: .82rem;
  color: var(--ink);
}
.formerly {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-35); margin-top: .35rem;
}

.headline {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(2.1rem, 6vw, 3.7rem); line-height: 1.08;
  letter-spacing: -.01em; margin: 1.6rem 0 1.1rem; color: var(--ink);
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--ink-70);
  max-width: 34rem; margin: 0 auto 1.8rem;
}

.badge {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; color: var(--marigold-d);
  margin-bottom: 1.6rem;
}

/* ── Waitlist ──────────────────────────────────────────── */
.waitlist { max-width: 34rem; margin: 0 auto; }
.waitlist-row {
  display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center;
  background: var(--white); border: 1px solid var(--border); border-radius: .8rem;
  padding: .4rem; box-shadow: 0 10px 30px rgba(2, 3, 1, .06);
}
.waitlist input[type=email], .waitlist select {
  font-family: inherit; font-size: .95rem; color: var(--ink);
  border: none; background: transparent; padding: .7rem .8rem; flex: 1 1 auto; min-width: 0;
}
.waitlist input[type=email] { flex: 2 1 12rem; }
.waitlist select { flex: 1 1 8rem; color: var(--ink-70); cursor: pointer; }
.waitlist input:focus, .waitlist select:focus { outline: none; }
.waitlist input::placeholder { color: var(--ink-35); }

.btn {
  font-family: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  background: var(--ink); color: var(--cream); border: none; border-radius: .6rem;
  padding: .7rem 1.5rem; transition: background .2s, transform .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { background: #1c1d1a; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn--ghost:hover { background: var(--ink-08); }
.btn--sm { padding: .5rem 1rem; font-size: .82rem; }

.waitlist-msg { min-height: 1.3rem; margin-top: .7rem; font-size: .88rem; font-weight: 700; color: var(--marigold-d); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Tool links ────────────────────────────────────────── */
.tool-links {
  display: inline-flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  justify-content: center; margin-top: 2.4rem;
}
.tool-link {
  font-family: inherit; font-size: .92rem; font-weight: 700; cursor: pointer;
  background: none; border: none; color: var(--ink); padding: .2rem 0;
  border-bottom: 2px solid var(--marigold); transition: color .2s, border-color .2s;
}
.tool-link:hover { color: var(--marigold-d); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-35); display: inline-block; }
.tool-note { font-size: .78rem; color: var(--ink-35); margin-top: .7rem; }

/* ── Footer ────────────────────────────────────────────── */
.foot {
  position: absolute; bottom: 1.4rem; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap;
  font-size: .74rem; color: var(--ink-35);
}
.foot a { color: var(--ink-50); text-decoration: none; }
.foot a:hover { color: var(--marigold-d); }

/* ── Modals ────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 3, 1, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal-card {
  position: relative; background: var(--cream); border-radius: 1.1rem;
  width: 100%; max-width: 34rem; max-height: 90vh; overflow: auto;
  box-shadow: 0 40px 90px rgba(2, 3, 1, .35); padding: 1.9rem;
  animation: pop .24s cubic-bezier(.16, 1, .3, 1);
}
.modal-card--wide { max-width: 60rem; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.modal-x {
  position: absolute; top: .9rem; right: 1rem; width: 2rem; height: 2rem;
  border: none; background: var(--ink-08); border-radius: 50%; cursor: pointer;
  font-size: 1.3rem; line-height: 1; color: var(--ink-50);
}
.modal-x:hover { background: var(--ink-15); color: var(--ink); }

.modal-head { margin-bottom: 1.3rem; }
.modal-kicker { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--marigold-d); }
.modal-head h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.9rem; line-height: 1.1; margin: .3rem 0 .5rem; }
.modal-sub { font-size: .9rem; color: var(--ink-70); }

.fld-label, .fld label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: .4rem; }
.hint { font-weight: 400; color: var(--ink-35); }
textarea, .fld input, .fld select {
  font-family: inherit; font-size: .9rem; color: var(--ink); width: 100%;
  background: var(--white); border: 1.5px solid var(--border); border-radius: .6rem; padding: .65rem .75rem;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.5; }
textarea:focus, .fld input:focus, .fld select:focus {
  outline: none; border-color: var(--marigold); box-shadow: 0 0 0 3px rgba(241, 178, 64, .22);
}
.modal-actions { display: flex; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; }

/* ── CV result ─────────────────────────────────────────── */
.cv-result { margin-top: 1.6rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.score { display: flex; align-items: center; gap: 1.3rem; margin-bottom: 1.4rem; }
.score-ring {
  width: 6.5rem; height: 6.5rem; border-radius: 50%; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--band, var(--marigold)) calc(var(--pct, 0) * 1%), var(--ink-08) 0);
  position: relative;
}
.score-ring::after { content: ''; position: absolute; inset: 8px; background: var(--cream); border-radius: 50%; }
.score-num { position: relative; z-index: 1; font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 2.3rem; line-height: 1; }
.score-of { position: relative; z-index: 1; font-size: .68rem; color: var(--ink-50); }
.score-band { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 700; color: var(--band, var(--ink)); }
.score-say { font-size: .9rem; color: var(--ink-70); }

.factors { list-style: none; display: grid; gap: .8rem; margin-bottom: 1.3rem; }
.factor-top { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: .3rem; }
.factor-name { font-weight: 700; }
.factor-val { color: var(--ink-50); }
.factor-bar { height: 7px; border-radius: 99px; background: var(--ink-08); overflow: hidden; }
.factor-fill { height: 100%; border-radius: 99px; background: var(--marigold); transition: width .6s cubic-bezier(.16,1,.3,1); }

.tips { background: rgba(241, 178, 64, .12); border-radius: .7rem; padding: .9rem 1rem; margin-bottom: 1.2rem; }
.tips h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--marigold-d); margin-bottom: .5rem; }
.tips ul { list-style: none; }
.tips li { font-size: .86rem; color: var(--ink-70); padding-left: 1.1rem; position: relative; margin-bottom: .3rem; }
.tips li::before { content: '›'; position: absolute; left: 0; color: var(--marigold-d); font-weight: 700; }

.modal-nudge { font-size: .86rem; color: var(--ink-70); text-align: center; }
.inline-link { background: none; border: none; cursor: pointer; font: inherit; color: var(--marigold-d); font-weight: 700; text-decoration: underline; padding: 0; }

/* ── JD generator ──────────────────────────────────────── */
.jd-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.4rem; align-items: start; }
.jd-form .fld { margin-bottom: .9rem; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

.jd-out-wrap { border: 1px solid var(--border); border-radius: .8rem; overflow: hidden; background: var(--white); }
.jd-out-bar { display: flex; align-items: center; justify-content: space-between; padding: .5rem .7rem; border-bottom: 1px solid var(--border); font-size: .74rem; color: var(--ink-50); background: #fdfcf3; }
.jd-out-bar > div { display: flex; gap: .4rem; }
.chip { font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer; border: 1px solid var(--border); background: var(--white); border-radius: .45rem; padding: .3rem .6rem; color: var(--ink-70); }
.chip:hover { border-color: var(--marigold); color: var(--ink); }
.jd-out { padding: 1.3rem 1.4rem; font-size: .88rem; line-height: 1.65; color: var(--ink-70); min-height: 340px; max-height: 62vh; overflow: auto; }
.jd-out:focus { outline: none; }
.jd-out h1 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 700; color: var(--ink); margin-bottom: .2rem; }
.jd-out .jd-meta { font-size: .78rem; color: var(--ink-50); margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--ink-15); }
.jd-out h2 { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--marigold-d); margin: 1.2rem 0 .5rem; }
.jd-out p { margin-bottom: .7rem; }
.jd-out ul { list-style: none; margin-bottom: .7rem; }
.jd-out li { padding-left: 1.1rem; position: relative; margin-bottom: .3rem; }
.jd-out li::before { content: '›'; position: absolute; left: 0; color: var(--marigold-d); font-weight: 700; }

/* ── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 2rem);
  background: var(--ink); color: var(--cream); font-size: .84rem; font-weight: 700;
  padding: .65rem 1.2rem; border-radius: .6rem; z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 720px) {
  .jd-grid { grid-template-columns: 1fr; }
  .jd-out { min-height: 260px; }
}
@media (max-width: 480px) {
  /* Stack the waitlist fields cleanly. Reset the flex-basis so inputs
     size to their content height instead of inheriting the horizontal
     basis (12rem/8rem) as a vertical height in a column layout. */
  .waitlist-row { flex-direction: column; align-items: stretch; gap: 0; padding: .35rem; }
  .waitlist select,
  .waitlist input[type=email] { flex: 0 0 auto; width: 100%; padding: .85rem .8rem; border-bottom: 1px solid var(--border); }
  .waitlist .btn { width: 100%; padding: .85rem 1.5rem; margin-top: .35rem; }
  .foot { position: static; margin-top: 2.5rem; }
  .modal-card { padding: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-card, .factor-fill { animation: none; transition: none; }
}
