/* ==========================================================================
   Abundance — shared styles
   ========================================================================== */

:root {
  --ink: #0A1628;
  --ink-2: #3D4B5C;
  --muted: #5B6878;
  --faint: #8A96A6;
  --line: #EEF2F7;
  --line-2: #E6EDF5;
  --line-3: #CFDAE6;
  --tint: #F7FAFD;
  --tint-2: #F1F5FA;
  --blue: #0A74E0;
  --blue-hover: #0862C0;
  --blue-text: #0058C7;
  --blue-deep: #0047A3;
  --blue-soft: #EAF5FF;
  --blue-light: #7CC6FA;
  --error: #B42318;
  --gutter: clamp(20px, 7vw, 140px);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ffffff;
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-text); text-decoration: none; }
a:hover { color: #003E8F; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.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; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #0A7CFF; }
.accent { color: #0A7CFF; }
.nowrap { white-space: nowrap; }
/* Hero "AI" dial: rolls A -> S on hover */
.ai-dial{display:inline-flex;vertical-align:top;cursor:default}
.ai-dial .dial{display:block;height:1.02em;width:.7em;overflow:hidden;transition:width .45s cubic-bezier(.2,.8,.2,1)}
.ai-dial .strip{display:flex;flex-direction:column;transition:transform .45s cubic-bezier(.3,1.4,.5,1)}
.ai-dial .strip span{display:block;height:1.02em;line-height:1.02;text-align:center}
.ai-dial .rest{display:block;line-height:1.02}
/* Mouse: roll while hovered. Touch: a tap adds .flip briefly (see site.js) */
@media (hover:hover){.ai-dial:hover .strip{transform:translateY(-1.02em)}.ai-dial:hover .dial{width:.62em}}
.ai-dial.flip .strip{transform:translateY(-1.02em)}
.ai-dial.flip .dial{width:.62em}
@media (prefers-reduced-motion:reduce){.ai-dial .strip,.ai-dial .dial{transition:none}}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 12px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1.2; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-lg { min-height: 56px; padding: 16px 30px; font-size: 16px; }
.btn-primary { background: var(--blue); color: #ffffff; }
.btn-primary:hover { background: var(--blue-hover); color: #ffffff; }
.btn-outline { background: #ffffff; color: var(--blue-text); border-color: var(--blue-light); }
.btn-outline:hover { background: var(--blue-soft); color: var(--blue-text); }
.btn-ghost { background: #ffffff; color: var(--ink); border-color: var(--line-3); }
.btn-ghost:hover { background: var(--tint-2); color: var(--ink); }
.btn-block { width: 100%; }
.link-btn { background: none; border: none; padding: 0; font-weight: 500; color: var(--blue-text); cursor: pointer; }
.link-btn:hover { color: #003E8F; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: auto; }
.brand span { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }

.main-nav { display: flex; align-items: center; gap: 12px; font-size: 15px; margin-left: clamp(16px, 2.8vw, 40px); margin-right: auto; }
.navlink {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); background: none; border: none; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.navlink:hover, .navlink[aria-expanded="true"] { background: var(--tint-2); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.icon-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }

.search { display: none; align-items: center; gap: 10px; width: 300px; height: 44px; padding: 0 6px 0 16px; border: 1px solid var(--blue); border-radius: 999px; background: #ffffff; box-shadow: 0 0 0 3px var(--blue-soft); color: var(--ink-2); }
.search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.search input::-webkit-search-cancel-button { display: none; }
.search .close { width: 32px; height: 32px; border-radius: 999px; border: none; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.search .close:hover { background: var(--tint-2); }
.header-actions.search-open .search { display: flex; transform-origin: right center; animation: searchin .12s ease; }
@keyframes searchin{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce) { .header-actions.search-open .search { animation: none; } }
.header-actions.search-open .search-toggle { display: none; }

.menu-toggle { display: none; }

.how-demo { display: flex; justify-content: center; margin-top: 64px; }

/* Coming soon page */
.soon { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: clamp(96px, 18vh, 200px); padding-bottom: clamp(96px, 18vh, 200px); }
.soon h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; font-weight: 400; letter-spacing: -0.04em; max-width: 860px; text-wrap: balance; }
.soon p { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-2); font-weight: 300; max-width: 560px; }
.soon-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }

/* Products mega menu */
.mega {
  position: absolute; top: 100%; left: var(--mega-left, var(--gutter)); width: var(--mega-width, 900px); padding-top: 8px;
  z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s;
}
.mega.open {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .12s ease, transform .12s ease, visibility 0s;
}
.mega-panel { display: flex; max-height: calc(100vh - 100px); background: #ffffff; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 24px 60px rgba(10, 22, 40, 0.12); overflow: hidden; }
.mega-side { width: 240px; flex-shrink: 0; padding: 28px; overflow-y: auto; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.mega-label { font-size: 13px; color: var(--faint); }
.mega-cats { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.mega-cats a { font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.mega-cats a:hover { color: var(--blue-text); }
.mega-main { flex: 1; min-width: 0; padding: 28px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; }
.mega-group { display: flex; flex-direction: column; gap: 10px; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); column-gap: 24px; row-gap: 12px; }
.product-link { display: flex; flex-direction: column; gap: 3px; color: var(--ink); }
.product-link:hover { color: var(--ink); }
.product-link:hover .pname { color: var(--blue-text); }
.pname { font-size: 16px; letter-spacing: -0.01em; transition: color .15s ease; }
.pname b { font-weight: 600; }
.pdesc { font-size: 13px; line-height: 1.45; color: var(--muted); }
/* Resources menu: two columns (Company, Support) */
.res-main { flex-direction: row; gap: 40px; }
.res-main .mega-group { flex: 1; min-width: 0; }
.res-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.res-list .pname { font-size: 17px; }

/* ---------- Layout helpers ---------- */
.section { padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap { max-width: 1160px; margin: 0 auto; }

/* ---------- Homepage ---------- */
.hero { text-align: center; padding-top: clamp(64px, 16vh, 176px); padding-bottom: clamp(64px, 8vw, 120px); display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(44px, min(6.2vw, 10vh), 88px); line-height: 1.02; font-weight: 400; letter-spacing: -0.045em; max-width: 1000px; }
.hero p { margin-top: clamp(20px, 3.5vh, 32px); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 680px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(28px, 5vh, 44px); }
.btn-hero { min-height: 56px; padding: 16px 42px; font-size: 17px; }

.panel-outer { border: 1px solid var(--line-2); border-radius: 24px; background: var(--tint); padding: 14px; }
.panel { background: #ffffff; border: 1px solid var(--line-2); border-radius: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel-col { padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.panel-col + .panel-col { border-left: 1px solid var(--line); }
.panel-step { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kv { display: flex; flex-direction: column; gap: 6px; }
.kv .k { font-size: 13px; color: var(--muted); }
.kv .v { font-size: 16px; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); }
.tag-outline { background: none; border: 1px solid #E3EAF2; color: var(--ink-2); }
.session { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; }
.session + .session { border-top: 1px solid #F0F4F8; }
.session .t { font-size: 15px; font-weight: 500; }
.session .s { font-size: 13px; color: var(--muted); }
.status { font-size: 12px; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.status-done { background: #E7F7EE; color: #11663A; }
.status-qa { background: var(--blue-soft); color: var(--blue-deep); }
.status-idle { background: #F2F4F7; color: #475467; }
.tree { font-family: var(--mono); font-size: 13px; line-height: 2.1; color: var(--ink-2); background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.tree .root { color: var(--ink); }
.tree .l1 { padding-left: 18px; } .tree .l2 { padding-left: 36px; }

.statement { padding-top: clamp(80px, 10vw, 180px); padding-bottom: clamp(100px, 12vw, 200px); display: flex; justify-content: center; }
.statement p { max-width: 980px; text-align: center; font-size: clamp(28px, 3.1vw, 44px); line-height: 1.28; letter-spacing: -0.03em; }
.statement span { color: var(--faint); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.section-head .left { display: flex; flex-direction: column; gap: 20px; max-width: 620px; }
.h2 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 400; }
.lede { max-width: 400px; font-size: 18px; line-height: 1.6; color: var(--ink-2); font-weight: 300; }
.data-types { padding-bottom: clamp(100px, 12vw, 200px); display: flex; flex-direction: column; gap: 72px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line-2); border-radius: 20px; padding: 44px; display: flex; flex-direction: column; gap: 18px; }
.card h3 { margin-top: 12px; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.card p, .step p, .use p { font-size: 17px; line-height: 1.6; color: var(--ink-2); font-weight: 300; }

.how { background: var(--tint); padding-top: clamp(100px, 12vw, 180px); padding-bottom: clamp(100px, 12vw, 180px); }
.how .wrap { display: flex; flex-direction: column; gap: 88px; }
.how-head { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.how-head .h2 { max-width: 760px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; }
.step { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid #CFDDEC; padding-top: 32px; }
.step .n { font-family: var(--mono); font-size: 14px; color: var(--blue-text); }
.step h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }

.uses { padding-top: clamp(100px, 12vw, 200px); padding-bottom: clamp(100px, 12vw, 200px); }
.uses .wrap { display: flex; flex-direction: column; gap: 72px; }
.uses-head { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.use { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; padding: 36px 0; border-top: 1px solid var(--line-2); }
.use:last-child { border-bottom: 1px solid var(--line-2); }
.use h3 { font-size: 28px; font-weight: 400; letter-spacing: -0.02em; }

.trust { padding-bottom: clamp(100px, 12vw, 200px); }
.trust .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.trust-card { background: var(--tint); border-radius: 20px; padding: 44px; display: flex; flex-direction: column; gap: 16px; }
.trust-card h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.trust-card p { font-size: 16px; line-height: 1.6; color: var(--ink-2); font-weight: 300; }

.cta-wrap { padding-bottom: clamp(100px, 12vw, 200px); }
.cta { background: var(--ink); border-radius: 28px; padding: clamp(56px, 8vw, 120px) clamp(28px, 6.6vw, 96px); display: flex; justify-content: space-between; align-items: center; gap: 64px; flex-wrap: wrap; }
.cta .text { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.cta h2 { font-size: clamp(38px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 400; color: #ffffff; }
.cta h2 em { font-family: var(--serif); font-style: italic; color: #8FD3FB; }
.cta p { font-size: 19px; line-height: 1.6; color: #B7C3D3; font-weight: 300; }
.cta .actions { display: flex; flex-direction: column; gap: 14px; min-width: 260px; }
.btn-on-dark { color: #ffffff; border-color: #5BB8F7; }
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }

/* ---------- Footer ---------- */
.site-footer { background: #F7F9FC; border-top: 1px solid var(--line); padding-top: 48px; padding-bottom: 40px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px 80px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 18px; min-width: 160px; }
.footer-col .h { color: var(--ink); font-size: 18px; font-weight: 500; }
.footer-col p { margin: 0; font-size: 16px; color: var(--muted); }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-social { display: flex; align-items: center; gap: 24px; }
.footer-social a { display: inline-flex; color: #4A5568; }
.footer-social a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 40px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Jobs page ---------- */
.jobs-top { padding-top: 56px; }
.crumbs { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.crumbs a { color: var(--ink); }
.crumbs .sep { color: var(--faint); }
.jobs-title { margin-top: 40px; min-height: 1em; font-size: clamp(36px, 4.5vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; }
.tabs { display: flex; align-items: flex-end; gap: clamp(24px, 3.3vw, 48px); margin-top: 56px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0 0 14px; font-size: 17px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; }
.filter-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 14px 24px; border: 1.5px solid var(--ink); border-radius: 999px; background: #ffffff; font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer; }
.filter-toggle:hover { background: var(--tint-2); }
.results { font-family: var(--mono); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }

.listing { display: flex; gap: 48px; align-items: flex-start; padding-top: 40px; padding-bottom: 160px; }
.filters { width: 260px; flex-shrink: 0; height: 880px; overflow-y: auto; padding-right: 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 44px; }
.filters > * { flex-shrink: 0; }
.listing.filters-hidden .filters { display: none; }
.fgroup { display: flex; flex-direction: column; gap: 16px; border: none; margin: 0; padding: 0; min-width: 0; }
.fgroup legend, .fgroup .ftitle { padding: 0; margin-bottom: 16px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.fgroup .ftitle { margin-bottom: 0; }
.opt { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink); cursor: pointer; }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; }
.opt .label { flex: 1; }
.opt .count { font-size: 14px; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-x { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid #DCE4EE; border-radius: 999px; background: #ffffff; font-size: 15px; color: var(--ink); cursor: pointer; }
.chip-x:hover { border-color: var(--ink-2); }
.clear-all { align-self: flex-start; background: none; border: none; border-bottom: 1.5px solid var(--ink); padding: 0 0 4px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); cursor: pointer; }

.jobs-main { flex: 1; min-width: 0; }
.job-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.job {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 210px; padding: 24px;
  border: 1px solid var(--line-2); border-radius: 16px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.job:hover, .job:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.job .cover { position: absolute; inset: 0; border-radius: 16px; z-index: 1; }
.job .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.job .product { font-size: 13px; color: var(--faint); }
.job .save { position: relative; z-index: 2; width: 36px; height: 36px; margin: -7px -7px -7px 0; border: none; background: none; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.job .save:hover { background: var(--tint-2); }
.job .save[aria-pressed="true"] svg { fill: var(--blue); stroke: var(--blue); }
@keyframes heartpop{0%{transform:scale(1)}30%{transform:scale(.78)}65%{transform:scale(1.08)}100%{transform:scale(1)}}
.job .save.pop svg { animation: heartpop .38s ease-out; }
@media (prefers-reduced-motion: reduce) { .job .save.pop svg { animation: none; } }
.job .title { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.job .meta { font-size: 15px; color: var(--muted); }
.job .bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.job .pay { font-size: 16px; font-weight: 500; }
.job .action { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--ink); transition: color .15s ease; }
.job .action svg { opacity: 0; transform: translate(-4px, 4px); transition: opacity .15s ease, transform .15s ease; }
.job:hover .action, .job:focus-within .action { color: var(--blue); }
.job:hover .action svg, .job:focus-within .action svg { opacity: 1; transform: none; }

.empty { padding: 120px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.empty h2 { font-size: 24px; font-weight: 500; }
.pager { display: flex; justify-content: center; align-items: center; gap: 32px; margin-top: 56px; }
.pager button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 20px; border: 1px solid #DCE4EE; border-radius: 999px; background: #ffffff; font-size: 16px; color: var(--ink); cursor: pointer; }
.pager button:hover:not(:disabled) { background: var(--tint-2); }
.pager button:disabled { color: #B8C4D2; cursor: default; }
.pager .label { font-family: var(--mono); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

.join { padding-bottom: 160px; }
.join .box { background: var(--tint); border: 1px solid var(--line-2); border-radius: 24px; padding: clamp(40px, 5vw, 72px) clamp(28px, 5.5vw, 80px); display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.join .text { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.join h2 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1; font-weight: 400; letter-spacing: -0.03em; }
.join p { font-size: 18px; line-height: 1.6; color: var(--ink-2); font-weight: 300; }

/* ---------- Auth pages (sign up / log in) ---------- */
.auth { min-height: 100vh; display: flex; }
.auth-side { width: 480px; flex-shrink: 0; padding: 48px 56px; background: var(--tint); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.auth-side h1 { margin-top: 120px; font-size: 44px; line-height: 1.08; font-weight: 500; letter-spacing: -0.035em; }
.auth-side .intro { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--ink-2); font-weight: 300; }
.auth-side .switch { margin-top: auto; padding-top: 48px; font-size: 15px; color: var(--muted); }
.auth-side .switch a { font-weight: 500; }
.progress { list-style: none; margin: 64px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.progress li { display: flex; align-items: center; gap: 16px; padding: 12px 0; font-size: 16px; color: var(--faint); }
.progress .dot { width: 32px; height: 32px; border-radius: 999px; border: 1.5px solid var(--line-3); background: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: var(--faint); flex-shrink: 0; }
.progress li.active { color: var(--ink); font-weight: 500; }
.progress li.active .dot { border-color: var(--blue); color: var(--blue); }
.progress li.done { color: var(--ink); }
.progress li.done .dot { background: var(--blue); border-color: var(--blue); color: #ffffff; }
.progress li .check { display: none; }
.progress li.done .num { display: none; }
.progress li.done .check { display: block; }

.auth-main { flex: 1; min-width: 0; padding: 48px clamp(20px, 8vw, 120px); display: flex; flex-direction: column; }
.auth-bar { display: flex; justify-content: space-between; align-items: center; min-height: 46px; }
.back { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; padding: 0; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.back:hover { color: var(--ink); }
.step-count { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.auth-form { width: 100%; max-width: 560px; margin: 72px auto 0; }
.screen { display: flex; flex-direction: column; gap: 28px; }
.screen[hidden] { display: none; }
.screen-head { display: flex; flex-direction: column; gap: 10px; }
.screen-head h2 { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.screen-head p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.fields { display: flex; flex-direction: column; gap: 20px; }
.field-wrap { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 15px; font-weight: 500; }
.field-label .opt-note, .pick-group legend .opt-note { font-weight: 400; color: var(--faint); }
.hint { font-size: 14px; color: var(--muted); }
.field {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line-3); border-radius: 12px;
  font: inherit; font-size: 16px; color: var(--ink); background: #ffffff; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.field:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea.field { height: 120px; padding: 14px 16px; resize: vertical; }
.code-field { font-family: var(--mono); font-size: 22px; letter-spacing: 0.5em; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap select:invalid { color: var(--faint); }
.select-wrap select option { color: var(--ink); }
.select-wrap svg { position: absolute; right: 16px; top: 18px; pointer-events: none; }
.or { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--faint); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.choices { display: flex; flex-direction: column; gap: 16px; }
.choice { display: flex; align-items: flex-start; gap: 18px; width: 100%; padding: 24px; border: 1.5px solid var(--line-2); border-radius: 16px; background: #ffffff; text-align: left; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.choice:hover { border-color: var(--blue); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex-shrink: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--blue); background: #F5FAFF; }
.choice .ct { display: block; font-size: 18px; font-weight: 500; }
.choice .cd { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.pick-group { display: flex; flex-direction: column; gap: 12px; border: none; margin: 0; padding: 0; min-width: 0; }
.pick-group legend { padding: 0; margin-bottom: 12px; font-size: 15px; font-weight: 500; }
.pick { position: relative; display: inline-flex; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-3); background: #ffffff; font-size: 15px; color: var(--ink-2); transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.pick input:checked + span { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-deep); }
.pick input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.pick:hover span { border-color: var(--blue); }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.form-foot { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.form-error { font-size: 15px; color: var(--error); min-height: 0; }
.form-error:empty { display: none; }
.legal { font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.done-screen { align-items: flex-start; gap: 24px; }
.done-icon { width: 64px; height: 64px; border-radius: 999px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; }
.done-screen h2 { font-size: 40px; line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; }
.done-screen p { font-size: 17px; line-height: 1.6; color: var(--ink-2); font-weight: 300; }
.done-screen .strong { color: var(--ink); font-weight: 500; }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .header-inner { padding-left: 40px; padding-right: 40px; }
}

@media (max-width: 1180px) {
  .main-nav { gap: 4px; }
  .mega-side { width: 220px; padding: 24px; }
  .mega-main { padding: 24px 28px; }
  .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1199px) {
  .header-inner { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; order: 1; }
  .main-nav { order: 2; }
  .mega { order: 3; }
  .header-actions { order: 4; }
  .main-nav, .header-actions { display: none; width: 100%; }
  /* Open menu can be taller than the screen: let the header scroll on its own */
  .site-header.nav-open { max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .site-header.nav-open .main-nav { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding-top: 8px; margin: 0; }
  .site-header.nav-open .header-actions { display: flex; flex-wrap: wrap; order: 4; padding-bottom: 8px; }
  .site-header.nav-open .main-nav .navlink { justify-content: space-between; border-radius: 12px; font-size: 17px; }
  .header-actions .search { width: 100%; }
  .header-actions.search-open { flex-direction: column; align-items: stretch; }
  .header-actions .btn:not(.icon-btn) { flex: 1; }
  .mega { position: static; padding: 0 0 8px; width: 100% !important; }
  .site-header.nav-open .mega.open { display: block; }
  .mega:not(.open) { display: none; }
  .site-header:not(.nav-open) .mega { display: none; }
  .mega-panel { flex-direction: column; box-shadow: none; max-height: none; }
  .mega-side { width: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 24px; }
  .mega-cats { margin-top: 16px; gap: 12px; }
  .mega-cats a { font-size: 18px; }
  .mega-main { padding: 24px; gap: 28px; }
  .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-main { flex-direction: column; gap: 28px; }

  .panel { grid-template-columns: 1fr; }
  .panel-col + .panel-col { border-left: none; border-top: 1px solid var(--line); }
  .card-grid-2, .steps, .trust .wrap { grid-template-columns: 1fr; }
  .steps { gap: 40px; }
  .use { grid-template-columns: 1fr; gap: 16px; }
  .cta .actions { min-width: 0; width: 100%; }

  .listing { flex-direction: column; gap: 32px; }
  .filters { width: 100%; height: auto; max-height: none; overflow: visible; padding-right: 0; border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .filters .applied { grid-column: 1 / -1; }
  .listing.filters-hidden .filters { display: none; }

  .auth { flex-direction: column; }
  .auth-side { width: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 24px clamp(20px, 8vw, 120px); }
  .auth-side h1, .auth-side .intro, .auth-side .switch { display: none; }
  .progress { flex-direction: row; gap: 8px; margin-top: 20px; }
  .progress li { padding: 0; }
  .progress li .text { display: none; }
  .progress li + li::before { content: ""; width: 24px; height: 1.5px; background: var(--line-3); }
  .auth-main { padding-top: 24px; }
  .auth-form { margin-top: 32px; }
  .mobile-switch { display: block !important; margin-top: 32px; text-align: center; font-size: 15px; color: var(--muted); }
}

@media (max-width: 640px) {
  .brand img { width: 38px; }
  .brand span { font-size: 19px; }
  .hero-actions .btn { width: 100%; max-width: 340px; }
  .panel-col { padding: 24px; }
  .card, .trust-card { padding: 28px; }
  .mega-grid { grid-template-columns: 1fr; }
  .job-grid { grid-template-columns: 1fr; }
  .job { min-height: 190px; }
  .filters { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .pager { gap: 12px; }
  .pager .label { font-size: 12px; }
  .screen-head h2 { font-size: 28px; }
  .done-screen h2 { font-size: 32px; }
}

.mobile-switch { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
