/* JOBAI — evergreen + saffron, phone first */
:root {
  --ink: #0E1F1A;
  --ink-2: #33433E;
  --muted: #5E6E69;
  --line: #D6E3DE;
  --paper: #F3F7F5;
  --card: #FFFFFF;
  --green: #0B5D4B;
  --green-2: #084536;
  --green-soft: #E2F0EA;
  --saffron: #F2A93B;
  --saffron-soft: #FDF0DA;
  --danger: #B93A2E;
  --danger-soft: #FBE7E4;
  --info: #2C5BA8;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(14, 31, 26, .06), 0 6px 20px -8px rgba(14, 31, 26, .14);
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--paper) url("img/bg-pattern.svg") repeat;
  background-size: 240px 240px;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
main { padding: 24px 0 110px; min-height: 60vh; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
header.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo b { color: var(--green); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--green-soft); }
.nav a.on { background: var(--green-soft); color: var(--green-2); }
.bell { position: relative; display: inline-flex; padding: 8px !important; }
.dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--saffron); color: var(--ink); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }

/* Bottom bar on phones */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav .desk { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 0; position: relative; }
  .tabbar a.on { color: var(--green); }
  .tabbar svg { width: 23px; height: 23px; }
  .tabbar .dot { top: 0; right: calc(50% - 20px); }
}

/* ---------- Buttons and forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--green); color: #fff; font: 700 1rem var(--body); padding: 12px 20px; border-radius: 999px;
  text-decoration: none; min-height: 46px; transition: background .15s;
}
.btn:hover { background: var(--green-2); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.big { font-size: 1.08rem; padding: 15px 26px; min-height: 54px; }
.btn.ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.sun { background: var(--saffron); color: var(--ink); }
.btn.sun:hover { background: #E2982A; }
.btn.danger { background: var(--danger); }
.btn.small { padding: 7px 14px; min-height: 36px; font-size: .9rem; }
.btn.block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: var(--green); font: inherit; text-decoration: underline; cursor: pointer; }
form.inline { display: inline; margin: 0; }
label { display: block; font-weight: 700; margin: 14px 0 6px; font-size: .95rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 13px; min-height: 46px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--green-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .95rem; }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 8px; cursor: pointer; }

/* ---------- Cards and layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.right { margin-left: auto; }
.flash { background: var(--saffron-soft); border: 1px solid #F1D29E; color: var(--ink); padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 500; }
.note { background: var(--green-soft); border-radius: 12px; padding: 12px 14px; color: var(--green-2); }
.warn { background: var(--danger-soft); border-radius: 12px; padding: 12px 14px; color: #7A2219; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #EDF1EF; color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--green-soft); color: var(--green-2); }
.pill.sun { background: var(--saffron-soft); color: #7A4B05; }
.pill.bad { background: var(--danger-soft); color: #7A2219; }
.pill.info { background: #E5EDF9; color: var(--info); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; color: var(--muted); font-weight: 700; }
.stat { font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1; color: var(--ink); }
.page-head { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.page-head > div { flex: 1; }
.page-head img { width: 200px; flex: none; }
@media (max-width: 700px) { .page-head { gap: 10px; } .page-head img { width: 112px; } .page-head .lead { font-size: 1rem; } }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; }
.tabs a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--line); white-space: nowrap; font-size: .93rem; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- The search switch (home) ---------- */
.engine { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--green); color: #EAF5F0; border-radius: var(--radius-lg); padding: 22px; margin-bottom: 16px; position: relative; overflow: hidden; }
.engine::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(242, 169, 59, .22); pointer-events: none; }
.engine.off { background: #fff; color: var(--ink); border: 1.5px dashed var(--line); }
.engine.off::after { display: none; }
.engine h2 { color: inherit; margin: 0 0 4px; }
.engine p { margin: 0; opacity: .92; }
.pulse { width: 54px; height: 54px; border-radius: 50%; background: var(--saffron); display: grid; place-items: center; position: relative; }
.pulse::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--saffron); opacity: .6; animation: ring 2.4s ease-out infinite; }
.engine.off .pulse { background: #E6ECE9; }
.engine.off .pulse::before { display: none; }
@keyframes ring { from { transform: scale(.8); opacity: .7; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::before { animation: none; } }
.engine .actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.engine .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.engine .btn.ghost:hover { background: rgba(255,255,255,.12); }
.engine.off .btn.ghost { color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }

/* ---------- Job cards with the score ring ---------- */
.job { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; position: relative; }
.job.picked { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.job h3 { margin: 0 0 2px; font-size: 1.05rem; }
.job h3 a { color: var(--ink); text-decoration: none; }
.job h3 a:hover { text-decoration: underline; }
.job .where { color: var(--muted); font-size: .92rem; }
.job .why { margin: 8px 0 0; font-size: .95rem; color: var(--ink-2); }
.job .foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: .88rem; }
.ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--saffron) calc(var(--p) * 1%), #EEF3F1 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.ring b { position: relative; font-family: var(--display); font-size: 1rem; font-weight: 800; }
.ring.hi { background: conic-gradient(var(--green) calc(var(--p) * 1%), #EEF3F1 0); }
.pick { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; accent-color: var(--green); cursor: pointer; }
.job .body { padding-right: 34px; }
.applybar { position: sticky; bottom: 76px; z-index: 10; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 20px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); margin-top: 8px; }
.applybar span { flex: 1; font-weight: 600; }
@media (min-width: 761px) { .applybar { bottom: 16px; } }

/* ---------- Applications ---------- */
.app-row { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.app-row:last-child { border-bottom: 0; }
.app-row .t { flex: 1; min-width: 0; }
.app-row .t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; padding: 10px 0; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); color: var(--green-2); font-weight: 800; display: grid; place-items: center; font-family: var(--display); }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; font-size: .95rem; box-shadow: 0 10px 30px -18px rgba(14,31,26,.4); }
.paper h4 { font-family: var(--display); color: var(--green); margin: 14px 0 4px; font-size: .95rem; }
.paper .nm { font-family: var(--display); font-size: 1.35rem; font-weight: 800; }
.paper ul { margin: 4px 0 8px; padding-left: 18px; }
.letter { white-space: pre-wrap; font-size: .97rem; }

