/* Bierman Smit Inc. Attorneys. Tokens and roles: design-system/MASTER.md */
:root {
  --brand: #36455c;
  --slate: #a9bfd0;
  --on-brand: #dfe5ec;
  --brand-line: rgba(255, 255, 255, .28);
  --mist: #eef2f5;
  --paper: #fff;
  --ink: #1c2740;
  --soft: #3a4660;
  --line: #d5dde5;
  --kicker: #466681;
  --go: #1a7f45;
  --error: #b3261e;
  --section: 52px;
  --cell: 22px;
  --serif: 'Bodoni Moda', 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 760px) { :root { --section: 72px; } }
@media (min-width: 1024px) { :root { --cell: 34px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 14px; touch-action: manipulation; }
@media (min-width: 760px) { html { scroll-padding-top: 64px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); }
body:has(.to-top) .foot { padding-bottom: 122px; }
@media (min-width: 760px) { body { font-size: 17px; } body:has(.to-top) .foot { padding-bottom: 76px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
@media (min-width: 760px) { .wrap { width: min(1140px, 100% - clamp(96px, 10vw, 128px)); } }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--paper); color: var(--ink); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* Type: main heading, section heading, one subheading, lead, body, small, label */
h1, h2.big, .caps b { font-family: var(--serif); font-weight: 500; font-optical-sizing: none; font-variation-settings: 'opsz' 22; }
h1, h2.big { line-height: 1.12; letter-spacing: -.01em; font-kerning: normal; text-rendering: optimizeLegibility; text-wrap: balance; }
h2.big { font-size: clamp(28px, 2.8vw, 40px); color: var(--brand); }
.kern-w { letter-spacing: -.07em; }
h3, .people strong { font-family: var(--serif); font-weight: 500; font-optical-sizing: none; font-variation-settings: 'opsz' 11; font-size: 19px; line-height: 1.25; color: var(--brand); }
@media (min-width: 760px) { h3, .people strong { font-size: 21px; } }
.say { margin-top: 12px; font-family: var(--serif); font-weight: 500; font-optical-sizing: none; font-variation-settings: 'opsz' 14; font-size: clamp(20px, 2vw, 25px); line-height: 1.32; color: var(--brand); text-wrap: balance; }
.narrow { max-width: 760px; }
.lede { margin-top: 18px; color: var(--soft); text-wrap: pretty; }

section { padding-block: var(--section); }
.mist { background: var(--mist); --line: #c9d3de; }

/* The grid: ruled thirds, and a one-third, two-thirds split */
.thirds { display: grid; margin-top: 28px; border-block: 1px solid var(--line); }
.thirds > * { padding: 18px 0 22px; }
.thirds > * + * { border-top: 1px solid var(--line); }
.thirds p { color: var(--soft); margin-top: 6px; }
.split { display: grid; gap: 26px; }
@media (min-width: 760px) {
  .thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
  .thirds > * { padding: 24px var(--cell) 28px; }
  .thirds > * + * { border-top: 0; border-left: 1px solid var(--line); padding-left: calc(var(--cell) - 1px); }
  .thirds > :nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .thirds > :nth-child(3n) { padding-right: 0; }
  .thirds > :nth-child(n + 4) { border-top: 1px solid var(--line); }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0; }
  .split > :nth-child(1) { padding-right: var(--cell); }
  .split > :nth-child(2) { padding-left: var(--cell); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; font: 700 16px/1.3 var(--sans); text-decoration: none; border-radius: 3px; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), opacity .2s; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--paper); color: var(--brand); }
.btn-line { border-color: var(--paper); color: var(--paper); }
.btn-dark { background: var(--brand); color: var(--paper); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } .btn-line:hover, .btn-dark:hover { opacity: .9; } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 559px) { .cta .btn { width: 100%; } }

