:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d8dde5;
  --paper: #f7f3eb;
  --white: #ffffff;
  --gold: #b7791f;
  --green: #1f6f5b;
  --blue: #183b56;
  --red: #9f2f2f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: stretch;
  padding: 56px 0 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.subhead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button,
.filter {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.button.primary,
.filter.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.button.secondary:hover,
.filter:hover {
  border-color: var(--gold);
}

.hero-panel,
.notice,
.product-card,
.ops > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.07);
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.hero-panel div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.hero-panel strong {
  display: block;
  font-size: 2rem;
}

.hero-panel span {
  color: var(--muted);
  font-weight: 700;
}

.notice {
  padding: 22px;
  margin-bottom: 22px;
}

.notice p,
.ops p,
.product-card p {
  color: var(--muted);
  line-height: 1.55;
}

.filters {
  margin-bottom: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 20px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef2f7;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.product-card .audience {
  margin-top: auto;
  font-size: 0.9rem;
}

.buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.price {
  font-size: 1.35rem;
  font-weight: 900;
}

.buy {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.buy[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.ops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.quiz-grid,
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 24px;
}

.quiz-card,
.campaign-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.07);
}

.quiz-card {
  min-height: 118px;
  padding: 20px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.quiz-card.active,
.quiz-card:hover {
  border-color: var(--gold);
  background: #fffaf0;
}

.campaign-card {
  padding: 20px;
}

.copy-box {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
}

.copy-box p {
  margin: 8px 0 12px;
}

.copy {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.ops > div {
  padding: 22px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 420px;
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.24);
  z-index: 10;
}

@media (max-width: 900px) {
  .hero,
  .ops,
  .product-grid,
  .quiz-grid,
  .campaign-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.45rem;
  }
}
