/* ==========================================================================
   GrowUp public site (homepage, directory, profiles, categories, info pages)
   Light and professional: white and soft grey surfaces, teal-green primary,
   gold CTAs; dark only in the footer and the final call to action.
   Loaded after app.css (which holds shared tokens, buttons, forms, avatars).
   Animations use transform/opacity and stop for prefers-reduced-motion.
   ========================================================================== */
:root {
    --soft: #F4F7F9;
    --soft-2: #EEF6F3;
    --navy: #0F1D2E;
    --r-xl: 24px;
}

html { scroll-behavior: smooth; }
body.home, body.site { background: #fff; }
.site-main { display: block; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.mt { margin-top: 1.5rem; }
.stack-lg { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.h-sm { font-size: 1rem; margin: 0 0 .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.btn:hover .icon { transform: translateX(2px); }
.btn .icon { transition: transform .2s var(--ease); }

.eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ledger); }
.eyebrow--light { color: #FFD66B; }
.flash-slot:empty { display: none; }
.flash-slot .alert { width: min(1200px, 100% - 2.5rem); margin: 1rem auto 0; }

/* ---------------- Header (white) ---------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled, .site-header.is-open { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(15, 29, 46, .35); }
.site-header__inner { width: min(1200px, 100% - 2.5rem); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.site-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 1rem; }
.site-nav__links { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.site-nav__links a, .site-nav__link { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .8rem; border-radius: 10px; transition: color .2s, background-color .2s; white-space: nowrap; }
.site-nav__links a:hover, .site-nav__link:hover { color: var(--ledger-deep); background: var(--ledger-tint); }
.site-nav__links a.is-active { color: var(--ledger-deep); background: var(--ledger-tint); }
.site-nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; margin-left: auto; background: #fff; border: 1.5px solid var(--line-strong); color: var(--ink); border-radius: 10px; padding: .5rem; cursor: pointer; line-height: 0; }
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon--close { display: none; }
.site-header.is-open .nav-toggle .icon--open { display: none; }
.site-header.is-open .nav-toggle .icon--close { display: inline; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 3.5rem 0 4.5rem; background: linear-gradient(180deg, #F2FAF7 0%, #F7FAFC 55%, #fff 100%); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob--a { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(59, 170, 53, .35), transparent 70%); animation: drift 18s ease-in-out infinite; }
.blob--b { width: 460px; height: 460px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(20, 99, 201, .22), transparent 70%); animation: drift 22s ease-in-out infinite reverse; }
.dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(15, 29, 46, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 30px -24px; } }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem; padding: .35rem .8rem .35rem .6rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.kicker__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand-green); box-shadow: 0 0 0 0 rgba(59, 170, 53, .5); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(59, 170, 53, .55); } 100% { box-shadow: 0 0 0 10px rgba(59, 170, 53, 0); } }
.hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.07; letter-spacing: -.035em; margin: 0 0 1.1rem; color: var(--navy); max-width: 16ch; }
.text-accent { background: linear-gradient(90deg, var(--ledger), var(--brand-green) 55%, #1463C9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 38rem; margin: 0 0 1.75rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .45rem; box-shadow: var(--shadow-md); max-width: 44rem; }
.hero-search__type { border: 0; margin: 0; padding: .2rem; display: inline-flex; background: var(--soft); border-radius: 11px; }
.hero-search__type label { cursor: pointer; }
.hero-search__type input { position: absolute; opacity: 0; pointer-events: none; }
.hero-search__type span { display: block; padding: .5rem .8rem; border-radius: 9px; font-size: .88rem; font-weight: 700; color: var(--muted); transition: background-color .15s, color .15s; }
.hero-search__type input:checked + span { background: #fff; color: var(--ledger-deep); box-shadow: var(--shadow-xs); }
.hero-search__type input:focus-visible + span { box-shadow: var(--focus); }
.hero-search__field { display: flex; align-items: center; gap: .5rem; min-width: 0; padding-left: .35rem; color: var(--muted); }
.hero-search__field input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1rem; padding: .6rem .2rem; background: transparent; color: var(--ink); }
.hero-search__field input:focus { outline: none; }
.hero__popular { display: flex; flex-wrap: wrap; gap: .4rem .5rem; align-items: center; margin: 1rem 0 0; font-size: .86rem; color: var(--muted); }
.hero__popular a { text-decoration: none; font-weight: 600; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); padding: .25rem .65rem; border-radius: 999px; transition: border-color .15s, color .15s; }
.hero__popular a:hover { border-color: var(--ledger); color: var(--ledger-deep); }
.hero__visual { position: relative; }
.hero-photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 720 / 820; max-height: 560px; margin-inline: auto; background: linear-gradient(145deg, #D6F1E6, #DCEAFB); box-shadow: 0 40px 70px -35px rgba(15, 29, 46, .45); }
.hero-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(11, 138, 106, .35); }
.hero-photo__fallback .icon { width: 6rem; height: 6rem; }
.float-card { position: absolute; z-index: 2; display: flex; gap: .65rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .7rem .9rem; box-shadow: var(--shadow-md); animation: floaty 6s ease-in-out infinite; }
.float-card .icon { width: 2.1rem; height: 2.1rem; padding: .45rem; border-radius: 10px; background: var(--ledger-tint); color: var(--ledger); }
.float-card strong { display: block; font-size: .86rem; }
.float-card small { display: block; font-size: .75rem; color: var(--muted); }
.float-card--a { left: -1.5rem; top: 12%; }
.float-card--b { right: -1rem; top: 46%; animation-delay: -2s; }
.float-card--b .icon { background: var(--saffron-tint); color: var(--saffron-deep); }
.float-card--c { left: 8%; bottom: -1rem; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Entrance + reveal (content is never hidden without JS: boot.js adds html.js) */
html.js .enter { opacity: 0; transform: translateY(16px); animation: enterUp .8s var(--ease) forwards; }
.enter--1 { animation-delay: .05s; } .enter--2 { animation-delay: .15s; } .enter--3 { animation-delay: .28s; }
.enter--4 { animation-delay: .4s; } .enter--5 { animation-delay: .52s; } .enter--6 { animation-delay: .64s; }
@keyframes enterUp { to { opacity: 1; transform: none; } }
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
.fgrid > .reveal:nth-child(4n+2), .jgrid > .reveal:nth-child(3n+2), .cgrid > .reveal:nth-child(4n+2), .why-grid > .reveal:nth-child(4n+2) { transition-delay: .07s; }
.fgrid > .reveal:nth-child(4n+3), .jgrid > .reveal:nth-child(3n), .cgrid > .reveal:nth-child(4n+3), .why-grid > .reveal:nth-child(4n+3) { transition-delay: .14s; }
.fgrid > .reveal:nth-child(4n), .cgrid > .reveal:nth-child(4n), .why-grid > .reveal:nth-child(4n) { transition-delay: .21s; }

/* ---------------- Live stats ---------------- */
.stats-band { position: relative; margin-top: -2.25rem; z-index: 2; }
.hstats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); overflow: hidden; }
.hstat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .85rem; align-items: center; padding: 1.3rem 1.5rem; border-right: 1px solid var(--line); }
.hstat:last-child { border-right: 0; }
.hstat__icon { grid-row: span 2; width: 2.75rem; height: 2.75rem; border-radius: 12px; display: grid; place-items: center; background: var(--ledger-tint); color: var(--ledger); }
.hstat:nth-child(2) .hstat__icon { background: #E6F0FB; color: var(--brand-blue); }
.hstat:nth-child(3) .hstat__icon { background: var(--saffron-tint); color: var(--saffron-deep); }
.hstat:nth-child(4) .hstat__icon { background: #EAF7E6; color: var(--brand-green); }
.hstat__num { font-size: 1.75rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--navy); }
.hstat__label { font-size: .86rem; color: var(--muted); font-weight: 600; }
.stats-band__note { text-align: center; font-size: .78rem; color: var(--muted); margin: .6rem 0 0; }

/* ---------------- Countdown ---------------- */
.countdown { margin: 3rem auto 0; width: min(1200px, 100% - 2.5rem); border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(120deg, var(--ledger), #0A6E8A); color: #fff; box-shadow: var(--shadow-md); }
.countdown__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.2rem 2.4rem; flex-wrap: wrap; width: auto; }
.countdown .eyebrow { color: #FFD66B; }
.countdown__title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: .1rem 0 .3rem; color: #fff; }
.countdown__date { margin: 0; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.countdown__cards { display: grid; grid-template-columns: repeat(4, minmax(72px, 1fr)); gap: .75rem; }
.cd-card { display: grid; justify-items: center; gap: .3rem; padding: 1rem .6rem .8rem; min-width: 80px; border-radius: 16px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); }
.cd-card__num { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-card__num.tick { animation: tick .45s var(--ease); }
@keyframes tick { 0% { transform: translateY(-40%); opacity: .2; } 100% { transform: none; opacity: 1; } }
.cd-card__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .8); }
.countdown__live { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin: 0; animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------- Sections ---------------- */
.section { padding: 5rem 0; }
.section--soft { background: var(--soft); }
.section__head { text-align: center; max-width: 44rem; margin: 0 auto 2.5rem; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); margin: 0 0 .6rem; }
.section__head p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; text-align: left; max-width: none; flex-wrap: wrap; }
.group-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 2rem 0 .9rem; font-weight: 800; }
.group-title:first-of-type { margin-top: 0; }

