:root {

--background:#faf9f6;
--surface:#ffffff;
--surface-alt:#f5f4f1;

--text:#222222;
--text-light:#6e6e6e;

--border:#e7e5e1;

--accent:#5B2EFF;
--accent-light:#eee8ff;
--on-accent:#ffffff;
--header-bg:rgba(250,249,246,.92);
--tabs-bg:rgba(250,249,246,.95);

--green:#1f9254;
--green-light:#e6f4ec;
--amber:#b5690a;
--amber-light:#faf0e2;

--radius:20px;
--shadow:0 12px 40px rgba(0,0,0,.06);

--container:1280px;

}

[data-theme="dark"]{

color-scheme:dark;

--background:#17161c;
--surface:#211f28;
--surface-alt:#28262f;

--text:#f1eef7;
--text-light:#a7a3b3;

--border:#38363f;

--accent:#9B7FFF;
--accent-light:#2c2542;
--on-accent:#1a1625;
--header-bg:rgba(23,22,28,.92);
--tabs-bg:rgba(23,22,28,.95);

--green:#4cbf82;
--green-light:#1c332a;
--amber:#e2a352;
--amber-light:#3a2f1c;

--shadow:0 12px 40px rgba(0,0,0,.35);

}

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
color-scheme:light;
}

body{

font-family:"Inter",sans-serif;
font-size:16px;
line-height:1.7;

background:var(--background);
color:var(--text);

-webkit-font-smoothing:antialiased;

}

img{
display:block;
max-width:100%;
}

a{
text-decoration:none;
color:inherit;
}

button{
font:inherit;
cursor:pointer;
border:none;
background:none;
}

input{
font:inherit;
}

svg{
display:block;
}

.container{
width:min(var(--container),92%);
margin:auto;
}

h1, h2, h3{
font-weight:700;
letter-spacing:-0.03em;
}

p{
color:var(--text-light);
}

/* ---------- Logo / Brand ---------- */

.brand{
display:inline-flex;
align-items:center;
gap:1px;
}

.brand-mark{
width:22px;
height:26px;
flex-shrink:0;
}

.logo-stroke-left{
stroke:var(--text);
}

.logo-stroke-right{
stroke:var(--accent);
}

.brand-word{
font-size:1.55rem;
font-weight:800;
letter-spacing:-0.02em;
color:var(--text);
}

.brand.small .brand-mark{
width:20px;
height:24px;
}

/* ---------- Header ---------- */

.site-header{
position:sticky;
top:0;
z-index:100;

background:var(--header-bg);
backdrop-filter:blur(16px);

border-bottom:1px solid var(--border);
}

.header-inner{
display:flex;
align-items:center;
justify-content:space-between;
gap:24px;

padding:22px 0;
}

.main-nav{
display:flex;
align-items:center;
gap:36px;
}

.main-nav a{
font-size:.95rem;
font-weight:500;
color:var(--text-light);
transition:.2s;
position:relative;
}

.main-nav a.active{
color:var(--accent);
}

.main-nav a:hover{
color:var(--accent);
}

.nav-support{
display:flex;
align-items:center;
gap:8px;

font-size:.9rem;
font-weight:600;

color:var(--accent);
flex-shrink:0;
}

.nav-support svg{
width:18px;
height:18px;
}

.theme-toggle{
display:flex;
align-items:center;
justify-content:center;

width:38px;
height:38px;
border-radius:50%;

color:var(--text-light);
flex-shrink:0;

transition:.2s;
}

.theme-toggle:hover{
background:var(--accent-light);
color:var(--accent);
}

.theme-toggle svg{
width:19px;
height:19px;
}

.theme-toggle .icon-moon{
display:none;
}

[data-theme="dark"] .theme-toggle .icon-sun{
display:none;
}

[data-theme="dark"] .theme-toggle .icon-moon{
display:block;
}

/* ---------- Hero ---------- */

.hero{
padding:90px 0 110px;
}

.hero-grid{
display:block;
max-width:640px;
}

.hero-copy h2{
font-size:3.6rem;
font-weight:700;
letter-spacing:-0.03em;
line-height:1.1;
}

.accent-dot{
color:var(--accent);
}

.hero-description{
font-size:1.15rem;
margin:26px 0 40px;
line-height:1.5;
max-width:480px;
}

