/* MahadRank AI public website.
   Colours come from the official logo: deep navy letters, electric blue,
   violet and magenta ring, gold swoosh. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0f1633;
  --ink-2: #3a4361;
  --ink-3: #5a6480;
  --line: #e2e4ec;
  --line-2: #cfd3df;
  --paper: #ffffff;
  --paper-2: #f6f6f2;
  --blue: #1f3fd9;
  --blue-dark: #162fa8;
  --blue-soft: #e9edfd;
  --violet: #6d28d9;
  --magenta: #d6249f;
  --gold: #f5a623;
  --gold-soft: #fff1d6;
  --gold-ink: #734700;
  --mag-soft: #fce7f3;
  --mag-ink: #8e1259;
  --slate-soft: #e9edf3;
  --slate-ink: #3d4a5c;
  --ok: #0b6b4f;
  --ok-soft: #dff5ec;
  --err: #a31226;
  --err-soft: #fde8eb;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 12px 32px -12px rgba(15, 22, 51, .22);
  --shadow-lg: 0 32px 64px -24px rgba(15, 22, 51, .34);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.drawer-open { overflow: hidden; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.75rem); line-height: 1.1; letter-spacing: -.025em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
code { font-size: .92em; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:hover, .skip-link:focus { color: #fff; }
.skip-link:focus { top: 12px; }
.sprite { position: absolute; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .94rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.08rem; }
.btn:disabled { opacity: .6; cursor: progress; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.text-link:hover { text-decoration: underline; }
.link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-link:hover { color: var(--ink); }
.brand-logo { width: 40px; height: 40px; }
.brand-name { font: 700 1.2rem/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.brand-name .bn-mahad { color: var(--blue); }
.brand-name .bn-rank { color: var(--violet); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: .97rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-link:hover { background: var(--paper-2); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--blue); }
.chevron { width: 1em; height: 1em; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; width: 320px; padding: 8px; margin-top: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.dropdown-wide { width: 640px; display: grid; grid-template-columns: 1fr 1fr; }
.nav-item::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.nav-item:hover .dropdown-menu, .nav-item:focus-within .dropdown-menu { visibility: visible; opacity: 1; transform: none; }
.dropdown-item { display: flex; gap: 10px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.dropdown-item:hover { background: var(--paper-2); color: var(--ink); }
.dropdown-item .ic { color: var(--blue); margin-top: 2px; }
.dd-title { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.dd-text { display: block; font-size: .85rem; line-height: 1.35; color: var(--ink-3); }
.dropdown-all { grid-column: 1 / -1; padding: 10px; font-weight: 600; font-size: .93rem; text-decoration: none; border-top: 1px solid var(--line); margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.mobile-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink); cursor: pointer; }

.mobile-drawer { position: fixed; inset: 0; z-index: 200; background: rgba(15, 22, 51, .5); visibility: hidden; opacity: 0; transition: opacity .2s var(--ease), visibility .2s; }
.mobile-drawer.open { visibility: visible; opacity: 1; transition: opacity .2s var(--ease), visibility 0s; }
.mobile-drawer-content { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--paper); padding: 16px 20px 24px; display: flex; flex-direction: column; overflow-y: auto; transform: translateX(24px); transition: transform .24s var(--ease); }
.mobile-drawer.open .mobile-drawer-content { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-drawer-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--ink); cursor: pointer; }
.mobile-nav-links { display: flex; flex-direction: column; margin-top: 12px; }
.mobile-nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; text-decoration: none; }
.drawer-actions { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }

@media (max-width: 1040px) {
  .main-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .nav-signin, .header-cta { display: none; }
  .header-inner { height: 64px; }
  .container { padding: 0 16px; }
}

/* Home hero */
.home-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { font-size: clamp(2.5rem, 4.3vw, 3.7rem); }
.hero-copy .lede { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.hero-note { margin-top: 20px; font-size: .95rem; color: var(--ink-3); max-width: 50ch; }
.product-frame { position: relative; margin: 0; }
.product-frame .arc { position: absolute; left: 50%; top: 46%; width: 128%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.product-frame img { position: relative; width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.product-frame figcaption { position: relative; padding-top: 12px; font-size: .9rem; color: var(--ink-3); background: var(--paper); width: fit-content; padding-right: 8px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-frame .arc { display: none; }
}

/* Sections */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { margin-top: 14px; color: var(--ink-2); }
.page-hero { background: var(--paper-2); padding: clamp(44px, 6vw, 80px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.page-hero .lede { margin-top: 16px; }
.page-hero .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.page-hero .btn { margin-top: 24px; }

/* Status */
.badge { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: .84rem; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.badge-testing { background: var(--gold-soft); color: var(--gold-ink); }
.badge-paused { background: var(--mag-soft); color: var(--mag-ink); }
.badge-planned { background: var(--slate-soft); color: var(--slate-ink); }
.status-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.status-table th { text-align: left; font-size: .88rem; font-weight: 600; color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: var(--paper); }
.status-table td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .97rem; line-height: 1.45; color: var(--ink-2); }
.status-table tr:last-child td { border-bottom: 0; }
.status-table td.mod { font-weight: 600; color: var(--ink); white-space: nowrap; }
.status-table td.mod a { color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.status-table td.mod a:hover { color: var(--blue); }
.status-table td.mod .ic { color: var(--blue); }
.status-table td.st .badge { display: block; width: max-content; margin-bottom: 4px; }
.status-notes { margin-top: 18px; color: var(--ink-2); font-size: .97rem; display: grid; gap: 6px; max-width: 78ch; }
@media (max-width: 860px) {
  .status-table, .status-table tbody, .status-table tr, .status-table td { display: block; width: 100%; }
  .status-table { border: 0; background: none; border-radius: 0; }
  .status-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .status-table tr { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
  .status-table td { border: 0; padding: 4px 0; }
  .status-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
  .status-table td.mod { white-space: normal; }
}

/* Path from idea to post */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 12px; }
.flow::before { content: ""; position: absolute; top: 28px; left: 28px; right: 12%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--violet), var(--magenta), var(--gold)); }
.flow-step { position: relative; padding-right: 24px; }
.flow-dot { position: relative; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--paper); border: 2px solid var(--line-2); color: var(--blue); font-size: 1.15rem; margin-bottom: 18px; }
.flow-step.gate .flow-dot { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.flow-step p { margin-top: 8px; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; gap: 22px; }
  .flow::before { top: 12px; bottom: 12px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue), var(--violet), var(--magenta), var(--gold)); }
  .flow-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 0; }
  .flow-dot { margin: 0; grid-row: span 2; }
  .flow-step p { grid-column: 2; margin-top: 4px; }
}

