@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: oklch(0.965 0.018 78);
  --paper-deep: oklch(0.925 0.028 78);
  --ink: oklch(0.28 0.03 90);
  --ink-soft: oklch(0.47 0.025 84);
  --line: oklch(0.78 0.035 76);
  --accent: oklch(0.55 0.145 35);
  --accent-dark: oklch(0.43 0.12 35);
  --sage: oklch(0.42 0.055 130);
  --success: oklch(0.48 0.105 145);
  --error: oklch(0.48 0.16 28);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --shadow-offset: 10px 10px 0 oklch(0.28 0.03 90 / 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, transparent 0 31px, oklch(0.74 0.045 36 / 0.28) 32px, transparent 33px),
    var(--paper);
}

button,
input,
textarea {
  font: inherit;
}

button,
label,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.test-ribbon {
  position: fixed;
  z-index: 10;
  inset: 50% auto auto -85px;
  transform: rotate(-90deg);
  width: 210px;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  font-family: var(--display);
  font-size: 20px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
}

.brand small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.environment {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.environment-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px oklch(0.48 0.105 145 / 0.13);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

.intro {
  max-width: 790px;
}

.kicker,
.summary-label,
.product-code {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.94;
}

.intro > p:last-child {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 56px 0 48px;
  padding: 0;
  border-block: 1px solid var(--line);
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.steps li + li {
  border-left: 1px solid var(--line);
}

.steps span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
}

.steps .is-current,
.steps .is-complete {
  color: var(--ink);
  font-weight: 700;
}

.steps .is-current span {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.steps .is-complete span {
  border-color: var(--sage);
  color: var(--sage);
}

.stage {
  opacity: 0;
  transform: translateY(10px);
}

.stage.is-active {
  opacity: 1;
  transform: translateY(0);
}

.product-sheet {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  min-height: 520px;
  border: 1px solid var(--ink);
  background: oklch(0.985 0.009 78);
  box-shadow: var(--shadow-offset);
}

.product-visual {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 520px;
  padding: 48px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper-deep);
  background-size: 32px 32px;
}

.bottle {
  position: relative;
  display: grid;
  place-items: center;
  width: 185px;
  height: 280px;
  padding: 32px 16px;
  border: 2px solid var(--ink);
  border-radius: 80px 80px 22px 22px;
  background: var(--paper);
  box-shadow: 14px 14px 0 oklch(0.55 0.145 35 / 0.25);
  text-align: center;
}

.bottle::after {
  content: "";
  position: absolute;
  inset: 78px 0 auto;
  border-top: 1px solid var(--ink);
}

.bottle-cap {
  width: 84px;
  height: 38px;
  margin-bottom: -2px;
  border: 2px solid var(--ink);
  background: var(--sage);
}

.bottle span,
.bottle small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.bottle strong {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
}

.product-copy {
  align-self: center;
  padding: clamp(40px, 7vw, 88px);
}

.product-copy h2,
.form-heading h2,
.order-summary h2,
.success-sheet h2 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
}

.product-purpose,
.form-heading p,
.success-sheet > p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.product-purpose {
  max-width: 54ch;
  margin: 24px 0 32px;
}

.product-facts {
  margin: 0 0 32px;
  border-block: 1px solid var(--line);
}

.product-facts div,
.totals div,
.success-details div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.product-facts div + div,
.totals div + div,
.success-details div + div {
  border-top: 1px solid var(--line);
}

dt {
  color: var(--ink-soft);
}

dd {
  margin: 0;
  font-weight: 700;
}

.primary-action,
.secondary-action {
  min-height: 52px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-weight: 700;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 18px;
  background: var(--accent);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
}

.primary-action:hover {
  background: var(--accent-dark);
  transform: translate(-1px, -1px);
}

.primary-action:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.64;
}

.secondary-action {
  padding: 0 18px;
  background: transparent;
  color: var(--ink);
}

.secondary-action:hover {
  background: var(--paper-deep);
}

.action-note,
.payment-assurance,
.tax-note,
.status-detail {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.action-note {
  margin: 14px 0 0;
  text-align: center;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: start;
  gap: 48px;
}

#checkout-form {
  border-top: 3px solid var(--ink);
}

.form-heading {
  padding: 32px 0 12px;
}