.hero-search{
display:flex;
align-items:center;
gap:14px;

background:var(--surface);
border:1px solid var(--border);
border-radius:16px;

padding:18px 22px;

box-shadow:var(--shadow);
max-width:560px;
}

.hero-search-icon{
width:20px;
height:20px;
flex-shrink:0;
color:var(--text-light);
}

.hero-search input{
flex:1;
border:none;
background:none;
font-size:1rem;
outline:none;
}

.hero-search input::placeholder{
color:var(--text-light);
}

.hero-image{
border-radius:24px;
overflow:hidden;
background:var(--surface-alt);
box-shadow:var(--shadow);
aspect-ratio:4/5;
}

.hero-image img,
.hero-illustration{
width:100%;
height:100%;
object-fit:cover;
display:block;
}

/* ---------- Firms ---------- */

.firms-section{
padding:20px 0 90px;
}

.section-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:32px;
gap:20px;
}

.section-header h2{
font-size:1.7rem;
font-weight:700;
letter-spacing:-0.02em;
}

.see-all{
display:flex;
align-items:center;
gap:6px;

font-size:.95rem;
font-weight:600;
color:var(--accent);
flex-shrink:0;
}

.see-all svg{
width:16px;
height:16px;
transition:transform .2s;
}

.see-all:hover svg{
transform:translateX(3px);
}

.filter-bar{
display:flex;
flex-wrap:wrap;
align-items:center;
gap:10px;
margin-bottom:28px;
}

.filter-select{
padding:10px 36px 10px 16px;

font-size:.88rem;
font-weight:500;
color:var(--text);

background:var(--surface);
border:1px solid var(--border);
border-radius:999px;

appearance:none;
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e6e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
background-repeat:no-repeat;
background-position:right 12px center;
background-size:14px;

transition:.2s;
}

.filter-select:hover{
border-color:var(--accent);
}

.filter-select:focus{
outline:none;
border-color:var(--accent);
}

.filter-reset{
font-size:.85rem;
font-weight:600;
color:var(--text-light);
padding:10px 14px;
transition:.2s;
}

.filter-reset:hover{
color:var(--accent);
}

.firms-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
gap:22px;
}

.firm-card{
background:var(--surface);
border:1px solid var(--border);
border-radius:20px;
padding:24px;

cursor:pointer;
transition:.25s;

box-shadow:0 8px 24px rgba(0,0,0,.03);
}

.firm-card:hover{
transform:translateY(-4px);
box-shadow:var(--shadow);
}

.firm-card-header{
display:flex;
align-items:flex-start;
justify-content:space-between;
margin-bottom:18px;
}

.firm-logo{
width:44px;
height:44px;

border-radius:12px;
overflow:hidden;

background:var(--accent-light);
color:var(--accent);

font-weight:700;
font-size:1.05rem;

display:flex;
align-items:center;
justify-content:center;
}

.firm-logo img{
width:100%;
height:100%;
object-fit:cover;
}

.star{
width:32px;
height:32px;
border-radius:50%;

color:var(--text-light);

display:flex;
align-items:center;
justify-content:center;

transition:.2s;
}

.star svg{
width:19px;
height:19px;
}

.star:hover{
background:var(--accent-light);
color:var(--accent);
}

.star.active{
color:var(--accent);
}

.firm-card h3{
font-size:1.1rem;
font-weight:600;
letter-spacing:-0.01em;
margin-bottom:4px;
}

.firm-type{
font-size:.9rem;
font-weight:600;
color:var(--accent);
margin-bottom:18px;
}

.firm-details{
display:flex;
flex-direction:column;
gap:10px;

padding-top:16px;
margin-top:2px;

border-top:1px solid var(--border);
}

.firm-location,
.firm-status{
display:flex;
align-items:center;
gap:9px;

font-size:.9rem;
color:var(--text);
}

.firm-location svg{
width:16px;
height:16px;
color:var(--text-light);
}

.status-dot{
width:8px;
height:8px;
border-radius:50%;
background:var(--green);
flex-shrink:0;
}

.firm-status.closing .status-dot{
background:var(--amber);
}

.firm-link{
display:inline-flex;
align-items:center;
gap:6px;

margin-top:20px;

font-size:.9rem;
font-weight:600;
color:var(--accent);
}

.firm-link svg{
width:15px;
height:15px;
transition:transform .2s;
}

