:root {
  --bg: #f7f3ec;
  --paper: #ffffff;
  --ink: #191714;
  --muted: #706b63;
  --line: #e8dfd2;
  --soft: #fffaf2;
  --accent: #1E2D56;
  --accent-dark: #152142;
  --brand-mark: #CC443A;
  --shadow: 0 18px 60px rgba(35, 28, 19, 0.10);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.95), transparent 36rem),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(18px, 1.7vw, 24px);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--brand-mark);
  color: white;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 30px rgba(204, 68, 58, 0.18);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.page.narrow {
  width: min(780px, calc(100% - 32px));
}

.hero {
  min-height: 120px;
  padding: 14px 0 24px;
  display: grid;
  align-content: center;
}

.eyebrow,
.card-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

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

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

.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(232, 223, 210, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-card.featured {
  min-height: 640px;
}

.product-card.empty {
  padding: 26px;
  color: var(--muted);
}

.switcher-toolbar {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.switcher-counter {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(232, 223, 210, 0.95);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.switcher-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(30, 45, 86, 0.18);
  transition: transform 160ms ease, background 160ms ease;
}

.switcher-next:hover,
.switcher-next:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.switcher-next svg {
  width: 16px;
  height: 16px;
}

.js-switcher-body {
  transition: opacity 180ms ease, transform 180ms ease;
}

.js-switcher-body.is-fading {
  opacity: 0;
  transform: translateY(8px);
}

.image-wrap {
  background: linear-gradient(135deg, #fffdf8, #f0e6d7);
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 18px;
}

.featured .image-wrap {
  min-height: 340px;
}

.image-wrap img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

.featured .image-wrap img {
  height: 330px;
}

.image-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--muted);
  border: 1px dashed var(--line);
  font-weight: 700;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.empty-state {
  justify-content: center;
}

.product-card h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.grid-cards .product-card h3 {
  font-size: 23px;
}

.headline {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.reason,
.branding,
.section-copy {
  margin: 0;
  color: var(--muted);
}

.branding {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f4eee4;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.section-head {
  margin: 54px 0 18px;
}

.section-head h2,
.date-tool h2,
.result-title h2,
.setup-card h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-copy {
  margin-top: 12px;
  max-width: 760px;
}

.date-tool {
  margin: 64px 0 22px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: white;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
}

.date-tool .eyebrow {
  color: #8ca3dc;
}

.date-tool p:not(.eyebrow) {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
}

.date-form {
  min-width: min(460px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.35fr auto;
  gap: 10px;
  align-items: end;
}

.date-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,0.74);
  font-weight: 700;
}

.date-form input,
.date-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255,255,255,0.08);
  color: white;
  outline: none;
}

.date-form select option {
  color: var(--ink);
}

.date-results {
  align-items: stretch;
}

.result-title {
  grid-column: 1 / -1;
  margin: 6px 0 2px;
}

.loading,
.alert,
.setup-card {
  grid-column: 1 / -1;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.alert {
  margin: 0 0 22px;
  display: grid;
  gap: 6px;
  color: #7a2f16;
  background: #fff4ed;
}

.setup-card {
  margin-top: 80px;
}

code {
  background: #f1e8da;
  border-radius: 8px;
  padding: 2px 6px;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .two-cards,
  .grid-cards,
  .date-tool {
    grid-template-columns: 1fr;
  }

  .date-form {
    grid-template-columns: 1fr;
  }

  .product-card.featured {
    min-height: auto;
  }

  .featured .image-wrap,
  .image-wrap {
    min-height: 240px;
  }

  .featured .image-wrap img,
  .image-wrap img {
    height: 230px;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
  }

  .page {
    padding-top: 10px;
  }

  .hero {
    min-height: 90px;
    padding: 10px 0 20px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 17px;
  }

  .switcher-toolbar {
    position: static;
    padding: 18px 18px 0;
    justify-content: space-between;
  }

  .switcher-next span {
    display: none;
  }

  .card-body,
  .date-tool {
    padding: 20px;
  }
}

.seo-faq {
  margin: 64px 0 0;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.seo-faq h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.seo-faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.seo-faq details:last-child {
  padding-bottom: 0;
}

.seo-faq summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--ink);
}

.seo-faq p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 820px;
}
