/* TKF — public site theme (Phase 2.1).
   One stylesheet shared by every templated page (base.html + home/product/pricing/...).
   Dark/gold "instrument" look adapted from the supplied TKF design concept. Restyle here. */

:root {
  --bg:        #09090b;
  --bg-panel:  #0b0a0d;
  --gold:      #c9a24b;
  --gold-lt:   #e6c87a;
  --gold-hi:   #e9cd84;
  --gold-dk:   #9a7a35;
  --cream:     #ece8e1;
  --muted:     #9a958b;
  --muted-2:   #8a857c;
  --faint:     #7c776e;
  --fainter:   #5a5650;
  --line:      rgba(201,162,75,.16);
  --line-2:    rgba(255,255,255,.05);
  --display:   'Space Grotesk', sans-serif;
  --body:      'Archivo', sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* faint gold grid backdrop, masked toward the top */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,162,75,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,75,.045) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%);
          mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%);
}

a { color: inherit; text-decoration: none; }

/* ---- eyebrow label (mono, spaced, uppercase) ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---- header / nav ---- */
.site-header {
  position: relative; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 42px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { display: block; }
.brand-word {
  font-family: var(--display); font-weight: 600;
  letter-spacing: .24em; font-size: 16px; color: var(--cream);
}
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.site-nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); padding: 6px 0;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--cream); }

/* ---- buttons ---- */
.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase;
  border-radius: 2px; padding: 15px 30px; border: 1px solid transparent;
  transition: filter .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.btn-gold {
  color: #0c0b0a;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-dk));
  border: none;
}
.btn-gold:hover { filter: brightness(1.08); box-shadow: 0 0 26px rgba(201,162,75,.35); }
.btn-ghost {
  color: var(--cream); background: transparent;
  border: 1px solid rgba(201,162,75,.4); font-weight: 500;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-lt); background: rgba(201,162,75,.05); }

/* ---- layout helpers ---- */
.wrap { position: relative; z-index: 5; }
.section { padding: 120px clamp(24px, 6vw, 90px); max-width: 1180px; margin: 0 auto; }
.center { text-align: center; }

h1.display {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(40px, 5.4vw, 84px); line-height: 1.02;
  letter-spacing: -.01em; color: var(--cream);
}
h2.display {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.01em; color: var(--cream);
}
.lead {
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65;
  color: var(--muted); max-width: 560px; text-wrap: pretty;
}
.gold-em { color: var(--gold); font-style: italic; }

/* ---- hero ---- */
.hero {
  min-height: calc(100vh - 78px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px;
}
.hero .sigil { width: clamp(280px, 42vw, 500px); height: auto; filter: drop-shadow(0 0 50px rgba(201,162,75,.22)); }
.cta-row { display: flex; gap: 16px; margin-top: 46px; flex-wrap: wrap; justify-content: center; }

/* ---- product feature grid ---- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-top: 64px;
}
.feature { background: var(--bg-panel); padding: 34px 30px; }
.feature .num { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: .2em; }
.feature h3 {
  font-family: var(--display); font-weight: 500; font-size: 19px;
  color: var(--cream); margin: 18px 0 10px;
}
.feature p { font-size: 14px; line-height: 1.6; color: var(--muted-2); }

/* ---- live triage table mockup ---- */
.panel { margin-top: 64px; border: 1px solid rgba(201,162,75,.18); background: rgba(12,11,15,.6); overflow: hidden; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #b8b2a7;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); display: inline-block; }
.trow {
  display: grid; grid-template-columns: 120px 1fr 150px 110px; gap: 16px; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid var(--line-2); font-size: 14px;
}
.trow.head { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--fainter); }
.trow .case { font-family: var(--mono); font-size: 13px; color: #b8b2a7; }
.bar { height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt)); }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-align: center; }
.tag.escalate { color: #0c0b0a; background: linear-gradient(180deg, var(--gold-lt), var(--gold)); padding: 5px 10px; border-radius: 2px; }
.tag.urgent { color: var(--gold); }
.tag.monitor { color: var(--fainter); }

/* ---- pricing ---- */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.tier { background: var(--bg-panel); padding: 40px 32px; }
.tier h3 { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--cream); }
.tier .price { font-family: var(--display); font-size: 38px; color: var(--gold-lt); margin: 18px 0 6px; }
.tier .price small { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .1em; }
.tier ul { list-style: none; margin: 22px 0 0; }
.tier li { font-size: 14px; color: var(--muted-2); padding: 8px 0; border-bottom: 1px solid var(--line-2); }

/* ---- prose (privacy / terms) ---- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 24px; color: var(--cream); margin: 40px 0 14px; }
.prose p { color: var(--muted); margin: 0 0 16px; }
.prose .placeholder { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }

/* ---- forms (request admission) ---- */
.form { width: 100%; max-width: 520px; }
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.field span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--faint);
}
.field input, .field textarea, .field select {
  width: 100%; background: rgba(255,255,255,.02);
  border: 1px solid rgba(201,162,75,.18); border-radius: 2px;
  padding: 14px 16px; color: var(--cream); font-family: var(--body); font-size: 14px; outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold); background: rgba(201,162,75,.04);
}
.note { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--fainter); margin-top: 6px; }

/* sliding yes/no switch (e.g. "are you the owner?") */
.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  position: relative; width: 58px; height: 30px; border-radius: 999px;
  background: rgba(255,255,255,.14); transition: background .2s ease;
}
.switch-knob {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.45); transition: left .2s ease;
}
.switch input:checked + .switch-track { background: var(--gold); }
.switch input:checked + .switch-track .switch-knob { left: 31px; }

/* ---- footer ---- */
.site-footer {
  position: relative; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 22px clamp(20px, 4vw, 42px);
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--faint);
}
.site-footer a:hover { color: var(--gold-lt); }

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .trow { grid-template-columns: 90px 1fr 90px; }
  .trow .acuity { display: none; }
  .site-nav { gap: 14px; }
}