.firm-card:hover .firm-link svg{
transform:translateX(3px);
}

/* ---------- Support ---------- */

.support-section{
padding:20px 0 90px;
}

.support-card{
display:flex;
align-items:center;
gap:24px;

padding:36px;

background:var(--accent-light);
border-radius:24px;
}

.support-icon{
flex-shrink:0;
width:48px;
height:48px;

border-radius:14px;

background:var(--surface);
color:var(--accent);

display:flex;
align-items:center;
justify-content:center;
}

.support-icon svg{
width:24px;
height:24px;
}

.support-copy{
flex:1;
}

.support-copy h3{
font-size:1.15rem;
font-weight:700;
margin-bottom:6px;
}

.support-copy p{
font-size:.92rem;
line-height:1.5;
color:var(--text-light);
}

.support-link{
flex-shrink:0;

display:flex;
align-items:center;
gap:8px;

font-size:.95rem;
font-weight:700;
color:var(--accent);
}

.support-link svg{
width:16px;
height:16px;
transition:transform .2s;
}

.support-link:hover svg{
transform:translateX(3px);
}

/* ---------- Footer ---------- */

.site-footer{
padding:40px 0;
border-top:1px solid var(--border);
background:var(--surface);
}

.footer-inner{
display:flex;
align-items:center;
justify-content:space-between;
gap:24px;
}

.footer-copy{
font-size:.9rem;
color:var(--text-light);
}

.footer-links{
display:flex;
gap:28px;
}

.footer-links a{
font-size:.9rem;
color:var(--text-light);
transition:.2s;
}

.footer-links a:hover{
color:var(--accent);
}

.footer-social{
width:34px;
height:34px;

display:flex;
align-items:center;
justify-content:center;

color:var(--text-light);
transition:.2s;
}

.footer-social svg{
width:20px;
height:20px;
}

.footer-social:hover{
color:var(--accent);
}

/* ---------- Firm Profile Page ---------- */

.profile-loading{
padding:120px 0;
}

.back-link{
display:inline-flex;
align-items:center;
gap:8px;

font-size:.9rem;
font-weight:600;
color:var(--text-light);

margin-bottom:28px;
transition:.2s;
}

.back-link svg{
width:16px;
height:16px;
}

.back-link:hover{
color:var(--accent);
}

.profile-hero{
padding:36px 0 0;
}

.profile-header-row{
display:flex;
align-items:center;
gap:20px;
margin-bottom:20px;
}

.profile-logo{
width:64px;
height:64px;
border-radius:16px;
font-size:1.5rem;
flex-shrink:0;
}

.profile-header-text{
flex:1;
min-width:0;
}

.profile-header-text h1{
font-size:2rem;
font-weight:700;
letter-spacing:-0.02em;
}

.profile-star{
width:44px;
height:44px;
border:1px solid var(--border);
flex-shrink:0;
}

.profile-star svg{
width:22px;
height:22px;
}

.profile-overview{
max-width:780px;
font-size:1.05rem;
line-height:1.65;
margin-bottom:24px;
}

.profile-website-link{
margin-bottom:20px;
}

.profile-meta-row{
display:flex;
flex-wrap:wrap;
gap:12px;
margin-bottom:8px;
}

.profile-meta-pill{
display:inline-flex;
align-items:center;
gap:8px;

font-size:.9rem;
font-weight:600;
color:var(--text);

padding:8px 16px;
border:1px solid var(--border);
border-radius:999px;
background:var(--surface);
}

.profile-meta-pill svg{
width:15px;
height:15px;
color:var(--accent);
}

.profile-tabs{
position:sticky;
top:73px;
z-index:90;

background:var(--tabs-bg);
backdrop-filter:blur(16px);
border-bottom:1px solid var(--border);
margin-top:28px;
}

.profile-tabs-inner{
display:flex;
gap:6px;
overflow-x:auto;
}

.tab-btn{
padding:16px 18px;
font-size:.92rem;
font-weight:600;
color:var(--text-light);
white-space:nowrap;
border-bottom:2px solid transparent;
transition:.2s;
}

.tab-btn:hover{
color:var(--text);
}

.tab-btn.active{
color:var(--accent);
border-bottom-color:var(--accent);
}

.profile-body{
padding:36px 0 90px;
}

.tab-panel{
display:none;
}

.tab-panel.active{
display:block;
animation:fadeUp .4s ease both;
}

