/* Tendersmith public site: header, footer, buttons and the shared page styles for home, contact, privacy and terms.
   The home page adds home.css. Fonts are self-hosted (fonts/site/, SIL OFL): Inter for text, Instrument Serif italic
   for accents, the same pair as the v2 launch film. No third-party requests. Sizes come from tokens.css. */
@font-face { font-family: "Inter Site"; src: url("fonts/site/inter-latin-var.woff2") format("woff2"); font-weight: 100 900;
  font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/site/instrument-serif-latin-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap; }
/* Metric-matched fallbacks while the web fonts load, so the swap does not move the layout (measured widths:
   Inter is 1.07x Arial; Instrument Serif italic is 0.88x Times New Roman italic). */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 107%; }
@font-face { font-family: "Instrument Fallback"; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT");
  font-style: italic; size-adjust: 88%; }

:root {
  /* Site names for the shared tokens in tokens.css (the page background is a little warmer than the app's). */
  --ink: var(--color-ink); --muted: var(--color-muted); --line: var(--color-line); --bg: #fbfaf6; --alt: #f3f1ea;
  --bone: #f2f0e9; --brand: var(--color-brand); --brand-2: var(--color-brand-2); --deep: #10211c;
  --accent: var(--color-accent); --accent-ink: var(--color-accent-ink); --accent-soft: #fbeed8;
  --on-dark: var(--color-on-dark); --on-dark-muted: var(--color-on-dark-muted);
  --radius: var(--radius-lg); --radius-xl: 22px;
  --font: "Inter Site", "Inter Fallback", var(--font-sans); --font-serif: "Instrument Serif", "Instrument Fallback", Georgia, serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-float: 0 1px 1px rgba(16, 33, 28, .04), 0 8px 24px -6px rgba(16, 33, 28, .12), 0 30px 60px -20px rgba(16, 33, 28, .22);
  --wrap: 1200px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: var(--lh-base); color: var(--color-body);
  background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01"; }
img, picture, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 6px; }
.on-dark :focus-visible, .site-foot :focus-visible { outline-color: var(--color-focus-on-dark); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 14px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin: 0 auto; }
@media (min-width: 768px) { .wrap { width: min(var(--wrap), 100% - 64px); } }
.narrow { width: min(780px, 100% - 32px); }
.center { text-align: center; justify-content: center; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; letter-spacing: -.028em; margin: 0 0 .5em; font-weight: 650; text-wrap: balance; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
@media (min-width: 960px) { h1 { font-size: var(--fs-4xl); } h2 { font-size: var(--fs-3xl); } }
h3 { font-size: var(--fs-md); letter-spacing: -.012em; line-height: 1.3; }
p { text-wrap: pretty; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-xs);
  font-weight: 650; color: var(--brand-2); margin: 0 0 14px; }
.lede { font-size: var(--fs-md); color: var(--muted); max-width: 62ch; line-height: 1.6; }
.section-lede { color: var(--muted); max-width: 64ch; font-size: var(--fs-md); }
.small { font-size: var(--fs-sm); color: var(--muted); }
code { font-family: var(--font-mono); font-size: .88em; background: #eef2ef; padding: 1px 5px; border-radius: 4px; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; font-size: var(--fs-base); letter-spacing: -.005em;
  text-decoration: none; border: 1px solid var(--brand); cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(16, 33, 28, .2), 0 6px 16px -6px rgba(16, 33, 28, .45);
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 4px rgba(16, 33, 28, .2), 0 12px 24px -8px rgba(16, 33, 28, .5); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--color-line-strong); box-shadow: none; }
.btn-ghost:hover { background: #fff; color: var(--brand); border-color: var(--brand); box-shadow: 0 4px 14px -6px rgba(16, 33, 28, .25); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #1f1405; }
.btn-accent:hover { background: #e8b26c; border-color: #e8b26c; color: #1f1405; }
.btn-light { background: var(--bone); border-color: var(--bone); color: var(--brand); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--brand); }
.btn-outline-light { background: transparent; color: var(--bone); border-color: rgba(242, 240, 233, .45); box-shadow: none; }
.btn-outline-light:hover { background: rgba(242, 240, 233, .08); color: #fff; border-color: var(--bone); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); border-radius: 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active { transform: none; } .btn:hover .arrow { transform: none; } }

/* Header */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(251, 250, 246, .78); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease; }
.site-head.is-scrolled { border-bottom-color: var(--line); background: rgba(251, 250, 246, .9); box-shadow: 0 6px 24px -18px rgba(16, 33, 28, .35); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--fs-lg);
  letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 12px 0 0; padding: 0; }
