/* Farewatch design system
   bg #F3F2F2 · ink #201E1D · single red accent #EC3013 · hairline rules · Archivo 800 */

:root {
  --bg:        #F3F2F2;
  --bg-alt:    #EAE9E9;
  --ink:       #201E1D;
  --red:       #EC3013;
  --red-dark:  #AE1800;
  --line:      rgba(32, 30, 29, 0.14);
  --line-soft: rgba(32, 30, 29, 0.08);
  --muted:     rgba(32, 30, 29, 0.62);
  --muted-2:   rgba(32, 30, 29, 0.45);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum' 0;
}

::selection { background: var(--red); color: #fff; }

*:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */

.display {
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.04;
  text-wrap: balance;
}

.d-1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); }
.d-2 { font-size: clamp(1.95rem, 4.2vw, 3.1rem); }
.d-3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow-ink { color: var(--muted-2); }

.lede {
  font-size: clamp(1.0rem, 1.5vw, 1.1875rem);
  line-height: 1.62;
  color: rgba(32, 30, 29, 0.78);
}

.num {
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
  font-variant-numeric: tabular-nums;
}

/* ---------- Rules & layout ---------- */

.rule   { border-top: 1px solid var(--line); }
.rule-b { border-bottom: 1px solid var(--line); }
.shell  { max-width: 76rem; margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 1024px) { .shell { padding-inline: 2.5rem; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn:active { transform: translateY(1px); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg); }

.btn-ghost-light { border-color: rgba(255,255,255,0.65); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--red); }

.btn-sm { padding: 0.5rem 0.9375rem; font-size: 0.75rem; }

/* ---------- Links ---------- */

.link-red {
  color: var(--red);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(236, 48, 19, 0.35);
  padding-bottom: 1px;
}
.link-red:hover { border-bottom-color: var(--red); }

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding-block: 0.25rem;
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
}

/* ---------- Surfaces ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
}

.photo {
  filter: grayscale(1) contrast(1.04);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.4375rem;
}

.tag-ink { background: rgba(32,30,29,0.1); color: var(--muted); }

/* Small print: captions, disclaimers, calculator notes */
.fineprint {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

/* Bullet list with red squares */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(32,30,29,0.78);
}
.ticks li + li { margin-top: 0.5625rem; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5rem;
  width: 6px; height: 6px;
  background: var(--red);
}

/* ---------- Product mock (dashboard) ---------- */

.mock { background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px -32px rgba(32,30,29,0.32); }
.mock-bar { background: var(--ink); color: rgba(255,255,255,0.92); }
.mock-cell { font-size: 0.75rem; }
.mock-row { border-top: 1px solid var(--line-soft); }
.mock-row:hover { background: rgba(32,30,29,0.02); }

.pulse {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(236,48,19,0.55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 7px rgba(236,48,19,0); }
  100% { box-shadow: 0 0 0 0 rgba(236,48,19,0); }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Forms ---------- */

.field {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: var(--ink);
}
.field::placeholder { color: var(--muted-2); }
.field:focus { border-color: var(--ink); outline: none; box-shadow: inset 0 0 0 1px var(--ink); }

.label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.375rem;
}

/* Honeypot: stays in the DOM, never visible, never focusable by tab */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Inline form status, shown next to the form after a background submit */
.form-note {
  border-left: 2px solid var(--red);
  padding: 0.125rem 0 0.125rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.6;
}
.form-note-ok  { color: var(--ink); }
.form-note-err { color: var(--red-dark); }

.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: progress;
}

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

.faq { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem 0;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq .sign {
  flex: none;
  width: 1.25rem; height: 1.25rem;
  position: relative;
  margin-top: 0.25rem;
}
.faq .sign::before,
.faq .sign::after {
  content: '';
  position: absolute;
  background: var(--red);
  transition: transform 0.2s ease;
}
.faq .sign::before { left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; }
.faq .sign::after  { top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; }
.faq[open] .sign::after { transform: scaleY(0); }
.faq .body {
  padding-bottom: 1.5rem;
  max-width: 44rem;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: rgba(32,30,29,0.74);
}
.faq .body p + p { margin-top: 0.75rem; }

/* ---------- Reveal on scroll ---------- */

html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}
