/* ===========================================================================
   Evaluate Me! — shared styles for the content pages
   (privacy.html, terms.html, support.html, contact.html)

   index.html still carries its own inline CSS. The tokens below are a copy of
   the ones defined there, so if the brand colours or type change, BOTH places
   need updating. Folding index.html into this file is worthwhile follow-up —
   it was left alone here because it is live and verified, and restyling four
   pages was the task at hand.
   =========================================================================== */

:root {
  --ink:        #0B0B0C;
  --ink-2:      #131316;
  --ink-3:      #1C1C21;
  --line:       #2A2A31;
  --orange:     #F26722;
  --orange-hi:  #FF7E3D;
  --cream:      #FDF1E7;
  --text:       #F4F4F5;
  --muted:      #9A9AA4;
  --muted-dark: #57575F;
  --radius:     14px;
  --wrap:       860px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* No page should ever scroll sideways. The rule below is a backstop, not the
   fix — anything that overflows is a layout bug to be corrected at source.
   overflow-wrap handles the legitimate case: long unbroken strings such as
   email addresses and URLs inside narrow columns on a phone. */
html, body { max-width: 100%; overflow-x: hidden; }
body { overflow-wrap: break-word; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--orange-hi); }

h1, h2, h3 {
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.08;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

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

main { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 80px; }

/* ---------- Page header (the "board") ---------- */
.board { background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 30px 0 40px; }
.board .wrap { padding-top: 8px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic; font-weight: 800; font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: .02em;
  margin-bottom: 26px;
}
.brand .dot {
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--orange); display: inline-block;
}

.eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  font-size: .9rem; color: var(--orange); margin-bottom: .5rem;
}

.updated { color: var(--muted-dark); font-size: .92rem; }

/* The orange rule under the header, mirroring the accent bar on the OG card. */
.stripe { height: 4px; background: var(--orange); }

/* ---------- Long-form content ---------- */
.lead { font-size: 1.15rem; color: #D6D6DC; }

.callout {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 32px 0 40px;
}
.callout h2 { font-size: 1.3rem; margin-bottom: .5em; }
.callout ul { margin: 0; padding-left: 20px; }
.callout li { margin-bottom: 8px; color: #D6D6DC; }
.callout li:last-child { margin-bottom: 0; }

section { margin-bottom: 40px; }

/* Numbered clauses.
   .clause is a <section> wrapping a whole clause — its heading AND all the
   body copy as siblings. It must therefore stay a normal block: making it a
   flex or grid container lays the prose out in columns and forces the page to
   scroll sideways.
   .num is a <span> inside the <h2>, so it only needs inline spacing. */
.clause { margin-bottom: 38px; }

.clause .num {
  color: var(--orange);
  opacity: .65;
  margin-right: .45em;
}

.clause h2 { margin-bottom: .55em; }
.clause h3 {
  margin-top: 1.4em;
  color: #E4E4E8;
  font-size: 1.05rem;
  letter-spacing: .06em;
}
.clause ul { padding-left: 20px; }
.clause li { margin-bottom: 10px; color: #C9C9D1; }

.body { color: #C9C9D1; }
.body ul { padding-left: 20px; }
.body li { margin-bottom: 8px; }
strong { color: var(--text); }

.contact,
.help-card {
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; margin-top: 36px;
}
.help-card { margin: 32px 0 40px; border-left: 4px solid var(--orange); }
.help-card h2 { font-size: 1.3rem; margin-bottom: .45em; }

/* The support address, given the prominence it deserves on a help page. */
.email { font-size: 1.15rem; font-weight: 600; margin-bottom: .5em; }
.email a { color: var(--orange-hi); text-decoration: none; }
.email a:hover { text-decoration: underline; }

.note { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

/* Small print at the foot of the terms. */
.legal { color: var(--muted-dark); font-size: .9rem; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 36px 0; }
footer .wrap { max-width: var(--wrap); }
.footlinks { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.footlinks a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.footlinks a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 10px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hi); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #C9CCD1; }
button[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .88rem; font-weight: 600;
  color: #D6D6DC; margin-bottom: 7px;
}
.field label .req { color: var(--orange); }
.field .hint { font-weight: 400; color: var(--muted-dark); font-size: .84rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--ink); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px;
  font-family: inherit; font-size: 1rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent;
}
.field input[type="file"] { padding: 10px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Honeypot: off-screen for people, present in the DOM for naive bots. */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 16px; font-size: .95rem; min-height: 1.4em; }
.form-status.err { color: #FF8A6B; }
.form-status.ok  { color: #6BD39A; }

/* Bug-only fields, revealed by the reason selector. */
#bug-only[hidden] { display: none; }

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumbs img {
  width: 74px; height: 74px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
}