/* ---------- Public pages ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 26px 0 10px; }
.hero h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
.hero .lead { font-size: 1.15rem; }
.hero-art { width: 100%; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 420px; margin: 0 auto; } }
.free { display: inline-block; background: var(--saffron); color: var(--ink); font-weight: 800; padding: 4px 12px; border-radius: 999px; font-size: .9rem; margin-bottom: 12px; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: h; margin: 26px 0; }
.how > div { counter-increment: h; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.how > div::before { content: counter(h); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; }
.band { background: var(--ink); color: #DCE8E3; border-radius: var(--radius-lg); padding: 26px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin: 28px 0; }
.band h2 { color: #fff; }
@media (max-width: 700px) { .band { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.split .art { width: 100%; max-width: 420px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split .art { display: none; } }
footer { border-top: 1px solid var(--line); padding: 22px 0 100px; color: var(--muted); font-size: .9rem; }
footer a { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; min-width: 0; }
.foot-links a { overflow-wrap: anywhere; }
@media (min-width: 761px) { footer { padding-bottom: 28px; } }

/* Upload box */
.drop { border: 2px dashed #A9C6BB; border-radius: var(--radius-lg); padding: 26px 18px; text-align: center; background: #FAFCFB; position: relative; }
.drop.over { border-color: var(--green); background: var(--green-soft); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .fname { font-weight: 700; color: var(--green-2); margin-top: 8px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--green-soft); border-top-color: var(--green); animation: spin 1s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
details summary { cursor: pointer; font-weight: 700; color: var(--green); }
.desc { white-space: pre-wrap; font-size: .95rem; color: var(--ink-2); max-height: 480px; overflow: auto; }

/* fixes after review */
.nav a.btn { color: #fff; }
.nav a.btn:hover { background: var(--green-2); }
.job .body { min-width: 0; overflow-wrap: anywhere; }
.job .foot .pill { white-space: normal; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stats a { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: inherit; }
.stats a span { display: block; font-size: .85rem; line-height: 1.3; margin-top: 4px; }
@media (max-width: 480px) { .stats .stat { font-size: 1.6rem; } .stats a { padding: 12px 10px; } }

/* Ads: clearly labelled, kept apart from buttons */
.ad { margin: 22px 0; padding: 10px; border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }
.ad-label { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 6px; }
.ad-preview { height: 90px; display: grid; place-items: center; background: #EEF3F1; border-radius: 10px; color: var(--muted); font-size: .9rem; }
.ad-infeed .ad-preview { height: 120px; }

/* Premium prompt, employers section */
.upsell { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--saffron-soft); border-color: #F1D29E; box-shadow: none; }
@media (max-width: 600px) { .upsell { grid-template-columns: 1fr; } }
.employers { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin: 10px 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.ticks.off li::before { content: "–"; background: #EEF1F0; color: var(--muted); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.plan.best { border: 2px solid var(--green); box-shadow: var(--shadow); }
.plan .price { font-family: var(--display); font-size: 2rem; font-weight: 800; }
.plan .price small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.anon { filter: blur(0); color: var(--muted); }
.cand { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cand:last-child { border-bottom: 0; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.skills span { font-size: .8rem; background: #EEF3F1; padding: 2px 9px; border-radius: 999px; }

/* Picture strip on the welcome page */
.pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.pics figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 14px 18px; }
.pics img { width: 100%; height: 190px; object-fit: contain; }
.pics figcaption { font-family: var(--display); font-weight: 700; font-size: 1.08rem; margin-top: 6px; }
.pics figcaption span { display: block; font-family: var(--body); font-weight: 400; color: var(--muted); font-size: .93rem; margin-top: 4px; }
@media (max-width: 760px) { .pics { grid-template-columns: 1fr; } .pics img { height: 170px; } }
.banner-art { display: block; width: 100%; max-height: 220px; object-fit: contain; margin: 4px auto 14px; }

/* Landing banner (visitors) */
.landing { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 10px 24px; align-items: center;
  background: radial-gradient(120% 90% at 85% 10%, #13876B 0%, #0B5D4B 45%, #07402F 100%); color: #EAF5F0;
  border-radius: 28px; padding: 34px 34px 22px; margin: 6px 0 26px; overflow: hidden; }
.landing::before { content: ""; position: absolute; inset: 0; background: url("img/bg-pattern.svg") repeat; background-size: 240px; opacity: .5; filter: invert(1); pointer-events: none; }
.landing > * { position: relative; }
.tagline { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.dream { margin: 0 0 14px; line-height: 1; color: #fff; }
.dream span { display: block; font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
.dream b { display: block; font-size: clamp(5.2rem, 15vw, 9.5rem); font-weight: 800; letter-spacing: -0.05em; color: var(--saffron); line-height: .9; margin: 4px 0 6px; text-shadow: 0 6px 0 rgba(0,0,0,.18); }
.landing-lead { font-size: 1.1rem; color: #D7EBE3; max-width: 52ch; }
.btn.on-green { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); }
.btn.on-green:hover { background: rgba(255,255,255,.12); }
.landing-art { position: relative; }
.landing-art img { width: 100%; max-width: 460px; display: block; margin: 0 auto; }
.slogan { position: absolute; right: 2%; bottom: 8%; background: var(--saffron); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.1; padding: 14px 18px; border-radius: 16px; transform: rotate(-4deg); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.slogan b { color: var(--green-2); }
.features { grid-column: 1 / -1; list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.features li { background: #fff; color: var(--ink); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; align-items: center; }
.features svg { grid-row: span 2; width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--green-soft); fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.features b { font-family: var(--display); font-size: 1rem; }
.features span { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.trustbar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-weight: 700; font-size: .9rem; color: #CFE5DB; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); margin-top: 6px; }
@media (max-width: 860px) {
  .landing { grid-template-columns: 1fr; padding: 24px 18px 18px; border-radius: 22px; }
  .landing-art { order: -1; max-width: 340px; margin: 0 auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .slogan { font-size: 1rem; padding: 10px 14px; }
}
@media (max-width: 420px) { .features li { grid-template-columns: 1fr; text-align: left; } .features svg { grid-row: auto; margin-bottom: 6px; } }

/* "Need help?" assistant */
.help-fab { position: fixed; right: 16px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  background: var(--saffron); color: var(--ink); border: 0; border-radius: 999px; padding: 12px 18px; font: 800 .95rem var(--body);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); cursor: pointer; }
.help-panel { position: fixed; right: 16px; bottom: 76px; z-index: 41; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 48px -16px rgba(14,31,26,.45);
  display: flex; flex-direction: column; overflow: hidden; }
.help-panel header { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--green); color: #fff; padding: 14px 16px; }
.help-panel header span { display: block; font-size: .82rem; opacity: .85; }
.help-x { background: none; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.help-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; }
.msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--green); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.wait { color: var(--muted); font-style: italic; }
.help-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.help-chips button { background: #fff; border: 1.5px solid var(--green); color: var(--green-2); border-radius: 999px; padding: 6px 11px; font: 600 .82rem var(--body); cursor: pointer; text-align: left; }
.help-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.help-form input { min-height: 40px; }
.help-panel footer { padding: 8px 12px 12px; font-size: .8rem; color: var(--muted); border: 0; }
@media (max-width: 760px) {
  .help-fab { bottom: calc(76px + env(safe-area-inset-bottom)); padding: 10px 14px; }
  .help-fab span { display: none; }
  .help-panel { bottom: calc(132px + env(safe-area-inset-bottom)); height: min(520px, calc(100vh - 180px)); }
  body:not(:has(.tabbar)) .help-fab { bottom: 18px; }
  body:not(:has(.tabbar)) .help-panel { bottom: 76px; }
}

/* Keep the help button away from the main buttons */
body:has(#applybar:not([hidden])) .help-fab, body:has(.sticky-save) .help-fab { display: none; }
body:has(.help-panel:not([hidden])) .help-fab { display: inline-flex; }

/* Confirm-your-email reminder */
.verify-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #E7F3EE; border: 1px solid #B9DCCB; color: var(--ink); padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; }
.verify-bar span { flex: 1 1 260px; }
