/* Stud Finder — instrument-panel design system */

:root {
  --black:      #0C0C0B;
  --panel:      #141414;
  --panel-2:    #1C1B19;
  --line:       #2C2A26;
  --amber:      #E7AD19;
  --amber-hi:   #FDE403;
  --lime:       #B0D93B;
  --green:      #43C24F;
  --ink:        #F2EFE8;
  --ink-dim:    #A5A099;
  --ink-faint:  #6E6A63;
  --red:        #E5533D;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius:  14px;
  --maxw:    1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.lede { font-size: 1.15rem; color: var(--ink-dim); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 11, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
}
.nav a { color: var(--ink-dim); }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--amber);
  border-radius: 10px;
  background: var(--amber);
  color: #120E02;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--amber-hi); border-color: var(--amber-hi); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--panel-2); border-color: var(--ink-faint); color: var(--ink); }

/* ---------- panel (the instrument-case motif) ---------- */

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.panel::before, .panel::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3A3833;
  box-shadow: 0 0 0 1px #191817 inset;
}
.panel::before { left: 11px; }
.panel::after  { right: 11px; }

/* ---------- hero ---------- */

.hero {
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(760px 420px at 78% 22%, rgba(231, 173, 25, 0.14), transparent 68%),
    radial-gradient(560px 340px at 12% 82%, rgba(176, 217, 59, 0.07), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero .lede { max-width: 34ch; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 20px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.stars { color: var(--amber); letter-spacing: 0.08em; }

/* phone frame */

.phone {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 292px;
  border: 9px solid #201F1C;
  border-radius: 42px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px #38352E;
  overflow: hidden;
  background: #000;
}
.phone img { border-radius: 32px; }

/* ---------- generic sections ---------- */

section { padding: 76px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

.section-head { max-width: 620px; margin-bottom: 42px; }
.section-head p { margin-bottom: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.step-no {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.panel p:last-child { margin-bottom: 0; }
.panel p { color: var(--ink-dim); font-size: 0.97rem; }

/* detect / can't-detect lists */

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
  color: var(--ink-dim);
}
.check-list li:last-child { border-bottom: 0; }
.check-list b { color: var(--ink); font-weight: 600; }
.mark { flex: none; font-family: var(--mono); font-weight: 700; }
.mark.yes { color: var(--green); }
.mark.no  { color: var(--red); }

/* honesty callout */

.callout {
  border-left: 3px solid var(--amber);
  background: var(--panel-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
}
.callout h3 { color: var(--amber); margin-bottom: 0.4em; }
.callout p { color: var(--ink-dim); margin-bottom: 0; font-size: 0.97rem; }

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.07rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--amber);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 14px 0 0; color: var(--ink-dim); font-size: 0.97rem; }

/* ---------- forms ---------- */

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
}
.field textarea { min-height: 158px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(231, 173, 25, 0.15);
}
.field .hint { font-size: 0.82rem; color: var(--ink-faint); margin: 7px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.94rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok  { background: rgba(67, 194, 79, 0.1);  border: 1px solid rgba(67, 194, 79, 0.4);  color: #9BE0A4; }
.form-status.err { background: rgba(229, 83, 61, 0.1);  border: 1px solid rgba(229, 83, 61, 0.4);  color: #F0A08F; }

/* ---------- legal pages ---------- */

.legal { padding: 62px 0 90px; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--ink-dim); font-size: 1rem; }
/* .legal p outranks the single-class utilities, so restate them here. */
.legal p.eyebrow { color: var(--amber); font-size: 0.75rem; }
.legal p.lede { font-size: 1.15rem; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 0.5em; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.94rem;
}
.legal th, .legal td {
  text-align: left;
  padding: 11px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-dim);
}
.legal th { color: var(--ink); font-weight: 600; background: var(--panel-2); }
.updated { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-faint); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Give the columns room and let the wrapper scroll, rather than squeezing
   three columns into a phone width. */
.legal table { min-width: 580px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 34px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--ink-dim); }
.site-footer a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero .lede { max-width: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav { gap: 16px; font-size: 0.86rem; }
  .nav .nav-hide { display: none; }
  .site-header .wrap { gap: 12px; padding: 0 18px; }
  .brand { font-size: 0.95rem; }
  .brand img { width: 26px; height: 26px; }
  .wrap { padding: 0 18px; }
  .hero { padding: 56px 0 52px; }
  section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
