:root {
  /* Matches config/channels.py brand_colors + fonts for KnowYourRightsNow. */
  --color-primary: #CC0000;
  --color-secondary: #FFFFFF;
  --color-accent: #1A1A1A;
  --font-title: "Archivo Black", "Arial Black", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@font-face {
  font-family: "Archivo Black";
  src: url("fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-secondary);
  color: var(--color-accent);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.hero {
  text-align: center;
  margin-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 12px;
}

h1 {
  font-family: var(--font-title);
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.15;
  margin: 0 0 12px;
}

.subhead {
  font-size: 17px;
  line-height: 1.5;
  color: #444;
  margin: 0;
}

.offer-cover {
  display: block;
  max-width: 200px;
  width: 60%;
  margin: 0 auto 32px;
  border: 1px solid #eee;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.signup {
  margin-bottom: 40px;
}

#signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 16px+ font-size on inputs avoids iOS Safari auto-zoom on focus; 52px
   height keeps every tap target comfortably above the ~44px minimum. */
input[type="email"] {
  height: 52px;
  padding: 0 16px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
}
input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
}

button {
  height: 52px;
  border: none;
  border-radius: 8px;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: default;
}

#form-message {
  min-height: 20px;
  font-size: 14px;
  color: var(--color-primary);
  margin: 0;
}

.success {
  text-align: center;
  padding: 24px;
  border: 2px solid var(--color-primary);
  border-radius: 12px;
}
.success p {
  margin: 0 0 16px;
  font-weight: 600;
}

.button-secondary {
  display: inline-block;
  height: 48px;
  line-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--color-accent);
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 700;
}

.links,
.checkout {
  margin-bottom: 40px;
}
.links h2,
.checkout h2 {
  font-family: var(--font-title);
  font-size: 20px;
  margin: 0 0 16px;
}

.links-list,
.checkout-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-link {
  display: flex;
  flex-direction: column;
  border: 2px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-accent);
  font-weight: 600;
}
.card-link:active {
  border-color: var(--color-primary);
}

.card-link img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.card-link .card-body {
  padding: 16px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.card-link .card-description {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.85;
}

.card-link .card-label {
  display: block;
}

/* Product/checkout cards get the brand-color treatment so they read as
   the primary purchase action, not just another link in the list. */
.card-link--product {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-secondary);
}
.card-link--product .card-label {
  font-size: 17px;
  font-weight: 700;
}

.footer {
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  color: #999;
  margin-top: 48px;
}

.footer p {
  white-space: pre-line;
  margin: 0;
}

.hidden {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
