:root {
  font-family: "DM Sans", Arial, sans-serif;
  color: #10264b;
  background: #f4f8fd;
  font-synthesis: none;
  --navy: #0a2552;
  --navy-2: #173967;
  --blue: #0869f2;
  --blue-dark: #0758d3;
  --light-blue: #e9f3ff;
  --muted: #70819a;
  --line: #dce6f2;
  --paper: #fff;
  --success: #07976e;
  --danger: #d24d60;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
body.high-contrast { --navy: #001332; --navy-2: #092750; --muted: #41546e; --line: #95aac4; --blue: #004fc5; --blue-dark: #003d9a; }
body.high-contrast .card, body.high-contrast .input, body.high-contrast .select, body.high-contrast .textarea { border-color: #8faacb; }
button, textarea, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { vertical-align: middle; flex-shrink: 0; }
input, textarea, select { accent-color: var(--blue); }
[hidden] { display: none !important; }
.app { min-height: 100vh; overflow-x: clip; }
.container { width: min(1200px, calc(100% - 52px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.95); backdrop-filter: blur(18px); border-bottom: 1px solid #e8eff7; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 22px; height: 84px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.logo-mark { width: 38px; height: 41px; filter: drop-shadow(0 4px 5px rgba(2,68,173,.14)); }
.logo-type { font: 800 25px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: -1.4px; color: #0a2651; }
.logo-type em { color: var(--blue); font-style: normal; }
.logo-type b { color: #f05261; }
.header-nav { display: flex; gap: 24px; align-items: center; }
.header-nav a { font-size: 13px; color: #57708e; font-weight: 700; text-decoration: none; transition: color .2s; }
.header-nav a:hover, .header-nav a.active { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.demo-chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 100px; padding: 7px 10px; background: #e8f2ff; color: #1b65c8; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .55px; }
.demo-chip::before { content: ""; width: 6px; height: 6px; background: #0d82f8; border-radius: 50%; }
.button { border: 0; border-radius: 11px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 13px; line-height: 1.3; text-decoration: none; transition: .18s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .nav-item:focus-visible, .option-card:focus-visible, .choice:focus-visible { outline: 3px solid #9bc9ff; outline-offset: 3px; }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 7px 17px rgba(8,105,242,.16); }
.button-primary:hover { background: var(--blue-dark); }
.button-outline { color: var(--blue); border: 1px solid #b8d2f7; background: #fff; }
.button-outline:hover { background: #f0f7ff; }
.button-soft { color: #1d69c8; background: #eaf3ff; }
.button-ghost { background: transparent; color: #516b8f; }
.button-dark { color: #fff; background: var(--navy); }
.button-lg { min-height: 54px; padding: 15px 22px; font-size: 15px; border-radius: 13px; }
.button-small { padding: 9px 13px; font-size: 12px; }
.button-full { width: 100%; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.demo-strip { color: #607894; background: #f7faff; border-bottom: 1px solid #e7eef7; font-size: 11px; text-align: center; padding: 8px 15px; }
.demo-strip strong { color: #315c98; }
.page-content { min-height: calc(100svh - 188px); }
.site-footer { color: #8192a9; font-size: 12px; padding: 30px 0; border-top: 1px solid #dfe9f3; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.footer-wrap { margin-top: 70px; }
.screen { padding: 44px 0 68px; }
.screen-head { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.screen-head p { color: var(--muted); margin: 9px 0 0; line-height: 1.6; }
.eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.7px; color: var(--blue); margin-bottom: 13px; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--blue); }
h1, h2, h3, h4 { color: var(--navy); font-family: "Plus Jakarta Sans", sans-serif; margin: 0; }
h1 { font-size: clamp(30px, 4vw, 49px); line-height: 1.15; letter-spacing: -2px; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.22; letter-spacing: -1px; }
h3 { font-size: 18px; line-height: 1.28; letter-spacing: -.5px; }
h4 { font-size: 15px; line-height: 1.3; }
p { line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.xsmall { font-size: 11px; }
.strong { font-weight: 800; }
.blue { color: var(--blue); }
.green { color: var(--success); }
.red { color: var(--danger); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: #316aa9; background: #ecf5ff; padding: 6px 9px; border-radius: 8px; }
.tag-green { color: #08794d; background: #e5f7ef; }
.tag-orange { color: #a45d0c; background: #fff1df; }
.tag-grey { color: #64768d; background: #eef2f7; }
.tag-purple { color: #7257bc; background: #f0eaff; }
.card { background: #fff; border: 1px solid #e0eaf4; border-radius: 19px; box-shadow: 0 5px 18px rgba(33,79,132,.035); }
.card-pad { padding: 24px; }
.card-soft { background: #f6faff; border-color: #e3edf8; }
.shadow { box-shadow: 0 19px 55px rgba(19,65,118,.10); }
.grid { display: grid; gap: 17px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stack { display: flex; flex-direction: column; gap: 15px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.separator { height: 1px; background: #e6edf6; margin: 20px 0; }
.form-label { display: block; color: #183862; font-weight: 800; font-size: 12px; margin-bottom: 9px; }
.input, .select, .textarea { background: #fbfdff; border: 1.5px solid #dce7f3; border-radius: 11px; outline: none; width: 100%; color: var(--navy); font-size: 14px; min-height: 45px; padding: 11px 13px; transition: .18s ease; }
.input:focus, .select:focus, .textarea:focus { border-color: #3187f8; box-shadow: 0 0 0 4px rgba(8,105,242,.09); background: white; }
.input::placeholder, .textarea::placeholder { color: #98a8ba; }
.textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field { margin-bottom: 18px; }
.field-help { font-size: 11px; color: #8a9bad; margin-top: 7px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; color: #61758d; font-size: 12px; line-height: 1.5; }
.check-row input { margin-top: 2px; flex: 0 0 auto; }
.radio-row { display: flex; gap: 9px; flex-wrap: wrap; }
.choice { border: 1.5px solid #dce8f6; border-radius: 12px; padding: 12px 15px; display: flex; align-items: center; gap: 9px; color: #45607f; background: white; font-weight: 700; font-size: 13px; }
.choice.active, .option-card.active { color: var(--blue); border-color: var(--blue); background: #ecf5ff; box-shadow: inset 0 0 0 1px rgba(8,105,242,.1); }
.choice:hover, .option-card:hover { border-color: #83b4f5; }
.option-card { border: 1.5px solid #dfe8f4; padding: 17px; text-align: left; background: white; border-radius: 13px; display: flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 800; width: 100%; }
.option-card .option-icon { width: 43px; height: 43px; border-radius: 11px; display: grid; place-items: center; color: var(--blue); background: #eaf4ff; }
.option-card .sub { display: block; font-weight: 500; color: #8595aa; margin-top: 3px; font-size: 11px; }
.progress { height: 5px; background: #e2ebf6; border-radius: 10px; overflow: hidden; display: flex; gap: 4px; }
.progress span { height: 100%; background: var(--blue); border-radius: 10px; transition: width .2s; }
.wizard { width: min(650px, 100%); margin: 0 auto; }
.wizard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; color: #69819d; font-size: 12px; font-weight: 700; }
.wizard-card { padding: clamp(23px,4vw,37px); }
.wizard-card h2 { margin: 28px 0 6px; }
.wizard-card .intro { color: #7a8da4; font-size: 14px; margin: 0 0 24px; }
.wizard-actions { display: flex; gap: 12px; margin-top: 25px; }
.wizard-actions .button-primary { flex: 1; }
.wizard-select-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.hero-home { padding: 56px 0 35px; background: radial-gradient(ellipse at 75% 10%,#e0efff 0%,transparent 54%),linear-gradient(180deg,#f5faff 0%,#f4f8fd 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px,6vw,85px); align-items: center; }
.hero-intro h1 { font-size: clamp(39px,5vw,65px); line-height: 1.13; letter-spacing: -2.8px; }
.hero-intro h1 span { color: var(--blue); }
.hero-intro .lead { font-size: 17px; color: #667d99; margin: 22px 0 28px; max-width: 520px; }
.hero-form { border-radius: 25px; padding: 30px; box-shadow: 0 21px 65px rgba(22,71,124,.12); position: relative; }
.hero-form::before { content: ""; position: absolute; top: 0; left: 27%; right: 27%; height: 5px; background: #146ff2; border-radius: 0 0 8px 8px; }
.hero-form h3 { font-size: 23px; margin: 7px 0 8px; }
.hero-form .textarea { min-height: 205px; background: #f8fbff; padding-bottom: 35px; }
.textarea-wrap { position: relative; }
.counter { position: absolute; bottom: 12px; right: 13px; font-size: 11px; color: #8395a9; font-variant-numeric: tabular-nums; }
.error-text { min-height: 21px; font-size: 12px; margin: 6px 0; color: var(--danger); }
.hero-perks { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 32px; }
.hero-perk { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #58708d; font-weight: 700; }
.hero-perk .bubble { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--blue); background: #e3f0ff; }
.notice { padding: 12px 14px; border-radius: 12px; background: #f0f7ff; color: #4a6a90; font-size: 12px; border: 1px solid #d9eafc; line-height: 1.55; }
.notice-warning { background: #fffbf0; color: #896323; border-color: #f8e8c3; }
.feature-strip { padding: 10px 0 55px; }
.section-space { padding: 44px 0; }
.section-heading { margin-bottom: 25px; }
.section-heading h2 { margin-bottom: 8px; }
.section-heading p { color: var(--muted); margin: 0; }
.feature-card { padding: 24px; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; color: var(--blue); background: #e8f3ff; display: grid; place-items: center; margin-bottom: 17px; }
.feature-card h3 { font-size: 16px; }
.feature-card p { color: #7789a1; font-size: 13px; margin: 9px 0 17px; }
.text-link { border: none; background: none; padding: 0; color: var(--blue); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; }
.lawyer-card { overflow: hidden; }
.lawyer-banner { height: 112px; background: linear-gradient(125deg, #dcecff, #eaf4fe 70%, #f8fbff); display: flex; justify-content: center; align-items: flex-end; position: relative; }
.avatar { width: 62px; height: 62px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg,#d8e9ff,#91b5e5); color: #24598f; font: 800 20px/1 "Plus Jakarta Sans",sans-serif; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(17,74,135,.1); }
.avatar-warm { background: linear-gradient(135deg,#f1dacb,#dfaa92); color: #8a4b3e; }
.avatar-mint { background: linear-gradient(135deg,#d7f5ec,#8ac5b4); color: #206a63; }
.avatar-lilac { background: linear-gradient(135deg,#e5daf7,#b9a6e1); color: #6b509f; }
.avatar-lg { width: 93px; height: 93px; font-size: 29px; }
.lawyer-banner .avatar { width: 89px; height: 89px; font-size: 27px; transform: translateY(25px); }
.lawyer-body { padding: 37px 19px 19px; }
.lawyer-body h3 { font-size: 16px; }
.lawyer-body p { margin: 4px 0; font-size: 12px; color: #7b8ba0; }
.lawyer-body .button { margin-top: 15px; width: 100%; }
.lawyer-list { display: flex; flex-direction: column; gap: 12px; }
.lawyer-list-item { padding: 16px; display: flex; gap: 15px; align-items: center; }
.lawyer-list-item .item-info { min-width: 0; flex: 1; }
.lawyer-list-item h3 { font-size: 15px; }
.lawyer-list-item p { font-size: 12px; color: #8193a9; margin: 4px 0; }
.lawyer-list-item .tag { margin-top: 4px; }
.filter-panel { padding: 20px; margin-bottom: 22px; }
.filter-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; gap: 12px; align-items: end; }
.search-result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.search-result-head strong { font-size: 16px; }
.search-result-head span { font-size: 12px; color: #8192a5; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 370px; gap: 24px; align-items: start; }
.profile-cover { height: 125px; border-radius: 19px 19px 0 0; background: linear-gradient(135deg,#d7e9fe,#f0f8ff); }
.profile-main { padding: 24px; margin-top: -58px; position: relative; }
.profile-heading { display: flex; align-items: end; gap: 18px; margin-bottom: 22px; }
.profile-heading h1 { font-size: 27px; letter-spacing: -.9px; }
.profile-heading p { margin: 6px 0; color: #7790a7; font-size: 13px; }
.quote { font: italic 700 18px/1.4 Georgia,serif; background: #eaf4ff; padding: 18px 22px; border-radius: 12px; text-align: center; color: #1d4e83; margin: 16px 0; }
.detail-row { display: flex; align-items: flex-start; gap: 13px; padding: 16px 0; border-bottom: 1px solid #edf2f8; }
.detail-row:last-child { border-bottom: 0; }
.detail-row .detail-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--blue); background: #eaf4ff; border-radius: 11px; }
.detail-row strong { font-size: 13px; }
.detail-row p { font-size: 12px; color: #8492a4; margin: 4px 0 0; }
.booking-panel { padding: 24px; position: sticky; top: 115px; }
.booking-panel h3 { margin-bottom: 6px; }
.duration-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin: 14px 0; }
.duration-grid button { padding: 11px 2px; border: 1px solid #deebf9; color: #59708c; background: #fff; border-radius: 9px; font-size: 11px; font-weight: 800; }
.duration-grid button.active { background: var(--blue); color: white; border-color: var(--blue); }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 16px 0; }
.mode { padding: 14px; border: 1.5px solid #e0eaf5; background: white; border-radius: 13px; text-align: left; }
.mode.active { border-color: var(--blue); background: #f2f8ff; }
.mode svg { color: var(--blue); }
.mode strong { display: block; font-size: 12px; margin-top: 9px; }
.mode .price { font-size: 18px; font-weight: 800; margin: 7px 0; color: var(--navy); }
.mode .small { color: #8496ac; }
.price-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 19px 0; }
.price-summary strong { font: 800 26px/1 "Plus Jakarta Sans",sans-serif; color: var(--blue); }
.role-layout { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 27px; padding: 36px 0 75px; align-items: start; }
.sidebar { padding: 18px; position: sticky; top: 116px; }
.sidebar-group { margin-bottom: 25px; }
.sidebar-title { color: #96a5b8; text-transform: uppercase; letter-spacing: 1.5px; font-size: 10px; font-weight: 800; margin: 10px 12px 12px; }
.nav-item { display: flex; width: 100%; align-items: center; gap: 11px; color: #617994; text-decoration: none; padding: 12px 13px; border-radius: 10px; font-weight: 800; font-size: 13px; margin: 2px 0; }
.nav-item:hover { color: var(--blue); background: #f2f7ff; }
.nav-item.active { background: #e9f3ff; color: #0868e7; }
.nav-item svg { width: 18px; }
.role-content { min-width: 0; }
.dashboard-hero { background: linear-gradient(112deg,#0b3d88,#096bf4); border-radius: 22px; color: white; padding: 27px; display: flex; justify-content: space-between; align-items: center; gap: 16px; position: relative; overflow: hidden; }
.dashboard-hero::after { content: ""; position: absolute; width: 240px; height: 240px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; right: -75px; top: -90px; }
.dashboard-hero h2 { color: white; }
.dashboard-hero p { margin: 7px 0 0; color: #d8e9ff; font-size: 13px; }
.stat-card { padding: 20px; }
.stat-card .num { font: 800 29px/1 "Plus Jakarta Sans",sans-serif; margin: 8px 0; color: var(--navy); }
.stat-card .label { color: #7c8ea3; font-size: 12px; }
.stat-card .stat-icon { background: #eaf3ff; border-radius: 11px; color: var(--blue); width: 40px; height: 40px; display: grid; place-items: center; }
.section-card { padding: 22px; }
.section-card h3 { font-size: 17px; }
.case-item { padding: 18px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.case-category { display: flex; align-items: center; gap: 14px; }
.case-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e7f4ee; color: #229c6e; flex-shrink: 0; }
.case-icon.orange { color: #de8026; background: #fff3e7; }
.case-icon.purple { color: #825cca; background: #f1ecfb; }
.case-icon.blue { color: #1683e3; background: #e8f3ff; }
.case-icon.red { color: #d84e68; background: #ffedf2; }
.case-item strong { font-size: 14px; }
.case-item p { color: #8494a9; font-size: 12px; margin: 4px 0; }
.case-item .summary { color: #506987; }
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: #eaf1f9; width: fit-content; }
.tabs button { border: 0; border-radius: 9px; background: transparent; color: #61758d; padding: 10px 18px; font-size: 12px; font-weight: 800; }
.tabs button.active { background: var(--blue); color: #fff; box-shadow: 0 3px 8px rgba(8,105,242,.15); }
.section-title-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 27px 0 17px; }
.section-title-row h3 { font-size: 18px; }
.plan-card { border: 1.5px solid #dce7f4; background: white; border-radius: 18px; padding: 25px; display: flex; flex-direction: column; min-height: 345px; }
.plan-card.recommended { border: 2px solid #1c76f7; background: #f2f8ff; box-shadow: 0 16px 35px rgba(8,105,242,.11); }
.plan-price { margin: 18px 0 24px; display: flex; align-items: baseline; gap: 5px; }
.plan-price strong { font: 800 33px/1 "Plus Jakarta Sans",sans-serif; }
.plan-price span { font-size: 12px; color: #8698aa; }
.plan-features { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 13px; }
.plan-features li { display: flex; gap: 9px; color: #586d88; font-size: 13px; line-height: 1.4; }
.plan-features svg { color: var(--blue); margin-top: 1px; }
.setting-row { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid #eaf0f6; }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong { font-size: 13px; }
.setting-row p { color: #8997a9; font-size: 11px; margin: 5px 0 0; }
.toggle { width: 42px; height: 23px; background: #cad4e2; border: 0; border-radius: 100px; position: relative; flex-shrink: 0; }
.toggle::before { content: ""; position: absolute; width: 17px; height: 17px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .16s ease; box-shadow: 0 1px 3px #8ca1bb; }
.toggle.active { background: var(--blue); }
.toggle.active::before { transform: translateX(19px); }
.big-range { width: 100%; margin: 27px 0 8px; }
.range-value { font: 800 29px/1 "Plus Jakarta Sans",sans-serif; text-align: center; color: var(--blue); }
.empty-state { padding: 35px 18px; text-align: center; color: #8294a9; }
.empty-state svg { color: #94b9e9; }
.empty-state h3 { margin: 16px 0 8px; }
.empty-state p { max-width: 440px; margin: 0 auto 20px; font-size: 13px; }
.callout { padding: 19px; background: #e9f4ff; border-radius: 15px; border: 1px solid #d6e9ff; }
.callout h3 { font-size: 17px; }
.callout p { font-size: 13px; color: #607a99; margin: 6px 0 0; }
.floating-toast { position: fixed; bottom: 28px; right: 28px; z-index: 80; background: #0b2857; color: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.18); max-width: min(360px,calc(100% - 28px)); font-size: 13px; line-height: 1.45; }
.mobile-nav { display: none; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { background: #f6f9fd; text-align: left; color: #8193a8; padding: 12px; font-weight: 800; }
.admin-table td { padding: 14px 12px; border-bottom: 1px solid #edf2f8; }
.admin-table tr:last-child td { border: 0; }
.faq-item { border-bottom: 1px solid #e6edf6; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 0; font-size: 14px; font-weight: 800; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { color: #7889a1; font-size: 13px; margin: 0 0 17px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(7,27,60,.48); display: grid; place-items: center; padding: 20px; }
.modal-card { background: #fff; border-radius: 20px; width: min(500px,100%); padding: 28px; box-shadow: 0 25px 70px rgba(6,30,65,.3); }
.modal-card h2 { font-size: 25px; }
.modal-card p { color: #657a94; font-size: 14px; }
@media (max-width: 1050px) {
  .header-nav { gap: 14px; }
  .header-nav a { font-size: 12px; }
  .demo-chip { display: none; }
  .profile-layout { grid-template-columns: minmax(0,1fr) 340px; }
  .role-layout { grid-template-columns: 205px minmax(0,1fr); gap: 20px; }
}
@media (max-width: 820px) {
  .header-nav { display: none; }
  .header-inner { height: 72px; }
  .container { width: min(680px, calc(100% - 36px)); }
  .hero-grid, .profile-layout, .role-layout { grid-template-columns: 1fr; }
  .hero-home { padding-top: 37px; }
  .hero-intro { text-align: center; }
  .hero-intro .lead { margin-inline: auto; }
  .hero-perks { justify-content: center; }
  .hero-form { max-width: 520px; width: 100%; margin: 0 auto; }
  .role-layout { padding-top: 26px; }
  .sidebar { display: none; }
  .booking-panel { position: static; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-grid .button { width: 100%; }
  .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-around; gap: 2px; padding: 9px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid #deebf6; box-shadow: 0 -4px 20px rgba(15,49,94,.05); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: #8b9aae; font-size: 10px; font-weight: 800; min-width: 55px; }
  .mobile-nav a.active { color: var(--blue); }
  .footer-wrap { margin-top: 30px; }
  .site-footer { padding-bottom: 88px; }
  .page-content { min-height: calc(100svh - 180px); }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 28px); }
  .header-inner { height: 69px; }
  .header-actions .button { padding: 9px 10px; font-size: 11px; }
  .header-actions .button svg { display: none; }
  .logo-mark { width: 30px; height: 33px; }
  .logo-type { font-size: 21px; }
  .demo-strip { line-height: 1.4; font-size: 10px; }
  .hero-home { padding: 25px 0 25px; }
  .hero-grid { gap: 28px; }
  .hero-intro h1 { font-size: clamp(31px,8.3vw,43px); letter-spacing: -1.8px; }
  .hero-intro .lead { font-size: 14px; line-height: 1.6; margin: 17px auto 0; }
  .eyebrow { font-size: 10px; margin-bottom: 15px; }
  .hero-perks { display: none; }
  .hero-form { padding: 24px 20px; border-radius: 21px; }
  .hero-form h3 { font-size: 20px; }
  .hero-form .textarea { min-height: 174px; }
  .screen { padding: 27px 0 50px; }
  .screen-head { align-items: flex-start; flex-direction: column; margin-bottom: 21px; }
  h1 { font-size: 31px; letter-spacing: -1.2px; }
  h2 { font-size: 25px; }
  .grid-2, .grid-3, .grid-4, .wizard-select-grid { grid-template-columns: 1fr; }
  .feature-strip { padding-bottom: 12px; }
  .section-space { padding: 26px 0; }
  .feature-card { padding: 19px; }
  .filter-grid { grid-template-columns: 1fr; }
  .lawyer-list-item { flex-wrap: wrap; }
  .lawyer-list-item .button { margin-left: 77px; }
  .card-pad, .section-card { padding: 19px; }
  .wizard-card { padding: 23px 18px; }
  .wizard-actions { flex-wrap: wrap; }
  .wizard-actions .button-ghost { order: 2; width: 100%; }
  .duration-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .profile-heading { flex-wrap: wrap; }
  .profile-heading h1 { font-size: 23px; }
  .booking-panel { padding: 20px; }
  .dashboard-hero { align-items: flex-start; flex-direction: column; }
  .case-item { align-items: flex-start; }
  .case-item .button { padding: 9px 11px; font-size: 11px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 10px 6px; }
  .section-title-row { align-items: start; flex-direction: column; }
  .admin-table-wrap { overflow-x: auto; }
  .site-footer nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* Hostinger MVP: extensões sobre a identidade visual do protótipo JusSOS. */
.field { display: block; }
.center { text-align: center; }
.narrow { width: min(680px, 100%); margin-inline: auto; }
.user-greeting { color: #5c728e; font-size: 12px; font-weight: 800; white-space: nowrap; }
.header-actions form { margin: 0; }
.flash-wrap { margin-top: 20px; }
.flash-error { background: #fff1f2; border-color: #ffccd3; color: #a23348; }
.flash-success { background: #eafaf3; border-color: #bae8d3; color: #167752; }
.prominent { padding: 20px; margin: 0 0 24px; font-size: 14px; }
.home-feature { max-width: 530px; }
.home-feature h2 { margin: 14px 0 25px; }
.timeline { display: grid; gap: 22px; margin: 10px 0 26px; }
.timeline > div { display: flex; gap: 18px; align-items: flex-start; }
.timeline span { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #e6f2ff; color: var(--blue); font: 800 15px "Plus Jakarta Sans", sans-serif; }
.timeline p { margin: 2px 0 0; font-size: 14px; color: #687d97; }
.timeline strong { color: #193c68; }
.auth-layout { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: clamp(26px,5vw,85px); align-items: start; }
.auth-layout > div:first-child { padding-top: 32px; }
.auth-layout > div:first-child > p { font-size: 16px; }
.auth-aside { margin-top: 50px; max-width: 420px; }
.auth-aside p { margin: 9px 0 15px; }
.auth-card > h2 { margin-bottom: 9px; }
.auth-card > p { margin-bottom: 25px; }
.auth-card form .grid { gap: 14px; }
.auth-card form .grid .field { min-width: 0; }
.auth-card .center { margin-top: 21px; }
.directory-filter { display: grid; grid-template-columns: 1.3fr 1fr auto; align-items: end; gap: 14px; margin-bottom: 18px; }
.directory-filter .field { margin-bottom: 0; }
.directory-filter button { min-height: 45px; }
.record-card { margin-bottom: 13px; }
.record-card h3 { font-size: 16px; margin: 7px 0 0; }
.record-card p { overflow-wrap: anywhere; }
.record-card > p { font-size: 13px; }
.record-card form { margin-top: 14px; }
.record-card form + form { margin-top: 10px; }
.record-card .select-inline { width: min(380px,100%); }
.stats { margin: 14px 0; }
.metric { font: 800 40px/1.2 "Plus Jakarta Sans",sans-serif; margin-top: 9px; color: var(--blue); }
.availability-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 22px; }
.availability-card h3 { margin-top: 0; }
.availability-card p { margin-bottom: 0; }
.legal h2 { font-size: 21px; margin-top: 31px; }
.legal p { color: #607893; font-size: 15px; }
.legal > .notice { margin-top: 20px; }
.check-row a { color: var(--blue); }
.check-row span { flex: 1; }
.page-content a:not(.button):hover { color: var(--blue-dark); }
.form-label { line-height: 1.4; }
.home-feature .notice { margin-top: 12px; }
@media (max-width: 820px) {
  .auth-layout { grid-template-columns: 1fr; gap: 24px; }
  .auth-layout > div:first-child { padding-top: 0; }
  .auth-aside { margin-top: 16px; }
  .directory-filter { grid-template-columns: 1fr 1fr; }
  .directory-filter button { grid-column: 1/-1; }
  .home-feature { margin-inline: auto; }
}
@media (max-width: 560px) {
  .directory-filter { grid-template-columns: 1fr; }
  .directory-filter button { grid-column: auto; }
  .availability-card { flex-direction: column; align-items: stretch; }
  .availability-card .button { width: 100%; }
  .stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .stats .card-pad { padding: 12px 10px; }
  .stats .muted { font-size: 10px; }
  .metric { font-size: 29px; }
  .user-greeting { display: none; }
  .header-actions { gap: 5px; }
  .header-actions .button { padding: 9px 8px; }
  .home-feature h2 { margin: 14px 0; }
  .record-card .row.between { align-items: flex-start; }
  .record-card .row.between > div { max-width: 100%; }
  .record-card .select-inline { width: 100%; }
}

/* Entrada conversacional: pergunta primeiro, cadastro depois. */
.conversation-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 85%,rgba(202,236,253,.65),transparent 46%),
    radial-gradient(circle at 93% 100%,rgba(255,255,255,.98),transparent 36%),
    linear-gradient(115deg,#eef8fc 0%,#f6f9fb 63%,#fff 100%);
}
.conversation-hero::before,
.conversation-hero::after {
  position: absolute;
  content: "";
  width: 1200px;
  height: 500px;
  border: 1px solid rgba(67,160,202,.105);
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-18deg);
}
.conversation-hero::before { left: -490px; bottom: -380px; }
.conversation-hero::after { right: -600px; top: -295px; }
.conversation-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr);
  gap: clamp(28px,4.5vw,76px);
  align-items: center;
  min-height: 660px;
  padding-top: 58px;
  padding-bottom: 60px;
}
.conversation-copy { max-width: 520px; }
.conversation-copy .eyebrow { color: #257da7; letter-spacing: 1.4px; }
.conversation-copy h1 { font-size: clamp(42px,4.65vw,68px); line-height: 1.07; letter-spacing: -3.2px; color: #12384d; }
.conversation-copy h1 em { display: block; font-weight: 600; color: #2789b6; letter-spacing: -2.9px; font-style: italic; margin-top: 14px; }
.conversation-copy > p { color: #55788e; font-size: 16px; max-width: 440px; margin: 23px 0 24px; }
.conversation-trust { display: inline-flex; align-items: center; gap: 10px; background: #ffffffce; border: 1px solid #dcebf2; border-radius: 100px; box-shadow: 0 2px 5px rgba(20,64,86,.04); padding: 11px 14px; font-size: 12px; font-weight: 700; color: #486f84; }
.conversation-trust span { color: #1f91bd; font-weight: 900; font-size: 16px; }
.conversation-link { display: block; width: fit-content; font-size: 13px; font-weight: 800; color: #196ba0; margin-top: 26px; text-decoration: underline; text-underline-offset: 4px; }
.guided-card { padding: clamp(22px,2.2vw,36px); border-radius: 27px; box-shadow: 0 26px 72px rgba(32,82,105,.105); min-height: 510px; align-self: center; }
.guided-progress { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 13px; color: #758e9d; font-size: 11px; font-weight: 800; letter-spacing: .65px; }
.guided-progress-bars { display: flex; gap: 5px; }
.guided-progress-bars i { display: block; width: 30px; height: 4px; background: #dfe9ef; border-radius: 40px; }
.guided-progress-bars i.active { background: #36b7e3; }
.guided-step h2 { color: #15324b; font-size: clamp(23px,2.5vw,29px); max-width: 460px; letter-spacing: -1.05px; line-height: 1.2; margin-bottom: 22px; }
.guided-textarea { min-height: 150px; max-height: 250px; resize: vertical; padding: 16px; background: #f8fafc; border-color: #dce7ee; font-size: 14px; }
.guided-textarea::placeholder { color: #8c9eac; }
.guided-count { text-align: right; color: #9baab7; font-size: 11px; margin-top: -7px; }
.guided-split { display: flex; gap: 14px; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf1f5; padding: 23px 0 19px; }
.guided-split > .small { line-height: 1.4; max-width: 170px; }
.guided-split .button { min-height: 46px; }
.guided-topic-label { color: #778b9b; font-size: 12px; margin-top: 18px; margin-bottom: 12px; }
.guided-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.guided-topic { background: #fff; color: #526d82; font-size: 11px; font-weight: 700; padding: 9px 12px; border-radius: 100px; border: 1px solid #dce6ed; transition: background .16s,border .16s; }
.guided-topic:hover, .guided-topic[aria-pressed="true"] { color: #126c9b; border-color: #93cde3; background: #ecf9fd; }
.guided-topic:focus-visible { outline: 3px solid #93d8ed; outline-offset: 2px; }
.guided-note { font-size: 11px; line-height: 1.5; margin-top: 20px; color: #8196a4; }
.guided-card-footer { color: #8296a5; font-size: 12px; margin-top: 22px; text-align: center; }
.guided-card-footer a { color: #167db0; font-weight: 800; }
.guided-final { border-bottom: 0; padding-bottom: 0; }
.guided-step .notice { margin-top: 3px; }
.conversation-bottom { position: relative; z-index: 1; background: rgba(255,255,255,.8); border-top: 1px solid #e4edf1; }
.conversation-bottom-grid { display: flex; justify-content: space-around; gap: 20px; padding: 18px 5px; font-size: 12px; font-weight: 700; color: #516d7e; }
.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; }
@media (max-width: 900px) {
  .conversation-layout { grid-template-columns: 1fr; min-height: 0; gap: 32px; padding-top: 52px; }
  .conversation-copy { text-align: center; max-width: 720px; margin-inline: auto; }
  .conversation-copy .eyebrow { justify-content: center; }
  .conversation-copy > p { margin-left: auto; margin-right: auto; }
  .conversation-link { margin-left: auto; margin-right: auto; }
  .guided-card { max-width: 700px; width: 100%; margin-inline: auto; min-height: 0; }
}
@media (max-width: 560px) {
  .conversation-layout { padding-top: 39px; padding-bottom: 29px; gap: 24px; }
  .conversation-copy h1 { font-size: clamp(36px,9vw,46px); letter-spacing: -2px; }
  .conversation-copy h1 em { letter-spacing: -1.8px; }
  .conversation-copy > p { font-size: 14px; margin: 15px auto 21px; }
  .conversation-trust { font-size: 10px; }
  .conversation-link { margin-top: 14px; }
  .guided-card { padding: 22px 17px; border-radius: 22px; }
  .guided-step h2 { font-size: 22px; margin-bottom: 17px; }
  .guided-textarea { min-height: 140px; }
  .guided-topic { padding: 8px 10px; font-size: 10px; }
  .guided-split .button { padding: 12px 13px; }
  .conversation-bottom-grid { padding: 12px 0; gap: 7px; font-size: 10px; flex-wrap: wrap; }
  .guided-final { flex-wrap: wrap; }
}
