:root {
  color-scheme: light;
  --ink: #1f2f35;
  --muted: #5f7178;
  --line: #d9e7e8;
  --teal: #3ea0ad;
  --teal-dark: #247887;
  --red: #fa283f;
  --yellow: #f7c844;
  --sand: #f7f3ea;
  --surface: #ffffff;
  --page: #eef6f6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72) 0 38%, rgba(62, 160, 173, 0.12) 38% 100%),
    linear-gradient(25deg, rgba(31, 47, 53, 0.08) 0 18%, transparent 18% 100%),
    radial-gradient(circle at 84% 12%, rgba(247, 200, 68, 0.24), transparent 26%),
    var(--page);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  align-items: start;
  justify-items: center;
  padding: 14px;
}

.checkout-panel {
  width: min(100%, 520px);
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(38, 50, 56, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 26px 80px rgba(31, 47, 53, 0.16);
}

.brand-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
  border-bottom: 0;
  padding: 20px;
  background: transparent;
  color: var(--ink);
  min-width: 0;
  width: 100%;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: min(220px, 76vw);
  height: auto;
  margin-bottom: 0;
}

.hero-card {
  position: relative;
  display: grid;
  min-height: clamp(232px, 61vw, 262px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-content: start;
  overflow: hidden;
  border-radius: 8px;
  padding: clamp(18px, 5vw, 26px);
  padding-bottom: 80px;
  background:
    linear-gradient(180deg, rgba(31, 47, 53, 0.16), rgba(31, 47, 53, 0.42)),
    linear-gradient(135deg, #86b7bf 0%, #ced7cf 45%, #f4d26a 100%);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.hero-card::before,
.hero-card::after {
  position: absolute;
  right: -34px;
  bottom: 34px;
  width: 220px;
  height: 72px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  content: "";
  transform: rotate(-18deg);
}

.hero-card::after {
  right: 70px;
  bottom: -22px;
  width: 170px;
  height: 54px;
  background: rgba(31, 47, 53, 0.12);
}

.hero-card-label,
.hero-card strong,
.hero-card span:not(.hero-card-label) {
  position: relative;
  z-index: 1;
}

.hero-card-label {
  width: max-content;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.hero-card strong {
  margin-top: clamp(16px, 5vw, 24px);
  font-size: clamp(2.06rem, 9.2vw, 2.65rem);
  line-height: 1;
}

.hero-card span:not(.hero-card-label) {
  margin-top: 6px;
  max-width: 11rem;
  font-size: clamp(0.9rem, 4vw, 1rem);
  font-weight: 750;
  opacity: 0.92;
}

.hero-stepper {
  position: absolute;
  right: clamp(18px, 7vw, 34px);
  bottom: clamp(18px, 6vw, 26px);
  left: clamp(18px, 7vw, 34px);
  z-index: 2;
}

.eyebrow {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 13ch;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: capitalize;
}

.hero-text {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.45;
}

.bag-art {
  position: absolute;
  top: clamp(22px, 7vw, 34px);
  right: clamp(18px, 6vw, 30px);
  z-index: 1;
  width: clamp(58px, 17vw, 82px);
  height: clamp(58px, 17vw, 82px);
  color: #ffffff;
  filter: drop-shadow(0 10px 18px rgba(31, 47, 53, 0.22));
  flex: 0 0 auto;
}

.bag-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 20px;
  min-width: 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

legend {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.policy-card {
  grid-column: 1 / -1;
  margin-bottom: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid rgba(247, 200, 68, 0.58);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
  min-width: 0;
}

.policy-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.policy-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-card li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.policy-card li::before {
  position: absolute;
  top: 0.54em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
}

.policy-card p {
  margin: 0;
  border-top: 1px solid rgba(31, 47, 53, 0.09);
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.quantity-control {
  display: grid;
  grid-template-columns: 48px minmax(54px, 1fr) 48px;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(67, 165, 173, 0.56);
  border-radius: 8px;
  background: #ffffff;
}

.quantity-control button,
.quantity-control input {
  width: 100%;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.quantity-control button {
  color: var(--teal-dark);
  cursor: pointer;
}

.quantity-control button:disabled {
  color: #b4bdca;
  cursor: default;
}

.quantity-control input {
  border-right: 1px solid rgba(67, 165, 173, 0.24);
  border-left: 1px solid rgba(67, 165, 173, 0.24);
  appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.hero-card .hero-stepper {
  grid-template-columns: 50px minmax(82px, 1fr) 50px;
  width: auto;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(31, 47, 53, 0.22);
}

.hero-card .hero-stepper button,
.hero-card .hero-stepper input {
  height: 46px;
  color: var(--teal-dark);
}

.hero-card .hero-stepper input {
  border-right-color: rgba(67, 165, 173, 0.22);
  border-left-color: rgba(67, 165, 173, 0.22);
  background: #ffffff;
  color: var(--ink);
}

.hero-card .hero-stepper button:disabled {
  color: #b4bdca;
}

.fields {
  display: grid;
  gap: 0;
  grid-column: 1 / -1;
}

.fields label + label {
  margin-top: 24px;
}

label {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 750;
}

input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 550;
  line-height: 1.2;
}

input:focus {
  border-color: rgba(67, 165, 173, 0.86);
  box-shadow: 0 0 0 3px rgba(67, 165, 173, 0.16);
  outline: none;
}

.summary {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 26px;
  color: var(--muted);
}

.summary strong {
  color: var(--ink);
  font-size: 1.3rem;
}

.submit-button {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: #e6ea3d;
  color: #000000;
  font-size: 1.04rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.submit-button:hover {
  background: #e6ea3d;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-error {
  grid-column: 1 / -1;
  margin: -8px 0 0;
  color: #b42318;
  font-size: 0.95rem;
  line-height: 1.35;
}

.form-error[hidden] {
  display: none;
}

.demo-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

@media (max-width: 380px) {
  .page-shell {
    padding: 10px;
  }

  .checkout-panel {
    border-radius: 7px;
    width: 100%;
  }

  .brand-strip {
    gap: 22px;
    padding: 14px;
  }

  .brand-logo {
    width: min(196px, 76vw);
  }

  .hero-card strong {
    font-size: 2rem;
  }

  .hero-card-label {
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .policy-card {
    padding: 14px;
  }
}
