:root {
  color-scheme: light;
  --ink: #11110f;
  --muted: #615c54;
  --line: #ddd1c2;
  --paper: #f6efe4;
  --paper-strong: #fffaf1;
  --white: #ffffff;
  --coral: #f0643c;
  --coral-dark: #c74328;
  --lime: #d9f22f;
  --blue: #9dccf3;
  --silver: #ebe4d9;
  --shadow: 0 18px 48px rgba(17, 17, 15, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  background: rgba(246, 239, 228, 0.94);
  border-bottom: 1px solid rgba(17, 17, 15, 0.12);
  backdrop-filter: blur(18px);
}

.brand,
.header-nav a {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ink);
}

.brand-mark img {
  width: 100%;
  height: 100%;
}

.header-nav {
  display: none;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.icon-button,
.debug-toggle,
.sticky-cta button,
.state-buttons button,
.occasion-chips button,
.angle-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 850;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  white-space: nowrap;
}

.icon-button.is-disabled,
.sticky-cta button.is-disabled,
.secondary-button:disabled {
  opacity: 0.72;
}

.cart-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.78rem;
}

.hero {
  display: grid;
  gap: 18px;
  padding: 14px 14px 34px;
  background:
    linear-gradient(180deg, #fff9ee 0%, var(--paper) 72%),
    var(--paper);
}

.hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.concept-note {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(217, 242, 47, 0.38);
  border-radius: var(--radius);
  background: rgba(17, 17, 15, 0.88);
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.descriptor {
  margin: 0;
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 0;
  overflow-wrap: anywhere;
  font-size: 2.45rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subhead {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.truth-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.truth-strip span {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

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

.angle-button {
  min-height: 32px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.angle-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.pack-selector {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 760px;
}

.section-heading.compact {
  max-width: none;
}

.section-heading h2,
.image-band h2 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading.compact h2 {
  margin-bottom: 4px;
  font-size: 1.2rem;
  line-height: 1.1;
}

.section-heading.compact p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.section-heading p,
.image-band p,
.trust-list p,
.routine-steps p,
.faq p,
.label-copy p,
.state-lab p {
  color: var(--muted);
  line-height: 1.55;
}

.pack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pack-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  grid-template-areas:
    "image name"
    "image price"
    "image unit"
    "image fit";
  gap: 4px 10px;
  min-height: 122px;
  padding: 10px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--ink);
}

.pack-card-image {
  grid-area: image;
  align-self: stretch;
  width: 86px;
  height: 100%;
  min-height: 102px;
  border: 1px solid rgba(17, 17, 15, 0.08);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
  background: var(--silver);
}

.pack-card.is-selected {
  border-color: var(--ink);
  background: #fffef2;
  box-shadow: inset 0 0 0 2px var(--lime);
}

.pack-name {
  grid-area: name;
  color: var(--coral-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.pack-price {
  grid-area: price;
  font-size: 1.45rem;
  font-weight: 950;
}

.pack-unit {
  grid-area: unit;
}

.pack-fit {
  grid-area: fit;
}

.pack-unit,
.stock-line,
.mini-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.pack-fit {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.stock-line {
  margin-bottom: 0;
  padding: 9px 10px;
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}

.status-panel {
  padding: 10px;
  border: 1px solid #efc4ad;
  border-radius: var(--radius);
  background: #fff4ec;
  color: #6b4639;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.primary-button[aria-disabled="true"] {
  opacity: 0.78;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-weight: 900;
}

.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.secondary-button {
  border: 1px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
}

.full {
  width: 100%;
}

.image-band,
.section-pad {
  padding: 48px 16px;
}

.image-band {
  display: grid;
  gap: 24px;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
}

.image-band-light {
  background: var(--paper-strong);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.image-band p {
  color: rgba(255, 250, 241, 0.76);
}

.image-band-light p {
  color: var(--muted);
}

.image-band img,
.label img {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 15, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-band img {
  max-height: 680px;
  object-fit: cover;
}

.routine-steps,
.trust-list {
  display: grid;
  gap: 12px;
}

.routine-steps article,
.trust-list article,
.state-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.routine-steps article,
.trust-list article {
  box-shadow: 0 10px 28px rgba(17, 17, 15, 0.08);
}

.routine-steps span {
  color: var(--coral-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.routine-steps h3,
.trust-list h3 {
  margin: 8px 0;
  font-size: 1.18rem;
}

.routine-steps p,
.trust-list p {
  margin-bottom: 0;
}

.label {
  display: grid;
  gap: 26px;
  background: #fff8ec;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.fact-list div {
  padding: 14px 0;
  border-top: 1px solid rgba(17, 17, 15, 0.16);
}

.fact-list dt {
  margin-bottom: 4px;
  font-weight: 900;
}

.fact-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.comparison-grid {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.comparison-head {
  display: none;
}

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

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.faq summary {
  min-height: 54px;
  padding: 16px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq p {
  margin: 0;
  padding: 16px;
}

.state-lab {
  padding-bottom: 112px;
  background: var(--white);
}

.state-buttons,
.occasion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.state-buttons button,
.occasion-chips button {
  padding: 8px 12px;
}

.state-panel {
  min-height: 110px;
  margin-top: 14px;
  line-height: 1.5;
}

.cart-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.cart-sheet.is-open {
  display: block;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 15, 0.48);
}

.cart-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 8px 8px 0 0;
  background: var(--paper);
  box-shadow: 0 -20px 70px rgba(17, 17, 15, 0.24);
}

.close-button {
  justify-self: end;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 800;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cart-line strong {
  white-space: nowrap;
}

.confirmation {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(17, 17, 15, 0.45);
}

.confirmation[hidden] {
  display: none;
}

.confirmation > div {
  width: min(520px, 100%);
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.debug-toggle {
  position: fixed;
  right: 14px;
  bottom: 88px;
  z-index: 32;
  padding: 8px 12px;
}

.debug-panel {
  position: fixed;
  right: 12px;
  bottom: 138px;
  z-index: 40;
  width: min(420px, calc(100vw - 24px));
  max-height: 42vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.debug-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.debug-head button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
}

.debug-panel pre {
  margin: 0;
  padding: 12px;
  white-space: pre-wrap;
  font-size: 0.78rem;
  line-height: 1.45;
}

.sticky-cta {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 15, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-cta div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sticky-cta strong,
.sticky-cta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-cta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.sticky-cta button {
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
}

@media (min-width: 760px) {
  .site-header {
    padding: 12px 32px;
  }

  .header-nav {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(320px, 0.92fr) minmax(380px, 1fr);
    gap: 28px;
    align-items: start;
    padding: 24px 32px 50px;
  }

  .hero-media {
    position: sticky;
    top: 84px;
  }

  .hero-media img {
    aspect-ratio: 4 / 5;
  }

  h1 {
    font-size: 4.4rem;
  }

  .hero-subhead {
    font-size: 1.08rem;
  }

  .truth-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .pack-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "name"
      "price"
      "unit"
      "fit";
    min-height: 0;
  }

  .pack-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 0.72;
  }

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

  .image-band,
  .section-pad {
    padding: 70px 32px;
  }

  .image-band,
  .label {
    grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
    gap: 42px;
  }

  .routine-steps,
  .trust-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .comparison-row {
    grid-template-columns: 0.7fr 1fr 1fr;
    gap: 18px;
    padding: 16px 18px;
  }

  .comparison-head {
    display: grid;
    background: var(--ink);
    color: var(--paper);
  }

  .comparison-head span:first-child {
    color: var(--paper);
  }

  .cart-panel {
    top: 0;
    bottom: 0;
    left: auto;
    width: min(420px, 100%);
    align-content: start;
    border-radius: 0;
  }
}

@media (min-width: 1100px) {
  .site-header,
  .hero,
  .image-band,
  .section-pad {
    padding-right: 56px;
    padding-left: 56px;
  }

  .hero {
    grid-template-columns: minmax(460px, 0.95fr) minmax(500px, 1fr);
  }

  .section-heading h2,
  .image-band h2 {
    font-size: 3rem;
  }

  .section-heading.compact h2 {
    font-size: 1.25rem;
  }
}