/* Category image cards */
.cgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.cgrid__item { display: grid; gap: .35rem; }
.cgrid__count { margin: 0 .25rem; }
.ccard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-xs); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; height: 100%; }
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #BFE3D6; color: var(--ink); }
.ccard__media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #DDF3EA, #E3EDFA); overflow: hidden; }
.ccard__media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.ccard:hover .ccard__media img { transform: scale(1.05); }
.img-failed img { display: none !important; }
.ccard__icon { position: absolute; z-index: 2; left: .85rem; bottom: -1.1rem; width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--ledger); box-shadow: var(--shadow-sm); }
.ccard__body { display: grid; gap: .3rem; padding: 1.5rem 1.1rem 1.15rem; }
.ccard__name { font-weight: 800; font-size: 1.02rem; line-height: 1.3; }
.ccard__desc { font-size: .86rem; color: var(--muted); line-height: 1.45; font-weight: 500; }
.cat--pulse .ccard__icon, .cat--pulse.cat-hero__icon { background: var(--ledger); color: #fff; overflow: visible; }
.wave { position: absolute; inset: 0; border-radius: 12px; border: 2px solid rgba(11, 138, 106, .6); animation: callwave 2.2s ease-out infinite; }
.wave--2 { animation-delay: 1.1s; }
@keyframes callwave { from { transform: scale(1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.cat-group + .cat-group { margin-top: 3rem; }
.cat-group h2 { font-size: 1.3rem; margin-bottom: 1rem; }

/* Freelancer cards */
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.fgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fcard { display: flex; flex-direction: column; gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; box-shadow: var(--shadow-xs); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; min-width: 0; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #BFE3D6; }
.fcard__head { display: flex; gap: .85rem; align-items: flex-start; min-width: 0; }
.fcard__photo { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #D9F2E9, #DCEBFB); display: grid; place-items: center; text-decoration: none; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.fcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.fcard__initials { font-weight: 800; font-size: 1.25rem; color: var(--ledger-deep); }
.fcard__who { min-width: 0; }
.fcard__name { font-size: 1.02rem; margin: 0; display: flex; align-items: center; gap: .3rem; }
.fcard__name a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcard__name a:hover { color: var(--ledger); }
.fcard__title { margin: .1rem 0 .3rem; font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcard__facts { margin: 0; display: grid; gap: .3rem; font-size: .84rem; }
.fcard__facts div { display: flex; justify-content: space-between; gap: .5rem; }
.fcard__facts dt { color: var(--muted); }
.fcard__facts dd { margin: 0; font-weight: 700; text-align: right; }
.fcard__primary { color: var(--ledger-deep); }
.fcard__meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--line); }
.fcard__rate { font-weight: 800; font-size: .95rem; color: var(--navy); }
.fcard__done { margin: 0; color: var(--muted); }
.verified { display: inline-flex; color: var(--brand-blue); }
.verified .icon { width: 1.1rem; height: 1.1rem; fill: #E6F0FB; }
.avail { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: #EAF7E6; color: #276B23; white-space: nowrap; }
.avail::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.avail--limited { background: var(--saffron-tint); color: #8A5A00; }
.avail--unavailable { background: var(--soft); color: var(--muted); }

/* Tags / chips */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li { font-size: .78rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; background: var(--soft); color: var(--ink-soft); border: 1px solid var(--line); }
.tags li a { color: inherit; text-decoration: none; }
.tags li a:hover { color: var(--ledger-deep); }
.tags--links li { background: #fff; }
.tags--links li:hover { border-color: var(--ledger); }
.tags--sm li { font-size: .72rem; padding: .15rem .5rem; }
.tags__more { background: transparent !important; }
.chip-soft { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: var(--soft); color: var(--ink-soft); text-decoration: none; }
.chip-soft--teal { background: var(--ledger-tint); color: var(--ledger-deep); }
.chip-soft--gold { background: var(--saffron-tint); color: #7A5200; }
a.chip-soft:hover { filter: brightness(.97); }

/* Job cards */
.jgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.jgrid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jcard { display: flex; flex-direction: column; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem; box-shadow: var(--shadow-xs); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; min-width: 0; }
.jcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #BFE3D6; }
.jcard__top { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.jcard__posted { margin-left: auto; font-size: .78rem; color: var(--muted); display: inline-flex; gap: .25rem; align-items: center; }
.jcard__title { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.jcard__title a { color: var(--navy); text-decoration: none; }
.jcard__title a:hover { color: var(--ledger); }
.jcard__goal { margin: 0; color: var(--muted); font-size: .92rem; }
.jcard__meta { display: flex; gap: .4rem 1rem; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.jcard__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.jcard__budget { font-weight: 800; color: var(--navy) !important; font-size: .95rem !important; }
.jcard__foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.jcard__client { font-size: .86rem; font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

/* How it works */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.how__track { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow-xs); }
.how__track h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; margin: 0 0 1.1rem; }
.how__track h3 .icon { color: var(--saffron-deep); }
.hsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; position: relative; }
.hstep { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: .7rem 0; }
.hstep:not(:last-child)::before { content: ""; position: absolute; left: calc(1.4rem - 1px); top: 2.1rem; bottom: -2.4rem; width: 2px; background: linear-gradient(var(--ledger), rgba(11, 138, 106, .15)); transform-origin: top; transform: scaleY(0); transition: transform .9s var(--ease); }
.reveal.is-visible .hstep:not(:last-child)::before, html:not(.js) .hstep:not(:last-child)::before { transform: scaleY(1); }
.hstep__icon { position: relative; z-index: 1; display: inline-grid; place-items: center; flex: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--ledger), #13A57F); box-shadow: 0 0 0 6px var(--ledger-tint); }
.hstep__body { display: grid; gap: .15rem; padding-top: .25rem; }
.hstep__body strong { font-size: 1.02rem; color: var(--navy); }
.hstep__body span { color: var(--muted); font-size: .92rem; }
html.js .reveal .hstep { opacity: 0; transform: translateX(-12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal.is-visible .hstep { opacity: 1; transform: none; }
.reveal.is-visible .hstep:nth-child(2) { transition-delay: .15s; } .reveal.is-visible .hstep:nth-child(3) { transition-delay: .3s; }
.reveal.is-visible .hstep:nth-child(4) { transition-delay: .45s; } .reveal.is-visible .hstep:nth-child(5) { transition-delay: .6s; }

/* Why choose */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; box-shadow: var(--shadow-xs); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-card__icon { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 14px; background: var(--ledger-tint); color: var(--ledger); margin-bottom: .9rem; transition: transform .3s var(--ease); }
.why-card:nth-child(3n+2) .why-card__icon { background: var(--saffron-tint); color: var(--saffron-deep); }
.why-card:nth-child(3n) .why-card__icon { background: #E6F0FB; color: var(--brand-blue); }
.why-card:hover .why-card__icon { transform: rotate(-6deg) scale(1.06); }
.why-card h3 { font-size: 1.02rem; margin: 0 0 .35rem; }
.why-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Popular services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.service { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: .75rem; align-items: center; padding: 1rem 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.service:hover { border-color: var(--ledger); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--ink); }
.service__name { font-weight: 800; }
.service__meta { grid-row: 2; font-size: .82rem; color: var(--muted); font-weight: 500; }
.service .icon { grid-row: span 2; grid-column: 2; color: var(--ledger); transition: transform .2s var(--ease); }
.service:hover .icon { transform: translateX(3px); }

/* Split CTA sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 760 / 540; background: linear-gradient(135deg, #DDF3EA, #E3EDFA); box-shadow: var(--shadow-md); }
.split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split__copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); margin: 0 0 .75rem; }
.split__copy > p { color: var(--muted); font-size: 1.02rem; margin: 0 0 1rem; }
.split__actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.split .ticks li { display: flex; gap: .55rem; align-items: flex-start; padding: 0; }
.split .ticks li::before { content: none; }
.split .ticks .icon { color: var(--ledger); margin-top: .2rem; }

/* Testimonials */
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.tcard { position: relative; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow-xs); display: grid; gap: .75rem; }
.tcard blockquote { margin: 0; font-size: .98rem; color: var(--ink-soft); }
.tcard figcaption { display: grid; font-size: .86rem; }
.tcard figcaption span { color: var(--muted); }
.tcard--sample { border-style: dashed; background: #FCFDFD; }
.tcard__badge { justify-self: start; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; background: var(--saffron-tint); color: #7A5200; }
.sample-note { margin-top: 1rem !important; font-size: .88rem !important; background: var(--saffron-tint); border: 1px solid #F4D98F; border-radius: 12px; padding: .6rem .9rem; color: #6B4A00 !important; }

/* Guide (SEO copy) */
.guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.guide article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; }
.guide h3 { font-size: 1rem; margin: 0 0 .45rem; }
.guide p { margin: 0; color: var(--muted); font-size: .92rem; }
.guide a { font-weight: 600; }

/* Final CTA (one of the few dark areas) */
.cta { position: relative; overflow: hidden; background: linear-gradient(120deg, #0B3A4E, #0B6E5B 55%, #1B5E8F); color: #fff; padding: 4.5rem 0; }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 179, 27, .35), transparent 65%); animation: drift 20s ease-in-out infinite; }
.cta__inner { position: relative; text-align: center; max-width: 44rem; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; margin: 0 0 .75rem; }
.cta p { margin: 0 0 1.75rem; color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.cta__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---------------- Inner pages ---------------- */
.page-hero { background: linear-gradient(180deg, #F2FAF7, #F7FAFC); border-bottom: 1px solid var(--line); padding: 2.5rem 0 2.75rem; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--navy); margin: 0 0 .5rem; }
.page-hero p { color: var(--muted); max-width: 46rem; margin: 0; font-size: 1.02rem; }
.crumbs { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); font-weight: 600; text-decoration: none; }
.crumbs a:hover { color: var(--ledger); }
.page-body { padding: 2.5rem 0 4.5rem; background: var(--soft); }
.box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow-xs); min-width: 0; }
.box h2 { font-size: 1.12rem; display: flex; align-items: center; gap: .45rem; }
.box h2 .icon { color: var(--ledger); }
.prose { white-space: pre-line; overflow-wrap: anywhere; color: var(--ink-soft); }
.searchbar { display: flex; align-items: center; gap: .5rem; margin-top: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .4rem .4rem .4rem .9rem; box-shadow: var(--shadow-sm); max-width: 44rem; color: var(--muted); }
.searchbar input { flex: 1; min-width: 0; border: 0; font: inherit; padding: .55rem .2rem; background: transparent; color: var(--ink); }
.searchbar input:focus { outline: none; }

/* Directory layout with filters */
.dir { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.filters { position: sticky; top: 92px; display: grid; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; box-shadow: var(--shadow-xs); }
.filters .field { margin: 0; }
.filters .field input, .filters .field select { padding: .6rem .7rem; font-size: .9rem; }
.form__grid--tight { gap: .6rem; grid-template-columns: 1fr 1fr; }
.filters-toggle { display: none; }
.filters-toggle summary { list-style: none; }
.filters-toggle summary::-webkit-details-marker { display: none; }
.filters-toggle .count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; border-radius: 999px; background: var(--ledger); color: #fff; font-size: .72rem; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; color: var(--muted); }
.results-bar strong { color: var(--navy); }

/* Empty states */
.empty { text-align: center; padding: 3rem 1.5rem; background: #fff; border: 1px dashed var(--line-strong); border-radius: 18px; }
.empty > .icon { width: 2.6rem; height: 2.6rem; color: var(--ledger); margin-bottom: .5rem; }
.empty h2, .empty h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.empty p { color: var(--muted); max-width: 32rem; margin: 0 auto 1.1rem; }

/* Freelancer profile */
.page-hero--profile { padding-bottom: 2.25rem; }
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) 15rem; gap: 1.5rem; align-items: center; }
.profile-head__photo { width: 136px; height: 136px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #D9F2E9, #DCEBFB); display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; color: var(--ledger-deep); box-shadow: 0 0 0 5px #fff, var(--shadow-md); }
.profile-head__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-head h1 { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin: 0; }
.profile-head__title { font-size: 1.08rem !important; color: var(--ink-soft) !important; margin: .25rem 0 .6rem !important; font-weight: 600; }
.profile-head__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center; font-size: .9rem; color: var(--muted); }
.profile-head__meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.profile-head__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.profile-head__actions { display: grid; gap: .55rem; }
.profile-head__actions form { margin: 0; }
.profile-head__actions p { margin: 0; text-align: center; font-size: .85rem; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.5rem; align-items: start; }
.skill-primary { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 1rem; }
.skill-primary .label { margin: 0; }
.skill-primary a { display: inline-flex; font-weight: 800; padding: .35rem .85rem; border-radius: 999px; background: var(--ledger); color: #fff; text-decoration: none; }
.skill-primary a:hover { background: var(--ledger-deep); color: #fff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.entries li { display: grid; padding-left: 1rem; border-left: 3px solid var(--ledger-tint); }
.entries span { color: var(--ink-soft); font-size: .92rem; }
.entries small { color: var(--muted); }
.review { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.review:last-of-type { border-bottom: 0; }
.review p { margin: .4rem 0; }
.review small { color: var(--muted); }
.review-x { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.profile-card { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.profile-card__photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, #D9F2E9, #DCEBFB); display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: var(--ledger-deep); flex: none; }
.profile-card__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .9rem; color: var(--muted); align-items: center; }

/* Category page hero with photo */
.cat-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, #0B3A4E, #0B6E5B); padding: 3rem 0 3.25rem; }
.cat-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 30, 42, .88) 0%, rgba(8, 30, 42, .7) 45%, rgba(8, 30, 42, .25) 100%); }
.cat-hero__inner { position: relative; z-index: 1; max-width: 1200px; }
.cat-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; margin: 0 0 .6rem; }
.cat-hero p { color: rgba(255, 255, 255, .9); max-width: 44rem; margin: 0; font-size: 1.05rem; }
.cat-hero .crumbs, .cat-hero .crumbs a { color: rgba(255, 255, 255, .8); }
.cat-hero__icon { position: relative; display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 14px; background: #fff; color: var(--ledger); margin-bottom: 1rem; }
.cat-hero__actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Info pages */
.info-page { max-width: 48rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2rem; }
.info-page h2 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.info-page p, .info-page li { color: var(--ink-soft); }
.info-page ul { padding-left: 1.2rem; }

/* Pagination on public pages */
.pager { margin-top: 1.5rem; }

/* ---------------- Footer (dark) ---------------- */
.site-footer { background: var(--navy); color: #B8C4D3; padding: 3.5rem 0 0; }
.site-footer__inner { width: min(1200px, 100% - 2.5rem); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr); gap: 2.5rem; }
.site-footer__brand p { font-size: .9rem; margin: 1rem 0 1.2rem; max-width: 22rem; }
.site-footer__cta { display: flex; gap: .5rem; flex-wrap: wrap; }
.site-footer__social { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; gap: .75rem; flex-wrap: wrap; }
.site-footer__social a { color: #D5DEE9; font-size: .85rem; text-decoration: none; }
.site-footer__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.site-footer h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 .85rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer__cols a { color: #B8C4D3; font-weight: 500; font-size: .88rem; text-decoration: none; }
.site-footer__cols a:hover { color: #fff; }
.site-footer__bottom { width: min(1200px, 100% - 2.5rem); margin: 2.5rem auto 0; padding: 1.25rem 0 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: #D5DEE9; font-weight: 500; }

/* Stars (animated on reveal) */
.reveal.is-visible .star--full, .reveal.is-visible .star--half { animation: starPop .5s var(--ease) both; }
@keyframes starPop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
    .site-nav__links a, .site-nav__link { padding: .5rem .55rem; font-size: .9rem; }
    .fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1060px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(15, 29, 46, .3); max-height: calc(100vh - 76px); overflow-y: auto; }
    .site-header.is-open .site-nav { display: flex; }
    .site-nav__links { flex-direction: column; }
    .site-nav__links a, .site-nav__link { padding: .8rem .75rem; font-size: 1rem; }
    .site-nav__actions { flex-direction: column; align-items: stretch; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .5rem; }
    .site-nav__actions .btn { width: 100%; }
    .cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-head { grid-template-columns: auto minmax(0, 1fr); }
    .profile-head__actions { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (max-width: 960px) {
    .hero { padding-top: 2.5rem; }
    .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero__visual { max-width: 460px; margin-inline: auto; width: 100%; }
    .float-card--a { left: -.5rem; }
    .float-card--b { right: -.5rem; }
    .hstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hstat:nth-child(2) { border-right: 0; }
    .hstat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .fgrid, .fgrid--3, .jgrid, .tgrid, .guide, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jgrid--list { grid-template-columns: 1fr; }
    .how, .split, .two-col { grid-template-columns: 1fr; }
    .split { gap: 1.75rem; }
    .split--reverse .split__media { order: 0; }
    .dir, .profile-layout { grid-template-columns: 1fr; }
    .filters { position: static; display: none; }
    .filters-toggle { display: block; }
    .filters-toggle[open] + .filters { display: grid; }
    .site-footer__inner { grid-template-columns: 1fr; }
    .section { padding: 3.75rem 0; }
}
@media (max-width: 640px) {
    .wrap, .site-header__inner, .site-footer__inner, .site-footer__bottom, .countdown { width: calc(100% - 2rem); }
    .site-header__inner { min-height: 64px; gap: .75rem; }
    .hero__title { font-size: 2.15rem; }
    .hero-search { grid-template-columns: 1fr; padding: .6rem; }
    .hero-search__type { justify-self: start; }
    .hero-search .btn { width: 100%; }
    .float-card { display: none; }
    .hero-photo { aspect-ratio: 4 / 3; max-height: 320px; }
    .float-card--c { display: flex; left: .75rem; bottom: .75rem; }
    .hstat { padding: 1rem; grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: .25rem; }
    .hstat__icon { grid-row: auto; }
    .hstat__num { font-size: 1.45rem; }
    .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .ccard__body { padding: 1.35rem .8rem .9rem; }
    .ccard__desc { display: none; }
    .fgrid, .fgrid--3, .jgrid, .tgrid, .guide, .services, .why-grid { grid-template-columns: 1fr; }
    .section__head--row { align-items: flex-start; }
    .countdown__inner { padding: 1.6rem 1.1rem; }
    .countdown__cards { grid-template-columns: repeat(4, 1fr); gap: .4rem; width: 100%; }
    .cd-card { min-width: 0; padding: .75rem .25rem .6rem; }
    .profile-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .profile-head h1, .profile-head__meta, .profile-head__chips { justify-content: center; }
    .profile-head__photo { width: 112px; height: 112px; }
    .profile-head__actions { width: 100%; grid-template-columns: 1fr; }
    .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .info-page { padding: 1.25rem; }
    .searchbar { flex-wrap: wrap; padding: .5rem; }
    .searchbar .icon { display: none; }
    .searchbar input { flex-basis: 100%; }
    .searchbar .btn { width: 100%; }
    .cat-hero__actions .btn { width: 100%; }
}
@media (max-width: 380px) {
    .cgrid { grid-template-columns: 1fr; }
    .site-footer__cols { grid-template-columns: 1fr; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html.js .reveal, html.js .reveal .hstep, html.js .enter, .hstep::before { opacity: 1 !important; transform: none !important; }
}

/* Icon sizing inside tiles */
.why-card__icon .icon, .hstat__icon .icon { width: 1.4rem; height: 1.4rem; }
.ccard__icon .icon { width: 1.3rem; height: 1.3rem; }
.cat-hero__icon .icon { width: 1.6rem; height: 1.6rem; }
.guide a { font-weight: 600; text-decoration-color: rgba(11, 138, 106, .35); text-decoration-thickness: 1px; }
.split__media .hero-photo__fallback { z-index: 0; }
.split__media img { position: relative; z-index: 1; }

/* Reviews on the public profile */
.rating-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: 1rem 1.1rem; margin: .5rem 0 1rem; background: var(--soft); border-radius: 14px; }
.rating-summary__score { display: grid; justify-items: start; gap: .25rem; }
.rating-summary__score > strong { font-size: 2.4rem; line-height: 1; color: var(--navy); }
.rating-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .82rem; color: var(--muted); }
.rating-bars li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 2rem; gap: .5rem; align-items: center; }
.rating-bars__track { height: .5rem; background: #fff; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.rating-bars__fill { display: block; height: 100%; background: var(--saffron); }
.review__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .65rem; align-items: center; margin-bottom: .35rem; }
.review__head strong { display: block; font-size: .95rem; }
.review__head small, .review__head time { color: var(--muted); font-size: .8rem; }
/* One-line "★★★★★ 4.8 (24 reviews)" on cards */
.fcard .stars { flex-wrap: nowrap; white-space: nowrap; font-size: .82rem; gap: .25rem; }
.fcard .star { width: .85rem; height: .85rem; }
@media (max-width: 640px) { .rating-summary { grid-template-columns: 1fr; } }
