:root {
  --bg: #f4efe7;
  --bg-deep: #e8ddcb;
  --surface: rgba(253, 250, 244, 0.94);
  --surface-strong: #fffdf9;
  --surface-soft: rgba(247, 240, 229, 0.88);
  --line: rgba(74, 51, 26, 0.12);
  --text: #181411;
  --muted: #6b5b4d;
  --accent: #a86f3b;
  --accent-strong: #6a4327;
  --navy: #4a2e1f;
  --success: #285e4f;
  --danger: #8a2f2f;
  --shadow: 0 24px 80px rgba(44, 29, 11, 0.12);
  --shadow-soft: 0 12px 30px rgba(44, 29, 11, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: "Baskerville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 96px;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(159, 106, 47, 0.2), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(74, 46, 31, 0.12), transparent 18%),
    linear-gradient(180deg, #fbf8f3 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

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

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

.page-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.topbar,
.panel-card,
.sub-card,
.pricing-card,
.hero-stat-card,
.showcase-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 16px 20px;
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.84);
  box-shadow: var(--shadow-soft);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), #7a5132);
  color: #f7f1e8;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.brand-mark svg,
.hero-symbol-core svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-mark svg circle,
.hero-symbol-core svg circle {
  fill: #4a2a1a;
}

.brand-mark svg path,
.hero-symbol-core svg path {
  fill: none;
  stroke: #fffdf8;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-lockup span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.28;
  letter-spacing: 0.015em;
}

.brand-lockup strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.26rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(74, 46, 31, 0.1);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.74);
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 34px;
  padding: 6px 11px 6px 7px;
  gap: 6px;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 850;
}

.language-button.is-active {
  color: #fffaf3;
  background: var(--brown);
  box-shadow: 0 8px 18px rgba(74, 46, 31, 0.14);
}

.flag-icon {
  display: block;
  width: 24px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 4px;
  object-fit: cover;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 1px 3px rgba(35, 24, 17, 0.18);
}

.mobile-language-switcher {
  display: none;
}

.text-link {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.text-link.is-active {
  color: var(--accent-strong);
  font-weight: 700;
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.78fr);
  gap: 20px;
  margin-bottom: 20px;
}

.marketing-copy,
.hero-stat-card,
.pricing-card,
.app-hero,
.office-summary {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.marketing-copy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(74, 46, 31, 0.08), transparent 26%),
    radial-gradient(circle at 86% 10%, rgba(159, 106, 47, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(246, 239, 228, 0.92));
}

.marketing-copy::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -16%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 106, 47, 0.18), transparent 65%);
}

.hero-symbol,
.hero-symbol-ring,
.hero-symbol-core,
.hero-visual-card,
.hero-visual-screen,
.screen-topline,
.screen-status-row,
.screen-timeline,
.hero-inline-panels,
.hero-inline-card,
.hero-metric-stack,
.signature-band,
.signature-pills,
.trust-ribbon,
.reassurance-row,
.assurance-grid,
.assurance-card,
.assurance-icon {
  display: flex;
}