.nav-links a, .nav-signin { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 9px; color: var(--ink);
  text-decoration: none; font-weight: 500; font-size: var(--fs-sm); transition: background-color .15s ease; }
.nav-links a:hover, .nav-signin:hover { background: rgba(29, 59, 52, .07); color: var(--ink); }
.nav-signin { margin-right: 6px; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; padding: 0; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle[hidden] { display: none !important; }
html:not(.js) .nav-toggle { visibility: hidden; }  /* keeps its space, so nothing moves when site.js arrives */
.nav-toggle .close { display: none; }
.nav-toggle[aria-expanded="true"] .open { display: none; }
.nav-toggle[aria-expanded="true"] .close { display: block; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .js .nav-links { display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); flex-direction: column; align-items: stretch;
    gap: 2px; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-float); }
  .js .nav-links.is-open { display: flex; animation: menu-in .22s var(--ease-out); }
  .js .nav-links a { min-height: 48px; font-size: var(--fs-base); padding: 0 14px; }
  .site-head { position: sticky; }
  .head-row { position: relative; }
  html:not(.js) .nav-links { display: none; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .head-row { min-height: 60px; gap: 8px; }
  .brand { font-size: var(--fs-md); gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .nav-signin { display: none; }
  .site-nav .btn-small { min-height: 40px; padding: 0 12px; }
  .nav-links .nav-signin-mobile { display: flex; }
}
.nav-links .nav-signin-mobile { display: none; }
@media (max-width: 520px) { .js .nav-links .nav-signin-mobile { display: flex; } }
.launch-note { margin: 0; background: var(--accent-soft); border-bottom: 1px solid #efd3a4; color: var(--accent-ink); text-align: center;
  padding: 9px 16px; font-size: var(--fs-sm); }
.launch-note a { color: var(--accent-ink); font-weight: 600; }

/* Generic sections (contact, legal) */
.section { padding: 80px 0; }
@media (max-width: 768px) { .section { padding: 56px 0; } }
.section.alt { background: var(--alt); }
.legal h1, .section > .narrow > h1 { font-size: var(--fs-d2); letter-spacing: -.035em; }
.legal h2 { font-size: var(--fs-lg); margin-top: 38px; }
.legal p, .legal li { color: #2c3a36; }
.legal li { margin-bottom: 6px; }
.notice { background: var(--accent-soft); border: 1px solid #efd3a4; border-radius: 12px; padding: 12px 16px; color: var(--accent-ink); }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 26px 28px; margin: 28px 0;
  box-shadow: var(--shadow-sm); }
.contact-card p { margin: 0 0 16px; }
.contact-card p:last-child { margin-bottom: 0; }

/* Footer */
.site-foot { background: var(--deep); color: var(--on-dark-muted); padding: 64px 0 36px; font-size: var(--fs-sm); }
.site-foot a { color: var(--on-dark); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 340px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: var(--fs-md); margin: 0 0 12px;
  letter-spacing: -.02em; }
.foot-about p { max-width: 36ch; margin: 0 0 12px; }
.foot-col h2 { color: #fff; font-size: var(--fs-sm); letter-spacing: 0; font-weight: 600; margin: 0 0 12px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(230, 238, 235, .14); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 8px 24px; }
.foot-legal p { margin: 0; }