/* Hero */
.hero { position: relative; background: var(--brand); color: var(--paper); padding: 16px 0 0; overflow: hidden; }
.top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; z-index: 5; }
.logo img { width: auto; height: 40px; }
.top-phone { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 10px; font-weight: 700; text-decoration: none; }
.top-phone svg { width: 24px; height: 24px; }
.top-phone span { display: none; }
.menu { display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; background: none; border: 0; color: inherit; cursor: pointer; }
.menu span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); flex-direction: column; background: var(--paper); color: var(--ink); border-radius: 4px; box-shadow: 0 2px 6px rgba(20, 28, 42, .2), 0 24px 44px -18px rgba(20, 28, 42, .6); }
.nav.open { display: flex; }
.nav a { padding: 14px 18px; font-weight: 600; text-decoration: none; border-top: 1px solid var(--line); }
.nav a:first-child { border-top: 0; }
.hero-grid { display: grid; margin-top: 26px; padding-bottom: 66px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(32px, 9vw, 42px); }
.sub { font-size: 17px; line-height: 1.5; margin-top: 14px; color: var(--on-brand); }
.can-claim { font-size: 17px; line-height: 1.5; margin-top: 10px; color: var(--paper); font-weight: 600; max-width: 34em; }
.ticks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 18px; font-size: 15px; color: var(--on-brand); }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ''; position: absolute; left: 3px; top: .42em; width: 13px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.hero-brand { display: none; }
.wave { display: block; position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 44px; z-index: 1; }
@media (min-width: 760px) {
  .hero { padding-top: 20px; }
  .top { gap: 26px; justify-content: flex-start; min-height: 44px; padding-bottom: 16px; border-bottom: 1px solid var(--brand-line); }
  .logo, .menu { display: none; }
  .top-phone { margin-left: auto; padding: 6px 0; font-weight: 600; font-size: 15.5px; letter-spacing: .015em; }
  .top-phone svg { width: 18px; height: 18px; }
  .top-phone span { display: inline; }
  .nav, .nav.open { position: static; display: flex; flex-direction: row; gap: 26px; background: none; color: inherit; box-shadow: none; border-radius: 0; }
  .nav a { padding: 6px 0; border: 0; font-weight: 400; font-size: 15.5px; letter-spacing: .015em; text-underline-offset: 5px; }
  .hero-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; margin-top: 76px; padding-bottom: 120px; }
  .hero-copy { padding-right: var(--cell); }
  .hero-brand { display: block; text-align: center; padding: 40px 0 40px var(--cell); border-left: 1px solid var(--brand-line); }
  .hero-brand img { width: 100%; max-width: 250px; margin-inline: auto; }
  .hero-brand p { position: relative; display: inline-block; margin-top: 24px; padding-top: 18px; font-weight: 600; font-size: 13px; letter-spacing: .13em; text-transform: uppercase; color: var(--on-brand); }
  .hero-brand p::before { content: ''; position: absolute; top: 0; left: 50%; width: 52px; height: 1px; margin-left: -26px; background: currentColor; }
  .hero h1 { font-size: clamp(38px, 3.7vw, 52px); }
  .sub { font-size: 19px; margin-top: 24px; max-width: 31em; }
  .can-claim { font-size: 19px; margin-top: 12px; max-width: 32em; }
  .hero .cta { margin-top: 34px; }
  .wave { height: 96px; }
}
@media (min-width: 760px) and (hover: hover) { .nav a:hover, .bar-nav a:hover { text-decoration: underline; } }

/* Sticky bar, desktop only, once the hero and its large logo have scrolled away */
.bar { display: none; }
@media (min-width: 760px) {
  .bar { display: block; position: fixed; left: 0; right: 0; top: 0; z-index: 25; background: var(--brand); color: var(--paper); box-shadow: 0 10px 24px -14px rgba(20, 28, 42, .55); transform: translateY(-100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; }
  .bar.show { transform: none; visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
  .bar-in { display: flex; align-items: center; gap: 18px; height: 64px; }
  .bar-logo img { width: auto; height: 38px; }
  .bar-nav { display: flex; gap: 18px; margin-left: auto; }
  .bar-nav a { padding: 6px 0; font-size: 15.5px; letter-spacing: .015em; text-decoration: none; text-underline-offset: 5px; }
  .bar-phone { display: none; align-items: center; gap: 7px; font-weight: 600; font-size: 15.5px; text-decoration: none; white-space: nowrap; }
  .bar-phone svg { width: 17px; height: 17px; }
  .bar .btn { min-height: 42px; padding: 0 16px; font-size: 15px; }
  .bar .btn svg { width: 17px; height: 17px; }
}

/* Extra menu links only where they fit */
@media (min-width: 760px) and (max-width: 1023px) { .nav .nav-extra { display: none; } }
@media (max-width: 1199px) { .bar-nav .nav-extra { display: none; } }
@media (min-width: 1024px) { .bar-phone { display: inline-flex; } }

/* Why clients choose us */
.promise { padding-block: var(--section); }
.promise h2.big { margin-top: 0; }

/* Your attorneys */
.att-grid h2.big { margin-top: 0; }
.att-intro p { margin-top: 16px; color: var(--soft); }
.people { display: grid; gap: 32px; }
.people figure { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.people figcaption { display: contents; }
.people img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px 24px 3px 3px; }
.people strong { display: block; }
.people span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--kicker); }
.bio { grid-column: 1 / -1; margin-top: 14px; color: var(--soft); }
@media (min-width: 760px) {
  .people { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; }
  .people figure { display: block; }
  .people figcaption { display: block; margin-top: 14px; }
  .people img { aspect-ratio: 6 / 5; border-radius: 3px 42px 3px 3px; }
  .att-intro { position: sticky; top: 88px; align-self: start; }
}

