/* ApplyFast — light, white + green, parrot mascot. Mobile-first, max 520px. */

:root {
  --bg: #f3f9f4;
  --bg2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef7f0;
  --stroke: #d9e9dd;
  --text: #11271a;
  --dim: #4f6b59;
  --faint: #86a090;
  --accent: #159a55;
  --accent-2: #0e7a42;
  --accent-soft: #e2f5e8;
  --accent-glow: rgba(21, 154, 85, 0.22);
  --gt: #0e7a42;
  --mint: #159a55;
  --amber: #c27a00;
  --amber-soft: #fff4de;
  --rose: #cf4040;
  --rose-soft: #fdecec;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(17, 39, 26, 0.07);
  --shadow-2: 0 14px 36px rgba(17, 39, 26, 0.12);
  --spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
  --chrome-bg: rgba(255, 255, 255, 0.92);
  --input-bg: #f7fbf8;
  --bg-gradient:
    radial-gradient(90% 40% at 100% -5%, rgba(21, 154, 85, 0.14), transparent 60%),
    radial-gradient(70% 35% at -10% 10%, rgba(255, 196, 60, 0.12), transparent 55%),
    linear-gradient(180deg, #f6fbf7, #f1f8f3 60%);
}

* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  min-height: 100%;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-gradient);
  background-color: var(--bg);
  background-attachment: fixed;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
a { color: var(--accent-2); }
.display { font-family: "Sora", "Inter", sans-serif; }
#app, .app { max-width: 520px; margin: 0 auto; padding: 14px 16px 0; }

/* ---------- header ---------- */
header {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 2px 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #1fb866, var(--accent-2));
  display: grid; place-items: center; font-size: 20px; color: #fff;
  box-shadow: 0 8px 20px var(--accent-glow);
}
.logo svg { width: 30px; height: 30px; }
.head-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.head-sub { font-size: 12px; color: var(--dim); margin-top: 1px; }
.head-spacer { margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 13px; border: 1px solid var(--stroke);
  background: var(--surface); color: var(--dim); font-size: 17px;
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  transition: transform 0.25s var(--spring), background 0.2s;
}
.icon-btn:active { transform: scale(0.88); background: var(--surface-2); }

/* ---------- screens ---------- */
.screen { display: none; animation: screen-in 0.38s var(--ease) both; }
.screen.active { display: block; }
@keyframes screen-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.screen.active > * { animation: rise 0.45s var(--ease) both; }
.screen.active > *:nth-child(1) { animation-delay: 0.02s; }
.screen.active > *:nth-child(2) { animation-delay: 0.06s; }
.screen.active > *:nth-child(3) { animation-delay: 0.10s; }
.screen.active > *:nth-child(4) { animation-delay: 0.14s; }
.screen.active > *:nth-child(5) { animation-delay: 0.18s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.99); } to { opacity: 1; transform: none; } }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.card-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  color: var(--faint); margin-bottom: 12px;
}
.note { font-size: 13px; color: var(--dim); line-height: 1.6; }

