:root {
  --bg: #f7faf8;
  --paper: #ffffff;
  --paper-2: #f2f7f4;
  --ink: #13202a;
  --muted: #60717c;
  --line: #dce7e1;
  --brand: #0f8068;
  --brand-dark: #075646;
  --brand-soft: #e6f5ef;
  --gold: #c89b45;
  --coral: #ba6b55;
  --red: #9b2d2d;
  --shadow: 0 18px 48px rgba(23, 33, 43, 0.09);
  --shadow-soft: 0 10px 28px rgba(23, 33, 43, 0.07);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

/* 2026-06 legal purchase consent and footer */
.purchase-box,
.purchase-consent {
  display: grid;
  gap: 10px;
  align-content: start;
}

.purchase-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(20, 83, 68, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.legal-consent {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.45;
}

.legal-consent input[type="checkbox"],
.purchase-consent input[type="checkbox"],
.purchase-box input[type="checkbox"] {
  appearance: auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  margin: 3px 0 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--brand);
  flex: 0 0 18px;
  box-shadow: none;
}

.legal-consent a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.payment-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.payment-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 30, 0.56);
  backdrop-filter: blur(10px);
}

.payment-consent-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(16, 96, 83, 0.18);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 247, 0.98));
  box-shadow: 0 30px 90px rgba(8, 22, 30, 0.28);
}

.payment-consent-dialog h2,
.payment-consent-dialog p {
  margin: 0;
}

.payment-consent-dialog h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.96;
}

.payment-consent-check {
  padding: 18px;
  border: 1px solid rgba(16, 96, 83, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.payment-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(22px, 5vw, 88px);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
}

.site-footer div,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: var(--brand-dark);
  font-weight: 900;
}

@media (max-width: 640px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-consent {
    font-size: 14px;
  }

  .purchase-consent {
    align-items: flex-start;
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

[hidden],
.hidden {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(19, 32, 42, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 32, 42, 0.024) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, rgba(15, 128, 104, 0.12), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(200, 155, 69, 0.1), transparent 26%),
    linear-gradient(120deg, #f7fbf9 0%, #ffffff 48%, #eef7f2 100%),
    var(--bg);
  background-size: 76px 76px, 76px 76px, auto, auto, auto, auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #f7fcfb inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 9999s ease-out;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
  padding: 14px clamp(18px, 5vw, 86px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 231, 225, 0.9);
  box-shadow: 0 8px 26px rgba(23, 33, 43, 0.055);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 285px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(32, 118, 95, 0.22);
}

.brand strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #52606b;
  font-weight: 850;
}

.nav a,
.nav-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  color: #52606b;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.nav a:hover,
.nav a.active,
.nav-logout:hover {
  color: #fff;
  background: var(--brand);
}

.nav a.active {
  box-shadow: 0 12px 24px rgba(32, 118, 95, 0.18);
}

.session-label {
  max-width: 210px;
  overflow: hidden;
  padding: 9px 11px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 900;
}

.app-shell {
  width: min(1280px, calc(100% - 36px));
  min-height: calc(100vh - 83px);
  margin: 0 auto;
  padding: 34px 0 78px;
}

.app-shell:focus,
.app-shell:focus-visible {
  outline: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.16;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 14px 28px rgba(32, 118, 95, 0.18);
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button.secondary,
.button.ghost {
  color: var(--ink);
  background: #fffefa;
  border-color: var(--line);
}

.button.ghost {
  color: var(--brand-dark);
}

.button.small {
  min-height: 38px;
  padding: 0 13px;
  font-size: 14px;
}

.button.danger {
  color: var(--red);
}

.button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.home-hero,
.directory-hero,
.library-hero,
.auth-layout,
.page-head {
  margin-bottom: 22px;
}

.home-hero,
.directory-hero,
.library-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(34px, 6vw, 78px);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.97), rgba(255, 253, 248, 0.82)),
    radial-gradient(circle at 12% 16%, rgba(32, 118, 95, 0.12), transparent 36%);
  border: 1px solid rgba(222, 215, 202, 0.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.home-hero::after,
.directory-hero::after,
.library-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(32, 118, 95, 0.12), transparent 62%);
  pointer-events: none;
}

