:root {
  --brand: #0071e3;        /* Apple blue */
  --brand-dark: #0058b9;
  --brand-light: #2997ff;
  --soft: #e8f1fc;
  --star: #f5a623;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --bg: #f5f5f7;
  --night: #0b0d14;
  --good: #1d8348;
  --bad: #c0362c;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .05), 0 18px 40px rgba(0, 40, 100, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.022em; font-weight: 700; }
h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.45rem; }
h3, .h3 { font-size: 1.08rem; margin-top: 1.25rem; letter-spacing: -.01em; }
.card h3:first-child, .card .h3:first-child { margin-top: 0; }
p { margin: 0 0 .75rem; }
section { margin: 2.5rem 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
main.wrap { padding-top: 1.75rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.good-text { color: var(--good); }
.bad-text { color: var(--bad); }

/* Header & footer */
.top { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .06); position: sticky; top: 0; z-index: 20; transition: background .3s, border-color .3s; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.logo { font-size: 1.55rem; font-weight: 800; color: var(--ink); letter-spacing: -.045em; }
.logo i { color: var(--brand); font-style: normal; }
.logo:hover { text-decoration: none; }
#nav { display: flex; align-items: center; gap: 1.4rem; }
#nav > a:not(.btn), #nav .link { color: var(--ink); font-weight: 500; font-size: .95rem; opacity: .85; }
#nav > a:not(.btn):hover, #nav .link:hover { opacity: 1; text-decoration: none; }
#nav form { margin: 0; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* Home: dark header that turns glassy white on scroll */
.home .top:not(.scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .top:not(.scrolled) .logo, .home .top:not(.scrolled) #nav > a:not(.btn), .home .top:not(.scrolled) #nav .link, .home .top:not(.scrolled) .menu-btn { color: #fff; }
.home .top { position: fixed; left: 0; right: 0; }
.home main.wrap { padding-top: 0; }

.foot { background: var(--night); color: #a1a1a6; margin-top: 4rem; font-size: .875rem; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 1.25rem 2rem; }
.foot b { color: #fff; display: block; margin-bottom: .6rem; font-size: .9rem; }
.foot a { color: #a1a1a6; display: block; padding: .2rem 0; }
.foot a:hover { color: #fff; text-decoration: none; }
.foot .logo { color: #fff; display: inline-block; margin-bottom: .5rem; }
.foot .base { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.1rem 1.25rem; }

/* Buttons & forms */
.btn { display: inline-block; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 980px; padding: .7rem 1.35rem; font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; text-align: center; transition: background .2s, transform .15s, box-shadow .2s; }
.btn:hover { background: var(--brand-dark); text-decoration: none; box-shadow: 0 6px 18px rgba(0, 113, 227, .3); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); box-shadow: none; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: #f0f0f3; box-shadow: none; }
.btn.sm { padding: .45rem .95rem; font-size: .875rem; }
.btn.block { display: block; width: 100%; margin-top: .6rem; }
.btn:disabled { opacity: .6; cursor: wait; }
.link { background: none; border: 0; padding: 0; font-family: inherit; font-size: inherit; color: var(--brand); cursor: pointer; }
.link.danger { color: var(--bad); }
.icon-btn { background: none; border: 0; font-size: 1.25rem; color: #c7c7cc; cursor: pointer; line-height: 1; transition: transform .2s, color .2s; }
.icon-btn.on, .icon-btn:hover { color: #ff375f; transform: scale(1.15); }

label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 .9rem; }
input, select, textarea { display: block; width: 100%; margin-top: .3rem; padding: .7rem .85rem; font-family: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink); background: #fff; border: 1px solid #d2d2d7; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.btn:focus-visible { outline: 3px solid rgba(0, 113, 227, .4); outline-offset: 2px; }
input[type=checkbox], input[type=radio] { display: inline; width: auto; margin: 0 .4rem 0 0; accent-color: var(--brand); box-shadow: none; }
.check { display: flex; align-items: center; font-weight: 500; }
.check.inline { display: inline-flex; margin: 0; }
.pad-top { padding-top: 1.7rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.form { max-width: 820px; }
.two, .three { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
.three { grid-template-columns: 1fr 1fr 1fr; }
.actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }
.ai { margin: .5rem 0 1rem; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #0071e3, #a855f7, #f5a623) border-box; border: 1.5px solid transparent; }
.ai-msg { display: block; color: var(--bad); font-size: .85rem; margin: -.5rem 0 1rem; }

/* Home hero */
.hero { position: relative; margin: 0 calc(50% - 50vw); padding: 9rem 1.25rem 5rem; background: var(--night); color: #fff; text-align: center; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.hero::before { background: radial-gradient(circle, #0071e3, transparent 65%); top: -30vmax; left: -15vmax; }
.hero::after { background: radial-gradient(circle, #6e3bff, transparent 65%); bottom: -35vmax; right: -20vmax; animation-delay: -9s; opacity: .4; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 1rem; }
.rotate { display: inline-block; background: linear-gradient(90deg, #2997ff, #a78bfa 50%, #2997ff); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; transition: opacity .35s, transform .35s; }
.rotate.out { opacity: 0; transform: translateY(.3em); }
@keyframes shine { to { background-position: 200% center; } }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #a1a1a6; max-width: 620px; margin: 0 auto; }
.hero .search { box-shadow: 0 20px 60px rgba(0, 0, 0, .35); border: 0; }
.hero .popular { color: #86868b; font-size: .9rem; }
.hero .popular a { color: #d1d1d6; display: inline-block; margin: .2rem; padding: .3rem .8rem; border: 1px solid rgba(255, 255, 255, .15); border-radius: 980px; transition: background .2s, border-color .2s; }
.hero .popular a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); text-decoration: none; }
.counters { display: flex; justify-content: center; gap: clamp(1.5rem, 6vw, 4.5rem); margin-top: 3rem; }
.counters b { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; color: #fff; }
.counters span { color: #86868b; font-size: .9rem; }

/* Hiring-now ticker */
.ticker { margin: 0 calc(50% - 50vw); background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: .85rem 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: inline-flex; gap: 2.5rem; animation: scroll 40s linear infinite; padding-left: 2.5rem; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { color: var(--ink); font-weight: 500; }
.ticker a b { color: var(--brand); margin-right: .4rem; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #30d158; margin-right: .5rem; box-shadow: 0 0 0 0 rgba(48, 209, 88, .6); animation: pulse 1.8s infinite; vertical-align: 1px; }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); } }

/* Section headings */
.kicker { display: inline-block; color: var(--brand); font-weight: 600; font-size: .85rem; letter-spacing: .02em; margin-bottom: .35rem; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -.035em; }

/* Category tiles */
.cats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cat { display: flex; align-items: center; gap: .85rem; background: #fff; border-radius: var(--radius); padding: 1.1rem; color: var(--ink); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); text-decoration: none; }
.cat .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: hsl(var(--h) 90% 95%); flex: none; }
.cat b { display: block; font-size: .98rem; }
.cat span { color: var(--muted); font-size: .85rem; }

/* How it works */
.how { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.how div { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); counter-increment: step; }
.how div::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--brand); font-weight: 700; margin-bottom: .8rem; }
.how b { display: block; font-size: 1.05rem; margin-bottom: .3rem; }
.how p { color: var(--muted); margin: 0; font-size: .95rem; }
.tabset > input { position: absolute; opacity: 0; }
.tabset .switch { display: inline-flex; background: #e8e8ed; border-radius: 980px; padding: 4px; margin: 1rem 0 1.5rem; }
.tabset .switch label { margin: 0; padding: .5rem 1.2rem; border-radius: 980px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--muted); transition: background .25s, color .25s; }
.tabset .panel { display: none; }
#tab-seek:checked ~ .switch [for=tab-seek], #tab-hire:checked ~ .switch [for=tab-hire] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
#tab-seek:checked ~ .panel.seek, #tab-hire:checked ~ .panel.hire { display: grid; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* AI band */
.ai-band { position: relative; margin: 0 calc(50% - 50vw); padding: 5rem 1.25rem; background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.ai-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 20% 0%, rgba(0, 113, 227, .45), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(168, 85, 247, .35), transparent 55%); }
.ai-band .wrap { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: center; }
.ai-band .section-title { color: #fff; }
.ai-band p { color: #a1a1a6; }
.ai-list { display: grid; gap: .8rem; }
.ai-list div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 1rem 1.2rem; backdrop-filter: blur(10px); transition: background .25s, transform .25s; }
.ai-list div:hover { background: rgba(255, 255, 255, .1); transform: translateX(6px); }
.ai-list b { display: block; color: #fff; }
.ai-list span { color: #a1a1a6; font-size: .9rem; }
.spark { background: linear-gradient(90deg, #2997ff, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* Search box */
.search { display: flex; gap: .5rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: .5rem; max-width: 860px; margin: 2rem auto 1.25rem; box-shadow: var(--shadow); text-align: left; color: var(--ink); }
.search label { flex: 1 1 240px; display: flex; align-items: center; gap: .6rem; margin: 0; padding: 0 .85rem; font-weight: 600; font-size: .85rem; color: var(--muted); }
.search label + label { border-left: 1px solid var(--line); }
.search label input { border: 0; margin: 0; padding: .8rem 0; box-shadow: none; }
.search label input:focus { box-shadow: none; }
.search .btn { padding: .85rem 1.8rem; }
.search.compact { margin: 0 0 1.5rem; max-width: none; }
.search.single { max-width: 640px; }
.filters { flex-basis: 100%; display: flex; gap: .5rem; flex-wrap: wrap; padding: .6rem .35rem .2rem; border-top: 1px solid var(--line); }
.filters select { width: auto; margin: 0; padding: .45rem 2rem .45rem .9rem; font-size: .875rem; border-radius: 980px; background-color: var(--bg); border-color: transparent; }
.filters .check { margin: 0 .5rem; font-size: .9rem; color: var(--ink); }

/* Page heading band (inner pages) */
.page-head { margin: -1.75rem calc(50% - 50vw) 1.75rem; padding: 2.5rem 1.25rem 1.5rem; background: linear-gradient(180deg, #fff, var(--bg)); }
.page-head > * { max-width: 1140px; margin-left: auto; margin-right: auto; }

/* Cards & lists */
.card { background: #fff; border: 1px solid rgba(0, 0, 0, .04); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 1.4rem; }
.card + .card { margin-top: 1rem; }
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid .card + .card, .list .card + .card, .stats .card + .card, .split .card + .card { margin-top: 0; }
.grid.four { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.list { display: grid; gap: .9rem; }
.split { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.row-head h1, .row-head h2 { margin: 0; }
.layout { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; }
.layout aside .card + .card { margin-top: 1rem; }
.layout section:first-child { margin-top: 0; }
.company-head + .layout { margin-top: 1.25rem; }
section.company-head { margin: 0; }
.sticky { position: sticky; top: 80px; }
.crumbs { font-size: .875rem; color: var(--muted); margin: 0 0 .9rem; }
.empty { text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.empty h1 { color: var(--ink); }
.pager { display: flex; justify-content: center; gap: .75rem; margin: 2rem 0; }

.job { padding: 1.3rem 1.4rem; transition: transform .25s, box-shadow .25s; position: relative; }
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.job-head { display: flex; gap: .85rem; align-items: flex-start; }
.job-head > div { flex: 1; min-width: 0; }
.job-head form { margin: 0; }
.job h3 { margin: 0 0 .1rem; font-size: 1.1rem; }
.job h3 a { color: var(--ink); }
.job h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.job .co, .job form { position: relative; z-index: 1; }
.job p { margin: 0 0 .25rem; }
.co { font-size: .95rem; }
.co a { color: var(--ink); font-weight: 500; }
.snippet { color: var(--muted); font-size: .9rem; margin-top: .35rem !important; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.tag { background: #f0f0f3; color: #3a3a3c; border-radius: 980px; padding: .25rem .7rem; font-size: .8rem; font-weight: 600; }
.tag.pay { background: var(--soft); color: var(--brand-dark); }
.tag.soft { background: var(--soft); color: var(--brand-dark); }
.tag.good { background: #e4f6ea; color: var(--good); }
.tag.new { background: linear-gradient(90deg, #0071e3, #7c3aed); color: #fff; }
.prose { color: #3a3a3c; }
.prose ul { padding-left: 1.25rem; margin: 0 0 .9rem; }
.prose li { margin-bottom: .3rem; }
.match b { color: var(--good); font-size: 1.2rem; }

/* Stars: --r is the rating out of 5 */
.stars { display: inline-block; font-size: .92rem; letter-spacing: 1px; line-height: 1; vertical-align: -1px; }
.stars::before { content: "★★★★★"; background: linear-gradient(90deg, var(--star) calc(var(--r) / 5 * 100%), #d1d1d6 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.rate legend { width: 100%; }
.rate input { position: absolute; opacity: 0; }
.rate label { font-size: 2rem; color: #d1d1d6; cursor: pointer; margin: 0; line-height: 1; transition: transform .15s, color .15s; }
.rate label:hover { transform: scale(1.15); }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--star); }
.rate input:focus-visible + label { outline: 2px solid var(--brand); }

/* Avatars get a colour from the name (--h) */
.avatar { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: hsl(var(--h, 211) 85% 94%); color: hsl(var(--h, 211) 70% 35%); font-weight: 800; font-size: 1.2rem; flex: none; }
.avatar.lg { width: 68px; height: 68px; font-size: 1.7rem; border-radius: 20px; }
.company-head { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.company-head > div { flex: 1; }
.company-head h1, .company-head p { margin: 0 0 .2rem; }
.company-mini, .person { display: flex; flex-direction: column; gap: .35rem; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.company-mini:hover, .person:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); text-decoration: none; }
.rating { white-space: nowrap; }
.review .stars { font-size: 1rem; }
.dist { display: grid; grid-template-columns: 2rem 1fr 2.5rem; gap: .5rem; align-items: center; font-size: .9rem; }
.meter { display: block; height: 8px; background: #ececf0; border-radius: 9px; overflow: hidden; margin: .4rem 0; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-light)); border-radius: 9px; }
.dist .meter i { background: var(--star); }

/* Dashboards */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 1rem 0 1.75rem; }
.stats .card { display: flex; flex-direction: column; color: var(--ink); }
.stats b { font-size: 2rem; line-height: 1.1; letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: .9rem; }
.status-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.status-card > div { flex: 1; min-width: 240px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fafafc; }
td.actions { justify-content: flex-end; }
.status { display: inline-block; border-radius: 980px; padding: .2rem .7rem; font-size: .78rem; font-weight: 700; background: #f0f0f3; color: #3a3a3c; }
.status.reviewed { background: var(--soft); color: var(--brand-dark); }
.status.interview, .status.offer { background: #fff4e0; color: #9a5b00; }
.status.hired { background: #e4f6ea; color: var(--good); }
.status.rejected { background: #fdecea; color: var(--bad); }
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tabs a { padding: .45rem 1rem; color: var(--muted); font-weight: 600; font-size: .875rem; border-radius: 980px; background: #fff; box-shadow: var(--shadow); }
.tabs a.on { color: #fff; background: var(--ink); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.on:hover { color: #fff; }
.applicant { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.applicant h3 { margin: 0; }
.applicant p { margin: .15rem 0; }
.status-form { margin: 0; }
.status-form select { margin: 0; width: auto; border-radius: 980px; }
.score { --c: calc(var(--s) * 1%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(#fff 58%, transparent 60%), conic-gradient(var(--brand) var(--c), #e8e8ed 0); flex: none; }
.score b { font-size: .95rem; line-height: 1; }
.score span { font-size: .65rem; color: var(--muted); }
.score.wide { margin: 1rem auto .5rem; width: 88px; height: 88px; }
.ai-note { background: linear-gradient(90deg, var(--soft), #f3ecff); border-radius: 12px; padding: .55rem .85rem; font-size: .9rem; color: #2a3a6b; }
.steps { list-style: none; padding: 0; margin: .75rem 0; }
.steps li { padding: .35rem 0 .35rem 1.7rem; position: relative; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 0; top: .6rem; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #d1d1d6; }
.steps li.done { color: var(--ink); font-weight: 600; }
.steps li.done::before { background: var(--brand); border-color: var(--brand); }
.thread { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.msg { max-width: 80%; background: #e9e9eb; border-radius: 18px 18px 18px 6px; padding: .65rem .95rem; animation: fadeUp .3s ease; }
.msg.mine { align-self: flex-end; background: var(--brand); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg.mine .muted { color: rgba(255, 255, 255, .75); }
.msg p { margin: 0 0 .2rem; }
.reply textarea { margin-bottom: .6rem; }
.visibility { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.visibility legend { grid-column: 1 / -1; }
.option { display: flex; align-items: flex-start; gap: .25rem; font-weight: 400; border: 1.5px solid var(--line); border-radius: 14px; padding: .9rem; margin: 0; cursor: pointer; transition: border-color .2s, background .2s; }
.option:has(input:checked) { border-color: var(--brand); background: var(--soft); }
.option input { margin-top: .3rem; }
.admin-row { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.admin-row form { margin: 0; }

/* Auth */
.auth { max-width: 460px; margin: 3rem auto; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.1rem; }
.seg label { margin: 0; display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem; font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s; }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--soft); }

/* Messages */
.flash { margin: 1rem 0; padding: .8rem 1.1rem; border-radius: 14px; background: #e4f6ea; color: #14532d; font-weight: 500; animation: fadeUp .4s ease; }
.flash.err { background: #fdecea; color: var(--bad); }
.flash.warn { background: #fff4e0; color: #7a4600; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .layout, .split, .ai-band .wrap, .how { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .sticky { position: static; }
  .menu-btn { display: block; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .1); }
  #nav.open { display: flex; }
  #nav > a, #nav form { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  #nav > a:not(.btn), #nav .link { color: var(--ink) !important; }
  #nav .btn { margin-top: .7rem; border: 0; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  .hero { padding: 7rem 1rem 3.5rem; }
  .two, .three, .visibility { grid-template-columns: 1fr; }
  .search label + label { border-left: 0; border-top: 1px solid var(--line); }
  .search .btn { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .cat { flex-direction: column; align-items: flex-start; padding: .9rem; }
  .msg { max-width: 92%; }
  .foot .cols { grid-template-columns: 1fr; }
}
