/* Public pages: landing, sign-in / sign-up, the emailed-link pages and the welcome steps.
   Same look as the app (static/css/style.css): white cards on slate, the app's blue, navy and Inter. */
:root {
  --bg: #f8fafc; --surface: #ffffff; --sunken: #f1f5f9;
  --ink: #0f172a; --ink-2: #334155; --ink-3: #64748b;
  --line: #e2e8f0; --line-strong: #cbd5e1;
  --accent: #2563eb; --accent-hover: #1d4ed8; --on-accent: #ffffff; --accent-soft: #eff6ff; --accent-text: #1d4ed8;
  --navy: #0f172a;
  --ok: #047857; --ok-soft: #ecfdf5; --warn: #92400e; --warn-soft: #fffbeb; --bad: #991b1b; --bad-soft: #fef2f2;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.faint { color: var(--ink-3); }
[hidden] { display: none !important; }

/* header + footer */
.shell { max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.auth-page .top { justify-content: center; padding: 40px 0 16px; }
.auth-page .top-links { display: none; }
.auth-page .foot { justify-content: center; border-top: 0; margin-top: 22px; }
.top-links { display: flex; align-items: center; gap: 8px; }
.foot { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink-3); }
.foot a { color: var(--ink-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink-2); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--sunken); }
.btn-quiet { background: none; color: var(--accent-text); min-height: 40px; padding: 0 12px; }
.btn-quiet:hover { background: var(--accent-soft); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* cards + forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.narrow { max-width: 440px; margin: 0 auto; }
.auth { padding-top: 12px; }
.auth h1 { margin-bottom: 6px; }
.auth .lead { color: var(--ink-2); margin-bottom: 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.field label, .label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #dbeafe; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.err { font-size: 14px; color: var(--bad); margin-top: 6px; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.alert-bad { background: var(--bad-soft); color: var(--bad); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-info { background: var(--accent-soft); color: var(--accent-text); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; }
.pw { position: relative; }
.pw .input { padding-right: 72px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.icon-badge { width: 48px; height: 48px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 16px; }
.divide { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }

/* landing */
.hero { display: grid; gap: 40px; align-items: center; padding: 24px 0 56px; }
.hero h1 { font-size: 38px; line-height: 1.1; letter-spacing: -0.02em; }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 34rem; margin-top: 18px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.audience { font-size: 15px; color: var(--ink-3); margin-top: 14px; }
.section { padding: 40px 0; }
.section > h2 { font-size: 26px; margin-bottom: 24px; }
.steps { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.grid-2 { display: grid; gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan .price { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.plan .price small { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--ink-2); }
.plan ul, .ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li, .ticks li { padding-left: 26px; position: relative; color: var(--ink-2); }
.plan li::before, .ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.hero-panel { display: none; background: var(--navy); border-color: var(--navy); color: #f8fafc; }
.hero-panel .ticks li { color: #cbd5e1; }
.hero-panel .ticks li::before { border-color: #34d399; }
.hero-panel .tag { background: rgba(255, 255, 255, 0.1); color: #f8fafc; }
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 32px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 22px; color: var(--ink-3); }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { color: var(--ink-2); margin-top: 8px; }

/* welcome steps */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.progress { display: flex; gap: 6px; margin: 4px 0 22px; }
.progress span { flex: 1; height: 5px; border-radius: 999px; background: var(--sunken); }
.progress span.on { background: var(--accent); }
.wstep { max-width: 620px; margin: 0 auto; }
.wstep h1 { margin-bottom: 8px; }
.wstep .lead { color: var(--ink-2); margin-bottom: 22px; }
.drop { border: 2px dashed var(--line-strong); border-radius: 16px; padding: 28px 18px; text-align: center; background: var(--surface); cursor: pointer; display: block; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop strong { display: block; font-size: 17px; margin-bottom: 4px; }
.reading { display: flex; gap: 14px; align-items: center; }
.spinner { width: 26px; height: 26px; border-radius: 999px; border: 3px solid var(--sunken); border-top-color: var(--accent); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.from-resume { font-size: 12px; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.fields-2 { display: grid; gap: 16px; }
.actions { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 24px; }
.review dl { margin: 0; display: grid; gap: 12px; }
.review dt { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.review dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 14px; padding: 4px 10px; border-radius: 999px; background: var(--sunken); color: var(--ink-2); }
.next-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.next-list li { display: flex; gap: 10px; color: var(--ink-2); }
.next-list b { color: var(--ink); }

@media (min-width: 640px) {
  .cta-row { flex-direction: row; }
  .fields-2 { grid-template-columns: 1fr 1fr; }
  .actions { flex-direction: row; justify-content: flex-end; }
  .card { padding: 24px; }
}
@media (min-width: 768px) {
  .shell { padding: 0 32px 56px; }
  .hero h1 { font-size: 46px; }
  .hero .lead { font-size: 20px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px 32px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .section > h2 { font-size: 32px; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; padding: 56px 0 96px; }
  .hero h1 { font-size: 52px; }
  .hero-panel { display: block; }
}

/* landing: pitch sections */
.h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.punch { font-size: 19px; font-weight: 700; margin-top: 26px; max-width: 40rem; }
.does { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; max-width: 760px; }
.does li { display: flex; gap: 16px; align-items: flex-start; }
.ex-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ex-job { font-size: 13px; color: #94a3b8; }
.ex-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: ex; }
.ex-flow > li { position: relative; padding-left: 34px; counter-increment: ex; }
.ex-flow > li::before { content: counter(ex); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.ex-flow b { display: block; font-size: 15px; color: #f8fafc; }
.ex-flow span { font-size: 13px; color: #94a3b8; }
.ex-must { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 13px; }
.ex-must li { padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: #e2e8f0; }
.ex-must li em { font-style: normal; color: #94a3b8; }
.ex-must li.yes { border-left: 3px solid #34d399; }
.ex-must li.no { border-left: 3px solid #f87171; }
.limits { width: 100%; border-collapse: collapse; font-size: 15px; }
.limits th, .limits td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.limits th[scope="row"] { text-align: left; font-weight: 500; color: var(--ink-2); }
.limits thead th { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.plan-dark { background: var(--navy); border-color: var(--navy); color: #f8fafc; }
.plan-dark li { color: #cbd5e1; }
.plan-dark li::before { border-color: #34d399; }
.plan-dark .tag { background: rgba(255, 255, 255, 0.1); color: #f8fafc; }
.band { background: var(--navy); color: #f8fafc; border-radius: 16px; padding: 36px 24px; margin-top: 24px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.band h2 { font-size: 26px; }
.band p { color: #cbd5e1; }
