/* shared.css — Rated Network Lite common styles */
:root {
  --brand-color: #333333;
  --brand-accent: #666666;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --radius: 6px;
  --max-width: 860px;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Hero */
.hero {
  position: relative;
  background: var(--brand-color);
  color: #fff;
  padding: 6rem 0 5rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__bg {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-color) 60%, transparent) 0%, color-mix(in srgb, var(--brand-color) 85%, transparent) 100%);
}
.hero__content { position: relative; }
.hero__logo { margin-bottom: 1.5rem; }
.hero__logo img { display: inline-block; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); font-weight: 700; line-height: 1.2; margin-bottom: 0.85rem; text-shadow: 0 2px 12px rgba(0,0,0,0.45); }
.hero__sub { font-size: 1.15rem; opacity: 0.95; text-shadow: 0 1px 8px rgba(0,0,0,0.35); }

/* Signup */
.signup-section { background: var(--bg-alt); padding: 2.5rem 0; text-align: center; }
.signup-section h2 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.signup-section p { color: var(--text-muted); margin-bottom: 1.25rem; }

.form-row {
  display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap;
}
.form-row input[type="email"] {
  padding: 0.6rem 0.9rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  font-size: 1rem;
  width: 260px;
  max-width: 100%;
}
.form-row input[type="email"]:focus {
  outline: 2px solid var(--brand-accent);
  border-color: var(--brand-accent);
}

.btn {
  display: inline-block;
  background: var(--brand-color);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover, .btn:focus { background: var(--brand-accent); }

.form-status { margin-top: 0.75rem; min-height: 1.4rem; font-size: 0.95rem; }

/* Affiliate grid */
.chain-digest { padding: 2.5rem 0; }
.chain-digest h2 { font-size: 1.35rem; margin-bottom: 1.25rem; text-align: center; }
.affiliate-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.affiliate-card a { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem; border: 1px solid #e5e7eb; border-radius: var(--radius); text-decoration: none; color: var(--text); font-size: 0.9rem; text-align: center; transition: border-color 0.15s; }
.affiliate-card a:hover { border-color: var(--brand-color); }
.affiliate-card img { width: 56px; height: 56px; object-fit: contain; }

/* Evergreen pulse */
.evergreen-pulse { background: var(--bg-alt); padding: 2.5rem 0; }
.evergreen-pulse h2 { font-size: 1.35rem; margin-bottom: 1.25rem; text-align: center; }
.pulse-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.pulse-item {
  background: var(--bg); border-radius: var(--radius); padding: 1rem 1.25rem;
  border-left: 3px solid var(--brand-color);
  display: flex; gap: 1rem; align-items: flex-start;
}
.pulse-item__thumb { flex: 0 0 auto; width: 120px; height: 80px; object-fit: cover; border-radius: 4px; }
.pulse-item__body { flex: 1 1 auto; min-width: 0; }
.pulse-item a { color: var(--brand-color); text-decoration: none; }
.pulse-item a:hover { text-decoration: underline; }
.pulse-item p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; }
@media (max-width: 540px) {
  .pulse-item { flex-direction: column; }
  .pulse-item__thumb { width: 100%; height: 140px; }
}

/* Cross-promo */
.cross-promo { padding: 2.5rem 0; text-align: center; }
.cross-promo__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.5rem; }
.cross-promo__value { max-width: 600px; margin: 0 auto 1.25rem; color: var(--text); }

/* Footer */
.site-footer { background: #111; color: #aaa; padding: 1.75rem 0; text-align: center; font-size: 0.875rem; }
.site-footer a { color: #ccc; }
.footer__disclaimer { margin-top: 0.5rem; font-size: 0.8rem; opacity: 0.7; }