/* ---------- home tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.tile {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px;
  padding: 14px 6px; text-align: center; box-shadow: var(--shadow);
  transition: transform 0.25s var(--spring);
}
.tile:active { transform: scale(0.94); }
.tile-val { font-family: "Sora", sans-serif; font-size: 22px; font-weight: 700; color: var(--accent-2); }
.tile-label { font-size: 10px; color: var(--dim); margin-top: 5px; letter-spacing: 0.02em; }

.hero-action {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px; margin-bottom: 14px; border: none; border-radius: var(--radius);
  background: linear-gradient(135deg, #1fb866, var(--accent-2)); color: #fff; cursor: pointer;
  box-shadow: 0 12px 28px var(--accent-glow); font-family: inherit;
  transition: transform 0.25s var(--spring), box-shadow 0.25s;
}
.hero-action:active { transform: scale(0.97); box-shadow: 0 4px 14px var(--accent-glow); }
.hero-icon { font-size: 26px; width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,0.18); display: grid; place-items: center; flex: none; }
.hero-title { font-family: "Sora", sans-serif; font-size: 17px; font-weight: 700; }
.hero-sub { font-size: 12.5px; opacity: 0.9; margin-top: 3px; line-height: 1.4; }

/* ---------- buttons ---------- */
.btn {
  border: none; border-radius: 14px; padding: 14px 18px; font: inherit; font-weight: 600;
  font-size: 14.5px; cursor: pointer; transition: transform 0.2s var(--spring), box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-primary {
  background: linear-gradient(135deg, #1fb866, var(--accent-2)); color: #fff;
  box-shadow: 0 8px 20px var(--accent-glow);
}
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--stroke); box-shadow: var(--shadow); }
.btn-danger { background: var(--rose-soft); color: var(--rose); border: 1px solid #f3c9c9; }
.btn-row { display: flex; gap: 10px; margin-top: 14px; }
.btn-row .btn { flex: 1; }
.mini { padding: 8px 12px; font-size: 12.5px; white-space: nowrap; }

/* ---------- forms ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; font-weight: 700; }
.input, textarea.input, select.input {
  width: 100%; padding: 13px 14px; border-radius: 13px; border: 1px solid var(--stroke);
  background: var(--input-bg); color: var(--text); font: inherit; font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.55; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: #fff; }
.help { font-size: 12.5px; color: var(--faint); margin-top: 6px; line-height: 1.5; }

/* chips that can be picked (onboarding) */
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chip {
  padding: 9px 13px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface);
  font: inherit; font-size: 13.5px; font-weight: 500; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: all 0.2s;
}
.pick-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); font-weight: 600; }
.pick-chip .n { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.pick-add { display: flex; gap: 8px; margin-top: 10px; }
.pick-add .input { flex: 1; padding: 10px 12px; font-size: 14px; }

/* ---------- processing ---------- */
.shot-frame {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--surface-2);
  min-height: 120px; border: 1px solid var(--stroke);
}
.shot-frame img { width: 100%; display: block; object-fit: cover; max-height: 300px; }
.scanline {
  position: absolute; left: 0; right: 0; height: 3px; top: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px var(--accent); animation: scan 1.8s ease-in-out infinite;
}
@keyframes scan { 0% { top: 0; } 50% { top: calc(100% - 3px); } 100% { top: 0; } }
.spin-note { display: flex; align-items: center; gap: 12px; padding: 14px 2px; color: var(--dim); font-size: 14px; }
.orb { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { display: grid; gap: 9px; }
.step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--faint); transition: color 0.3s; }
.step.on { color: var(--text); }
.step.done { color: var(--mint); }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.step.on .step-dot { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } }

/* ---------- job card ---------- */
.job-role { font-family: "Sora", sans-serif; font-size: 21px; font-weight: 700; line-height: 1.25; }
.job-meta { color: var(--dim); font-size: 13.5px; margin-top: 5px; }
.job-email { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--accent-2); margin-top: 8px; word-break: break-all; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip {
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--stroke); color: var(--dim); background: var(--surface-2);
}
.chip.good { color: var(--accent-2); border-color: #bfe8cf; background: var(--accent-soft); }
.chip.warn { color: var(--amber); border-color: #f1dcae; background: var(--amber-soft); }
.chip.bad { color: var(--rose); border-color: #f3c9c9; background: var(--rose-soft); }
.chip.cv { color: var(--accent-2); border-color: #bfe8cf; background: var(--accent-soft); }
.hold-banner {
  margin-top: 14px; padding: 12px 14px; border-radius: 13px; font-size: 13.5px; line-height: 1.5;
  background: var(--amber-soft); border: 1px solid #f1dcae; color: #7a4d00;
}
.hold-banner b { display: block; letter-spacing: 0.1em; font-size: 11px; margin-bottom: 3px; }
.review-notes { margin-top: 12px; font-size: 13px; color: var(--amber); line-height: 1.6; }
.review-notes.clean { color: var(--mint); }

/* ---------- role / location choice ---------- */
.role-sub { font-size: 13px; color: var(--dim); line-height: 1.55; margin: 8px 0 14px; }
.role-opt {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; margin-bottom: 9px;
  border: 1px solid var(--stroke); border-radius: 14px; background: var(--surface);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.role-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.role-opt input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.role-body { display: block; min-width: 0; flex: 1; }
.role-title { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.role-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.role-reason { display: block; font-size: 12.5px; color: var(--dim); margin-top: 6px; line-height: 1.5; }
.loc-list { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 6px; }
.loc-opt {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 9px;
  border: 1px solid var(--stroke); border-radius: 999px; background: var(--surface);
  color: var(--text); font: inherit; font-size: 14px; cursor: pointer; transition: all .2s;
}
.loc-num { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--faint); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }
.loc-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.loc-opt.on .loc-num { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- success ---------- */
.success-wrap { text-align: center; padding: 46px 0 30px; }
.tick-ring {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--accent-soft); display: grid; place-items: center;
  animation: pop 0.6s var(--spring) both; box-shadow: 0 0 0 10px rgba(21,154,85,0.08);
}
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.tick-svg path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.6s 0.25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-title { font-family: "Sora", sans-serif; font-size: 22px; font-weight: 700; }
.success-sub { color: var(--dim); font-size: 14px; margin-top: 8px; line-height: 1.6; }

/* ---------- rows / lists ---------- */
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--stroke); }
.row:last-child { border-bottom: none; }
.row-main { min-width: 0; flex: 1; }
.row-title { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--dim); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-end { flex-shrink: 0; text-align: right; font-size: 12px; color: var(--faint); }
.badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; flex-shrink: 0; }
.badge.sent { color: var(--accent-2); background: var(--accent-soft); }
.badge.replied { color: #0b5f8a; background: #e3f1fb; }
.badge.draft { color: var(--dim); background: var(--surface-2); }
.badge.due { color: var(--amber); background: var(--amber-soft); }
.empty { text-align: center; color: var(--faint); font-size: 13.5px; padding: 26px 10px; line-height: 1.6; }
.mail-row { cursor: pointer; border-radius: 12px; margin: 0 -8px; padding: 13px 8px; transition: background 0.2s; }
.mail-row:active { background: var(--surface-2); }

/* ---------- alert deck ---------- */
.deck-card {
  border: 1px solid var(--stroke); border-radius: 18px; padding: 14px; margin-bottom: 12px;
  background: var(--surface); box-shadow: var(--shadow); position: relative;
}
.deck-card.unseen { border-color: #bfe8cf; box-shadow: 0 0 0 3px rgba(21,154,85,0.08), var(--shadow); }
.deck-top { display: flex; gap: 12px; align-items: flex-start; }
.deck-avatar {
  width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2); font-family: "Sora", sans-serif; font-weight: 700; font-size: 18px;
}
.deck-main { min-width: 0; flex: 1; }
.deck-role { font-family: "Sora", sans-serif; font-weight: 700; font-size: 16px; line-height: 1.3; }
.deck-co { color: var(--dim); font-size: 13px; margin-top: 2px; }
.deck-score { flex: none; text-align: center; }
.deck-score b { display: block; font-family: "Sora", sans-serif; font-size: 19px; line-height: 1; }
.deck-score small { font-size: 10px; letter-spacing: 0.06em; color: var(--faint); text-transform: uppercase; }
.deck-score.good b { color: var(--accent-2); } .deck-score.warn b { color: var(--amber); } .deck-score.bad b { color: var(--rose); }
.deck-why { font-size: 13px; color: var(--dim); line-height: 1.5; margin-top: 10px; }
.deck-post { margin-top: 10px; border: 1px solid var(--stroke); border-radius: 12px; background: var(--surface-2); }
.deck-post summary { cursor: pointer; padding: 10px 12px; font-size: 12.5px; font-weight: 600; color: var(--accent-2); list-style: none; }
.deck-post summary::-webkit-details-marker { display: none; }
.deck-post pre { white-space: pre-wrap; font: inherit; font-size: 13px; line-height: 1.55; padding: 0 12px 12px; color: var(--text); }
.deck-actions { display: flex; gap: 8px; margin-top: 12px; }
.deck-actions .btn { flex: 1; padding: 12px 10px; font-size: 13.5px; }
.deck-actions .btn-ghost { flex: 0 0 auto; }
.unseen-dot { position: absolute; top: -5px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(21,154,85,0.4); }

/* ---------- tab bar ---------- */
nav.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-around; padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  background: var(--chrome-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--stroke);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none;
  color: var(--faint); font-size: 10.5px; font-family: inherit; font-weight: 600;
  padding: 6px 14px; border-radius: 14px; cursor: pointer; transition: color 0.25s, transform 0.3s var(--spring);
}
.tab .t-icon { font-size: 20px; transition: transform 0.3s var(--spring); position: relative; display: inline-block; }
.tab.active { color: var(--accent-2); }
.tab.active .t-icon { transform: translateY(-2px) scale(1.12); }
.tab:active { transform: scale(0.9); }
.tab-badge {
  position: absolute; top: -7px; right: -13px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.tab-badge[hidden] { display: none; }

/* ---------- segmented filters ---------- */
.seg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; padding: 4px; margin-bottom: 14px;
}
.seg button { border: none; background: none; color: var(--dim); font: inherit; font-size: 12.5px; font-weight: 600; padding: 9px 4px; border-radius: 11px; cursor: pointer; }
.seg button.active { background: var(--accent-soft); color: var(--accent-2); }
.seg.filters { grid-template-columns: repeat(5, 1fr); }
.seg.filters button { font-size: 11.5px; padding: 8px 2px; }

/* ---------- run pill / toast ---------- */
#runpill[hidden], .tabbar[hidden], #btn-refresh[hidden] { display: none !important; }
#runpill {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 25;
  display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--stroke);
  background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-2); cursor: pointer;
}
#runpill[data-status="ready"] { border-color: #bfe8cf; box-shadow: 0 8px 24px var(--accent-glow); }
.rp-orb { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
#runpill[data-status="ready"] .rp-orb { border: none; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
#toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(10px);
  background: #11271a; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 13.5px; font-weight: 500;
  max-width: 90vw; text-align: center; opacity: 0; pointer-events: none; transition: all 0.3s var(--ease); z-index: 40; box-shadow: var(--shadow-2);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- paywall / plan ---------- */
.paywall { text-align: center; padding: 28px 22px; }
.pw-badge { display: inline-block; font-size: 10.5px; letter-spacing: 0.12em; color: var(--accent-2); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; font-weight: 700; margin-bottom: 12px; }
.pw-title { font-size: 26px; font-weight: 700; }
.pw-price { margin: 12px 0 18px; }
.pw-amt { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent-2); }
.pw-per { display: block; color: var(--dim); font-size: 13px; margin-top: 2px; }
.pw-list { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; }
.pw-list li { padding: 9px 0 9px 28px; position: relative; font-size: 14px; border-top: 1px solid var(--stroke); }
.pw-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--mint); font-weight: 800; }
.pw-note { color: var(--dim); font-size: 12.5px; line-height: 1.6; margin: 14px 0 12px; }
.pw-status { font-size: 13px; color: var(--amber); min-height: 18px; margin-top: 8px; line-height: 1.5; }
.plan-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }

/* ---------- welcome ---------- */
.wl-hero { text-align: center; padding: 10px 4px 22px; }
.wl-mascot { width: 150px; height: 150px; margin: 0 auto 6px; animation: bob 3.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.wl-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--accent-2); background: var(--accent-soft); border: 1px solid #bfe8cf; padding: 7px 12px; border-radius: 999px; margin-bottom: 14px; }
.wl-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(21,154,85,0.15); }
.wl-h1 { font-size: clamp(28px, 7.6vw, 38px); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.wl-grad { color: var(--accent-2); }
.wl-sub { color: var(--dim); font-size: 15px; line-height: 1.6; max-width: 420px; margin: 14px auto 0; }
.wl-ctas { display: grid; gap: 10px; margin: 20px auto 0; max-width: 360px; }
.wl-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px auto 0; max-width: 420px; }
.wl-proof div { background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; padding: 12px 6px; box-shadow: var(--shadow); }
.wl-proof b { display: block; font-family: "Sora", sans-serif; font-size: 20px; color: var(--accent-2); }
.wl-proof span { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.wl-how { display: grid; gap: 10px; margin-bottom: 14px; }
.wl-step { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.wl-num { width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-2); font-family: "Sora", sans-serif; font-weight: 700; display: grid; place-items: center; flex: none; }
.wl-step b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.wl-step p { font-size: 13px; color: var(--dim); line-height: 1.55; }
.wl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.wl-feat { background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.wl-ico { font-size: 22px; margin-bottom: 8px; }
.wl-feat b { display: block; font-size: 14px; margin-bottom: 4px; }
.wl-feat p { font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.wl-offer-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 6px 0 12px; }
.wl-offer-title { font-size: 22px; font-weight: 700; }
.wl-offer-sub { font-size: 13px; color: var(--dim); }
.wl-offer-price span { font-family: "Sora", sans-serif; font-size: 30px; font-weight: 800; color: var(--accent-2); display: block; line-height: 1; }
.wl-offer-price small { font-size: 11.5px; color: var(--dim); }
.wl-legal { font-size: 11.5px; color: var(--faint); line-height: 1.6; margin-top: 16px; }

/* ---------- onboarding steps ---------- */
.ob-progress { display: flex; gap: 6px; margin-bottom: 14px; }
.ob-progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--stroke); }
.ob-progress i.on { background: var(--accent); }
.ob-step { display: none; } .ob-step.active { display: block; }
.ob-title { font-family: "Sora", sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.ob-sub { font-size: 13.5px; color: var(--dim); line-height: 1.55; margin-bottom: 16px; }
.ob-mascot { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.ob-mascot svg { width: 64px; height: 64px; flex: none; }
.ob-bubble { background: var(--accent-soft); border: 1px solid #bfe8cf; border-radius: 14px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; color: var(--accent-2); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; padding: 10px 0; }
.toggle-row input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }

/* ---------- portal ---------- */
.lead-row { cursor: pointer; align-items: flex-start; }
.lead-row .row-title, .lead-row .row-sub { white-space: normal; }
.lead-reason { font-size: 12.5px; color: var(--dim); margin-top: 4px; line-height: 1.45; }

/* ===================== desktop (≥ 900px) ===================== */
@media (min-width: 900px) {
  body { padding-bottom: 40px; }
  #app { max-width: 1120px; padding: 18px 32px 0 272px; }
  /* signed-out pages (welcome / onboarding / paywall) have no side nav */
  body:has(.tabbar[hidden]) #app { padding-left: 32px; max-width: 1040px; }
  header { padding: 6px 2px 22px; }

  /* bottom tab bar becomes a left sidebar */
  nav.tabbar {
    top: 0; bottom: 0; right: auto; width: 240px; flex-direction: column; justify-content: flex-start;
    gap: 6px; padding: 110px 16px 20px; border-top: none; border-right: 1px solid var(--stroke);
    backdrop-filter: none; background: var(--surface);
  }
  nav.tabbar::before {
    content: "ApplyFast"; position: absolute; top: 28px; left: 24px; font-family: "Sora", sans-serif;
    font-weight: 700; font-size: 20px; color: var(--text);
  }
  nav.tabbar::after {
    content: "First to every hiring post"; position: absolute; top: 56px; left: 24px; font-size: 12px; color: var(--dim);
  }
  .tab { flex-direction: row; justify-content: flex-start; gap: 12px; width: 100%; padding: 12px 14px; font-size: 14px; border-radius: 12px; }
  .tab .t-icon { font-size: 20px; }
  .tab.active { background: var(--accent-soft); }
  .tab.active .t-icon { transform: none; }
  .tab-badge { top: -6px; right: -10px; }
  #runpill { left: auto; right: 32px; transform: none; bottom: 28px; }
  #toast { bottom: 28px; }

  /* two-column screens */
  #screen-home.active, #screen-settings.active, #screen-review.active, #screen-jobs.active {
    display: grid; column-gap: 18px; align-items: start;
  }
  #screen-home.active { grid-template-columns: 1.35fr 1fr; }
  #screen-home .tiles { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  #screen-home #card-matches { grid-column: 1; grid-row: 2 / span 3; }
  #screen-home .hero-action, #screen-home #card-followups, #screen-home .card:last-child { grid-column: 2; }

  #screen-jobs.active { grid-template-columns: 1fr; }
  #screen-jobs #push-nudge { max-width: 640px; }
  #screen-jobs #jobs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  #screen-jobs .deck-card { margin-bottom: 0; }

  #screen-settings.active { grid-template-columns: 1fr 1fr; }
  #screen-settings #settings-targets { grid-row: span 3; }

  #screen-review.active { grid-template-columns: 1fr 1.4fr; }
  #screen-review #draft-card textarea.input { min-height: 320px; }
  #screen-processing .card, #screen-roles .card, #screen-success .success-wrap, #screen-history > * { max-width: 720px; }

  /* welcome page: hero on the left, the four steps on the right */
  #screen-auth.active { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 32px; align-items: start; }
  .wl-hero { text-align: left; padding-top: 24px; }
  .wl-mascot { margin: 0 0 10px; width: 130px; height: 130px; }
  .wl-h1 { font-size: 44px; }
  .wl-sub { margin-left: 0; }
  .wl-ctas { grid-template-columns: 1fr 1fr; max-width: 440px; margin-left: 0; }
  .wl-proof { margin-left: 0; }
  .wl-how { grid-column: 2; grid-row: 1; padding-top: 24px; }
  .wl-grid { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  #screen-auth > .card { grid-column: span 1; }
  #wl-signin { grid-column: 2; }
  #screen-onboard .card, #screen-subscribe > * { max-width: 680px; margin-left: auto; margin-right: auto; }
}

/* ---------- bottom sheet (visitor popup) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(17, 39, 26, 0.35); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(3px); }
.sheet[hidden] { display: none; }
.sheet-box { position: relative; width: 100%; max-width: 520px; background: var(--surface); border-radius: 22px 22px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-2); animation: sheet-up 0.4s var(--ease) both; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--stroke); background: var(--surface-2); color: var(--dim); font: inherit; cursor: pointer; }
@media (min-width: 900px) { .sheet { align-items: center; } .sheet-box { border-radius: 22px; max-width: 460px; } }

/* ---------- auth links / marquee / tour ---------- */
.auth-links { text-align: center; font-size: 13px; color: var(--dim); margin-top: 12px; }
.auth-links a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.wl-marquee-wrap { margin: 0 -16px 18px; }
.wl-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.wl-track { display: flex; gap: 10px; width: max-content; animation: marquee 48s linear infinite; padding: 4px 0; }
.wl-track span { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--stroke); font-size: 13px; font-weight: 600; color: var(--text); box-shadow: var(--shadow); }
.wl-track span.k { color: var(--accent-2); background: var(--accent-soft); border-color: #bfe8cf; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 900px) { .wl-marquee-wrap { grid-column: 1 / -1; margin: 0 0 18px; } }
.cv-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--stroke); font-size: 14px; }
.cv-row:last-child { border-bottom: 0; }
.cv-row .cv-main { flex: 1; min-width: 0; }
.cv-row .cv-kw { font-size: 12px; color: var(--dim); margin-top: 2px; overflow-wrap: anywhere; }
.ref-code { font-family: ui-monospace, Menlo, monospace; font-size: 18px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent-2); background: var(--accent-soft); padding: 10px 14px; border-radius: 12px; text-align: center; margin: 8px 0 10px; }