.hero-symbol {
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 124px;
  margin-bottom: 20px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(74, 46, 31, 0.1), rgba(255, 255, 255, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.hero-symbol-ring {
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a2e1f, #7a5132);
  box-shadow:
    0 18px 38px rgba(74, 46, 31, 0.22),
    inset 0 0 0 4px rgba(248, 246, 242, 0.95);
}

.hero-symbol-core {
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  color: #fffdf8;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
}

.trust-ribbon {
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 16px;
  padding: 10px 14px;
  color: var(--navy);
  border: 1px solid rgba(74, 46, 31, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.trust-ribbon.compact {
  margin-top: 12px;
  margin-bottom: 0;
}

.trust-check,
.assurance-icon {
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fffdf9;
  font-weight: 800;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #7a5132);
  box-shadow: 0 10px 18px rgba(74, 46, 31, 0.18);
}

.reassurance-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.reassurance-row span {
  padding: 10px 12px;
  color: var(--accent-strong);
  border-radius: 999px;
  background: rgba(168, 111, 59, 0.1);
}

.reassurance-row b {
  margin-right: 6px;
}

.hero-inline-panels {
  gap: 12px;
  margin-top: 24px;
}

.hero-inline-card {
  flex: 1;
  flex-direction: column;
  padding: 16px;
  border: 1px solid rgba(74, 46, 31, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.hero-inline-card strong {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-visual-card {
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 18% 16%, rgba(159, 106, 47, 0.16), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(180deg, #4a2e1f 0%, #6a4327 100%);
  box-shadow: var(--shadow);
}

.hero-visual-orbit {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(248, 246, 242, 0.12);
  border-radius: 36px;
}

.hero-visual-orbit::before,
.hero-visual-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(248, 246, 242, 0.8);
}

.hero-visual-orbit::before {
  top: 20%;
  left: -6px;
  width: 14px;
  height: 14px;
}

.hero-visual-orbit::after {
  right: 9%;
  bottom: 20%;
  width: 10px;
  height: 10px;
}

.hero-visual-screen {
  position: relative;
  z-index: 1;
  flex-direction: column;
  gap: 16px;
  width: min(100%, 360px);
  padding: 18px;
  border: 1px solid rgba(248, 246, 242, 0.12);
  border-radius: 30px;
  background: rgba(244, 239, 231, 0.08);
  backdrop-filter: blur(18px);
}

.screen-topline {
  align-items: center;
  gap: 10px;
  color: rgba(248, 246, 242, 0.86);
  font-size: 0.92rem;
}

.screen-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d2a271;
  box-shadow: 0 0 0 6px rgba(210, 162, 113, 0.16);
}

.screen-case-card,
.screen-timeline article {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 252, 246, 0.95);
}

.screen-case-card strong,
.screen-timeline strong {
  display: block;
  margin-bottom: 8px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.screen-status-row {
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.screen-status-row span {
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--accent-strong);
  border-radius: 999px;
  background: rgba(159, 106, 47, 0.1);
}

.screen-timeline {
  flex-direction: column;
  gap: 12px;
}

.screen-timeline span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-metric-stack {
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.hero-metric-stack span {
  padding: 12px 14px;
  color: rgba(247, 241, 232, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.signature-band {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at left top, rgba(159, 106, 47, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(241, 233, 219, 0.92));
}

.signature-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.signature-pills {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.signature-pills span {
  padding: 11px 14px;
  color: var(--navy);
  border: 1px solid rgba(74, 46, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.assurance-grid {
  gap: 18px;
  margin-bottom: 20px;
}

.assurance-grid.compact {
  margin-bottom: 18px;
}

.assurance-card {
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at right top, rgba(168, 111, 59, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(244, 236, 224, 0.92));
}

.assurance-card strong {
  font-size: 1.22rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.assurance-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.assurance-inline-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.marketing-copy h1,
.app-hero h1,
.cta-band h2 {
  margin: 0 0 12px;
  line-height: 0.95;
  font-family: var(--font-display);
}

.marketing-copy h1 {
  max-width: 9.4ch;
  font-size: clamp(2.5rem, 5vw, 4.65rem);
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.marketing-copy p,
.showcase-card p,
.micro-card p,
.screen-case-card p,
.hero-inline-card p,
.cta-band p,
.site-footer,
.brand-lockup span {
  line-height: 1.45;
}

.marketing-copy > p,
.hero-stat-card p,
.showcase-card p,
.micro-card p,
.hero-inline-card p,
.screen-case-card p,
.screen-timeline span,
.cta-band p {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.brand-lockup strong,
.showcase-card strong,
.micro-card strong,
.hero-inline-card strong,
.screen-case-card strong {
  letter-spacing: -0.02em;
}

.showcase-card strong,
.micro-card strong {
  line-height: 1.08;
}

.hero-stat-card strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.app-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.eyebrow,
.section-kicker,
.mini-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(95, 58, 23, 0.08);
  color: var(--accent-strong);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mini-label {
  margin-bottom: 10px;
  font-size: 0.72rem;
}

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

.hero-badges,
.metrics,
.marketing-actions,
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.metric-pill,
.security-badge {
  display: inline-flex;
  padding: 10px 14px;
  white-space: nowrap;
  border: 1px solid rgba(95, 58, 23, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.marketing-actions,
.cta-band-actions {
  margin-top: 22px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  transition: transform 140ms ease;
}

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

.button-link.primary {
  color: #fffaf4;
  background: linear-gradient(135deg, var(--navy), #384a59);
  box-shadow: 0 14px 28px rgba(74, 46, 31, 0.22);
}

.button-link.secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(74, 46, 31, 0.12);
}

.button-link.ghost {
  color: var(--accent-strong);
  background: rgba(159, 106, 47, 0.08);
  border: 1px solid rgba(159, 106, 47, 0.14);
}

.hero-stat-card {
  color: #f7f1e8;
  background: linear-gradient(180deg, rgba(74, 46, 31, 0.96), rgba(94, 60, 35, 0.96));
}

.hero-stat-card p {
  color: rgba(247, 241, 232, 0.74);
}

.hero-stat-card .mini-label,
.lawyer-preview .mini-label {
  color: #f7f1e8;
  background: rgba(255, 255, 255, 0.1);
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.feature-list li + li {
  margin-top: 8px;
}

.marketing-proof,
.highlights-grid,
.split-preview,
.platform-strip,
.helper-grid {
  display: grid;
  gap: 16px;
}

.marketing-proof {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.proof-card,
.highlight-tile,
.preview-panel,
.citizen-info-card,
.trial-banner,
.micro-card,
.helper-card,
.empty-collection {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.proof-card strong,
.highlight-tile strong,
.preview-panel h3 {
  display: block;
  margin-bottom: 8px;
}

.marketing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.showcase-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.showcase-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.split-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.platform-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.micro-card strong,
.helper-card strong,
.empty-collection strong {
  display: block;
  margin-bottom: 8px;
}

.lawyer-preview {
  background: linear-gradient(180deg, rgba(74, 46, 31, 0.96), rgba(106, 67, 39, 0.96));
  color: #f7f1e8;
}

.lawyer-preview .feature-list {
  color: rgba(247, 241, 232, 0.78);
}

.citizen-preview {
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(245, 234, 215, 0.98));
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.app-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-inline-actions {
  margin-top: 20px;
}

.subscription-price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 20px;
  color: #fffaf4;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), #384a59);
  box-shadow: 0 14px 28px rgba(74, 46, 31, 0.2);
}

.office-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(95, 58, 23, 0.08), rgba(74, 46, 31, 0.08));
}

.highlights-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.helper-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.trial-banner-warning {
  border-color: rgba(159, 106, 47, 0.22);
  background: linear-gradient(135deg, rgba(255, 248, 238, 0.96), rgba(245, 234, 215, 0.94));
}

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

.portal-section {
  overflow: hidden;
  border: 1px solid rgba(74, 46, 31, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.98), rgba(246, 239, 227, 0.96)),
    var(--paper);
  box-shadow: var(--shadow-soft);
}

.portal-section[open] {
  border-color: rgba(74, 46, 31, 0.18);
}

.portal-section > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 18px 58px 18px 20px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.portal-section > summary::-webkit-details-marker {
  display: none;
}

.portal-section > summary::after {
  position: absolute;
  right: 18px;
  top: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fffaf3;
  font-size: 1.25rem;
  line-height: 1;
  content: "+";
  border-radius: 999px;
  background: var(--brown);
  transform: translateY(-50%);
  box-shadow: 0 10px 20px rgba(74, 46, 31, 0.18);
}

.portal-section[open] > summary::after {
  content: "−";
}

.portal-section > summary strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.portal-section > summary small {
  color: var(--muted);
  font-weight: 600;
}

.portal-section-body {
  padding: 0 20px 20px;
}

.registry-section .portal-section-body {
  padding-top: 2px;
}

.highlight-tile strong {
  font-size: 1.7rem;
  font-family: var(--font-display);
  color: var(--navy);
}

.workspace-columns,
.citizen-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
}

.citizen-layout.single-view {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
}

.subscribe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.redirect-only-layout {
  align-items: start;
}

.subscribe-redirect-card {
  padding: 24px;
}

.subscribe-fields {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
}

.subscribe-summary {
  display: grid;
  gap: 18px;
  align-self: start;
}

.checkout-card,
.checkout-note-card,
.subscription-result {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.checkout-price {
  margin: 10px 0 14px;
  font-size: 2rem;
  color: var(--navy);
  font-family: var(--font-display);
}

.checkout-price span {
  font-size: 0.95rem;
  color: var(--muted);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.redirect-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.small-note {
  margin-top: 18px;
  font-size: 0.9rem;
}

.demo-phone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-phone-list span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(74, 46, 31, 0.08);
}

.citizen-result-stack {
  display: grid;
  gap: 18px;
}

.steps-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.steps-list li + li {
  margin-top: 8px;
}

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

.sub-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.card-heading {
  margin-bottom: 14px;
}

.card-head-inline,
.client-overview,
.update-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.stack-form,
.client-cards,
.case-file-list,
.update-list,
.portal-result {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 15px;
  color: var(--text);
  border: 1px solid rgba(95, 58, 23, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(159, 106, 47, 0.52);
  box-shadow: 0 0 0 4px rgba(159, 106, 47, 0.12);
}

textarea {
  resize: vertical;
}

button {
  border: 0;
  min-height: 52px;
  padding: 0 18px;
  color: #fffaf4;
  border-radius: 16px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 24px rgba(95, 58, 23, 0.18);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-row input {
  width: auto;
}

.registry-card {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.97), rgba(246, 240, 230, 0.92));
}

.client-card,
.portal-case {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.case-file,
.update-item {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-soft);
}

.citizen-banner {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(74, 46, 31, 0.08), rgba(168, 111, 59, 0.08));
}

.citizen-banner strong {
  display: block;
  margin-bottom: 6px;
}

.update-item {
  position: relative;
  padding-left: 42px;
}

.timeline-dot {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 6px rgba(159, 106, 47, 0.12);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.88rem;
  color: var(--success);
  border-radius: 999px;
  background: rgba(40, 94, 79, 0.12);
}

.status-chip[data-tone="warn"] {
  color: var(--accent-strong);
  background: rgba(159, 106, 47, 0.12);
}

.portal-result.empty-state {
  min-height: 280px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  place-items: center;
  border: 1px dashed rgba(95, 58, 23, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(247, 240, 229, 0.7));
}

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

.dev-hint {
  display: grid;
  min-height: 24px;
  margin-top: 8px;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--accent-strong);
}

.dev-hint span {
  width: fit-content;
  padding: 8px 12px;
  color: #fffaf3;
  border-radius: 999px;
  background: var(--brown);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dev-hint small {
  color: var(--muted);
}

.message {
  margin: 12px 0 0;
  font-size: 0.93rem;
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: var(--success);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid rgba(74, 51, 26, 0.12);
  font-size: 0.92rem;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  display: flex;
  gap: 10px;
  width: min(760px, calc(100% - 24px));
  padding: 10px;
  transform: translateX(-50%);
  border: 1px solid rgba(74, 46, 31, 0.1);
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 34px rgba(74, 46, 31, 0.14);
}

.bottom-nav-link {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: var(--navy);
  border-radius: 16px;
  font-weight: 600;
  background: rgba(74, 46, 31, 0.04);
}

.bottom-nav-link.is-active {
  color: #fffaf4;
  background: linear-gradient(135deg, var(--navy), #384a59);
  box-shadow: 0 10px 22px rgba(74, 46, 31, 0.18);
}

@media (max-width: 920px) {
  .marketing-hero,
  .marketing-grid,
  .platform-strip,
  .assurance-grid,
  .highlights-grid,
  .helper-grid,
  .subscribe-layout,
  .workspace-columns,
  .citizen-layout,
  .citizen-layout.single-view {
    grid-template-columns: 1fr;
  }

  .app-hero,
  .trial-banner,
  .office-summary,
  .card-head-inline,
  .client-overview,
  .update-meta,
  .cta-band,
  .signature-band,
  .topbar,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .metrics {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .topbar {
    padding: 12px 14px;
    border-radius: 24px;
  }

  .topbar-links {
    display: none;
  }

  .mobile-language-switcher {
    display: inline-flex;
    margin-top: 2px;
  }

  .marketing-copy,
  .hero-stat-card,
  .app-hero,
  .office-summary {
    padding: 20px 18px;
    border-radius: 28px;
  }

  .marketing-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }

  .app-hero h1,
  .cta-band h2,
  .signature-copy h2 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .hero-badges,
  .metrics,
  .marketing-actions,
  .cta-band-actions,
  .topbar-links,
  .result-actions,
  .redirect-card-actions {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .hero-badges::-webkit-scrollbar,
  .metrics::-webkit-scrollbar,
  .marketing-actions::-webkit-scrollbar,
  .cta-band-actions::-webkit-scrollbar,
  .topbar-links::-webkit-scrollbar,
  .result-actions::-webkit-scrollbar,
  .redirect-card-actions::-webkit-scrollbar {
    display: none;
  }

  .subscribe-fields {
    grid-template-columns: 1fr;
  }

  .sub-card,
  .client-card,
  .portal-case,
  .case-file,
  .update-item,
  .hero-inline-card,
  .screen-case-card,
  .screen-timeline article {
    border-radius: 20px;
  }

  .hero-symbol {
    width: 108px;
    height: 108px;
    border-radius: 30px;
  }

  .hero-symbol-ring {
    width: 82px;
    height: 82px;
  }

  .hero-visual-card {
    min-height: auto;
    padding: 18px;
  }

  .hero-inline-panels,
  .signature-pills,
  .reassurance-row,
  .trust-ribbon {
    width: 100%;
    flex-direction: column;
  }

  .hero-inline-card,
  .signature-pills span,
  .reassurance-row span {
    width: 100%;
  }

  .bottom-nav {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .marketing-hero,
  .marketing-grid,
  .platform-strip,
  .assurance-grid,
  .workspace-columns,
  .citizen-layout,
  .citizen-layout.single-view,
  .subscribe-layout {
    grid-template-columns: 1fr;
  }

  .marketing-copy {
    padding: 28px 22px;
  }

  .marketing-copy h1 {
    max-width: 100%;
    font-size: 2.65rem;
    line-height: 1.02;
  }

  .marketing-copy > p {
    font-size: 1rem;
  }

  .hero-visual-card {
    min-height: auto;
    padding: 18px;
  }

  .hero-visual-screen {
    width: 100%;
  }

  .app-hero,
  .trial-banner,
  .office-summary,
  .card-head-inline,
  .client-overview,
  .update-meta,
  .cta-band,
  .signature-band,
  .topbar,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .bottom-nav {
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
  }
}

@media (max-width: 520px) {
  body {
    padding-bottom: 92px;
  }

  .page-shell {
    width: min(100% - 16px, 100%);
    padding-top: 10px;
  }

  .topbar {
    top: 8px;
  }

  .brand-lockup {
    gap: 10px;
  }

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

  .brand-lockup strong {
    font-size: 1.08rem;
  }

  .brand-lockup span {
    font-size: 0.78rem;
  }

  .marketing-copy {
    border-left-width: 4px;
  }

  .marketing-copy h1 {
    font-size: 2.18rem;
  }

  .hero-symbol {
    width: 74px;
    height: 74px;
    margin-top: 16px;
  }

  .hero-symbol-ring {
    width: 56px;
    height: 56px;
  }

  .hero-symbol-core {
    font-size: 1.45rem;
  }

  .trust-ribbon {
    min-height: auto;
    padding: 12px 12px 12px 40px;
    font-size: 0.92rem;
  }

  .hero-badges,
  .marketing-actions,
  .reassurance-row,
  .signature-pills {
    width: 100%;
    flex-direction: column;
  }

  .hero-badges span,
  .marketing-actions a,
  .reassurance-row span,
  .signature-pills span {
    width: 100%;
  }

  .hero-visual-card {
    display: none;
  }

  .bottom-nav {
    gap: 6px;
    padding: 6px;
  }

  .bottom-nav-link {
    min-height: 44px;
    font-size: 0.86rem;
  }

  .portal-section > summary {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 16px 54px 16px 16px;
  }

  .portal-section > summary strong {
    font-size: 1.08rem;
  }

  .portal-section > summary small {
    font-size: 0.82rem;
  }

  .portal-section-body {
    padding: 0 16px 16px;
  }
}

/* Final mobile precedence for Android WebView */
@media (max-width: 1180px) {
  .marketing-hero {
    display: block;
  }

  .marketing-copy,
  .marketing-aside,
  .hero-stat-card,
  .app-hero,
  .office-summary,
  .trial-banner,
  .registry-card {
    width: 100%;
  }

  .marketing-aside {
    display: grid;
    gap: 16px;
    margin-top: 16px;
  }

  .marketing-copy {
    overflow: visible;
  }

  .marketing-copy h1 {
    max-width: none;
    font-size: 2.55rem;
    line-height: 1.04;
  }

  .hero-stat-card strong {
    font-size: 2.25rem;
  }

  .hero-visual-card {
    display: none;
  }

  .marketing-grid,
  .platform-strip,
  .assurance-grid,
  .workspace-columns,
  .citizen-layout,
  .citizen-layout.single-view,
  .subscribe-layout,
  .highlights-grid,
  .helper-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .marketing-copy h1 {
    font-size: 2.12rem;
  }

  .hero-stat-card {
    padding: 22px 18px;
  }

  .hero-stat-card strong {
    font-size: 2rem;
  }

  .hero-metric-stack span {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
}

/* Product redesign layer */
:root {
  --ink: #211815;
  --brown: #4a2e1f;
  --brown-soft: #7a5132;
  --cream: #f7f2ea;
  --paper: #fffdf8;
  --sage: #31584c;
  --gold: #b88a52;
  --hairline: rgba(33, 24, 21, 0.12);
}

* {
  letter-spacing: 0;
}

body {
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfaf6 0%, #f2eadf 58%, #e9ddcf 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 24px));
}

.topbar,
.panel-card,
.sub-card,
.pricing-card,
.hero-stat-card,
.showcase-card {
  border-color: var(--hairline);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 34px rgba(50, 31, 18, 0.08);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  padding: 12px 14px;
  border-radius: 8px;
}

.brand-mark,
.hero-symbol-ring {
  border-radius: 50%;
  background: var(--brown);
}

.brand-mark {
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
}

.brand-lockup strong {
  font-size: 1.18rem;
  font-weight: 800;
}

.brand-lockup span,
.muted {
  color: #716154;
}

.text-link {
  padding: 8px 10px;
  border-radius: 6px;
}

.text-link.is-active {
  color: var(--paper);
  background: var(--brown);
}

.marketing-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: stretch;
}

.marketing-copy {
  padding: 34px;
  border-left: 6px solid var(--brown);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 242, 234, 0.96));
}

.marketing-copy::after {
  display: none;
}

.marketing-copy h1 {
  max-width: 720px;
  margin-top: 14px;
  font-size: 3.35rem;
  line-height: 1;
  letter-spacing: 0;
}

.marketing-copy > p {
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.65;
}

.eyebrow,
.section-kicker,
.mini-label {
  border-radius: 4px;
  background: rgba(49, 88, 76, 0.1);
  color: var(--sage);
  font-weight: 800;
}

.hero-symbol {
  width: 92px;
  height: 92px;
  margin: 22px 0 8px;
  border-radius: 8px;
  background: #eee3d5;
}

.hero-symbol-ring {
  width: 70px;
  height: 70px;
  box-shadow: none;
}

.hero-symbol-core {
  font-size: 1.8rem;
}

.trust-ribbon {
  position: relative;
  width: min(100%, 520px);
  min-height: 54px;
  margin: 0 0 20px;
  padding: 14px 16px 14px 46px;
  border-radius: 8px;
  border-color: rgba(49, 88, 76, 0.22);
  background: #f5fbf6;
  color: #27493f;
  font-weight: 800;
  line-height: 1.25;
}

.trust-ribbon.compact {
  margin-top: 16px;
}

.trust-check,
.assurance-icon,
.mini-check {
  position: relative;
  flex: 0 0 auto;
  background: var(--brown);
}

.trust-check {
  position: absolute;
  top: -9px;
  left: -9px;
  width: 34px;
  height: 34px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 12px 22px rgba(74, 46, 31, 0.22);
}

.trust-check::before,
.assurance-icon::before,
.mini-check::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 5px;
  border-left: 2px solid #fffdf8;
  border-bottom: 2px solid #fffdf8;
  transform: rotate(-45deg);
}

.trust-check::before {
  top: 10px;
  left: 9px;
}

.mini-check {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -4px;
  border-radius: 50%;
}

.mini-check::before {
  top: 5px;
  left: 5px;
  width: 7px;
  height: 4px;
}

.reassurance-row span,
.hero-badges span,
.metric-pill,
.security-badge,
.signature-pills span {
  border-radius: 6px;
}

.reassurance-row span {
  color: var(--sage);
  background: rgba(49, 88, 76, 0.09);
}

.hero-inline-card,
.proof-card,
.highlight-tile,
.preview-panel,
.citizen-info-card,
.trial-banner,
.micro-card,
.helper-card,
.empty-collection,
.client-card,
.portal-case,
.case-file,
.update-item,
.assurance-card,
.screen-case-card,
.screen-timeline article {
  border-radius: 8px;
}

.hero-inline-card,
.showcase-card,
.micro-card,
.helper-card,
.citizen-info-card {
  background: rgba(255, 253, 248, 0.82);
}

.hero-visual-card {
  min-height: 520px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(33, 24, 21, 0.5), rgba(74, 46, 31, 0.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900'%3E%3Crect width='900' height='900' fill='%234a2e1f'/%3E%3Cpath d='M0 210h900M0 450h900M0 690h900M210 0v900M450 0v900M690 0v900' stroke='%23f7f2ea' stroke-opacity='.08' stroke-width='2'/%3E%3Cpath d='M120 760C260 620 340 600 450 450C560 300 650 270 780 120' fill='none' stroke='%23b88a52' stroke-opacity='.22' stroke-width='18'/%3E%3C/svg%3E");
  background-size: cover;
}

.hero-visual-orbit {
  display: none;
}

.hero-visual-screen {
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
}

.screen-topline {
  color: var(--brown);
  font-weight: 800;
}

.screen-case-card,
.screen-timeline article {
  border: 1px solid var(--hairline);
  background: #fffdf8;
}

.screen-dot {
  background: var(--sage);
  box-shadow: 0 0 0 5px rgba(49, 88, 76, 0.14);
}

.hero-stat-card,
.lawyer-preview {
  background: linear-gradient(180deg, var(--brown), #2f1c12);
}

.button-link,
button,
input,
select,
textarea,
.bottom-nav,
.bottom-nav-link,
.subscription-price-pill {
  border-radius: 8px;
}

.button-link.primary,
.bottom-nav-link.is-active,
.subscription-price-pill {
  background: var(--brown);
  box-shadow: 0 12px 24px rgba(74, 46, 31, 0.18);
}

.button-link.ghost {
  color: var(--sage);
  background: rgba(49, 88, 76, 0.09);
  border-color: rgba(49, 88, 76, 0.18);
}

button {
  background: var(--brown);
}

.assurance-card {
  position: relative;
  padding: 22px 22px 22px 24px;
  border-left: 5px solid var(--sage);
  background: #fffdf8;
}

.assurance-icon {
  position: absolute;
  top: -11px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 3px solid var(--paper);
  border-radius: 50%;
}

.assurance-icon::before {
  top: 10px;
  left: 8px;
}

.app-hero {
  border-left: 6px solid var(--brown);
  background: #fffdf8;
}

.office-summary,
.trial-banner,
.registry-card {
  background: #fffdf8;
}

.bottom-nav {
  padding: 8px;
  background: rgba(255, 253, 248, 0.94);
}

@media (max-width: 720px) {
  .marketing-copy {
    padding: 24px 18px;
  }

  .marketing-copy h1 {
    max-width: 100%;
    font-size: 2.55rem;
  }

  .hero-visual-card {
    min-height: 420px;
  }

  .trust-ribbon {
    padding-right: 12px;
  }
}

/* Final phone polish: keep the premium layout calm inside Android WebView. */
@media (max-width: 1180px) {
  .marketing-hero {
    display: block;
  }

  .marketing-aside {
    display: grid;
    gap: 14px;
    margin-top: 14px;
  }

  .marketing-copy {
    padding: 22px 18px;
    border-left-width: 4px;
  }

  .marketing-copy h1 {
    max-width: 100%;
    margin-top: 12px;
    font-size: 1.72rem;
    line-height: 1.13;
    letter-spacing: -0.035em;
  }

  .marketing-copy > p {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .hero-symbol {
    width: 72px;
    height: 72px;
    margin-top: 14px;
  }

  .hero-symbol-ring {
    width: 54px;
    height: 54px;
    box-shadow: none;
  }

  .hero-symbol-core {
    font-size: 1.35rem;
  }

  .hero-visual-card {
    display: none;
  }

  .hero-stat-card {
    padding: 18px;
  }

  .hero-stat-card strong {
    font-size: 1.75rem;
    line-height: 1.05;
  }

  .hero-metric-stack span {
    padding: 10px 12px;
    font-size: 0.94rem;
  }

  .hero-badges,
  .marketing-actions,
  .reassurance-row {
    flex-direction: column;
    width: 100%;
  }

  .hero-badges span,
  .marketing-actions a,
  .reassurance-row span {
    width: 100%;
  }

  .trust-ribbon {
    padding: 12px 12px 12px 42px;
    font-size: 0.92rem;
  }

  .trust-check {
    top: -9px;
    left: -9px;
    width: 29px;
    height: 29px;
  }

  .marketing-grid,
  .platform-strip,
  .assurance-grid,
  .workspace-columns,
  .citizen-layout,
  .citizen-layout.single-view,
  .subscribe-layout,
  .highlights-grid,
  .helper-grid {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    right: 12px;
    left: 12px;
    width: auto;
    transform: none;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 16px, 100%);
    padding-top: 10px;
  }

  .topbar {
    gap: 10px;
    padding: 10px 12px;
  }

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

  .brand-title strong {
    font-size: 0.98rem;
  }

  .brand-title span {
    font-size: 0.78rem;
  }

  .marketing-copy h1 {
    font-size: 1.46rem;
  }

  .marketing-copy > p {
    font-size: 0.92rem;
  }

  .hero-badges span,
  .marketing-actions a,
  .reassurance-row span {
    padding: 11px 13px;
    font-size: 0.88rem;
  }

  .bottom-nav-link {
    min-height: 44px;
    font-size: 0.86rem;
  }
}

/* Prestige layer: position VekilOnay as a visible service advantage, not a plain tracker. */
.marketing-copy {
  background:
    radial-gradient(circle at 88% 10%, rgba(82, 48, 32, 0.11), transparent 28%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(246, 239, 229, 0.92));
}

.trust-ribbon {
  box-shadow: 0 18px 34px rgba(53, 85, 75, 0.08);
}

.hero-inline-card,
.showcase-card,
.micro-card,
.assurance-card,
.pricing-card,
.checkout-note-card,
.subscription-result,
.portal-access-card,
.citizen-info-card,
.registry-card,
.form-card {
  box-shadow: 0 18px 42px rgba(56, 36, 24, 0.07);
}

.client-language-preview,
.plain-language-card {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid rgba(49, 88, 76, 0.18);
  border-left: 5px solid var(--sage);
  border-radius: 14px;
  background:
    radial-gradient(circle at 96% 0%, rgba(49, 88, 76, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(249, 252, 247, 0.98), rgba(255, 253, 248, 0.96));
}

.client-language-preview::after,
.plain-language-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brown);
  box-shadow: 0 8px 18px rgba(74, 46, 31, 0.2);
}

.client-language-preview::before,
.plain-language-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 23px;
  right: 22px;
  width: 12px;
  height: 6px;
  border-bottom: 3px solid #fffdf8;
  border-left: 3px solid #fffdf8;
  transform: rotate(-45deg);
}

.client-language-preview strong,
.plain-language-card strong {
  display: block;
  max-width: calc(100% - 48px);
  margin: 5px 0 8px;
  color: var(--ink);
}

.client-language-preview p,
.plain-language-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.client-language-preview small,
.plain-language-card small {
  display: block;
  color: var(--sage);
  font-weight: 800;
  line-height: 1.45;
}

.preview-quote {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 750;
  line-height: 1.45;
}

.premium-update {
  border-color: rgba(74, 46, 31, 0.16);
  background: linear-gradient(180deg, #fffdf8, #f8f2ea);
}

.premium-status {
  background: rgba(49, 88, 76, 0.11);
  color: var(--sage);
}

.revolution-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 18px;
  margin-top: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 0% 100%, rgba(74, 46, 31, 0.12), transparent 30%),
    linear-gradient(135deg, #fffdf8, #f6efe5);
}

.revolution-heading h2 {
  margin: 10px 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 0.98;
}

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

.revolution-grid article {
  padding: 18px;
  border: 1px solid rgba(74, 46, 31, 0.12);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.78);
}

.revolution-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

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

.case-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.auth-panel {
  margin-bottom: 18px;
}

.auth-form {
  max-width: 520px;
  margin-top: 16px;
}

.lawyer-workspace[hidden],
.auth-panel[hidden],
.auth-form[hidden] {
  display: none;
}

.auth-switch {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.auth-switch button {
  display: inline;
  width: auto;
  min-height: auto;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brown);
  box-shadow: none;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-message {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(133, 50, 38, 0.18);
  border-radius: 16px;
  color: var(--danger);
  background: rgba(133, 50, 38, 0.08);
  font-weight: 700;
}

.auth-message.success {
  color: var(--success);
  border-color: rgba(40, 110, 78, 0.18);
  background: rgba(40, 110, 78, 0.08);
}

.danger-button {
  border: 1px solid rgba(128, 47, 34, 0.22);
  background: rgba(128, 47, 34, 0.08);
  color: #7d2d20;
  box-shadow: none;
}

.danger-button:hover {
  background: #7d2d20;
  color: #fffdf8;
}

.citizen-banner {
  border: 1px solid rgba(49, 88, 76, 0.18);
  background:
    linear-gradient(135deg, rgba(49, 88, 76, 0.1), rgba(255, 253, 248, 0.88));
}

.checkout-price {
  color: var(--brown);
}

@media (max-width: 520px) {
  .client-language-preview,
  .plain-language-card {
    padding: 14px;
  }

  .client-language-preview strong,
  .plain-language-card strong {
    max-width: calc(100% - 38px);
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    margin-bottom: 14px;
  }

  .revolution-section,
  .revolution-grid {
    grid-template-columns: 1fr;
  }

  .revolution-section {
    padding: 18px;
  }
}

/* Final color system: warm legal premium, higher contrast, calmer surfaces. */
:root {
  --bg: #f3eadc;
  --bg-deep: #dfcfba;
  --surface: rgba(255, 252, 246, 0.95);
  --surface-strong: #fffaf1;
  --surface-soft: rgba(242, 232, 216, 0.9);
  --line: rgba(75, 55, 38, 0.16);
  --text: #211813;
  --muted: #715f50;
  --accent: #b87333;
  --accent-strong: #7b411f;
  --navy: #3a2418;
  --success: #255a4b;
  --danger: #8b3228;
  --ink: #211813;
  --brown: #4a2a1a;
  --brown-soft: #7b411f;
  --cream: #f3eadc;
  --paper: #fffaf1;
  --sage: #255a4b;
  --gold: #c8944f;
  --copper: #b87333;
  --hairline: rgba(74, 42, 26, 0.15);
  --shadow: 0 24px 80px rgba(46, 31, 20, 0.13);
  --shadow-soft: 0 14px 34px rgba(46, 31, 20, 0.09);
}

body {
  background:
    radial-gradient(circle at 14% 4%, rgba(184, 115, 51, 0.18), transparent 26%),
    radial-gradient(circle at 92% 10%, rgba(37, 90, 75, 0.1), transparent 24%),
    linear-gradient(180deg, #fffaf1 0%, #f3eadc 52%, #dfcfba 100%);
}

.topbar,
.panel-card,
.sub-card,
.pricing-card,
.hero-stat-card,
.showcase-card,
.micro-card,
.registry-card,
.form-card,
.portal-access-card,
.citizen-info-card {
  border-color: var(--hairline);
  background: rgba(255, 250, 241, 0.94);
  box-shadow: 0 20px 52px rgba(46, 31, 20, 0.1);
}

.topbar {
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.98), rgba(246, 237, 224, 0.94));
}

.brand-mark,
.hero-symbol-ring,
.trust-check,
.assurance-icon,
.mini-check {
  background: linear-gradient(145deg, #4a2a1a, #6d3a20);
  color: var(--paper);
}

.text-link,
.brand-lockup strong,
.marketing-copy h1,
.app-hero h1,
.cta-band h2,
.card-heading h3,
.client-card strong,
.portal-case h3 {
  color: var(--ink);
}

.text-link.is-active,
.eyebrow,
.mini-label,
.section-kicker,
.checkout-price,
.auth-switch button {
  color: var(--copper);
}

.button-link.primary,
.bottom-nav-link.is-active,
.subscription-price-pill,
button:not(.danger-button) {
  background: linear-gradient(135deg, #4a2a1a, #7b411f);
  color: var(--paper);
  box-shadow: 0 14px 30px rgba(74, 42, 26, 0.2);
}

.button-link.secondary,
.button-link.ghost,
.bottom-nav-link,
.hero-badges span,
.hero-metric-stack span {
  border-color: rgba(75, 55, 38, 0.14);
  background: rgba(255, 250, 241, 0.82);
  color: var(--ink);
}

.button-link.ghost,
.premium-status,
.status-chip[data-tone="ok"] {
  background: rgba(37, 90, 75, 0.1);
  color: var(--sage);
}

.trust-ribbon,
.client-language-preview,
.plain-language-card,
.citizen-banner {
  border-color: rgba(37, 90, 75, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 90, 75, 0.11), transparent 30%),
    linear-gradient(135deg, rgba(247, 252, 246, 0.98), rgba(255, 250, 241, 0.96));
}

.marketing-copy,
.revolution-section,
.signature-band,
.cta-band {
  background:
    radial-gradient(circle at 92% 8%, rgba(184, 115, 51, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(242, 232, 216, 0.94));
}

.hero-visual-screen,
.screen-case-card,
.revolution-grid article,
.preview-quote,
.premium-update {
  background: rgba(255, 252, 246, 0.86);
  border-color: rgba(75, 55, 38, 0.13);
}

.screen-topline,
.screen-timeline strong,
.client-language-preview small,
.plain-language-card small {
  color: var(--sage);
}

.danger-button {
  border-color: rgba(139, 50, 40, 0.24);
  background: rgba(139, 50, 40, 0.08);
  color: var(--danger);
}

.danger-button:hover {
  background: var(--danger);
  color: var(--paper);
}

.bottom-nav {
  border: 1px solid rgba(75, 55, 38, 0.12);
  background: rgba(255, 250, 241, 0.94);
  box-shadow: 0 20px 44px rgba(46, 31, 20, 0.16);
}

/* Contrast repair: old dark-card rules must not leave pale text on light cards. */
.hero-stat-card,
.pricing-card,
.checkout-card {
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(184, 115, 51, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(246, 237, 224, 0.94));
}

.hero-stat-card strong,
.pricing-card strong,
.checkout-card strong,
.hero-stat-card p,
.pricing-card p,
.checkout-card p,
.hero-stat-card .feature-list,
.pricing-card .feature-list {
  color: var(--ink);
}

.hero-stat-card p,
.pricing-card p,
.checkout-card p,
.feature-list li,
.muted {
  color: var(--muted);
}

.hero-stat-card .mini-label,
.pricing-card .mini-label,
.checkout-card .mini-label,
.showcase-card .mini-label,
.micro-card .mini-label {
  color: #8a4b25;
  background: rgba(184, 115, 51, 0.13);
  border: 1px solid rgba(184, 115, 51, 0.16);
}

.hero-stat-card strong,
.checkout-price {
  color: var(--brown);
  text-shadow: none;
}

.hero-metric-stack span {
  color: var(--ink);
  background: rgba(255, 252, 246, 0.88);
  border: 1px solid rgba(75, 55, 38, 0.14);
}

.reassurance-row span {
  color: var(--sage);
  background: rgba(37, 90, 75, 0.09);
}

.showcase-card strong,
.micro-card strong,
.revolution-grid strong {
  color: var(--ink);
}

/* Pilot demo controls */
.subscription-demo-result {
  margin-top: 14px;
}

.message {
  padding: 11px 13px;
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.4;
}

.message.success {
  color: var(--sage);
  border: 1px solid rgba(37, 90, 75, 0.18);
  background: rgba(37, 90, 75, 0.08);
}

.message.error {
  color: var(--danger);
  border: 1px solid rgba(139, 50, 40, 0.18);
  background: rgba(139, 50, 40, 0.08);
}

.demo-mode-note {
  display: grid;
  gap: 4px;
  margin: 14px 0 18px;
  padding: 13px 14px;
  border: 1px solid rgba(184, 115, 51, 0.18);
  border-left: 5px solid var(--copper);
  border-radius: 8px;
  background: rgba(184, 115, 51, 0.08);
  color: var(--ink);
}

.demo-mode-note span {
  color: var(--muted);
  line-height: 1.45;
}

.case-update-timeline {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.timeline-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(75, 55, 38, 0.12);
  border-radius: 10px;
  background: rgba(255, 250, 241, 0.78);
}

.timeline-heading strong {
  color: var(--ink);
}

.compact-empty {
  padding: 12px;
  box-shadow: none;
}

/* Lawyer-first premium positioning */
.premium-lawyer-hero .marketing-copy {
  border: 1px solid rgba(74, 42, 26, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98) 0%, rgba(246, 239, 229, 0.96) 58%, rgba(232, 221, 203, 0.92) 100%);
}

.premium-lawyer-hero .marketing-copy h1 {
  max-width: 820px;
  color: #17120f;
  letter-spacing: -0.055em;
}

.premium-lawyer-hero .marketing-copy > p {
  max-width: 760px;
  color: #3c3028;
  font-size: 1.07rem;
}

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

.lawyer-proof-grid article,
.premium-proof-card {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(74, 42, 26, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 90, 75, 0.09), transparent 36%),
    rgba(255, 253, 248, 0.82);
  box-shadow: 0 18px 44px rgba(49, 32, 21, 0.08);
}

.lawyer-proof-grid article::before,
.premium-proof-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brown);
  box-shadow: 0 10px 22px rgba(74, 42, 26, 0.18);
}

.lawyer-proof-grid article::after,
.premium-proof-card::after {
  content: "";
  position: absolute;
  top: 27px;
  right: 26px;
  width: 11px;
  height: 6px;
  border-bottom: 3px solid #fffdf8;
  border-left: 3px solid #fffdf8;
  transform: rotate(-45deg);
}

.lawyer-proof-grid strong,
.premium-proof-card strong {
  display: block;
  max-width: calc(100% - 42px);
  margin: 8px 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.26rem;
  line-height: 1.12;
}

.lawyer-proof-grid p,
.premium-proof-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.lawyer-dashboard-preview {
  display: block;
  padding: 22px;
  min-height: auto;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(243, 234, 219, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(74, 42, 26, 0.14), transparent 32%);
}

.value-ledger {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.value-ledger span {
  position: relative;
  padding: 13px 14px 13px 42px;
  border: 1px solid rgba(37, 90, 75, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.38;
}

.value-ledger span::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 15px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(37, 90, 75, 0.14);
}

.value-ledger span::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 8px;
  height: 4px;
  border-bottom: 2px solid var(--sage);
  border-left: 2px solid var(--sage);
  transform: rotate(-45deg);
}

.premium-price-card {
  border-color: rgba(74, 42, 26, 0.18);
  background:
    linear-gradient(180deg, #fffdf8 0%, #f3eadc 100%);
}

.value-board article {
  border-left: 5px solid rgba(74, 42, 26, 0.78);
}

.value-board article:nth-child(1),
.value-board article:nth-child(3) {
  border-left-color: var(--sage);
}

@media (max-width: 760px) {
  .lawyer-proof-grid {
    grid-template-columns: 1fr;
  }

  .premium-lawyer-hero .marketing-copy h1 {
    font-size: clamp(2.1rem, 11vw, 3.25rem);
    line-height: 0.96;
  }

  .lawyer-proof-grid strong,
  .premium-proof-card strong {
    font-size: 1.12rem;
  }
}
