/* Design Tokens */
:root {
  --bg: #f4fbfa;
  --surface: #ffffff;
  --text: #173534;
  --muted: #5e7976;
  --primary: #31a698;
  --primary-dark: #238274;
  --accent: #dff4ef;
  --border: #cae8e2;
  --shadow: 0 18px 42px rgba(23, 53, 52, 0.1);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

/* Base */
html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  color: var(--text);
  background: var(--bg);
}

.page-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(49, 166, 152, 0.14), transparent 44%),
    radial-gradient(circle at 90% 20%, rgba(214, 240, 233, 0.8), transparent 38%),
    linear-gradient(180deg, #f8fdfc 0%, #f0faf8 100%);
  z-index: -1;
}

/* Layout */
.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(248, 253, 252, 0.82);
  border-bottom: 1px solid rgba(202, 232, 226, 0.6);
  z-index: 20;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.hero {
  padding: 64px 0 38px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

h1 {
  margin: 16px auto 14px;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  max-width: 16ch;
}

/* Specials Grid */
.specials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 30px;
}

.offer-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-width: 0;
  align-content: start;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.offer-card.featured {
  position: relative;
  border-color: var(--primary);
}

/* Offer Media */
.offer-media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.offer-media span {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.media-laptop {
  background: linear-gradient(140deg, #2f7b74 0%, #49b4a4 100%);
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.media-laptop picture {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.media-laptop img {
  display: block;
  max-width: 100%;
  max-height: 188px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: brightness(0.74);
}

.media-keyboard {
  background: linear-gradient(140deg, #5a6f94 0%, #86a0d1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.media-keyboard picture {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  max-width: 100%;
  max-height: 100%;
}

.media-keyboard img {
  display: block;
  max-width: 100%;
  max-height: 188px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.media-monitor {
  background: linear-gradient(140deg, #49607b 0%, #6ca8ba 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.media-monitor picture {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  max-width: 100%;
  max-height: 100%;
}

.media-monitor img {
  display: block;
  max-width: 100%;
  max-height: 188px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.media-audio {
  background: linear-gradient(140deg, #6a5d8c 0%, #8f8ab6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.media-audio picture {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  max-width: 100%;
  max-height: 100%;
}

.media-audio img {
  display: block;
  max-width: 100%;
  max-height: 188px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.media-storage {
  background: linear-gradient(140deg, #607554 0%, #8fa777 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.media-storage picture {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  max-width: 100%;
  max-height: 100%;
}

.media-storage img {
  display: block;
  max-width: 100%;
  max-height: 188px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.media-office {
  background: linear-gradient(140deg, #8a5f52 0%, #d08f73 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.media-office picture {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  max-width: 100%;
  max-height: 100%;
}

.media-office img {
  display: block;
  max-width: 100%;
  max-height: 188px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Offer Content */
.offer-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
  min-width: 0;
  width: 100%;
  padding-top: 34px;
}

.badge {
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  background: rgba(49, 166, 152, 0.18);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
}

.offer-content > h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
  min-height: 4.8em;
  overflow-wrap: anywhere;
}

.offer-card-compact-title .offer-content > h2 {
  min-height: 2.4em;
}

.desc {
  color: var(--muted);
  margin: 10px 0 14px;
  font-size: 0.98rem;
}

.feature-title {
  font-size: 0.95rem;
  margin: 0 0 10px;
  color: var(--text);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.old-price {
  text-decoration: line-through;
  color: #7d9693;
}

.new-price {
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--primary-dark);
}

ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: #264a47;
}

li {
  margin-bottom: 6px;
}

/* Claim Section */
.claim {
  padding: 20px 0 56px;
}

.claim-panel {
  background: linear-gradient(110deg, #ffffff 0%, #e9f8f5 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.claim-panel p {
  color: var(--muted);
  margin-top: 8px;
  margin-inline: auto;
  max-width: 60ch;
}

.cta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Footer */
.footer {
  padding: 8px 0 30px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.topbar .btn {
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: #ffffff;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-ghost {
  border: 1px solid rgba(49, 166, 152, 0.35);
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: rgba(223, 244, 239, 0.8);
}

.btn:focus-visible {
  outline: 3px solid rgba(49, 166, 152, 0.35);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 980px) {
  .specials {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100%, calc(100vw - 28px));
  }

  .topbar-inner {
    min-height: 68px;
    gap: 12px;
  }

  .topbar .btn {
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .brand-logo {
    height: 38px;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .eyebrow {
    font-size: 0.76rem;
  }

  h1 {
    margin-top: 14px;
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    max-width: 12ch;
  }

  .specials {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .offer-card {
    padding: 18px;
  }

  .offer-media {
    height: 150px;
    padding: 12px;
  }

  .offer-content {
    padding-top: 28px;
  }

  .offer-content > h2,
  .offer-card-compact-title .offer-content > h2 {
    font-size: 1.16rem;
    min-height: 0;
  }

  .desc,
  ul {
    font-size: 0.95rem;
  }

  .price-row {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .new-price {
    font-size: 1.38rem;
  }

  .claim-panel {
    padding: 22px;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }
}
