/* Tokens, type, buttons, nav, footer, and the phone scroll fix. Palette from the design scan brief. */
:root {
  --ink: #1C1A2B; --ink-2: #2B2840; --sand: #F5EFE6; --paper: #FCFAF7; --clay: #C65A3E; --clay-d: #A8472E;
  --teal: #2E7A74; --teal-l: #DDEEEA; --lav: #CFC8EE; --lav-l: #EEEBFA; --alert: #B3261E;
  --muted: #6D6878; --line: #E6DED2; --r: 18px; --shadow: 0 18px 50px rgba(28, 26, 43, .12);
  --serif: "Fraunces", Georgia, serif; --sans: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { position: relative; margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 5.2vw, 68px); }
h1 em { font-style: italic; color: var(--clay); font-weight: 400; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.lead { font-size: 19px; color: #46415A; max-width: 640px; }
.lead.center { margin-left: auto; margin-right: auto; }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: 18px; }
.eyebrow.light { color: #F2B79F; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-d); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-alert { background: var(--alert); color: #fff; }
.btn.big { width: 100%; padding: 20px; font-size: 18px; }
.badge { display: inline-block; font: 600 12px/1 var(--sans); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.badge-ok { background: var(--teal-l); color: var(--teal); }
.badge-ok::before { content: "✓ "; }
.badge-soft { background: var(--lav-l); color: #4B3F8A; }

.demo-strip { background: var(--ink); color: #E9E3F5; text-align: center; font-size: 13px; padding: 8px 16px; letter-spacing: .02em; }
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 32px; padding: 16px 48px;
  background: rgba(245, 239, 230, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--serif); text-decoration: none; color: var(--ink); }
.nav-links { display: flex; gap: 26px; flex: 1; }
.nav-links a, .link-quiet { text-decoration: none; font-weight: 500; color: #3E3952; }
.nav-links a:hover, .link-quiet:hover { color: var(--clay); }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.short { display: none; }

.foot { background: var(--ink); color: #D9D3E6; padding: 64px 48px 36px; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1180px; margin: 0 auto; }
.foot h4 { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #9F98B5; margin: 4px 0 16px; }
.foot-grid a:not(.brand) { display: block; text-decoration: none; margin-bottom: 10px; }
.foot .muted { color: #9F98B5; }
.foot-small { max-width: 1180px; margin: 48px auto 0; font-size: 13px; border-top: 1px solid #3A3654; padding-top: 22px; }

.field { display: block; font-weight: 600; font-size: 14px; margin: 16px 0; }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; font: 400 16px/1.4 var(--sans); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--clay); }

@media (max-width: 900px) {
  html, body { overscroll-behavior-y: none; }
  html { height: 100%; overflow: hidden; }
  body { position: relative; height: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto; font-size: 16px; }
  html, body { scroll-padding-top: 70px; }
  table { display: block; overflow-x: auto; }
  :is(input, textarea, select, .field input) { font-size: 16px; }
  .nav { padding: 12px 18px; gap: 12px; }
  .nav-links, .link-quiet, .long { display: none; }
  .short { display: inline; }
  .demo-strip { font-size: 12px; padding: 6px 12px; }
  .brand { font-size: 19px; }
  .nav-cta { margin-left: auto; }
  .foot { padding: 48px 22px 110px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .lead { font-size: 17px; }
}
