/* HeyMesa · public pages (privacy, terms, contact). Same black and white language as the app:
   white canvas, solid black ink, grey fills, bold tight headings. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #000000;
  --ink-2: #3f3f3f;
  --muted: #6b6b6b;
  --hair: #e6e6e6;
  --fill: #f3f3f3;
  --glass: #ffffff;
  --glass-edge: #e6e6e6;
  --shadow: none;
  --ok: #05944f;
  --err: #b42318;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: Seravek, "Nunito Sans", "Gill Sans Nova", Ubuntu, Calibri, "Segoe UI", system-ui, sans-serif;
  --display: var(--sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .9; }
.backdrop span:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: #e4e2dc; }
.backdrop span:nth-child(2) { width: 36vw; height: 36vw; right: -10vw; top: 30vh; background: #dfe3e6; }
.glass {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 30; }
.skip:focus { left: 12px; }

/* top bar */
.bar { position: sticky; top: 12px; z-index: 10; width: min(980px, calc(100% - 32px)); margin: 12px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-mark { width: 1em; height: 1em; fill: currentColor; }
.bar nav { display: flex; align-items: center; gap: 4px; }
.bar nav a, .lang-btn { font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; border: 0; background: none; cursor: pointer; font-family: inherit; }
.bar nav a:hover, .lang-btn:hover { color: var(--ink); background: rgba(28, 28, 30, .05); }
.bar nav a[aria-current="page"] { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(28, 28, 30, .08); }
.bar nav a.btn { color: #fff; background: var(--ink); padding: 9px 16px; margin-left: 4px; }
.bar nav a.btn:hover { background: #2c2c2e; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 500 14px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s ease, opacity .15s ease; }
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* document layout */
.doc { width: min(980px, calc(100% - 32px)); margin: 56px auto 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.doc.single { grid-template-columns: minmax(0, 1fr); width: min(720px, calc(100% - 32px)); }
.toc { position: sticky; top: 96px; font-size: 13.5px; }
.toc p { margin: 0 0 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--hair); }
.toc a { display: block; padding: 4px 0 4px 14px; color: var(--ink-2); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.eyebrow { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6vw, 56px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 8px; max-width: 60ch; }
.meta { font-size: 13px; color: var(--muted); margin: 0 0 28px; }
.note { border-radius: 18px; padding: 14px 18px; font-size: 14.5px; color: var(--ink-2); margin: 0 0 32px; }
.note strong { color: var(--ink); }
article h2 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.15; letter-spacing: -.01em; margin: 44px 0 10px; scroll-margin-top: 96px; }
article h3 { font-size: 15.5px; margin: 22px 0 6px; }
article p, article li { color: var(--ink-2); max-width: 68ch; }
article ul { padding-left: 20px; }
article li { margin: 4px 0; }
article li::marker { color: var(--muted); }
article strong { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 12px 0; border-radius: 16px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .55); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; color: var(--ink-2); }
th { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; align-items: start; }
.panel { border-radius: 26px; padding: 26px; }
form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); padding: 11px 14px; border-radius: 14px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .8); width: 100%; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: rgba(28, 28, 30, .3); box-shadow: 0 0 0 4px rgba(28, 28, 30, .06); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: 12.5px; color: var(--muted); margin: 0; }
.msg { margin: 0; font-size: 14px; padding: 11px 14px; border-radius: 12px; }
.msg.ok { color: var(--ok); background: rgba(47, 125, 87, .08); }
.msg.err { color: var(--err); background: rgba(163, 58, 43, .08); }
.side h2 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 0 0 6px; }
.side p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; }
.side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.side li { font-size: 14.5px; color: var(--ink-2); }
.side li b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }

/* footer */
.foot { width: min(980px, calc(100% - 32px)); margin: 80px auto 28px; padding: 20px 24px; border-radius: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .lang-btn { display: none; padding: 0; font-size: 13.5px; color: var(--ink-2); }

@media (max-width: 760px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 36px; }
  .toc { display: none; } /* long index pushes the text down on phones */
  .contact-grid, .grid2 { grid-template-columns: 1fr; }
  .bar { padding-left: 16px; gap: 6px; }
  .bar nav { gap: 0; }
  .bar nav a.hide-sm { display: none; }
  .bar nav a, .lang-btn { padding: 8px 9px; font-size: 13.5px; }
  .bar nav a.btn { padding: 8px 13px; }
  .bar .lang-btn { display: none; } /* language toggle moves to the footer on phones */
  .foot .lang-btn { display: inline-block; }
  .panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .bar, .toc, .foot, .backdrop { display: none; } body { background: #fff; } .doc { display: block; margin: 0; } }
.side .mail-line { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.7); border: 1px solid var(--hair); }
.side .mail-line a { color: var(--ink); font-weight: 600; }

/* Shine: the brand name and the landing headline carry a soft light sweep across the ink.
   The text is painted by a clipped gradient, so the SVG logo keeps its own solid colour. */
.wordmark, .l-copy h1 {
  background: linear-gradient(110deg, var(--ink) 0%, var(--ink) 40%, #8d8d93 46%, #f2f2f4 50%, #8d8d93 54%, var(--ink) 60%, var(--ink) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: mesa-shine 7s ease-in-out 1s infinite;
}
.wordmark .logo-mark { color: var(--ink); }
@keyframes mesa-shine {
  0% { background-position: 100% 0; }
  35%, 100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark, .l-copy h1 { animation: none; }
}

/* ============================================ black and white (v3) ==== */
.backdrop { display: none; }
.glass { background: #fff; border: 1px solid var(--hair); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.bar { position: sticky; top: 0; margin: 0; width: 100%; border-radius: 0; border: 0; border-bottom: 1px solid var(--hair); padding: 10px max(16px, calc((100% - 980px) / 2)); }
.wordmark { letter-spacing: -.03em; }
.bar nav a, .lang-btn { color: var(--ink); font-weight: 500; }
.bar nav a:hover, .lang-btn:hover { background: var(--fill); }
.bar nav a[aria-current="page"] { background: var(--fill); box-shadow: none; font-weight: 600; }
.bar nav a.btn { background: var(--ink); color: #fff; font-weight: 600; }
.bar nav a.btn:hover { background: #333; }
.btn { border: 0; font-weight: 600; padding: 12px 20px; }
.btn:hover { background: #333; opacity: 1; }
h1 { font-weight: 800; letter-spacing: -.045em; }
article h2, .side h2 { font-weight: 800; letter-spacing: -.03em; }
.eyebrow, .toc p { color: var(--ink); font-weight: 700; letter-spacing: .02em; text-transform: none; font-size: 14px; }
.toc a:hover { border-left-color: var(--ink); }
.note { background: var(--fill); border: 0; border-radius: 12px; }
.table-wrap { background: #fff; border-radius: 12px; }
th { color: var(--ink); letter-spacing: .02em; text-transform: none; font-size: 13px; }
.panel { border-radius: 20px; }
.field { color: var(--ink); font-weight: 600; }
.field input, .field select, .field textarea { background: var(--fill); border: 2px solid transparent; border-radius: 10px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; border-color: var(--ink); box-shadow: none; }
.side .mail-line { background: var(--fill); border: 0; border-radius: 10px; }
/* black footer band */
.foot { width: 100%; margin: 96px 0 0; border-radius: 0; border: 0; background: #000; color: #a6a6a6; padding: 36px max(16px, calc((100% - 980px) / 2)) 40px; }
.foot a, .foot .lang-btn { color: #fff; }
.foot a:hover { color: #fff; }
.foot a:focus-visible { outline-color: #fff; }
