/* ===== Self-hosted Fonts ===== */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS Custom Properties ===== */
:root {
  --bg: #F7F5F2;
  --bg-alt: #F0ECE6;
  --white: #FFFFFF;
  --dark: #2C3A3B;
  --dark-hover: #3A4B4D;
  --text-secondary: #6B7280;
  --accent: #F28B72;
  --accent-light: #FDE8E4;
  --border: #E5E1DB;
  --error: #C25450;

  --font-headline: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --max-width: 1120px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Skip Link (accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--dark);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 16px;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  background: rgba(247, 245, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
}

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

.header-login {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
  touch-action: manipulation;
}

.header-login:hover {
  color: var(--dark);
}

.header-cta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  background: var(--dark);
  text-decoration: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  touch-action: manipulation;
}

.header-cta:hover {
  background: var(--dark-hover);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
  touch-action: manipulation;
}

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

.btn-primary {
  background: var(--dark);
  color: white;
}

.btn-primary:hover {
  background: var(--dark-hover);
  box-shadow: 0 4px 16px rgba(44, 58, 59, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-alt);
}

/* ===== Hero ===== */
.hero-category {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.hero-proof {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

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

.hero {
  padding: 80px 0 72px;
}

.hero .container {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 520px;
}

.hero h1 {
  font-family: var(--font-headline);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--dark);
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ===== Dashboard Preview ===== */
.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  background: var(--white);
}

.preview-topbar {
  background: var(--dark);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-topbar-logo {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}

.preview-topbar-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.preview-body {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
}

.preview-col {
  padding: 20px;
}

.preview-divider {
  background: var(--border);
}

.preview-col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.preview-row:last-child {
  border-bottom: none;
}

.preview-row-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.preview-row-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 400;
}

.preview-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-sand {
  background: #FDF6E3;
  color: #92742A;
}

.badge-green {
  background: #E8F5E4;
  color: #2D6A2E;
}

/* ===== Pain Points ===== */
.pain-section {
  padding: 80px 0;
  background: var(--white);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pain-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.pain-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--dark);
}

.pain-card h3 {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.pain-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== Solution ===== */
.solution {
  padding: 80px 0;
  background: var(--bg);
}

.solution-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.solution-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.solution-box h2 {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.15;
}

.solution-box p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

.solution-box::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 24px;
}

/* ===== Setup Steps (in solution) ===== */
.setup-steps {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.setup-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark);
}

.setup-step svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== Pricing ===== */
.pricing {
  padding: 80px 0;
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.pricing-card-accent {
  border-color: var(--accent);
  border-width: 2px;
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.pricing-tier {
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pricing-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.pricing-features li {
  font-size: 0.9375rem;
  padding: 6px 0;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--accent-light);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232D6A2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

.pricing-btn {
  width: 100%;
  text-align: center;
}

.pricing-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 20px;
}

.pricing-upgrade-note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

/* ===== Benefits ===== */
.features {
  padding: 80px 0;
  background: var(--white);
}

.section-title {
  font-family: var(--font-headline);
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-card h3 {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== How it works ===== */
.how-it-works {
  padding: 80px 0;
  background: var(--bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 1px;
  background: var(--border);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark);
  color: white;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
  background: var(--white);
}

.cta-box {
  text-align: center;
  background: var(--dark);
  border-radius: var(--radius);
  padding: 64px 32px;
}

.cta-box h2 {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 28px;
  line-height: 1.25;
}

.btn-inverted {
  background: white;
  color: var(--dark);
  border: none;
}

.btn-inverted:hover {
  background: var(--bg-alt);
  box-shadow: none;
}

.cta-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 48px;
  margin-bottom: 36px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--dark);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
}

@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Legal Pages ===== */
.legal-shell {
  padding: 56px 0 72px;
}

.legal-container {
  max-width: 1160px;
}

.legal-header {
  max-width: 760px;
  margin-bottom: 24px;
}

.legal-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.legal-header h1 {
  font-family: var(--font-headline);
  font-size: 2.8rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.legal-lead {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.legal-note {
  background: var(--accent-light);
  border: 1px solid rgba(242, 139, 114, 0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
  color: var(--dark);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 88px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.legal-toc p {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.legal-toc a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 7px 0;
  font-size: 0.92rem;
}

.legal-toc a:hover {
  color: var(--dark);
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.legal-section + .legal-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.legal-section p + p {
  margin-top: 12px;
}

.legal-list {
  padding-left: 20px;
  margin-top: 12px;
}

.legal-list li + li {
  margin-top: 10px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg-alt);
  font-weight: 700;
}

.legal-card a {
  color: var(--dark);
}

/* ===== Docs / Downloads page ===== */
.docs-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.doc-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.doc-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.doc-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.doc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.doc-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid #F5D5CE;
}

.doc-badge--version {
  background: var(--bg-alt);
  color: var(--text-secondary);
  border-color: var(--border);
}

.doc-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.doc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.doc-info {
  font-size: 13px;
  color: var(--text-secondary);
}

.doc-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.doc-download-btn:hover {
  background: var(--dark-hover);
}

.doc-download-btn--secondary {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--border);
}

.doc-download-btn--secondary:hover {
  background: var(--bg-alt);
  border-color: var(--dark);
}

.doc-card--link .doc-icon {
  background: var(--bg-alt);
  color: var(--text-secondary);
}

.legal-link-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.docs-section-title {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  margin-top: 8px;
}

.docs-section-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ===== Focus visible ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
  }

  .features-grid,
  .pain-grid,
  .pricing-grid,
  .steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .setup-steps {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .steps::before {
    display: none;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 600px) {
  .header-login {
    display: none;
  }

  .header-cta {
    padding: 8px 16px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

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

  .btn {
    padding: 12px 22px;
    font-size: 0.9375rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .features,
  .pain-section,
  .solution,
  .how-it-works,
  .pricing,
  .cta {
    padding: 56px 0;
  }

  .solution-box h2 {
    font-size: 1.75rem;
  }

  .cta-box {
    padding: 48px 20px;
  }

  .cta-box h2 {
    font-size: 1.5rem;
  }

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

  .legal-shell {
    padding: 40px 0 56px;
  }

  .legal-header h1 {
    font-size: 2rem;
  }

  .legal-card {
    padding: 22px;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
