:root {
  color-scheme: light;
  --ink: #111a1c;
  --muted: #637073;
  --paper: #f4fbff;
  --surface: #ffffff;
  --surface-cool: #eef8f7;
  --line: #d8e7e5;
  --primary: #0c6f72;
  --primary-dark: #073f42;
  --accent: #cfecea;
  --accent-warm: #f2bd6b;
  --aqua: #168d98;
  --berry: #d84f76;
  --shadow: 0 18px 44px rgba(17, 26, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.announcement {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.topbar-inner,
.hero,
.value-strip,
.shop-panel,
.routines,
.trust-row,
.section,
.closing-cta,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  text-decoration: none;
}

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

.search-control {
  width: min(520px, 52vw);
  height: 42px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-transform: none;
}

.search-control input::placeholder {
  color: #99a7a9;
}

.hero-product:focus-visible,
.hero-mini:focus-visible,
.button:focus-visible,
.category-row button:focus-visible,
.routine-buttons button:focus-visible {
  outline: 3px solid rgba(22, 141, 152, 0.28);
  outline-offset: 3px;
}

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.76fr);
  gap: 38px;
  align-items: center;
  padding: 58px 0 42px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 28px -24px 24px;
  border-radius: 8px;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 255, 0.94) 46%, rgba(232, 247, 239, 0.7) 100%),
    url("assets/pantry-hero.svg"),
    radial-gradient(circle at 84% 18%, rgba(207, 236, 234, 0.82), transparent 27%),
    linear-gradient(135deg, #ffffff 0%, #effbff 48%, #e8f7ef 100%);
  background-position:
    center,
    right 24px top 18px,
    center,
    center;
  background-repeat: no-repeat;
  background-size:
    auto,
    min(62%, 720px) auto,
    auto,
    auto;
  border: 1px solid rgba(216, 231, 229, 0.84);
  z-index: -1;
}

.hero-copy {
  max-width: none;
  padding-left: 8px;
  position: relative;
  z-index: 1;
}

.hero-title-lockup {
  max-width: 640px;
  position: relative;
}

.lede,
.hero-actions,
.hero-proof {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  font-size: 58px;
  line-height: 1.02;
  margin: 0 0 18px;
  max-width: 780px;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.lede {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  margin: 0;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 12px 17px;
  text-decoration: none;
  font-weight: 950;
  line-height: 1;
}

.primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 26px rgba(12, 111, 114, 0.22);
}

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

.secondary {
  background: var(--surface);
  color: var(--primary-dark);
}

.hero-proof,
.category-row,
.routine-buttons,
.hero-deal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof {
  margin-top: 28px;
}

.hero-proof span,
.category-row button,
.routine-buttons button,
.hero-deal-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
  text-decoration: none;
}

.category-row button {
  font: inherit;
  cursor: pointer;
}

.category-row button[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.hero-board {
  min-height: 520px;
  display: grid;
  align-content: start;
  gap: 16px;
  border: 1px solid rgba(12, 111, 114, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 56px rgba(17, 26, 28, 0.12);
  padding: 22px;
  position: relative;
  backdrop-filter: blur(10px);
}

.hero-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-board-head span {
  color: var(--muted);
}

.hero-product {
  border: 1px solid rgba(12, 111, 114, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(17, 26, 28, 0.1);
  color: inherit;
  text-decoration: none;
}

.hero-product:hover,
.hero-mini:hover {
  border-color: rgba(22, 141, 152, 0.42);
  box-shadow: 0 18px 42px rgba(17, 26, 28, 0.14);
  transform: translateY(-1px);
}

.hero-product.featured {
  min-height: 252px;
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) 1fr;
  align-items: center;
  gap: 22px;
  padding: 22px;
}

.hero-product img,
.hero-mini img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 18px rgba(17, 26, 28, 0.12));
}

.hero-product.featured img {
  max-height: 210px;
}

