/* Zilk — shared styles for zilk.io
 *
 * One stylesheet across every page so the marketing pages and the transactional
 * ones (reset-password, confirmed, claim) read as one product rather than as
 * things built at different times. Those three predate this file and keep their
 * own inline styles; the palette here matches them exactly so they still belong.
 *
 * No webfont. A font request is a second point of failure for a page whose whole
 * job is to be reachable, and the system stack on a phone is already the face the
 * app uses.
 */

:root {
  --red: #Ef4036;
  --red-dark: #C9291F;
  --bg: #F2F2F2;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6B6B70;
  --faint: #8E8E93;
  --border: #E5E5EA;
  --good: #2E7D32;
  --max: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; }
a { color: var(--red); }

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

/* ── Header ─────────────────────────────────────────────────────────────── */
header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
header.site .wrap {
  display: flex; align-items: center; gap: 18px;
  height: 64px;
}
.brand {
  color: var(--red); font-size: 24px; font-weight: 900; letter-spacing: 1px;
  text-decoration: none; flex: none;
}
nav.site { margin-left: auto; display: flex; align-items: center; gap: 22px; }
nav.site a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600;
}
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }
nav.site a.cta {
  background: var(--red); color: #fff; padding: 9px 16px; border-radius: 10px;
}
nav.site a.cta:hover { background: var(--red-dark); color: #fff; }

/* The nav collapses to the essentials rather than becoming a hamburger: there
   are five links, and a menu button for five links is more machinery than it
   saves. */
@media (max-width: 640px) {
  nav.site { gap: 14px; }
  nav.site a.hide-sm { display: none; }
  header.site .wrap { gap: 10px; }
}

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 68px 0; }
section.tight { padding: 44px 0; }
section.alt { background: var(--surface); }

h1 {
  font-size: clamp(34px, 6vw, 54px); line-height: 1.08; letter-spacing: -0.02em;
  font-weight: 900; margin: 0 0 18px; text-wrap: balance;
}
h2 {
  font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.015em;
  font-weight: 800; margin: 0 0 14px; text-wrap: balance;
}
h3 { font-size: 19px; font-weight: 800; margin: 0 0 8px; }
p { margin: 0 0 16px; max-width: 62ch; }
.lede { font-size: 19px; color: var(--muted); line-height: 1.55; }
.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 1.2px;
  color: var(--red); text-transform: uppercase; margin: 0 0 12px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--red); color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 800;
  padding: 15px 26px; border-radius: 12px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn.ghost {
  background: transparent; color: var(--ink); border: 1.5px solid var(--border);
}
.btn.ghost:hover { background: var(--surface); border-color: var(--faint); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--surface); border-radius: 16px; padding: 26px 24px;
}
.alt .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }

/* Deal-type cards carry the same colours the app uses, so the three names mean
   the same thing on the website as on a card in the feed. */
.tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.4px;
  padding: 5px 11px; border-radius: 20px; margin-bottom: 12px;
}
.tag.tryit   { background: rgba(239,64,54,0.12);  color: #Ef4036; }
.tag.anytime { background: rgba(76,175,80,0.15);  color: #2E7D32; }
.tag.limited { background: rgba(255,215,0,0.22);  color: #8A6A00; }

/* ── Steps ──────────────────────────────────────────────────────────────── */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 26px 0 0; }
ol.steps li {
  counter-increment: s; position: relative;
  padding: 0 0 22px 52px; color: var(--muted);
}
ol.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 18px;
  background: var(--red); color: #fff;
  font-weight: 900; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
ol.steps b { color: var(--ink); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer.site {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 40px 0; margin-top: 20px;
}
footer.site .cols {
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between;
}
footer.site h4 {
  font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--faint);
  text-transform: uppercase; margin: 0 0 10px;
}
footer.site a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: 15px; padding: 3px 0;
}
footer.site a:hover { color: var(--ink); }
footer.site .fine {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border);
  color: var(--faint); font-size: 13px;
}

/* ── Forms (shared with the claim page) ─────────────────────────────────── */
label.field {
  display: block; font-size: 11px; font-weight: 800; color: var(--faint);
  letter-spacing: 0.8px; margin: 18px 0 6px; text-transform: uppercase;
}
input, select, textarea {
  width: 100%; padding: 13px 14px; font-size: 16px; font-family: inherit;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); }
select:disabled { background: var(--bg); color: var(--faint); }
.hint { color: var(--faint); font-size: 13px; margin-top: 6px; line-height: 1.45; }
.err { color: var(--red); font-weight: 600; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.hidden { display: none !important; }
