/* PerkWatch support site. Navy and gold, mobile first, system fonts only (no web fonts, no trackers). */
:root {
  --navy: #070b12;
  --navy-2: #0e1520;
  --surface: #121a26;
  --surface-2: #1a2331;
  --line: #2a3444;
  --line-gold: rgba(196, 163, 90, 0.32);
  --text: #f4f1ea;
  --muted: #c9c3b4;
  --dim: #a39e90;
  --gold: #c4a35a;
  --gold-soft: #e6d3a3;
  --gold-hi: #edd394;
  --green: #3ddc97;
  --red: #f08080;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 46rem;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(60rem 32rem at 50% -8rem, rgba(27, 42, 68, 0.75), rgba(27, 42, 68, 0) 70%),
    linear-gradient(180deg, #0c1320 0%, var(--navy) 38rem);
  background-color: var(--navy);
}

a { color: var(--gold-soft); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--gold); color: var(--navy); padding: 0.6rem 1rem; border-radius: 10px; font-weight: 650; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { border-bottom: 1px solid rgba(42, 52, 68, 0.7); background: rgba(7, 11, 18, 0.72); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.14em; font-size: 0.82rem; text-transform: uppercase; }
.brand img { width: 2rem; height: 2rem; border-radius: 0.5rem; box-shadow: 0 0 0 1px var(--line-gold); }
.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; padding: 0.45rem 0.6rem; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--gold-soft); background: rgba(196, 163, 90, 0.12); }

/* Hero */
.hero { text-align: center; padding: 3.25rem 0 2.25rem; }
.hero-icon { width: 6rem; height: 6rem; border-radius: 1.35rem; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line-gold); }
.kicker { margin: 1.5rem 0 0.4rem; color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 7vw, 2.75rem); margin: 0 0 0.75rem; letter-spacing: -0.01em; }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 34rem; margin: 0 auto; }
.hero-actions { margin-top: 1.75rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.75rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 70%); color: var(--navy); box-shadow: 0 8px 24px rgba(196, 163, 90, 0.18); }
.btn-gold:hover { color: var(--navy); filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--gold-soft); border-color: var(--line-gold); }
.btn-ghost:hover { background: rgba(196, 163, 90, 0.08); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Sections and cards */
main { padding-bottom: 3rem; }
.section { margin-top: 2.75rem; }
.section > h2 { font-size: 1.6rem; margin: 0 0 0.35rem; }
.section-intro { color: var(--muted); margin: 0 0 1.25rem; }
.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 50px rgba(0, 0, 0, 0.35); }
.card-gold { border-color: var(--line-gold); }

/* Form */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.98rem; }
.optional, .req { color: var(--dim); font-weight: 400; font-size: 0.88rem; }
.hint { display: block; color: var(--dim); font-size: 0.88rem; margin-top: 0.35rem; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--navy-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem 0.9rem; min-height: 3rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 1.3rem, calc(100% - 0.9rem) 1.3rem; background-size: 0.36rem 0.36rem; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: #8a8578; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.25); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }
.field-error { display: block; color: var(--red); font-size: 0.9rem; margin-top: 0.35rem; }
.field-error:empty { display: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 0.4rem; }
.form-foot .btn { width: 100%; }
.fine { color: var(--dim); font-size: 0.88rem; margin: 0; }

.status { border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-top: 1rem; border: 1px solid; }
.status[hidden] { display: none; }
.status h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 0.25rem; }
.status p { margin: 0; color: var(--muted); }
.status-ok { background: rgba(61, 220, 151, 0.08); border-color: rgba(61, 220, 151, 0.45); }
.status-ok h3 { color: var(--green); }
.status-err { background: rgba(240, 128, 128, 0.08); border-color: rgba(240, 128, 128, 0.5); }
.status-err h3 { color: var(--red); }

/* FAQ */
.faq { display: grid; gap: 0.7rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq details[open] { border-color: var(--line-gold); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.1rem; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.2rem; top: 50%; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 1.1rem 1.1rem; color: var(--muted); }
.faq .answer p { margin: 0 0 0.75rem; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ul { margin: 0 0 0.75rem; padding-left: 1.2rem; }
.faq strong { color: var(--text); font-weight: 600; }

/* Legal pages */
.doc { padding-top: 2.5rem; }
.doc h1 { font-size: clamp(1.9rem, 6vw, 2.4rem); }
.doc .updated { color: var(--dim); margin: 0 0 2rem; font-size: 0.95rem; }
.doc h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; color: var(--gold-soft); }
.doc p { margin: 0 0 1rem; color: var(--muted); }
.doc p strong { color: var(--text); }
.doc .callout { border-left: 3px solid var(--gold); padding: 0.2rem 0 0.2rem 1rem; color: var(--text); }
.url { overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid rgba(42, 52, 68, 0.7); padding: 2rem 0 2.5rem; color: var(--dim); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.footer-links a { color: var(--muted); }
.site-footer p { margin: 0 0 0.5rem; }

@media (min-width: 40rem) {
  body { font-size: 1.09rem; }
  .hero { padding: 4.5rem 0 2.75rem; }
  .card { padding: 1.9rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .form-foot .btn { width: auto; min-width: 11rem; }
}
@media (max-width: 30rem) {
  .nav { flex-wrap: nowrap; gap: 0.1rem; }
  .nav a { padding: 0.4rem 0.5rem; font-size: 0.88rem; }
  .brand { letter-spacing: 0.1em; }
}
@media (max-width: 21rem) {
  .brand span { display: none; }
}
[id] { scroll-margin-top: 5rem; }
.after-card { margin-top: 1rem; }