.hero-product span,
.hero-mini span {
  color: var(--aqua);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-product h2 {
  margin: 8px 0 8px;
  font-size: 30px;
  line-height: 1.08;
}

.hero-product p {
  margin: 0;
  color: var(--primary);
  font-size: 25px;
  font-weight: 950;
}

.hero-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-mini {
  min-height: 156px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 9px;
  border: 1px solid rgba(12, 111, 114, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 14px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(17, 26, 28, 0.08);
}

.hero-mini img {
  min-height: 100px;
  max-height: 112px;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 26px;
}

.value-strip div {
  min-height: 108px;
  display: grid;
  gap: 7px;
  align-content: center;
  background: var(--surface);
  padding: 18px;
}

.value-strip strong,
.shop-panel h2,
.trust-row strong,
.closing-cta h2 {
  color: var(--ink);
}

.value-strip strong {
  font-size: 17px;
}

.value-strip span,
.trust-row span {
  color: var(--muted);
  line-height: 1.45;
}

.shop-panel {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--primary-dark);
  color: #fff;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: center;
}

.shop-panel .eyebrow {
  color: #cfecea;
}

.shop-panel h2 {
  color: #fff;
  font-size: 30px;
  line-height: 1.12;
  margin: 0;
}

.routine-buttons {
  justify-content: flex-end;
}

.routine-buttons button {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.routine-buttons button[aria-pressed="true"] {
  background: #fff;
  border-color: #fff;
  color: var(--primary-dark);
}

.routines {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 28px;
}

.routines article {
  min-height: 182px;
  background: var(--surface);
  padding: 22px;
}

.routines span {
  display: inline-block;
  color: var(--berry);
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 20px;
}

.routines h2,
.section h2,
.closing-cta h2 {
  font-size: 31px;
  line-height: 1.12;
  margin: 0 0 10px;
}

.routines h2 {
  font-size: 21px;
}

.routines p,
.section-note,
.footer p {
  color: var(--muted);
  line-height: 1.56;
  margin: 0;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 6px 0 38px;
}

.trust-row div {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.trust-row strong {
  line-height: 1.28;
}

.section {
  padding: 18px 0 42px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.section-note {
  max-width: 560px;
}

.results-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  margin: -4px 0 12px;
}

.category-row {
  margin-bottom: 18px;
}

.category-row button {
  background: var(--surface);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  min-height: 382px;
  display: flex;
  flex-direction: column;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 111, 114, 0.34);
  box-shadow: 0 16px 38px rgba(17, 26, 28, 0.1);
}

.product-image {
  height: 238px;
  border-radius: 8px;
  background: var(--surface-cool);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  display: block;
  filter: drop-shadow(0 12px 16px rgba(17, 26, 28, 0.14));
}

.guide-art {
  width: 82px;
  height: 112px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(17, 26, 28, 0.16);
  box-shadow: 0 12px 20px rgba(17, 26, 28, 0.12);
  position: relative;
}

.guide-art::before,
.guide-art::after,
.guide-art span {
  content: "";
  position: absolute;
}

.guide-art::before {
  left: 12px;
  right: 12px;
  top: 14px;
  height: 42px;
  border-radius: 4px;
  background: var(--aqua);
}

.guide-art::after {
  left: 14px;
  right: 14px;
  bottom: 18px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-warm);
}

.guide-art span {
  left: 14px;
  right: 14px;
  bottom: 34px;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}

.tag,
.tone {
  font-size: 12px;
  font-weight: 950;
}

.tag {
  color: var(--aqua);
}

.tone {
  color: var(--berry);
  text-align: right;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.2;
}

.card-commerce {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.mini-meta {
  display: grid;
  justify-items: end;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.mini-meta strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.card-button {
  width: 100%;
  color: #fff;
  background: var(--aqua);
  border-color: var(--aqua);
}

.card-button:hover {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.card-button[data-disabled="true"] {
  color: var(--muted);
  background: #eef3ef;
  border-color: var(--line);
  pointer-events: none;
}

.empty-state {
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 18px;
  font-weight: 850;
}

.empty-state p {
  margin: 0 0 12px;
}

.empty-state button {
  min-height: 40px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  padding: 9px 13px;
  font: inherit;
  font-weight: 950;
}

.closing-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(207, 236, 234, 0.76), transparent 45%),
    var(--surface);
  padding: 26px;
  margin-bottom: 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.closing-cta h2 {
  margin-bottom: 0;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 38px;
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 8px;
}

.footer strong {
  color: var(--ink);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  display: block;
}

.footer p {
  max-width: 980px;
}

.fine-print {
  font-size: 11px;
  color: #7e8a8d;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-title-lockup {
    max-width: 680px;
  }

  .hero-board {
    min-height: auto;
  }

  .grid,
  .routines,
  .trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 880px) {
  h1 {
    font-size: 42px;
  }

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

  .routine-buttons {
    justify-content: flex-start;
  }

  .section-head {
    display: block;
  }

  .section-note {
    margin-top: 8px;
  }
}

@media (max-width: 620px) {
  .topbar-inner,
  .hero,
  .value-strip,
  .shop-panel,
  .routines,
  .trust-row,
  .section,
  .closing-cta,
  .footer {
    width: min(100% - 24px, 1180px);
    max-width: calc(100vw - 24px);
  }

  .announcement {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
  }

  .topbar-inner {
    min-height: auto;
    padding: 10px 0;
    align-items: stretch;
    flex-direction: column;
  }

  .header-right {
    width: 100%;
    display: block;
    justify-content: stretch;
  }

  .brand {
    font-size: 18px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .nav {
    display: none;
  }

  .search-control {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
    gap: 24px;
    overflow: hidden;
  }

  .hero::before {
    inset: 18px -12px 16px;
    background-position:
      center,
      right -130px top 10px,
      center,
      center;
    background-size:
      auto,
      620px auto,
      auto,
      auto;
  }

  h1 {
    font-size: 34px;
  }

  .hero-title-lockup {
    max-width: 100%;
  }

  .lede {
    font-size: 17px;
    max-width: 100%;
  }

  .hero-proof {
    max-width: calc(100vw - 40px);
  }

  .hero-proof span {
    max-width: 100%;
  }

  .hero-board {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    gap: 12px;
    overflow: hidden;
  }

  .hero-board-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .hero-product.featured {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
    padding: 16px;
  }

  .hero-product-grid,
  .grid,
  .routines,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .hero-product.featured img {
    max-height: 210px;
  }

  .hero-product h2 {
    font-size: 25px;
  }

  .hero-mini {
    min-height: 132px;
  }

  .hero-mini img {
    min-height: 84px;
    max-height: 94px;
  }

  .closing-cta {
    display: grid;
  }
}