/* Who can claim */
.who { list-style: none; padding: 0; display: grid; }
.who li { padding: 13px 0; border-top: 1px solid var(--line); line-height: 1.35; }
.who b { display: block; color: var(--brand); font-weight: 700; }
.who small { display: block; margin-top: 3px; font-size: 1em; line-height: 1.4; color: var(--soft); }
@media (min-width: 620px) { .who { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 34px; } }

/* What the RAF is */
.lead-text { color: var(--soft); max-width: 68ch; }
.lead-text p + p { margin-top: 14px; }
.not-raf { margin-top: 36px; padding: 26px 24px; background: var(--brand); color: var(--paper); font-family: var(--serif); font-weight: 500; font-optical-sizing: none; font-variation-settings: 'opsz' 14; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; border-radius: 3px 42px 3px 3px; }
@media (min-width: 760px) { .not-raf { margin-top: 44px; padding: 30px 48px; } }

/* What you can claim for */
.not-covered { margin-top: 22px; font-weight: 700; color: var(--brand); }

/* Time limits */
.clock { background: var(--brand); color: var(--paper); position: relative; --line: var(--brand-line); }
.clock .say { color: var(--paper); }
.clock h2.big { color: var(--paper); }
.limit .n { font-family: var(--serif); font-weight: 500; font-optical-sizing: none; font-variation-settings: 'opsz' 22; font-size: clamp(64px, 6.6vw, 88px); line-height: 1; }
.limit .u { font-family: var(--serif); font-weight: 500; font-optical-sizing: none; font-variation-settings: 'opsz' 11; font-size: 21px; margin-left: 8px; }
.clock .limit p { margin-top: 12px; color: var(--on-brand); }
.clock .limit .limit-label { margin: 0 0 10px; font-weight: 600; color: var(--paper); }
.advice { margin-top: 26px; font-size: 17px; max-width: 40em; }
.except { margin-top: 14px; font-weight: 600; color: var(--paper); max-width: 46em; }
@media (min-width: 760px) { .advice { margin-top: 34px; font-size: 19px; line-height: 1.5; } }

/* Documents */
.doc ul { list-style: none; padding: 0; margin-top: 8px; color: var(--soft); }
.doc li { padding: 10px 0; line-height: 1.42; }
.doc li + li { border-top: 1px solid var(--line); }
.scene { margin-top: 24px; color: var(--soft); max-width: 68ch; }
.scene b { color: var(--brand); }
.doc .tip { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--soft); line-height: 1.42; }
.tip b { color: var(--brand); }

/* The claims process */
.steps { list-style: none; padding: 0; counter-reset: s; margin-top: 28px; border-bottom: 1px solid var(--line); }
.steps li { counter-increment: s; position: relative; padding: 15px 0 18px 52px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 12px; font-family: var(--serif); font-weight: 500; font-optical-sizing: none; font-variation-settings: 'opsz' 12; font-size: 42px; line-height: 1; color: var(--brand); }
.steps p { margin-top: 5px; color: var(--soft); }
.steps b { color: var(--brand); }
@media (min-width: 760px) {
  .steps { margin-top: 36px; }
  .steps li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: baseline; padding: 20px 0 22px; }
  .steps li::before { top: 16px; font-size: 44px; }
  .steps h3 { padding: 0 var(--cell) 0 62px; }
  .steps p { margin-top: 0; padding-left: var(--cell); max-width: calc(68ch + var(--cell)); }
}

/* Fees */
.caps { display: grid; gap: 8px; align-items: center; }
.caps b { font-size: clamp(56px, 6.6vw, 88px); line-height: 1; color: var(--brand); }
.caps p { color: var(--soft); max-width: 34em; }
.caps .caps-label { grid-column: 1 / -1; font-weight: 700; color: var(--brand); max-width: none; }
.checks { list-style: none; padding: 0; margin-top: 24px; color: var(--soft); border-bottom: 1px solid var(--line); }
.checks li { position: relative; padding: 12px max(0px, calc(100% - 68ch - 34px)) 12px 34px; border-top: 1px solid var(--line); }
.checks svg { position: absolute; left: 2px; top: 15px; width: 20px; height: 20px; color: var(--brand); }
@media (min-width: 620px) { .caps { grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; } }