.profile-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
gap:18px;
margin-bottom:24px;
}

.profile-list{
display:grid;
gap:18px;
}

.tab-intro{
font-size:.92rem;
line-height:1.5;
color:var(--text-light);
max-width:62ch;
margin:0 0 22px;
}

.profile-card{
background:var(--surface);
border:1px solid var(--border);
border-radius:18px;
padding:22px;
}

.profile-card h3{
font-size:1.05rem;
font-weight:600;
margin-bottom:8px;
}

.profile-card p{
font-size:.95rem;
}

.featured-tag{
display:inline-block;
font-size:.7rem;
font-weight:700;
letter-spacing:.05em;
text-transform:uppercase;
color:var(--accent);
background:var(--accent-light);
padding:3px 9px;
border-radius:999px;
margin-left:6px;
vertical-align:middle;
}

.unconfirmed-tag{
display:inline-block;
font-size:.7rem;
font-weight:700;
letter-spacing:.05em;
text-transform:uppercase;
color:var(--amber);
background:var(--amber-light);
padding:3px 9px;
border-radius:999px;
margin-left:6px;
vertical-align:middle;
}

.profile-links{
display:flex;
flex-wrap:wrap;
gap:14px;
}

.profile-external-link{
display:inline-flex;
align-items:center;
gap:6px;
font-size:.9rem;
}

.profile-external-link svg{
width:14px;
height:14px;
}

.location-tags{
display:flex;
flex-wrap:wrap;
gap:8px;
margin-top:12px;
}

.profile-fact-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
gap:14px;
margin:16px 0;
padding:16px 0;
border-top:1px solid var(--border);
border-bottom:1px solid var(--border);
}

.fact{
display:flex;
flex-direction:column;
gap:4px;
}

.fact-label{
font-size:.75rem;
color:var(--text-light);
text-transform:uppercase;
letter-spacing:.05em;
}

.fact-value{
font-size:.95rem;
font-weight:600;
color:var(--text);
}

.profile-eligibility{
font-size:.9rem;
margin-bottom:14px;
color:var(--text);
}

.profile-eligibility strong{
color:var(--text);
}

@media (max-width:768px){

.profile-header-row{
flex-wrap:wrap;
}

.profile-header-text h1{
font-size:1.5rem;
}

.profile-tabs{
top:0;
}

}

/* ---------- Utilities ---------- */

#firms{
min-height:220px;
}

.loading{
grid-column:1/-1;

display:flex;
justify-content:center;
align-items:center;
padding:80px;

font-size:1rem;
color:var(--text-light);
}

.hidden{
display:none!important;
}

.text-center{
text-align:center;
}

/* ---------- Animation ---------- */

.hero,
.section-header,
.firm-card{
animation:fadeUp .7s ease both;
}

@keyframes fadeUp{
from{
opacity:0;
transform:translateY(20px);
}
to{
opacity:1;
transform:none;
}
}

/* ---------- Scrollbar ---------- */

::-webkit-scrollbar{
width:10px;
}

::-webkit-scrollbar-track{
background:var(--surface-alt);
}

::-webkit-scrollbar-thumb{
background:var(--border);
border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
background:var(--text-light);
}

/* ---------- Tablet ---------- */

@media (max-width:1100px){

.hero-copy h2{
font-size:2.9rem;
}

}

/* ---------- Mobile ---------- */

@media (max-width:768px){

.header-inner{
flex-wrap:wrap;
justify-content:center;
padding:18px 0;
gap:16px;
}

.main-nav{
order:3;
flex-wrap:wrap;
justify-content:center;
gap:16px;
width:100%;
}

.nav-support{
font-size:.85rem;
}

.hero{
padding:50px 0 60px;
}

.hero-copy h2{
font-size:2.3rem;
}

.hero-description{
font-size:1rem;
}

.section-header{
flex-direction:column;
align-items:flex-start;
gap:12px;
}

.firms-grid{
grid-template-columns:1fr;
}

.support-card{
flex-direction:column;
align-items:flex-start;
padding:28px;
}

.footer-inner{
flex-direction:column;
align-items:flex-start;
gap:20px;
}

}

/* ---------- Small Mobile ---------- */

@media (max-width:480px){

.brand-word{
font-size:1.3rem;
}

.hero-copy h2{
font-size:2rem;
}

}