.hero-copy,
.hero-side,
.directory-hero > div,
.directory-card,
.library-hero > div,
.library-hero > button {
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-side {
  display: grid;
  gap: 14px;
}

.price-card,
.directory-card {
  display: grid;
  gap: 10px;
  padding: 26px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  border-radius: var(--radius);
  box-shadow: 0 20px 42px rgba(20, 84, 65, 0.2);
}

.price-card.light {
  color: var(--ink);
  background: #fffefa;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.price-card span {
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-card strong,
.directory-card strong {
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.08;
}

.price-card p,
.directory-card span {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.price-card.light p {
  color: var(--muted);
}

.quick-search,
.feature-band,
.card,
.search-panel,
.notice {
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.quick-search,
.feature-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  margin-bottom: 22px;
}

.quick-search h2,
.feature-band h2 {
  max-width: 760px;
}

.trust-strip,
.cards,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.trust-strip article {
  display: grid;
  gap: 8px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(222, 215, 202, 0.9);
  border-radius: var(--radius);
}

.trust-strip span,
.tag,
.status {
  color: var(--brand-dark);
  font-weight: 950;
}

.tag.muted {
  color: #5d6a74;
  background: rgba(32, 118, 95, 0.08);
}

.trust-strip p,
.feature-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.feature-band {
  align-items: flex-start;
  margin-top: 22px;
}

.feature-list {
  display: grid;
  gap: 12px;
  max-width: 510px;
}

.directory-hero {
  margin-bottom: 0;
}

.search-panel {
  position: sticky;
  top: 96px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(200px, 0.9fr) minmax(200px, 0.9fr) 150px;
  gap: 14px;
  align-items: end;
  margin: -10px 18px 22px;
  padding: 18px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd6dc;
  border-radius: var(--radius);
  outline: none;
}

textarea {
  min-height: 144px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(32, 118, 95, 0.12);
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0 18px;
  color: var(--muted);
}

.result-bar p {
  margin: 0;
  color: var(--ink);
  font-weight: 950;
}

.lawyer-list {
  display: grid;
  gap: 14px;
}

.lawyer-result {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(222, 215, 202, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lawyer-result:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 118, 95, 0.26);
  box-shadow: 0 18px 42px rgba(35, 46, 56, 0.11);
}

.lawyer-avatar {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  border-radius: var(--radius);
  font-size: 20px;
  font-weight: 950;
  box-shadow: 0 14px 26px rgba(32, 118, 95, 0.2);
}

.lawyer-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}

.lawyer-title-row h2 {
  margin: 8px 0 6px;
  font-size: clamp(24px, 2.3vw, 32px);
}

.lawyer-main > p {
  max-width: 880px;
  color: #3a4651;
  line-height: 1.58;
}

.contact-line {
  display: inline-flex;
  width: fit-content;
  margin: 10px 0 0;
  padding: 9px 12px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: var(--radius);
  font-weight: 900;
}

.tag-list.subareas {
  margin-top: 8px;
}

.subarea-grid label {
  align-items: start;
}

.subarea-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lexicon-search {
  position: static;
  grid-template-columns: minmax(240px, 1fr) 150px;
  margin: 0 0 22px;
}

.lexicon-card {
  display: grid;
  gap: 10px;
}

.lexicon-card p {
  color: var(--muted);
  line-height: 1.6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  background: var(--brand-soft);
  border: 1px solid rgba(32, 118, 95, 0.12);
  border-radius: 999px;
  font-size: 13px;
}

.status.warn {
  color: #8d4d15;
  background: #faead7;
}

.empty-state {
  padding: 34px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.library-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.card {
  padding: 24px;
}

.card p:last-child {
  margin-bottom: 0;
}

.document-cards .card {
  display: grid;
  gap: 10px;
  min-height: 245px;
}

.document-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: var(--radius);
  font-weight: 950;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  padding: clamp(24px, 5vw, 56px) 0;
}

.form-card {
  display: grid;
  gap: 18px;
}

.form-card.wide {
  max-width: 980px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

fieldset {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-type-picker {
  display: grid;
  gap: 10px;
}

.account-type-picker label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.account-type-picker .account-choice {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 250, 249, 0.58));
  border-color: rgba(10, 50, 64, 0.13);
  box-shadow: 0 12px 32px rgba(14, 42, 58, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.account-type-picker .account-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 132, 126, 0.34);
  box-shadow: 0 18px 42px rgba(14, 42, 58, 0.1);
}

.account-type-picker .account-choice.selected {
  background:
    linear-gradient(135deg, rgba(7, 128, 121, 0.98), rgba(15, 93, 113, 0.96));
  border-color: rgba(7, 128, 121, 0.38);
  color: #fff;
}

.account-type-picker input {
  width: 20px;
  min-height: 20px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.account-type-picker .account-choice.selected input {
  accent-color: #fff;
}

.account-type-picker strong {
  display: block;
  margin-bottom: 4px;
}

.account-type-picker small {
  display: block;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.account-type-picker em {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 8px 10px;
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 950;
  line-height: 1.25;
  background: var(--brand-soft);
  border-radius: 999px;
}

.account-type-picker .account-choice.selected small {
  color: rgba(255, 255, 255, 0.84);
}

.account-type-picker .account-choice.selected em {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
}

.notice.compact {
  padding: 12px 14px;
  border-radius: 14px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-grid input {
  width: 18px;
  min-height: 18px;
}

.notice,
.form-message {
  min-height: 24px;
  color: var(--brand-dark);
  font-weight: 850;
}

.form-help {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 750;
}

.form-help a {
  color: var(--brand-dark);
  text-decoration: none;
}

.form-help a:hover {
  text-decoration: underline;
}

.form-message.warn {
  color: #8a4b08;
}

.form-message.error {
  color: #9f1d20;
}

.form-message .inline-action {
  width: auto;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 16px;
}

.notice {
  padding: 15px 17px;
  margin-bottom: 18px;
  background: var(--brand-soft);
}

.logout-notice {
  margin-bottom: 18px;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(20, 32, 43, 0.18);
  backdrop-filter: blur(16px);
}

.cookie-banner p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.cookie-actions,
.cookie-policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-policy-head {
  margin-bottom: 22px;
}

.cookie-settings {
  display: grid;
  gap: 20px;
  margin-bottom: 22px;
}

.cookie-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cookie-choice-grid article {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cookie-policy-cards .card {
  min-height: 190px;
}

.profile-head {
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(320px, auto);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.profile-actions,
.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-actions {
  justify-content: flex-end;
  max-width: 880px;
}

.profile-head .lead {
  max-width: 780px;
}

.profile-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  display: grid;
  gap: 8px;
}

.stat-card strong {
  font-size: 34px;
  line-height: 1;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.profile-card,
.billing-card,
.lawyer-profile-card {
  align-content: start;
}

.billing-card {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(236, 248, 246, 0.92));
}

.section-title-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.section-title-row h2 {
  margin: 0;
}

.billing-type-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-pill {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.choice-pill:has(input:checked) {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-color: rgba(16, 132, 126, 0.38);
  box-shadow: inset 0 0 0 1px rgba(16, 132, 126, 0.14);
}

.choice-pill input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--brand);
}

.choice-pill span {
  font-weight: 950;
}

.billing-card label small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.quote-item,
.invoice-item {
  padding: 16px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quote-list,
.invoice-list {
  display: grid;
  gap: 12px;
}

.meta {
  color: var(--muted);
}

#quote-panel {
  margin-top: 18px;
}

#quote-panel:empty,
.quote-slot:empty {
  display: none;
}

.quote-slot {
  margin-top: 18px;
}

.quote-slot .form-card {
  max-width: none;
  background: rgba(229, 241, 236, 0.42);
  border-color: rgba(32, 118, 95, 0.24);
  box-shadow: none;
}

@media (max-width: 1080px) {
  .site-header {
    align-items: center;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: 78px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  body.nav-open .nav {
    display: flex;
  }

  .home-hero,
  .directory-hero,
  .library-hero,
  .auth-layout,
  .search-panel,
  .quick-search,
  .feature-band,
  .profile-head,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .search-panel {
    position: static;
    margin: 0 0 22px;
  }

  .trust-strip,
  .cards,
  .stat-grid,
  .form-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .quick-search,
  .feature-band,
  .lawyer-title-row,
  .result-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .lawyer-result {
    grid-template-columns: 1fr;
  }

  .lawyer-avatar {
    width: 64px;
    height: 64px;
  }

  .app-shell {
    width: min(100% - 26px, 1280px);
    padding-top: 28px;
  }
}

@media (max-width: 640px) {
  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .home-hero,
  .directory-hero,
  .library-hero {
    padding: 26px;
  }

  .button {
    width: 100%;
  }
}

/* 2026-06 UI polish: cleaner marketplace feel, tighter hierarchy, better cards */
:root {
  --bg: #f7faf8;
  --paper: #ffffff;
  --paper-2: #f2f7f4;
  --ink: #13202a;
  --muted: #60717c;
  --line: #dce7e1;
  --brand: #0f8068;
  --brand-dark: #075646;
  --brand-soft: #e6f5ef;
  --gold: #c89b45;
  --coral: #ba6b55;
  --shadow: 0 24px 60px rgba(20, 32, 43, 0.1);
  --shadow-soft: 0 12px 34px rgba(20, 32, 43, 0.075);
}

body {
  background:
    linear-gradient(rgba(19, 32, 42, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 32, 42, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 8% 8%, rgba(15, 128, 104, 0.12), transparent 32%),
    radial-gradient(circle at 92% 10%, rgba(200, 155, 69, 0.08), transparent 34%),
    linear-gradient(120deg, #f7fbf9 0%, #ffffff 48%, #eef7f2 100%);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
}

.site-header {
  min-height: 76px;
  padding-block: 12px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.nav a,
.nav-logout {
  min-height: 44px;
  padding: 0 16px;
}

.nav a.active,
.nav a:hover,
.nav-logout:hover {
  background: var(--brand);
  box-shadow: 0 14px 28px rgba(21, 116, 91, 0.18);
}

.app-shell {
  width: min(1360px, calc(100% - 38px));
  padding-top: 30px;
}

h1 {
  max-width: 880px;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.02;
}

.lead {
  max-width: 720px;
  color: #596979;
}

.home-hero,
.directory-hero,
.library-hero {
  min-height: 470px;
  padding: clamp(34px, 5vw, 66px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 253, 251, 0.92)),
    linear-gradient(120deg, rgba(15, 128, 104, 0.1), transparent 44%);
  border-color: rgba(220, 231, 225, 0.92);
}

.home-hero::after,
.directory-hero::after,
.library-hero::after {
  right: 34px;
  bottom: 28px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(15, 128, 104, 0.16);
  border-radius: 50%;
  background:
    linear-gradient(rgba(15, 128, 104, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 128, 104, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.7;
}

.directory-hero {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.directory-card,
.price-card {
  border-radius: 16px;
}

.search-panel {
  top: 90px;
  margin: -22px 28px 24px;
  padding: 20px;
  border-radius: 16px;
}

input,
select,
textarea {
  border-radius: 12px;
}

.button {
  border-radius: 12px;
}

.lawyer-list {
  gap: 18px;
}

.lawyer-result {
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 24px;
  border-radius: 18px;
}

.lawyer-avatar {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

.lawyer-title-row {
  align-items: center;
}

.lawyer-title-row h2 {
  margin-top: 10px;
  margin-bottom: 4px;
}

.lawyer-main > p {
  margin-bottom: 14px;
}

.tag,
.status {
  border-radius: 999px;
  font-size: 12px;
}

.cards {
  align-items: stretch;
}

.document-cards .card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 28px;
  border-radius: 18px;
}

.document-cards .card::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -26px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(21, 116, 91, 0.08);
}

.document-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.card,
.quick-search,
.feature-band,
.search-panel,
.notice {
  border-radius: 18px;
}

.profile-head {
  padding: 28px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.profile-head h1 {
  font-size: clamp(34px, 4vw, 58px);
}

.stat-grid {
  gap: 18px;
}

.stat-card {
  min-height: 160px;
  border-radius: 18px;
}

.stat-card strong {
  font-size: clamp(28px, 2.7vw, 42px);
}

.profile-grid {
  gap: 20px;
}

.quote-item,
.invoice-item {
  border-radius: 14px;
}

.auth-layout {
  min-height: calc(100vh - 160px);
  align-items: center;
}

.form-card {
  border-radius: 18px;
}

.account-type-picker label,
.check-grid label {
  border-radius: 14px;
}

@media (max-width: 1080px) {
  .directory-hero,
  .home-hero,
  .library-hero {
    min-height: auto;
  }

  .search-panel {
    margin: 18px 0 24px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .home-hero,
  .directory-hero,
  .library-hero,
  .profile-head {
    padding: 24px;
  }

  .lawyer-result {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  body {
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
  }

  .site-header {
    gap: 10px;
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .brand strong {
    font-size: 18px;
  }

  .nav-toggle {
    min-height: 38px;
    padding: 0 12px;
  }

  .nav {
    top: 64px;
    left: 10px;
    right: 10px;
    gap: 6px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .nav a,
  .nav-logout {
    justify-content: flex-start;
    min-height: 42px;
    padding: 0 12px;
  }

  .session-label {
    max-width: none;
    width: 100%;
  }

  .app-shell {
    width: min(100% - 20px, 1360px);
    min-height: calc(100vh - 64px);
    padding: 18px 0 54px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.05;
  }

  h2 {
    font-size: 23px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.52;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.13em;
  }

  .home-hero,
  .directory-hero,
  .library-hero,
  .profile-head {
    gap: 18px;
    padding: 20px;
    border-radius: 16px;
  }

  .home-hero::after,
  .directory-hero::after,
  .library-hero::after {
    display: none;
  }

  .hero-actions,
  .profile-actions,
  .plan-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .price-card,
  .directory-card {
    padding: 18px;
  }

  .price-card strong,
  .directory-card strong {
    font-size: 24px;
  }

  .quick-search,
  .feature-band {
    padding: 20px;
    border-radius: 16px;
  }

  .trust-strip article,
  .card {
    padding: 20px;
    border-radius: 16px;
  }

  .search-panel {
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  input,
  select,
  textarea {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 16px;
  }

  .button {
    min-height: 46px;
    padding: 0 15px;
  }

  .result-bar {
    align-items: flex-start;
    gap: 5px;
    font-size: 14px;
  }

  .lawyer-result {
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
  }

  .lawyer-avatar {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    font-size: 16px;
  }

  .lawyer-title-row {
    display: grid;
    gap: 12px;
  }

  .lawyer-title-row h2 {
    font-size: 25px;
    line-height: 1.12;
  }

  .tag-list {
    gap: 6px;
  }

  .tag,
  .status {
    min-height: 28px;
    font-size: 12px;
  }

  .document-cards .card {
    min-height: auto;
    padding: 20px;
  }

  .document-icon {
    width: 48px;
    height: 48px;
  }

  .auth-layout {
    min-height: auto;
    gap: 20px;
    padding: 18px 0;
  }

  .form-card {
    gap: 14px;
  }

  fieldset {
    padding: 14px;
  }

  .account-type-picker label {
    padding: 12px;
  }

  .check-grid label {
    padding: 10px;
  }

  .profile-head {
    align-items: stretch;
  }

  .profile-status {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-grid {
    gap: 12px;
  }

  .stat-card {
    min-height: 126px;
  }

  .stat-card strong {
    font-size: 30px;
    overflow-wrap: anywhere;
  }

  .profile-grid {
    gap: 12px;
  }

  .quote-item,
  .invoice-item {
    padding: 14px;
  }

  .lexicon-search {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 1fr;
    width: auto;
    padding: 14px;
  }

  .cookie-actions,
  .cookie-policy-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand strong {
    font-size: 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-toggle {
    min-width: 72px;
  }

  .app-shell {
    width: min(100% - 16px, 1360px);
  }

  h1 {
    font-size: clamp(29px, 11vw, 38px);
  }

  .home-hero,
  .directory-hero,
  .library-hero,
  .profile-head,
  .card,
  .quick-search,
  .feature-band {
    padding: 16px;
  }

  .lawyer-result {
    padding: 16px;
  }

  .search-panel {
    padding: 12px;
  }

  .button {
    min-height: 44px;
  }
}

.home-hero-pro {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  min-height: 610px;
  padding: clamp(34px, 6vw, 78px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 253, 251, 0.96) 52%, rgba(228, 245, 238, 0.92) 100%),
    linear-gradient(155deg, rgba(15, 128, 104, 0.13), rgba(200, 155, 69, 0.08));
  border-radius: 22px;
}

.home-hero-pro h1 {
  max-width: 860px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.96;
}

.home-hero-pro .lead {
  max-width: 720px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-proof span {
  padding: 9px 12px;
  color: var(--brand-dark);
  background: rgba(230, 245, 239, 0.94);
  border: 1px solid rgba(15, 128, 104, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.hero-flow-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 231, 225, 0.92);
  border-radius: 18px;
  box-shadow: 0 22px 52px rgba(7, 86, 70, 0.14);
}

.flow-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  background: rgba(247, 250, 248, 0.9);
  border: 1px solid rgba(220, 231, 225, 0.9);
  border-radius: 14px;
}

.flow-step + .flow-step {
  margin-top: 12px;
}

.flow-step > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-weight: 950;
}

.flow-step.active {
  background: var(--brand-dark);
  color: #fff;
}

.flow-step.active p {
  color: rgba(255, 255, 255, 0.78);
}

.flow-step.active > span {
  color: var(--brand-dark);
  background: #fff;
}

.flow-step strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.home-intent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.home-intent-grid article,
.process-section {
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.home-intent-grid article {
  display: grid;
  align-content: start;
  gap: 14px;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 249, 0.84)),
    var(--paper);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-intent-grid article::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(8, 124, 137, 0.18);
  border-radius: 32px;
  transform: rotate(10deg);
  background:
    linear-gradient(rgba(8, 124, 137, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 124, 137, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}

.home-intent-grid article:nth-child(2) {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(135deg, var(--brand-dark), #0b6b72);
  border-color: rgba(255, 255, 255, 0.16);
}

.home-intent-grid article:nth-child(2) .eyebrow,
.home-intent-grid article:nth-child(2) p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.home-intent-grid article:nth-child(2)::after {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}

.home-intent-grid article:hover,
.pricing-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.home-intent-grid p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.58;
}

.home-intent-grid .button {
  width: max-content;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.pricing-tiles {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}

.pricing-tile {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  min-height: 300px;
  padding: clamp(24px, 3vw, 34px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 251, 0.92)),
    var(--paper);
  border: 1px solid rgba(217, 230, 234, 0.95);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pricing-tile::before {
  content: "";
  position: absolute;
  inset: auto 22px 22px auto;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: rgba(8, 124, 137, 0.1);
  transform: rotate(8deg);
}

.pricing-tile-featured {
  color: #fff;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-color: rgba(255, 255, 255, 0.16);
}

.pricing-tile-soft {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(254, 246, 235, 0.9)),
    var(--paper);
}

.pricing-tile .eyebrow,
.pricing-tile h2,
.pricing-tile strong,
.pricing-tile p,
.pricing-tile .button {
  position: relative;
  z-index: 1;
}

.pricing-tile-featured .eyebrow,
.pricing-tile-featured p {
  color: rgba(255, 255, 255, 0.78);
}

.pricing-tile h2 {
  margin-bottom: 10px;
}

.pricing-tile strong {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.pricing-tile p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.58;
}

.pricing-tile-featured p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.pricing-tile .button {
  width: max-content;
  margin-top: 20px;
}

.pricing-tile-featured .button.primary {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 8px;
}

.section-head h2 {
  max-width: 760px;
}

.process-cards article {
  min-height: 220px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 249, 0.9)),
    var(--paper);
  border: 1px solid rgba(217, 230, 234, 0.96);
  box-shadow: 0 14px 34px rgba(14, 42, 58, 0.07);
}

.process-cards article span {
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 7px 10px;
}

.process-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 247, 249, 0.82)),
    var(--paper);
  border-radius: 24px;
}

.home-feature-pro {
  margin-top: 24px;
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.97), rgba(230, 245, 239, 0.75)),
    var(--paper);
}

@media (max-width: 1080px) {
  .home-hero-pro,
  .home-intent-grid,
  .pricing-tiles {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }
}

@media (max-width: 640px) {
  .home-hero-pro {
    min-height: auto;
    padding: 24px;
  }

  .home-hero-pro h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .hero-proof {
    display: grid;
  }

  .hero-proof span,
  .home-intent-grid .button,
  .split-actions .button,
  .pricing-tile .button {
    width: 100%;
  }

  .flow-step {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 15px;
  }

  .flow-step > span {
    width: 34px;
    height: 34px;
  }
}

/* 2026-06 HKWB-inspired tile polish: cleaner service tiles, brighter premium surface */
:root {
  --bg: #f5f9fb;
  --paper: #ffffff;
  --paper-2: #eef6f7;
  --ink: #10202d;
  --muted: #5d6d79;
  --line: #d9e6ea;
  --brand: #087c89;
  --brand-dark: #063d56;
  --brand-soft: #e3f5f7;
  --gold: #d19a35;
  --coral: #c76552;
  --blue: #2768a6;
  --shadow: 0 28px 80px rgba(14, 42, 58, 0.12);
  --shadow-soft: 0 16px 46px rgba(14, 42, 58, 0.09);
}

body {
  background:
    linear-gradient(rgba(16, 32, 45, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 45, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 8% 6%, rgba(8, 124, 137, 0.13), transparent 31%),
    radial-gradient(circle at 86% 14%, rgba(209, 154, 53, 0.11), transparent 30%),
    linear-gradient(135deg, #f7fbfc 0%, #ffffff 46%, #edf7f8 100%);
  background-size: 68px 68px, 68px 68px, auto, auto, auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(217, 230, 234, 0.9);
  box-shadow: 0 14px 44px rgba(14, 42, 58, 0.07);
}

.brand-mark {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 18px 34px rgba(8, 124, 137, 0.24);
}

.nav a.active,
.nav a:hover,
.nav-logout:hover {
  background: linear-gradient(135deg, var(--brand), #0b6d65);
  box-shadow: 0 16px 36px rgba(8, 124, 137, 0.2);
}

.button.primary {
  background: linear-gradient(135deg, var(--brand), #0a7169);
  box-shadow: 0 18px 38px rgba(8, 124, 137, 0.22);
}

.button.secondary {
  background: #fff;
  border-color: rgba(8, 124, 137, 0.2);
}

.home-hero-pro {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 253, 254, 0.96) 50%, rgba(227, 245, 247, 0.88) 100%),
    linear-gradient(155deg, rgba(8, 124, 137, 0.13), rgba(209, 154, 53, 0.1));
  border-color: rgba(217, 230, 234, 0.95);
  box-shadow: var(--shadow);
}

.home-hero-pro::before {
  content: "";
  position: absolute;
  inset: 30px 30px auto auto;
  width: 188px;
  height: 188px;
  border: 1px solid rgba(8, 124, 137, 0.18);
  border-radius: 28px;
  transform: rotate(8deg);
  background:
    linear-gradient(rgba(8, 124, 137, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 124, 137, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}

.home-hero-pro h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(42px, 5.55vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.home-hero-pro h1 span {
  display: inline-block;
  padding: 0 0.12em 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: 0.18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(8, 124, 137, 0.16);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(14, 42, 58, 0.08);
}

.hero-kicker span,
.hero-kicker strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.hero-kicker span {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-kicker strong {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.documents-hero {
  min-height: 0;
  padding-block: clamp(46px, 7vw, 88px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 249, 249, 0.92)) !important;
}

.documents-hero h1 {
  max-width: 980px;
}

.documents-hero .lead {
  max-width: 760px;
}

.document-kicker {
  margin-top: 24px;
}

.document-kicker span,
.document-kicker strong {
  min-height: 36px;
}

.hero-proof span {
  color: var(--brand-dark);
  background: rgba(227, 245, 247, 0.96);
  border-color: rgba(8, 124, 137, 0.18);
}

.hero-flow-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 252, 0.94));
  border-color: rgba(217, 230, 234, 0.96);
  box-shadow: 0 28px 70px rgba(6, 61, 86, 0.14);
}

.flow-step {
  background: #fff;
  border-color: rgba(217, 230, 234, 0.94);
}

.flow-step > span {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.flow-step.active {
  background:
    linear-gradient(135deg, var(--brand-dark), #0f6f75);
}

.hero-command-card {
  position: relative;
  align-self: center;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(6, 61, 86, 0.98), rgba(8, 124, 137, 0.92)),
    var(--brand-dark);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(6, 61, 86, 0.22);
}

.hero-command-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  pointer-events: none;
}

.command-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-top strong {
  margin-left: auto;
}

.command-dot {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 50%;
}

.command-search,
.command-match,
.command-result,
.command-grid article {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}

.command-search {
  min-height: 118px;
  margin-bottom: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.09));
}

.command-search::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 10px 10px;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.command-match {
  margin-bottom: 12px;
}

.command-result {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.92);
}

.command-search span,
.command-match span,
.command-result span,
.command-grid span {
  color: inherit;
  opacity: 0.7;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.command-search strong {
  max-width: 260px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.command-grid strong,
.command-match strong,
.command-result strong {
  font-size: 18px;
  line-height: 1.18;
}

.tile-showcase {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  grid-auto-rows: minmax(228px, auto);
  gap: 18px;
  margin: 24px 0;
}

.service-tile {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 228px;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(8, 124, 137, 0.95), rgba(6, 61, 86, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.service-tile::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  transform: rotate(10deg);
  background:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 16px 16px;
}

.service-tile::after {
  content: "Megnyitás";
  position: absolute;
  right: 22px;
  bottom: 20px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 86px rgba(6, 61, 86, 0.18);
  filter: saturate(1.05);
}

.service-tile-large {
  grid-row: span 2;
  min-height: 474px;
}

.service-tile-warm {
  background:
    linear-gradient(135deg, #d19a35, #8c5a16);
}

.service-tile-blue {
  background:
    linear-gradient(135deg, #2768a6, #123b67);
}

.service-tile-coral {
  background:
    linear-gradient(135deg, #c76552, #843a34);
}

.tile-index {
  position: absolute;
  top: 22px;
  left: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tile-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.service-tile strong {
  max-width: 560px;
  margin-bottom: 12px;
  padding-right: 96px;
  font-size: clamp(30px, 3.8vw, 56px);
  line-height: 0.98;
}

.service-tile:not(.service-tile-large) strong {
  font-size: clamp(25px, 2.6vw, 34px);
}

.service-tile p {
  max-width: 540px;
  margin: 0;
  padding-right: 112px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.55;
}

.practice-profile-section {
  margin: 28px 0;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(243, 250, 248, 0.78)),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(213, 226, 220, 0.95);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: end;
  margin-bottom: 24px;
}

.section-head.split p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.practice-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.practice-profile-card {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 430px;
  color: #fff;
  background: #102431;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 22px 46px rgba(18, 32, 42, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.practice-profile-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 28px 60px rgba(18, 32, 42, 0.2);
}

.practice-visual {
  position: relative;
  min-height: 158px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.38), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #0b7f78, #0e3d4a);
}

.practice-visual::before,
.practice-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  transform: rotate(10deg);
}

.practice-visual::before {
  width: 138px;
  height: 138px;
  right: -34px;
  top: -30px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}

.practice-visual::after {
  width: 92px;
  height: 92px;
  left: 24px;
  bottom: -36px;
  background: rgba(255, 255, 255, 0.11);
}

.practice-visual span {
  position: absolute;
  left: 24px;
  bottom: -28px;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  font-weight: 950;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
}

.practice-profile-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 48px 26px 28px;
  background:
    linear-gradient(180deg, rgba(12, 36, 49, 0.94), rgba(10, 27, 39, 0.98)),
    #102431;
}

.practice-profile-body strong {
  font-size: clamp(23px, 2.1vw, 30px);
  line-height: 1.06;
}

.practice-profile-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.practice-profile-body ul {
  display: grid;
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.practice-profile-body li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.42;
}

.practice-profile-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  background: #9be7d5;
  border-radius: 50%;
}

.practice-profile-card.tone-sage .practice-visual {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.36), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #7aa786, #234d50);
}

.practice-profile-card.tone-blue .practice-visual {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.34), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(135deg, #487fba, #0d3d59);
}

.practice-profile-card.tone-gold .practice-visual {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.36), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #c89b45, #5b5138);
}

.practice-profile-card.tone-coral .practice-visual {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.36), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #ba6b55, #55334a);
}

.practice-profile-card.tone-ink .practice-visual {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.28), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(135deg, #344455, #101923);
}

.home-intent-grid article,
.process-section,
.feature-band,
.quick-search,
.card,
.search-panel {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(217, 230, 234, 0.94);
  box-shadow: var(--shadow-soft);
}

.home-intent-grid article {
  min-height: 300px;
  border-radius: 24px;
}

.process-section {
  border-radius: 24px;
}

.process-cards article {
  background:
    linear-gradient(180deg, #ffffff, #f5fbfc);
  border: 1px solid rgba(217, 230, 234, 0.94);
}

.feature-band {
  border-radius: 24px;
}

.directory-hero,
.library-hero {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 253, 0.95) 54%, rgba(227, 245, 247, 0.86)),
    linear-gradient(155deg, rgba(8, 124, 137, 0.1), rgba(209, 154, 53, 0.08));
  box-shadow: var(--shadow);
}

.lawyer-result,
.document-cards .card,
.stat-card {
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.lawyer-result:hover,
.document-cards .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(14, 42, 58, 0.13);
}

.document-icon {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

@media (max-width: 980px) {
  .tile-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .service-tile-large {
    grid-column: 1 / -1;
    grid-row: span 1;
    min-height: 320px;
  }

  .section-head.split {
    grid-template-columns: 1fr;
  }

  .practice-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-hero-pro::before {
    display: none;
  }

  .home-hero-pro h1 {
    font-size: clamp(34px, 10.5vw, 50px);
    line-height: 1.04;
  }

  .hero-kicker {
    align-items: stretch;
    width: 100%;
    border-radius: 18px;
  }

  .hero-kicker span,
  .hero-kicker strong {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-command-card {
    padding: 18px;
    border-radius: 22px;
  }

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

  .command-search {
    min-height: 100px;
  }

  .command-search strong {
    max-width: 220px;
    font-size: 30px;
  }

  .tile-showcase {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 18px 0;
  }

  .service-tile,
  .service-tile-large {
    min-height: 260px;
    padding: 22px;
    border-radius: 20px;
  }

  .practice-profile-section {
    margin: 18px 0;
    padding: 18px;
    border-radius: 18px;
  }

  .practice-profile-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .practice-profile-card {
    min-height: auto;
    border-radius: 18px;
  }

  .practice-visual {
    min-height: 130px;
  }

  .practice-profile-body {
    padding: 44px 22px 24px;
  }

  .service-tile::after {
    position: static;
    width: max-content;
    margin-top: 18px;
  }

  .service-tile strong,
  .service-tile:not(.service-tile-large) strong,
  .service-tile p {
    padding-right: 0;
  }

  .service-tile strong {
    font-size: clamp(28px, 9vw, 40px);
  }

.tile-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 15px;
  }
}

.legal-page-head {
  max-width: 1080px;
}

.legal-static-page {
  padding-top: clamp(28px, 5vw, 72px);
}

.legal-document {
  max-width: 1080px;
  margin: 0 auto 56px;
  padding: clamp(24px, 4vw, 44px);
  line-height: 1.75;
}

.legal-document h2 {
  margin: 26px 0 8px;
  font-size: clamp(22px, 2vw, 30px);
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document h3 {
  margin: 18px 0 6px;
  color: var(--ink);
  font-size: clamp(18px, 1.5vw, 22px);
}

.legal-document p {
  max-width: 900px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 18px;
}

.legal-document .legal-meta-line {
  display: inline-flex;
  width: fit-content;
  margin: 0 10px 10px 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-900);
  font-size: 15px;
  font-weight: 800;
}

/* 2026-07-10 mobile hardening: final layer, intentionally last */
@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: auto;
    padding: 10px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    flex: 0 0 auto;
  }

  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    grid-column: 1 / -1;
    position: static;
    display: none;
    width: 100%;
    padding: 10px 0 2px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav.is-open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav a,
  .nav-logout,
  .session-label {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    border-radius: 12px;
  }

  .app-shell {
    width: min(100% - 24px, 1360px);
    padding-top: 22px;
  }

  .home-hero,
  .home-hero-pro,
  .directory-hero,
  .library-hero,
  .profile-head,
  .auth-layout {
    grid-template-columns: 1fr !important;
  }

  .profile-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .billing-type-toggle,
  .section-title-row {
    grid-template-columns: 1fr;
  }

  .section-title-row {
    display: grid;
  }

  .home-hero,
  .home-hero-pro,
  .directory-hero,
  .library-hero,
  .profile-head,
  .process-section,
  .feature-band,
  .practice-profile-section {
    width: 100%;
    margin-inline: 0;
    padding: 24px;
    border-radius: 20px;
  }

  .home-hero-pro h1,
  .home-hero h1,
  .directory-hero h1,
  .library-hero h1,
  .profile-head h1,
  h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 56px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .lead,
  .hero-copy p,
  .profile-head p {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.55;
  }

  .hero-actions,
  .profile-actions,
  .plan-actions,
  .document-form-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button,
  button,
  .nav a,
  .nav-logout {
    white-space: normal;
    text-align: center;
  }

  .cards,
  .stat-grid,
  .profile-grid,
  .form-grid,
  .check-grid,
  .pricing-tiles,
  .home-intent-grid,
  .process-cards,
  .practice-profile-grid,
  .document-cards,
  .trust-strip,
  .tile-showcase,
  .search-panel,
  .quick-search {
    grid-template-columns: 1fr !important;
  }

  .search-panel,
  .quick-search {
    gap: 14px;
  }

  .search-panel .button,
  .quick-search .button,
  .pricing-tile .button,
  .home-intent-grid .button,
  .split-actions .button {
    width: 100%;
  }

  .lawyer-result {
    grid-template-columns: 1fr !important;
  }

  .lawyer-avatar {
    width: 62px;
    height: 62px;
  }

  .lawyer-title-row,
  .result-bar,
  .profile-status {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tag-list,
  .profile-status {
    align-items: flex-start;
  }

  .price-card,
  .directory-card,
  .pricing-tile,
  .home-intent-grid article,
  .practice-profile-card,
  .card,
  .form-card,
  .stat-card {
    min-width: 0;
  }

.invoice-list,
.quote-list {
  display: grid;
  gap: 12px;
}

.profile-menu {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.profile-accordion {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(10, 50, 64, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(14, 42, 58, 0.08);
}

.profile-accordion summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 28px;
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}

.profile-accordion summary::-webkit-details-marker {
  display: none;
}

.profile-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  background: var(--brand-soft);
  border: 1px solid rgba(16, 132, 126, 0.18);
  border-radius: 12px;
}

.profile-row-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-row-copy strong {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.12;
}

.profile-row-copy small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.profile-row-badge {
  padding: 8px 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
  background: rgba(227, 245, 247, 0.96);
  border: 1px solid rgba(16, 132, 126, 0.18);
  border-radius: 999px;
}

.profile-row-arrow {
  color: var(--muted);
  font-size: 34px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.profile-accordion[open] .profile-row-arrow {
  transform: rotate(90deg);
}

.profile-accordion-body {
  padding: 0 20px 20px;
  border-top: 1px solid rgba(10, 50, 64, 0.08);
}

.profile-accordion-body > .card,
.profile-accordion-body > .form-card,
.profile-accordion-body > form.card {
  padding: 18px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.profile-action-panel,
.availability-row,
.lawyer-profile-card.slim {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.invoice-list.clean {
  padding-top: 18px;
}

.invoice-item.clean {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border-radius: 16px;
}

.invoice-item.clean.ok {
  border-color: rgba(16, 132, 126, 0.22);
}

.invoice-item.clean.wait {
  border-color: rgba(195, 132, 33, 0.28);
  background: #fffaf0;
}

.invoice-item.clean.bad {
  border-color: rgba(164, 42, 42, 0.24);
  background: #fff8f6;
}

  .invoice-item,
  .quote-item {
    overflow-wrap: anywhere;
  }

  .profile-accordion summary {
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    gap: 12px;
    padding: 14px;
  }

  .profile-row-badge {
    grid-column: 2 / 3;
    width: max-content;
    max-width: 100%;
    white-space: normal;
  }

  .profile-row-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .profile-accordion-body {
    padding: 0 14px 16px;
  }

  .invoice-item.clean {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .table-wrap,
  .legal-document,
  .card {
    max-width: 100%;
    overflow-x: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 18px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: 1fr;
    max-height: min(82vh, 520px);
    overflow-y: auto;
    padding: 18px;
    border-radius: 18px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 9px 12px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    max-width: 190px;
    font-size: 12px;
  }

  .app-shell {
    width: min(100% - 18px, 1360px);
    padding-bottom: 46px;
  }

  .home-hero,
  .home-hero-pro,
  .directory-hero,
  .library-hero,
  .profile-head,
  .process-section,
  .feature-band,
  .practice-profile-section,
  .card,
  .form-card,
  .pricing-tile,
  .home-intent-grid article {
    padding: 18px;
    border-radius: 16px;
  }

  .home-hero-pro h1,
  .home-hero h1,
  .directory-hero h1,
  .library-hero h1,
  .profile-head h1,
  h1 {
    font-size: clamp(30px, 10.5vw, 42px);
  }

  h2 {
    font-size: clamp(23px, 7vw, 30px);
  }

  .hero-kicker {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-kicker span,
  .hero-kicker strong {
    width: 100%;
  }

  .hero-command-card,
  .directory-card,
  .price-card {
    padding: 16px;
  }

  .command-search strong {
    font-size: 25px;
  }

  .practice-visual {
    min-height: 112px;
  }

  .practice-profile-body {
    padding: 38px 18px 20px;
  }

  .practice-profile-body strong {
    font-size: 24px;
  }

  .form-grid,
  .check-grid {
    gap: 12px;
  }

  input,
  select,
  textarea {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .payment-consent-dialog {
    width: calc(100% - 22px);
    max-height: 86vh;
    overflow-y: auto;
    padding: 18px;
    border-radius: 18px;
  }
}

/* 2026-07-11 profile accordion final layer.
   Keep this outside mobile media blocks so the profile page never falls back to raw details styling. */
.profile-menu {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.profile-menu .profile-accordion {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(10, 50, 64, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(14, 42, 58, 0.08);
}

.profile-menu .profile-accordion > summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 28px;
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}

.profile-menu .profile-accordion > summary::-webkit-details-marker {
  display: none;
}

.profile-menu .profile-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  background: var(--brand-soft);
  border: 1px solid rgba(16, 132, 126, 0.18);
  border-radius: 12px;
}

.profile-menu .profile-row-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-menu .profile-row-copy strong {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.12;
}

.profile-menu .profile-row-copy small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.profile-menu .profile-row-badge {
  padding: 8px 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
  background: rgba(227, 245, 247, 0.96);
  border: 1px solid rgba(16, 132, 126, 0.18);
  border-radius: 999px;
}

.profile-menu .profile-row-arrow {
  color: var(--muted);
  font-size: 34px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.profile-menu .profile-accordion[open] .profile-row-arrow {
  transform: rotate(90deg);
}

.profile-menu .profile-accordion-body {
  padding: 0 20px 20px;
  border-top: 1px solid rgba(10, 50, 64, 0.08);
}

.profile-menu .profile-accordion-body > .card,
.profile-menu .profile-accordion-body > .form-card,
.profile-menu .profile-accordion-body > form.card {
  padding: 18px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.profile-action-panel,
.availability-row,
.lawyer-profile-card.slim {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.invoice-list.clean,
.quote-list.clean {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.invoice-item.clean {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(10, 50, 64, 0.12);
  border-radius: 16px;
}

.invoice-item.clean.ok {
  border-color: rgba(16, 132, 126, 0.22);
}

.invoice-item.clean.wait {
  border-color: rgba(195, 132, 33, 0.28);
  background: #fffaf0;
}

.invoice-item.clean.bad {
  border-color: rgba(164, 42, 42, 0.24);
  background: #fff8f6;
}

@media (max-width: 760px) {
  .profile-menu .profile-accordion > summary {
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    gap: 12px;
    padding: 14px;
  }

  .profile-menu .profile-row-badge {
    grid-column: 2 / 3;
    width: max-content;
    max-width: 100%;
    white-space: normal;
  }

  .profile-menu .profile-row-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .profile-menu .profile-accordion-body {
    padding: 0 14px 16px;
  }

  .invoice-item.clean {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

/* 2026-07-24 clean neutral background pass.
   Removes the yellow/cream cast from the public and profile surfaces. */
:root {
  --bg: #f6fbfb;
  --paper-2: #f4faf9;
  --line: #d9e8e8;
}

body {
  background:
    linear-gradient(rgba(12, 36, 44, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 36, 44, 0.02) 1px, transparent 1px),
    linear-gradient(120deg, #f7fcfc 0%, #ffffff 52%, #eef8f8 100%) !important;
  background-size: 76px 76px, 76px 76px, auto !important;
}

.page-head,
.profile-head,
.card,
.profile-card,
.form-card,
.document-cards .card,
.pricing-tile,
.hero-flow-card,
.payment-consent-dialog,
.site-footer,
.profile-menu .profile-accordion {
  background: rgba(255, 255, 255, 0.96) !important;
}

.invoice-item.clean.wait {
  background: #fbf7ef !important;
}

.invoice-item.clean.bad {
  background: #fff6f5 !important;
}

/* 2026-07-24 clean hero restore.
   The clean branch had the right landing-page proportions; keep this last so
   global card/background overrides cannot flatten the hero panel again. */
.app-shell {
  width: min(100% - 36px, 1700px);
}

.home-hero.home-hero-pro {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr) !important;
  align-items: center !important;
  gap: clamp(30px, 5vw, 78px) !important;
  min-height: 690px;
  margin-bottom: 28px;
  padding: clamp(48px, 6.2vw, 94px);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 253, 254, 0.96) 52%, rgba(228, 246, 247, 0.9) 100%),
    linear-gradient(155deg, rgba(8, 124, 137, 0.12), rgba(16, 132, 126, 0.06)) !important;
  border: 1px solid rgba(197, 224, 227, 0.95) !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 90px rgba(6, 61, 86, 0.11) !important;
}

.home-hero.home-hero-pro::before {
  content: "";
  position: absolute;
  inset: 34px 34px auto auto;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(8, 124, 137, 0.16);
  border-radius: 30px;
  transform: rotate(8deg);
  background:
    linear-gradient(rgba(8, 124, 137, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 124, 137, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.home-hero.home-hero-pro::after {
  right: -90px;
  bottom: -130px;
  width: 470px;
  height: 470px;
  background: radial-gradient(circle, rgba(8, 124, 137, 0.12), transparent 64%);
}

.home-hero-pro .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 930px;
}

.home-hero-pro h1 {
  max-width: 900px;
  margin-top: 26px;
  margin-bottom: 24px;
  font-size: clamp(52px, 5.8vw, 98px);
  line-height: 0.96;
  letter-spacing: 0;
}

.home-hero-pro h1 span {
  display: inline-block;
  padding: 0 0.12em 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: 0.18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.home-hero-pro .lead {
  max-width: 790px;
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.55;
}

.home-hero-pro .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.home-hero-pro .hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-hero-pro .hero-proof span {
  padding: 9px 13px;
  color: var(--brand-dark);
  background: rgba(227, 245, 247, 0.96);
  border: 1px solid rgba(8, 124, 137, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.home-hero-pro .hero-command-card {
  position: relative;
  z-index: 1;
  align-self: center;
  min-height: 0;
  padding: 26px;
  color: #fff !important;
  background:
    linear-gradient(145deg, rgba(6, 61, 86, 0.98), rgba(8, 124, 137, 0.94)),
    var(--brand-dark) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(6, 61, 86, 0.22) !important;
}

.home-hero-pro .hero-command-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 23px;
  pointer-events: none;
}

.home-hero-pro .command-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero-pro .command-top strong {
  margin-left: auto;
  color: inherit;
}

.home-hero-pro .command-search,
.home-hero-pro .command-match,
.home-hero-pro .command-result,
.home-hero-pro .command-grid article {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}

.home-hero-pro .command-search {
  min-height: 148px;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.09));
}

.home-hero-pro .command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.home-hero-pro .command-match {
  margin-bottom: 14px;
}

.home-hero-pro .command-result {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.92);
}

.home-hero-pro .command-search span,
.home-hero-pro .command-match span,
.home-hero-pro .command-result span,
.home-hero-pro .command-grid span {
  color: inherit;
  opacity: 0.7;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.home-hero-pro .command-search strong {
  max-width: 300px;
  color: #fff;
  font-size: clamp(34px, 3.35vw, 54px);
  line-height: 1;
}

.home-hero-pro .command-grid strong,
.home-hero-pro .command-match strong,
.home-hero-pro .command-result strong {
  color: inherit;
  font-size: 20px;
  line-height: 1.18;
}

@media (max-width: 1120px) {
  .home-hero.home-hero-pro {
    grid-template-columns: 1fr !important;
    min-height: 0;
  }

  .home-hero-pro .hero-command-card {
    width: min(100%, 680px);
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 20px, 1700px);
  }

  .home-hero.home-hero-pro {
    padding: 24px;
    border-radius: 20px !important;
  }

  .home-hero-pro h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .home-hero-pro .hero-actions .button {
    width: 100%;
  }

  .home-hero-pro .hero-command-card {
    padding: 18px;
    border-radius: 22px;
  }

  .home-hero-pro .command-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-pro .command-search {
    min-height: 118px;
  }
}

/* 2026-07-24 pricing card restore.
   The global white card pass must not wash out the featured price card. */
.pricing-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pricing-tile {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 251, 0.92)),
    var(--paper) !important;
  border: 1px solid rgba(217, 230, 234, 0.95);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.pricing-tile-featured {
  color: #fff;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(135deg, var(--brand-dark), var(--brand)) !important;
  border-color: rgba(255, 255, 255, 0.16);
}

.pricing-tile-soft {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 249, 0.94)),
    var(--paper) !important;
}

.pricing-tile .eyebrow,
.pricing-tile h2,
.pricing-tile strong,
.pricing-tile p,
.pricing-tile .button {
  position: relative;
  z-index: 1;
}

.pricing-tile h2 {
  margin-bottom: 10px;
  color: inherit;
}

.pricing-tile strong {
  display: block;
  margin-bottom: 18px;
  color: inherit;
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1.05;
}

.pricing-tile p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.58;
}

.pricing-tile-featured .eyebrow,
.pricing-tile-featured p,
.pricing-tile-featured p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.pricing-tile .button {
  width: max-content;
  margin-top: auto;
}

.pricing-tile-featured .button.primary {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1100px) {
  .pricing-tiles {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 700px) {
  .pricing-tiles {
    grid-template-columns: 1fr;
  }

  .pricing-tile {
    min-height: 0;
  }

  .pricing-tile .button {
    width: 100%;
  }
}

/* 2026-07-24 premium pricing polish. */
.pricing-tiles {
  gap: clamp(18px, 1.8vw, 28px) !important;
  margin: clamp(28px, 4vw, 48px) 0 !important;
}

.pricing-tile {
  --price-accent: #087c89;
  isolation: isolate;
  min-height: 336px !important;
  padding: clamp(26px, 3.1vw, 42px) !important;
  background:
    radial-gradient(circle at 84% 82%, rgba(8, 124, 137, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(246, 251, 251, 0.93)) !important;
  border: 1px solid rgba(160, 207, 213, 0.46) !important;
  border-radius: 24px !important;
  box-shadow:
    0 28px 70px rgba(7, 45, 59, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pricing-tile:hover {
  border-color: color-mix(in srgb, var(--price-accent) 38%, #c8e3e8) !important;
  box-shadow:
    0 34px 86px rgba(7, 45, 59, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.pricing-tile::before {
  inset: auto 30px 28px auto !important;
  width: 94px !important;
  height: 94px !important;
  background:
    linear-gradient(145deg, rgba(8, 124, 137, 0.12), rgba(8, 124, 137, 0.02)) !important;
  border: 0 !important;
  border-radius: 22px !important;
  transform: rotate(10deg);
  box-shadow: none !important;
}

.pricing-tile::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, var(--price-accent), transparent 72%);
}

.pricing-tile:nth-child(2) {
  --price-accent: #286a9b;
}

.pricing-tile:nth-child(3) {
  --price-accent: #6b7c3e;
}

.pricing-tile:nth-child(4) {
  --price-accent: #7d5b93;
}

.pricing-tile:nth-child(5) {
  --price-accent: #0f7f72;
}

.pricing-tile:nth-child(6) {
  --price-accent: #9a6536;
}

.pricing-tile-featured {
  --price-accent: #ffffff;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 86%, rgba(177, 235, 224, 0.16), transparent 30%),
    linear-gradient(135deg, #064b63 0%, #087f84 62%, #0b6f65 100%) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 34px 90px rgba(2, 69, 79, 0.24) !important;
}

.pricing-tile-featured::before {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)) !important;
}

.pricing-tile-featured::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 70%);
}

.pricing-tile .eyebrow {
  width: max-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 8px 12px;
  color: var(--price-accent) !important;
  background: color-mix(in srgb, var(--price-accent) 11%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--price-accent) 20%, #d5edf0);
  border-radius: 999px;
  letter-spacing: 0.18em;
}

.pricing-tile-featured .eyebrow {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.pricing-tile h2 {
  max-width: 520px;
  margin-bottom: 12px !important;
  font-size: clamp(27px, 2.55vw, 42px);
  line-height: 1.05;
}

.pricing-tile strong {
  margin: 0 0 20px !important;
  font-size: clamp(38px, 4vw, 64px) !important;
  line-height: 0.98 !important;
}

.pricing-tile p:not(.eyebrow) {
  max-width: 430px;
  margin-bottom: 28px;
  font-size: clamp(17px, 1.22vw, 20px);
}

.pricing-tile .button {
  min-height: 54px;
  padding-inline: 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border-color: color-mix(in srgb, var(--price-accent) 24%, #c9e3e8);
}

.pricing-tile .button.secondary:hover {
  background: color-mix(in srgb, var(--price-accent) 10%, #ffffff);
}

.pricing-tile-featured .button.primary {
  color: #064b63 !important;
  background: #ffffff !important;
}

@media (min-width: 1101px) {
  .pricing-tile-featured {
    min-height: 372px !important;
  }
}

@media (max-width: 700px) {
  .pricing-tile {
    min-height: 0 !important;
    padding: 22px !important;
    border-radius: 20px !important;
  }

  .pricing-tile h2 {
    font-size: clamp(25px, 8vw, 34px);
  }

  .pricing-tile strong {
    font-size: clamp(34px, 11vw, 48px) !important;
  }

  .pricing-tile::before {
    width: 72px !important;
    height: 72px !important;
  }
}
