/* Jean Brun Patrimoine — vitrine premium */

:root {
  --bg: #0c0f14;
  --bg-elevated: #121720;
  --bg-soft: #181e28;
  --surface: #1e2532;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --accent: #c9a962;
  --accent-soft: rgba(201, 169, 98, 0.15);
  --accent-hover: #ddb86e;
  --danger: #e85d5d;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --step: 4px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 10px;
}

.shell {
  width: min(1120px, calc(100% - 48px));
  max-width: 100%;
  margin-inline: auto;
}

.narrow {
  width: min(720px, calc(100% - 48px));
  max-width: 100%;
  margin-inline: auto;
}

main {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(12, 15, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), #8b7340);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.nav-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-list a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
  touch-action: manipulation;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent), #a88b4a);
  color: #141210;
  box-shadow: 0 10px 30px rgba(201, 169, 98, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(145deg, var(--accent-hover), #b89752);
  color: #141210;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(201, 169, 98, 0.45);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-soft);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.btn-header {
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-header-mobile {
  display: none;
  flex-shrink: 0;
  padding-inline: 16px;
  font-size: 0.82rem;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(201, 169, 98, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(80, 120, 200, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #0a0c10 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.hero-copy,
.hero-card {
  min-width: 0;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--text);
  overflow-wrap: break-word;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-trust li {
  position: relative;
  padding-left: 22px;
}

.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.hero-card-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 16px;
  color: var(--text);
}

.hero-card-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 22px;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head-left {
  text-align: left;
  margin-left: 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.2;
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card-problem {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card-problem h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  font-weight: 600;
}

.card-problem p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.data-table caption {
  caption-side: top;
  padding: 16px 18px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--bg-soft);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.table-note {
  margin: 12px 18px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.formula-block {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.formula-block strong {
  color: var(--text);
}

.simulator-teaser {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--accent-soft);
  border: 1px solid rgba(201, 169, 98, 0.38);
  border-radius: var(--radius-lg);
}

.simulator-teaser h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.simulator-teaser p {
  margin: 0 0 16px;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.baremes-lede {
  margin-top: 48px;
  margin-bottom: 12px;
  max-width: 720px;
  margin-inline: 0;
  text-align: left;
}

.alert-box {
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 93, 93, 0.35);
  background: rgba(232, 93, 93, 0.08);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.alert-box strong {
  color: var(--text);
}

.example-box {
  margin: 24px 0;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 169, 98, 0.35);
  background: var(--accent-soft);
}

.example-box h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.example-box p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.trust-badges li {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.35);
  background: rgba(201, 169, 98, 0.06);
}

.comparatif-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.comparatif-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.comparatif-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
}

.comparatif-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.comparatif-card.is-highlight {
  border-color: rgba(201, 169, 98, 0.45);
  box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.12);
}

.confiance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.confiance-item {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.confiance-item h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.confiance-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.page-secondary .hero {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 48px;
}

.page-secondary .hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.subnav-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.subnav-pages a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.subnav-pages a:hover {
  color: var(--accent);
}

@media (max-width: 960px) {
  .comparatif-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .confiance-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.disclaimer-inline {
  margin-top: 24px;
  padding: 14px 18px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: start;
}

.split-reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.checklist li:last-child {
  margin-bottom: 0;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--accent-soft);
  border: 1px solid rgba(201, 169, 98, 0.45);
}

.checklist strong {
  color: var(--text);
  font-weight: 600;
}

.split-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.quote-block {
  margin: 0;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 16px;
}

.quote-block footer {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat {
  text-align: center;
  padding: 24px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.proof-card {
  margin: 0;
  padding: 24px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.proof-card blockquote {
  margin: 0;
}

.proof-card p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 16px;
}

.proof-card figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.process-steps > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-index {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.step-body h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.step-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  padding-right: 36px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  padding-bottom: 20px;
}

.faq-body p {
  margin: 0;
  color: var(--text-muted);
}

/* Contact */
.section-contact {
  padding-bottom: 100px;
}

.contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.1rem);
  margin: 0 0 16px;
}

.contact-copy > p {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.contact-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-form-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-form .field-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(201, 169, 98, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.field-checkbox input {
  width: auto;
  margin-top: 4px;
}

.field-checkbox label {
  font-weight: 400;
  font-size: 0.85rem;
  margin: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 56px;
  background: #080a0d;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.footer-tagline {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-legal {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-legal p {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 85ch;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

.footer-bar {
  padding: 20px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-bar p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .split,
  .split-reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-panel {
    position: static;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .proof-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn-header {
    display: none;
  }

  .btn-header-mobile {
    display: inline-flex;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
  }

  .brand {
    justify-self: start;
    min-width: 0;
  }

  .header-actions {
    justify-self: center;
  }

  .nav-main {
    justify-self: end;
    flex: unset;
    min-width: 0;
    position: static;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
    background: rgba(12, 15, 20, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    display: none;
    z-index: 60;
    max-height: min(70vh, calc(100vh - var(--header-h)));
    max-height: min(70vh, calc(100dvh - var(--header-h)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-main.is-open .nav-list {
    display: flex;
  }

  .nav-list a {
    padding: 12px 8px;
  }
}

@media (max-width: 600px) {
  .brand-name {
    font-size: 1.08rem;
  }

  .brand-tag {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .shell,
  .narrow {
    width: calc(100% - 32px);
    width: calc(
      100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)
    );
    max-width: 100%;
  }

  .hero {
    padding-top: calc(var(--header-h) + 36px);
    padding-bottom: 64px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 64px 0;
  }

  .site-footer {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}