/* Audience rows */
.audiences { border-top: 1px solid var(--line-2); }
.audience { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; gap: 16px 40px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.audience h3 { font-size: 1.5rem; }
.audience .now { color: var(--ink-2); }
.audience .note { display: block; margin-top: 6px; font-size: .94rem; color: var(--ink-3); }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; gap: 8px; } }

/* Rules band */
.band { background: var(--ink); color: #dfe3f2; }
.band h2, .band h3 { color: #fff; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 36px; }
.rules h3 { font-size: 1.45rem; }
.rules p { margin-top: 10px; color: #c6cce2; }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; gap: 28px; } }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--paper); overflow: hidden; }
.price-card { padding: 24px 22px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.price-card:first-child { border-left: 0; background: var(--blue-soft); }
.price-name { font: 700 1.2rem/1.2 var(--font-display); }
.price-for { font-size: .94rem; color: var(--ink-2); min-height: 2.9em; line-height: 1.4; }
.price-figure { font: 700 2.5rem/1.1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 8px; }
.price-figure small { font: 500 .95rem var(--font-body); color: var(--ink-3); letter-spacing: 0; }
.price-tag { font-size: .85rem; color: var(--ink-3); }
.price-list { list-style: none; margin: 12px 0 18px; padding: 0; display: grid; gap: 6px; font-size: .95rem; color: var(--ink-2); }
.price-list li { display: flex; gap: 8px; }
.price-list .ic { color: var(--ok); width: 1.1em; height: 1.1em; margin-top: 3px; }
.price-card .btn { margin-top: auto; }
@media (max-width: 1040px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .price-card:nth-child(3) { border-left: 0; }
  .price-card:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { border-left: 0; border-top: 1px solid var(--line); }
  .price-card:first-child { border-top: 0; }
  .price-for { min-height: 0; }
}
.notice { margin-top: 20px; padding: 16px 18px; background: var(--gold-soft); color: #4f3100; border-radius: var(--radius); font-size: .97rem; }
.notice a { color: inherit; }
.compare { width: 100%; border-collapse: collapse; margin-top: 16px; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); font-size: .97rem; }
.compare thead th { font-weight: 700; }
.compare tbody th { font-weight: 500; color: var(--ink-2); }
.table-wrap { overflow-x: auto; }

/* Cards used on inner pages */
.grid-2, .grid-3 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.card h2, .card h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: .98rem; }
.card .ic-lead { width: 28px; height: 28px; color: var(--blue); margin-bottom: 12px; display: block; }
.card .badge { margin-bottom: 12px; }
.card .text-link { margin-top: 12px; }

/* Long text */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin: 2em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose ol { color: var(--ink-2); margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.4em 0; padding: 0 0 0 18px; border-left: 1px solid var(--line-2); font: 500 1.2rem/1.45 var(--font-display); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .96rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.crumbs { font-size: .92rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-3); }
.byline { color: var(--ink-3); font-size: .95rem; margin: 12px 0 28px; }
.status-box { background: var(--paper-2); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 1em; }
.status-box p { margin: 0 0 .5em; }
.status-box p:last-child { margin: 0; }
.next-box { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.next-box .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Articles */
.article-list { border-top: 1px solid var(--line-2); }
.article-row { padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.article-row h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.article-row h2 a { color: var(--ink); text-decoration: none; }
.article-row h2 a:hover { color: var(--blue); }
.article-row p { margin-top: 8px; color: var(--ink-2); max-width: 70ch; }
.article-meta { font-size: .9rem; color: var(--ink-3); margin-bottom: 6px; }

/* FAQ */
h2 + .faq-list { margin-top: 24px; }
.faq-list { border-top: 1px solid var(--line-2); max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-h { font-size: inherit; margin: 0; letter-spacing: 0; }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 2px; background: none; border: 0; color: var(--ink); font: 600 1.08rem/1.35 var(--font-body); text-align: left; cursor: pointer; }
.faq-icon { color: var(--blue); transition: transform .2s var(--ease); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 2px 20px; color: var(--ink-2); max-width: 68ch; }

/* Closing call to action */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.cta-band p { margin-top: 8px; color: var(--ink-2); max-width: 54ch; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.form-control { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-control:focus-visible { border-color: var(--blue); }
.form-control::placeholder { color: var(--ink-3); }
.form-status { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 14px; font-size: .96rem; }
.form-status.success { background: var(--ok-soft); color: var(--ok); }
.form-status.error { background: var(--err-soft); color: var(--err); }
.form-note { margin-top: 12px; font-size: .9rem; color: var(--ink-3); }
.hp-field { position: absolute; left: -9999px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact-side h2 { font-size: 1.2rem; margin-top: 26px; }
.contact-side h2:first-child { margin-top: 0; }
.contact-side p { margin-top: 6px; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr .8fr; gap: 32px; }
.footer-brand p { margin-top: 12px; color: var(--ink-2); max-width: 34ch; }
.footer-h { font: 600 .95rem/1.3 var(--font-body); letter-spacing: 0; margin-bottom: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a { color: var(--ink-2); text-decoration: none; display: inline-block; padding: 3px 0; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: .88rem; max-width: 110ch; }
.footer-bottom { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--ink-3); font-size: .9rem; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom-links a { color: var(--ink-3); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cookie choice */
.consent { position: fixed; left: 20px; bottom: 20px; z-index: 120; width: min(420px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px 18px; font-size: .94rem; color: var(--ink-2); }
.consent-actions { display: flex; gap: 8px; margin-top: 12px; }
@media (max-width: 560px) { .consent { left: 16px; bottom: 16px; } body.consent-open #mrc-launch { bottom: 176px; } }

/* Website assistant */
#mrc-launch { position: fixed; right: 20px; bottom: 20px; z-index: 110; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; }
#mrc-launch:hover { background: var(--blue); }
body.drawer-open #mrc-launch { display: none; }
#mrc { position: fixed; right: 20px; bottom: 20px; z-index: 130; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
#mrc .h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--ink); color: #fff; }
#mrc .t { font-weight: 600; }
#mrc .s { font-size: .85rem; color: #c6cce2; }
#mrc-x { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: #fff; cursor: pointer; }
#mrc .body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--paper-2); }
#mrc .m { display: flex; }
#mrc .m.v { justify-content: flex-end; }
#mrc .b { max-width: 85%; padding: 8px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: .95rem; line-height: 1.4; }
#mrc .m.v .b { background: var(--blue); border-color: var(--blue); color: #fff; }
#mrc .lead { padding: 10px 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
#mrc .lead .row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#mrc input { width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: .94rem; }
#mrc .hp { position: absolute; left: -9999px; width: 1px; }
#mrc-leadbtn, #mrc-send { min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font: 600 .94rem var(--font-body); cursor: pointer; }
#mrc-send:disabled { opacity: .6; }
#mrc .foot { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
#mrc .disc { padding: 0 12px 10px; font-size: .82rem; color: var(--ink-3); line-height: 1.35; }
.mrc-err { color: var(--err); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
