:root {
  color-scheme: light;
  --ink: #142029;
  --muted: #66736e;
  --line: #dde6df;
  --paper: #fffaf0;
  --surface: #ffffff;
  --accent: #16875f;
  --accent-dark: #0c5c43;
  --deal: #ef4e35;
  --gold: #f0b63f;
  --cream: #fff4dc;
  --shadow: 0 20px 55px rgba(20, 32, 41, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fff8e9 0, #fffdf8 460px, #f6fbf6 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(223, 229, 223, 0.9);
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  font-size: 18px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(20, 32, 41, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 32, 41, 0.12);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a:hover {
  color: var(--ink);
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  gap: 34px;
  align-items: stretch;
  min-height: 520px;
  padding: 66px 0 32px;
}

.hero::before {
  position: absolute;
  inset: 38px -18px 14px;
  z-index: -1;
  border: 1px solid rgba(221, 230, 223, 0.7);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 24%, rgba(240, 182, 63, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 244, 220, 0.68));
  content: "";
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.deal-kicker {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.subscribe-form {
  display: flex;
  width: min(580px, 100%);
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 33, 28, 0.08);
}

.subscribe-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 18px;
  color: var(--ink);
  font: inherit;
  outline: 0;
}

.subscribe-form button,
.deal-button,
.copy-btn {
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.subscribe-form button {
  min-width: 160px;
  padding: 0 20px;
}

.subscribe-form button:hover,
.deal-button:hover,
.copy-btn:hover {
  background: var(--accent-dark);
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-self: end;
}

.stat {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat:nth-child(1) {
  border-color: rgba(239, 78, 53, 0.28);
}

.stat:nth-child(2) {
  border-color: rgba(22, 135, 95, 0.28);
}

.stat.wide {
  grid-column: span 2;
  min-height: 130px;
}

.stat span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 750;
}

.stat strong {
  display: block;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.drop-strip {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 4px 0 22px;
  padding: 12px 16px;
  border: 1px solid rgba(20, 32, 41, 0.08);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 40px rgba(20, 32, 41, 0.16);
}

.drop-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.drop-strip strong {
  min-width: 0;
  overflow: hidden;
  color: var(--cream);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.toolbar span {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.filter {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 0 16px;
}

.filter.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 0 0 34px;
}

.deal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.deal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 65px rgba(20, 32, 41, 0.18);
}

.deal-card.hidden {
  display: none;
}

.deal-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
}

.deal-media img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
}

.deal-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--deal);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.deal-body {
  padding: 22px;
}

.deal-body h3 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.12;
}

.deal-body p {
  min-height: 52px;
  color: var(--muted);
  line-height: 1.45;
}

.price-row,
.coupon-row,
.deal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.price-row {
  margin: 18px 0 14px;
}

.current-price {
  font-size: 36px;
  font-weight: 950;
}

.old-price {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: line-through;
}

.price-row strong {
  padding: 8px 10px;
  border-radius: 7px;
  background: #fff0eb;
  color: var(--deal);
  font-size: 14px;
}

.coupon-row {
  min-height: 48px;
  border: 1px dashed #bfc9c0;
  border-radius: 8px;
  background: #fbfcfa;
  padding: 6px 6px 6px 14px;
}

code {
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 18px;
  font-weight: 850;
}

.copy-btn {
  height: 36px;
  min-width: 76px;
  border-radius: 6px;
}

.deal-meta {
  margin: 13px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.deal-button {
  display: grid;
  width: 100%;
  min-height: 50px;
  place-items: center;
  border-radius: 8px;
}

.signup-band,
.how {
  margin: 36px 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.signup-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.75fr);
  gap: 26px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 220, 0.88)),
    var(--surface);
}

.signup-band h2,
.how h2 {
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.08;
}

.signup-band p,
.how span {
  color: var(--muted);
  line-height: 1.5;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.steps div {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps strong {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-body {
  background: #f6fbf6;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(20px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.admin-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stats div,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 32, 41, 0.08);
}

.admin-stats div {
  min-height: 104px;
  padding: 18px;
}

.admin-stats span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-stats strong {
  display: block;
  font-size: 34px;
}

.admin-panel {
  margin-bottom: 18px;
  padding: 22px;
}

.admin-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-panel h1,
.admin-panel h2 {
  margin: 0 0 18px;
}

.admin-panel-title h1 {
  margin: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.admin-thumb {
  width: 76px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.admin-link,
.admin-button,
.inline-form button {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  padding: 0 13px;
}

.inline-form {
  display: inline;
  margin-left: 8px;
}

.inline-form button {
  background: var(--deal);
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

.admin-form textarea {
  min-height: 94px;
  resize: vertical;
}

.admin-check {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 9px !important;
}

.admin-check input {
  width: auto;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .deal-grid,
  .signup-band,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .toolbar span {
    width: 100%;
    margin-left: 0;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form input,
  .subscribe-form button {
    min-height: 52px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .stat.wide {
    grid-column: auto;
  }

  .drop-strip {
    grid-template-columns: 1fr;
  }

  .drop-strip strong {
    white-space: normal;
  }

  .signup-band,
  .how {
    padding: 24px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-stats,
  .admin-grid,
  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}
