/* UNOMI — shared styles
   Identity: loyalty punch-card. Ink on paper, one stamp color. */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=IBM+Plex+Mono:wght@400;500&family=Inter+Tight:wght@400;500;600&display=swap');

:root {
  --ink: #131A2A;
  --ink-soft: #59617A;
  --paper: #FFFFFF;
  --paper-tint: #F5F7F6;
  --rule: #E1E5E4;
  --stamp: #0F6E63;
  --stamp-deep: #0A4E46;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Inter Tight', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --measure: 68ch;
  --pad: clamp(20px, 5vw, 48px);
}

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

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

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

.wrap { max-width: 980px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: var(--measure); }

a { color: var(--stamp); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--stamp-deep); }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: 2px; }

/* ---------- masthead ---------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.4) blur(8px);
}
.masthead .wrap {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
.wordmark .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--stamp);
}
.masthead nav { margin-left: auto; display: flex; gap: 22px; }
.masthead nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 620px) {
  .masthead .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 10px; }
  .masthead nav { margin-left: 0; width: 100%; gap: 16px; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 10vw, 108px) 0 clamp(40px, 7vw, 72px); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp);
  margin: 0 0 22px;
}
h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  max-width: 15ch;
}
.lede {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 34px;
}

/* ---------- signature: punch card ---------- */
.punchcard {
  margin: 48px 0 0;
  border: 1.5px dashed var(--ink);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--paper-tint);
}
.punchcard .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex: 1 1 160px;
}
.punches { display: flex; gap: 10px; flex-wrap: wrap; }
.punch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rule);
}
.punch.filled {
  background: var(--stamp);
  border-color: var(--stamp);
  color: var(--paper);
  animation: stamp 420ms cubic-bezier(.2,.9,.3,1.2) backwards;
}
.punch.filled:nth-child(1) { animation-delay: 120ms; }
.punch.filled:nth-child(2) { animation-delay: 220ms; }
.punch.filled:nth-child(3) { animation-delay: 320ms; }
.punch.filled:nth-child(4) { animation-delay: 420ms; }
.punch.filled:nth-child(5) { animation-delay: 520ms; }
.punch.filled:nth-child(6) { animation-delay: 620ms; }
.punch.filled:nth-child(7) { animation-delay: 720ms; }
@keyframes stamp {
  from { transform: scale(1.9) rotate(-12deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform 120ms ease, background 120ms ease;
}
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--stamp-deep); border-color: var(--stamp-deep); color: var(--paper); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-tint); color: var(--ink); transform: translateY(-1px); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */
section + section { border-top: 1px solid var(--rule); }
.band { padding: clamp(48px, 7vw, 84px) 0; }
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  margin: 34px 0 8px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 34px;
}
.grid3 h3 { margin-top: 0; }
.grid3 p { color: var(--ink-soft); margin: 0; }
.grid3 .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stamp);
  display: block;
  margin-bottom: 10px;
}

/* ---------- legal ---------- */
.legal { padding: clamp(44px, 6vw, 72px) 0 96px; }
.legal h1 { font-size: clamp(32px, 4.6vw, 46px); max-width: none; }
.legal h2 { font-size: 22px; margin-top: 46px; scroll-margin-top: 84px; }
.legal h3 { font-size: 17px; }
.legal p, .legal li { color: #2C3446; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }

.seal {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stamp);
  border: 1.5px solid var(--stamp);
  border-radius: 6px;
  padding: 8px 12px;
  transform: rotate(-1.4deg);
  margin-bottom: 30px;
}

.callout {
  border-left: 3px solid var(--stamp);
  background: var(--paper-tint);
  padding: 16px 18px;
  border-radius: 0 8px 8px 0;
  margin: 26px 0;
  font-size: 15px;
}

/* ---------- redirect page ---------- */
.redirect {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px var(--pad);
}
.redirect h1 { max-width: none; font-size: clamp(28px, 4vw, 40px); }
.spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--rule);
  border-top-color: var(--stamp);
  border-radius: 50%;
  margin: 0 auto 26px;
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--ink);
  word-break: break-all;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0 56px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .spacer { margin-left: auto; }