/* FAQ: tap a question to open it on phones, every answer visible on desktop */
.faq-title { margin-top: 0; }
.faqs { margin-top: 24px; border-bottom: 1px solid var(--line); }
.faqs details { border-top: 1px solid var(--line); }
.faqs summary { position: relative; list-style: none; padding: 15px 40px 15px 0; cursor: pointer; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::before, .faqs summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--brand); transition: transform .25s var(--ease); }
.faqs summary::after { transform: rotate(90deg); }
.faqs details[open] summary::after { transform: rotate(0); }
.faqs details p { padding: 0 40px 18px 0; color: var(--soft); }
@media (min-width: 760px) {
  .faqs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 68px; margin-top: 32px; }
  .faqs summary { padding: 18px 0 0; cursor: default; }
  .faqs summary::before, .faqs summary::after { display: none; }
  .faqs details p { padding: 6px 0 22px; }
}

/* Contact */
.contact { padding-top: calc(var(--section) + 30px); }
.wave-top { display: block; position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: 64px; }
.contact-grid { display: grid; gap: 36px; position: relative; }
.next { margin-top: 14px; color: var(--on-brand); max-width: 34em; }
.field-row { display: grid; column-gap: 14px; }
@media (min-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.details { display: grid; gap: 20px; font-style: normal; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--brand-line); color: var(--paper); line-height: 1.5; }
.details-label { font: 700 13px/1.3 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.details a { display: inline-block; padding-block: 3px; text-decoration: none; text-underline-offset: 3px; }
@media (hover: hover) { .details a:hover { text-decoration: underline; } }
@media (min-width: 620px) { .details { grid-template-columns: auto minmax(0, 1fr); gap: 48px; } }
.form { background: var(--paper); color: var(--ink); padding: 24px 20px; border-radius: 3px; box-shadow: 0 2px 4px rgba(20, 28, 42, .2), 0 34px 60px -30px rgba(20, 28, 42, .8); }
.form .btn { width: 100%; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; }
.field label span { font-weight: 400; color: var(--soft); }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 13px; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid #8592a5; border-radius: 3px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.err { display: none; margin-top: 5px; font-size: 15px; color: var(--error); }
.invalid input, .invalid textarea { border-color: var(--error); }
.invalid .err { display: block; }
.consent { font-size: 15px; line-height: 1.45; color: var(--soft); margin-bottom: 14px; }
.status { margin-top: 12px; font-weight: 600; }
.status:empty { display: none; }
@media (min-width: 900px) {
  .contact { padding-top: calc(var(--section) + 96px); }
  .wave-top { height: 96px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 68px; align-items: start; }
  .form { padding: 26px; }
}

/* Footer */
.foot { background: var(--brand); color: var(--on-brand); border-top: 1px solid var(--brand-line); padding-top: 40px; font-size: 15px; line-height: 1.5; }
.foot a { text-decoration: none; }
.foot-main { display: grid; gap: 32px; padding-bottom: 36px; }
.foot-logo { display: inline-block; }
.foot-logo img { width: 170px; }
.foot-line { margin-top: 16px; max-width: 24em; }
.foot-head { font: 700 13px/1.3 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.foot-main a { display: inline-block; padding-block: 5px; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 30px; justify-content: space-between; padding-block: 18px; border-top: 1px solid var(--brand-line); }
.foot-legal a { display: inline-block; padding-block: 3px; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .foot-main a:hover { text-decoration: underline; text-underline-offset: 3px; } }
@media (min-width: 760px) {
  .foot { padding-top: 52px; }
  .foot-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding-bottom: 44px; }
  .foot-main > :nth-child(2), .foot-main > :nth-child(3) { padding-left: var(--cell); }
  .foot-main > :nth-child(1) { padding-right: var(--cell); }
}

/* Sticky WhatsApp, phones only */
/* Inset from the edges on purpose. iOS Safari tints its own toolbar from a full-width bar touching the bottom edge. */
.sticky-wa { position: fixed; left: 20px; right: 20px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 3px; transition: transform .25s var(--ease), opacity .2s; background: var(--go); color: var(--paper); font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 2px 4px rgba(20, 28, 42, .2), 0 12px 24px -10px rgba(20, 28, 42, .55); }
.sticky-wa svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 359px) { .sticky-wa { gap: 6px; padding: 8px; font-size: 14.5px; } }
.sticky-wa.off { opacity: 0; visibility: hidden; transform: translateY(12px); }
.sticky-wa:active { opacity: .9; }
.sticky-wa:focus-visible { outline-offset: -5px; }
@media (min-width: 760px) { .sticky-wa { display: none; } }

