:root {
  --cream: #fff8df;
  --butter: #ffd84d;
  --coral: #ff6f61;
  --leaf: #55c98b;
  --sky: #52c7f8;
  --blush: #ff8fc1;
  --lavender: #a989ff;
  --mint: #70e0c5;
  --orange: #ffac3d;
  --ink: #29211f;
  --muted: #6d5d56;
  --line: #ead7b5;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(41, 33, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fffaf0;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 56px);
  background: var(--white);
  border-bottom: 1px solid #eee8dc;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--butter);
  font-size: 1.35rem;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 42px;
  color: #3f3a36;
  font-size: 0.98rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.cart-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px 0 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--butter);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.cart-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.8rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(46px, 6vw, 82px) clamp(18px, 5vw, 76px);
  background: #ffd84d url("./assets/looply-hero-clean.png") center right / cover no-repeat;
  border-bottom: 1px solid #e4c03e;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: #a53e4a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: clamp(3.2rem, 5.2vw, 5.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hero-copy::before {
  content: none;
}

.hero-text {
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.trust-row,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(41, 33, 31, 0.16);
}

.button.primary {
  background: #31539b;
  color: var(--white);
}

.button.secondary {
  background: var(--white);
}

.button.full {
  width: 100%;
}

.trust-row {
  margin-top: 24px;
}

.trust-row span {
  padding: 8px 12px;
  border: 2px solid rgba(41, 33, 31, 0.85);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.kit-card {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.kit-card img {
  display: block;
  width: 100%;
  height: auto;
}

.section,
.how-section,
.split-section,
.faq,
.footer {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 76px);
}

.section {
  background: #fffdf6;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading p,
.how-section > div:first-child p,
.custom-copy p,
.faq p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.filters {
  margin-bottom: 24px;
}

.filter {
  min-height: 42px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.filter.active {
  border-color: var(--ink);
  background: var(--coral);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--butter);
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(41, 33, 31, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 10px 12px 0 rgba(41, 33, 31, 0.16);
}

.product-image {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  background: var(--product-bg, var(--butter));
  border-bottom: 3px solid var(--ink);
}

.product-image img {
  width: 82%;
  max-height: 82%;
}

.product-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.product-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.price {
  white-space: nowrap;
  font-weight: 900;
}

.tag {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--tag-bg, var(--butter));
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.product-card .button {
  min-height: 44px;
  margin: 0 16px 16px;
  background: var(--ink);
  color: var(--white);
}

.how-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  background: #f8fbff;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

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

.steps article,
.feature-grid article {
  padding: 22px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(41, 33, 31, 0.12);
}

.steps span {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-weight: 900;
}

.steps p,
.feature-grid p {
  color: var(--muted);
  line-height: 1.45;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
  background: #fffdf6;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 30px;
  position: relative;
  font-weight: 800;
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: #4d8d5d;
  font-weight: 900;
}

.custom-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff6fb;
  box-shadow: 10px 10px 0 var(--lavender);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

input,
select {
  height: 48px;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(245, 143, 124, 0.18);
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: #4d8d5d;
  font-weight: 900;
}

.soft-band {
  background: var(--butter);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.faq {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 34px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 4px 4px 0 rgba(41, 33, 31, 0.09);
}

summary {
  cursor: pointer;
  padding: 18px;
  font-weight: 900;
}

details p {
  padding: 0 18px 18px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  justify-items: end;
  background: rgba(59, 47, 42, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cart-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100%);
  height: 100%;
  background: #fff8df;
  box-shadow: -20px 0 50px rgba(59, 47, 42, 0.18);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.cart-header,
.cart-footer,
.cart-item {
  padding: 18px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0;
  font-size: 1.7rem;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.cart-items {
  overflow: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  background: var(--white);
  object-fit: contain;
}

.cart-item h3 {
  margin: 0;
  font-size: 1rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}

.qty button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.qty span {
  min-width: 28px;
  text-align: center;
  font-weight: 900;
}

.cart-empty {
  padding: 24px 18px;
  color: var(--muted);
  text-align: center;
}

.cart-footer {
  border-top: 1px solid var(--line);
}

.subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.cart-footer p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: center;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer p {
  margin: 10px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .how-section,
  .split-section,
  .faq {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-bottom: 50vw;
    background: #ffd84d url("./assets/looply-hero-clean.png") right bottom / 120% auto no-repeat;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    font-size: 1.2rem;
  }

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

  .cart-button span:first-child {
    display: none;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 76vw;
    background-size: 172% auto;
    background-position: 75% bottom;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .product-grid,
  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .how-section,
  .split-section,
  .faq,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer {
    flex-direction: column;
  }
}