.form-heading p:last-child {
  margin: 16px 0 0;
}

fieldset {
  margin: 0;
  padding: 32px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

legend {
  float: left;
  width: 100%;
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
}

legend + * {
  clear: both;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.field label span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: oklch(0.985 0.009 78);
  color: var(--ink);
  font-size: 16px;
}

.field textarea {
  resize: vertical;
}

.field input:disabled {
  color: var(--ink-soft);
  background: var(--paper-deep);
}

.field small {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 11px;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.choice {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  background: oklch(0.985 0.009 78);
}

.choice + .choice {
  margin-top: 8px;
}

.choice:has(input:checked) {
  border-color: var(--sage);
  box-shadow: inset 4px 0 0 var(--sage);
}

.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--sage);
}

.choice strong,
.choice small {
  display: block;
}

.choice small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.choice b {
  font-size: 13px;
}

.form-message {
  margin: 0 0 18px;
  padding: 14px;
  border-left: 4px solid currentColor;
  font-size: 13px;
  line-height: 1.5;
}

.form-message.error {
  background: oklch(0.93 0.045 28);
  color: var(--error);
}

.payment-assurance {
  margin: 16px auto 0;
  max-width: 64ch;
  text-align: center;
}

.order-summary {
  position: sticky;
  top: 24px;
  padding: 28px;
  border: 1px solid var(--ink);
  background: oklch(0.985 0.009 78);
  box-shadow: var(--shadow-offset);
}

.order-summary h2 {
  font-size: 36px;
}

.summary-product {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  padding-block: 18px;
  border-block: 1px solid var(--line);
}

.summary-thumb {
  display: grid;
  place-items: center;
  width: 48px;
  height: 58px;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  font-family: var(--display);
  font-size: 28px;
}

.summary-product strong,
.summary-product small {
  display: block;
}

.summary-product strong {
  font-size: 12px;
}

.summary-product small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.summary-product b {
  font-size: 13px;
}

.totals {
  margin: 0;
}

.grand-total {
  align-items: baseline;
}

.grand-total dt,
.grand-total dd {
  color: var(--ink);
  font-family: var(--display);
  font-size: 28px;
}

.test-callout {
  margin-top: 24px;
  padding: 16px;
  border-left: 4px solid var(--accent);
  background: var(--paper-deep);
}

.test-callout strong,
.test-callout span {
  display: block;
}

.test-callout span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.success-sheet {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 7vw, 72px);
  border: 1px solid var(--ink);
  background: oklch(0.985 0.009 78);
  box-shadow: var(--shadow-offset);
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border: 2px solid var(--success);
  border-radius: 50%;
  color: var(--success);
  font-size: 30px;
}

.success-sheet > p {
  max-width: 56ch;
  margin: 20px auto 28px;
}

.success-details {
  margin: 28px 0;
  text-align: left;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

@media (prefers-reduced-motion: no-preference) {
  .intro,
  .steps,
  .stage.is-active {
    animation: reveal 420ms ease-out both;
  }

  .steps {
    animation-delay: 60ms;
  }

  .stage.is-active {
    animation-delay: 120ms;
  }

  .primary-action,
  .secondary-action {
    transition:
      transform 160ms ease-out,
      background-color 160ms ease-out,
      box-shadow 160ms ease-out,
      opacity 160ms ease-out;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }
}

@media (max-width: 880px) {
  .product-sheet,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: 380px;
  }

  .order-summary {
    position: static;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  body {
    background: var(--paper);
  }

  .test-ribbon {
    position: static;
    transform: none;
    width: auto;
  }

  .site-header,
  main,
  footer {
    padding-inline: 20px;
  }

  .site-header {
    align-items: flex-start;
  }

  .environment {
    max-width: 110px;
    text-align: right;
  }

  main {
    padding-top: 48px;
  }

  h1 {
    font-size: 48px;
  }

  .steps li {
    justify-content: center;
    font-size: 0;
  }

  .steps span {
    font-size: 11px;
  }

  .product-sheet,
  .order-summary,
  .success-sheet {
    box-shadow: 6px 6px 0 oklch(0.28 0.03 90 / 0.14);
  }

  .product-copy {
    padding: 32px 24px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  footer {
    display: grid;
  }
}