/* Back to top. Shows as soon as the page moves. On phones it sits above the WhatsApp button, then drops into its place while that button is hidden. */
.to-top { position: fixed; right: 20px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 3px; background: var(--brand); color: var(--paper); box-shadow: 0 0 0 1px rgba(255, 255, 255, .55); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), bottom .25s var(--ease), visibility .2s; }
.to-top svg { width: 21px; height: 21px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 759px) { .sticky-wa:not(.off) ~ .to-top { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 760px) { .to-top { right: 24px; bottom: 24px; } }
@media (hover: hover) { .to-top.show:hover { transform: translateY(-2px); } }
@media print { .to-top { display: none; } }

/* Privacy and 404 */
.page-head { background: var(--brand); color: var(--paper); padding-block: 18px; }
.page-head img { width: 150px; }
.page-title { font-family: var(--serif); font-weight: 500; font-optical-sizing: none; font-variation-settings: 'opsz' 22; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; color: var(--brand); }
.legal { display: grid; gap: 40px; padding-block: var(--section); }
.legal-text h2 { font-family: var(--serif); font-weight: 500; font-optical-sizing: none; font-variation-settings: 'opsz' 11; font-size: 21px; line-height: 1.25; color: var(--brand); margin-top: 30px; margin-bottom: 8px; }
.legal-text p { color: var(--soft); }
.legal-text .page-title + p { margin-top: 16px; }
.legal-side { background: var(--mist); padding: 22px; border-radius: 3px; }
.legal-side p { color: var(--soft); margin-bottom: 14px; }
.legal-side .btn { width: 100%; margin-top: 10px; }
body:has(.lost) { display: flex; flex-direction: column; min-height: 100svh; }
.lost { padding-block: var(--section); flex: 1; }
.lost p { margin-top: 16px; color: var(--soft); max-width: 30em; }
.lost .btn { margin-top: 24px; }
@media (min-width: 900px) {
  .legal { grid-template-columns: minmax(0, 68ch) minmax(260px, 340px); justify-content: space-between; }
  .legal-side { position: sticky; top: 24px; align-self: start; }
}

/* Wide phones in landscape and narrow windows: keep lines readable */
@media (max-width: 759px) {
  .thirds p, .bio p, .faqs details p, .lede { max-width: 68ch; }
}

/* Small phones: nothing important sits under the WhatsApp button on first view */
@media (max-width: 759px) and (max-height: 600px) {
  .hero-grid { margin-top: 12px; padding-bottom: 56px; }
  .sub { margin-top: 10px; }
  .cta { margin-top: 16px; }
}

/* Phones in landscape: the buttons fit on screen and the fixed controls stay out of the way */
@media (max-height: 500px) and (orientation: landscape) {
  .bar { display: none; }
  body:has(.to-top) .foot { padding-bottom: 116px; }
  .sticky-wa { display: flex; left: auto; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); min-height: 44px; padding: 6px 16px; font-size: 15px; }
  .to-top { right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .sticky-wa:not(.off) ~ .to-top { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .hero { padding-top: 10px; }
  .top { padding-bottom: 8px; }
  .hero-grid { margin-top: 12px; padding-bottom: 48px; }
  .hero h1 { font-size: 28px; }
  .sub { font-size: 16px; margin-top: 8px; max-width: none; }
  .hero .cta { margin-top: 12px; }
  .hero-brand { padding-block: 8px; }
  .hero-brand img { max-width: 170px; }
  .hero-brand p { display: none; }
  .wave { height: 36px; }
  .cta .btn { width: auto; }
  html { scroll-padding-top: 14px; }
}

/* Tablets in portrait: the two hero buttons stay side by side */
@media (min-width: 760px) and (max-width: 899px) {
  .hero .btn { padding: 0 14px; }
}

/* Large monitors: a little more width and size so the page does not sit small in the middle */
@media (min-width: 1800px) {
  .wrap { width: min(1320px, 100% - 128px); }
  body { font-size: 18px; }
  .hero h1 { font-size: 60px; }
  h2.big { font-size: 46px; }
  h3, .people strong { font-size: 23px; }
  .sub { font-size: 21px; }
  .btn { min-height: 52px; font-size: 17px; }
  .bar-nav a, .nav a, .top-phone { font-size: 16px; }
  .limit .n { font-size: 100px; }
  .caps b { font-size: 100px; }
  .steps li::before { font-size: 50px; }
  .hero-brand img { max-width: 310px; }
}
