.offer-body {
  min-width: 320px;
  background: var(--paper);
}

.offer-body [hidden] {
  display: none !important;
}

.offer-header {
  grid-template-columns: auto 1fr;
}

.offer-back-link {
  justify-self: end;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 2px;
}

.offer-back-link:hover {
  color: var(--ink);
}

.offer-main {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(560px, 1.28fr);
}

.offer-intro,
.offer-workspace {
  min-height: 100svh;
  padding: clamp(130px, 14vh, 180px) clamp(28px, 5vw, 84px) clamp(58px, 8vw, 110px);
}

.offer-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 70px;
  background: var(--moss-deep);
  color: #f4f0e8;
}

.offer-eyebrow,
.offer-card-kicker {
  margin: 0 0 18px;
  color: #d8b78f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offer-intro h1 {
  max-width: 7ch;
  margin: 0 0 30px;
  font-size: clamp(68px, 7.2vw, 118px);
  line-height: 0.86;
}

.offer-lead {
  max-width: 540px;
  color: rgba(244, 240, 232, 0.72);
  font-size: clamp(18px, 1.6vw, 23px);
}

.offer-promise {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  border-top: 1px solid rgba(244, 240, 232, 0.2);
  color: rgba(244, 240, 232, 0.72);
  padding-top: 24px;
}

.offer-promise span {
  color: #d8b78f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.offer-promise p {
  margin: 0;
  font-size: 14px;
}

.offer-workspace {
  display: grid;
  align-items: center;
  background:
    linear-gradient(rgba(37, 35, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 35, 31, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
}

.offer-code-card,
.offer-result {
  width: min(100%, 820px);
  margin-inline: auto;
  border: 1px solid var(--line);
  background: rgba(247, 243, 235, 0.96);
  box-shadow: 14px 18px 36px -20px rgba(48, 48, 48, 0.3);
  padding: clamp(30px, 5vw, 66px);
}

.offer-code-card h2,
.offer-result h2,
.offer-dialog h2 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 72px);
}

.offer-code-card > p:not(.offer-card-kicker, .offer-help) {
  max-width: 540px;
  color: var(--muted);
  font-size: 18px;
}

.offer-code-form {
  margin-top: 42px;
}

.offer-code-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offer-code-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 2px solid var(--ink);
}

.offer-code-entry input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 750;
  letter-spacing: 0.06em;
  outline: 0;
  padding: 16px 12px 16px 0;
  text-transform: uppercase;
}

.offer-code-entry input::placeholder {
  color: rgba(117, 110, 100, 0.52);
}

.offer-code-entry button,
.offer-accept-button,
.offer-dialog-confirm {
  border: 0;
  background: var(--clay);
  color: #fffaf2;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 24px;
}

.offer-code-entry button:hover,
.offer-accept-button:hover,
.offer-dialog-confirm:hover {
  background: #914c34;
}

.offer-code-error {
  min-height: 24px;
  margin: 12px 0 0;
  color: #9d342d;
  font-size: 14px;
}

.offer-help {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.offer-help a {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
}

.offer-result {
  padding: clamp(28px, 4vw, 54px);
}

.offer-result-head,
.offer-result-title,
.offer-result-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.offer-result-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.offer-number {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.offer-status {
  border-radius: 999px;
  background: rgba(63, 73, 56, 0.12);
  color: var(--moss-deep);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding: 8px 13px;
  text-transform: uppercase;
}

.offer-status.is-expired {
  background: rgba(157, 52, 45, 0.1);
  color: #9d342d;
}

.offer-result-title {
  margin: 34px 0;
}

.offer-result-title h2 {
  margin-bottom: 12px;
  font-size: clamp(36px, 4vw, 58px);
}

.offer-result-title p:not(.offer-price) {
  color: var(--muted);
}

.offer-price {
  flex: 0 0 auto;
  margin: 0;
  text-align: right;
}

.offer-price span,
.offer-price small {
  display: block;
}

.offer-price span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
}

.offer-price small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.offer-countdown-block {
  background: var(--moss-deep);
  color: #f4f0e8;
  padding: 24px clamp(20px, 3vw, 34px);
}

.offer-countdown-block > p {
  margin-bottom: 16px;
  color: rgba(244, 240, 232, 0.68);
  font-size: 12px;
}

.offer-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.offer-countdown > span {
  display: grid;
  gap: 4px;
  border-left: 1px solid rgba(244, 240, 232, 0.18);
  padding-left: clamp(10px, 2vw, 22px);
}

.offer-countdown > span:first-child {
  border-left: 0;
  padding-left: 0;
}

.offer-countdown strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1;
}

.offer-countdown small {
  color: rgba(244, 240, 232, 0.62);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-items {
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.offer-items h3 {
  font-family: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.offer-items ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.offer-items li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: var(--muted);
}

.offer-items li::before {
  color: var(--clay);
  content: "✓";
  font-weight: 850;
}

.offer-result-actions {
  align-items: center;
  margin-top: 30px;
}

.offer-accept-button {
  min-height: 54px;
  padding-inline: 30px;
}

.offer-accept-button:disabled {
  background: var(--muted);
  cursor: default;
}

.offer-other-code,
.offer-dialog-cancel {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 8px 0;
}

.offer-accepted-note {
  margin: 24px 0 0;
  border-left: 3px solid var(--moss-deep);
  color: var(--moss-deep);
  padding-left: 14px;
}

.offer-dialog {
  width: min(560px, calc(100% - 32px));
  border: 0;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(37, 35, 31, 0.28);
  color: var(--ink);
  padding: 0;
}

.offer-dialog::backdrop {
  background: rgba(37, 35, 31, 0.62);
  backdrop-filter: blur(4px);
}

.offer-dialog form {
  position: relative;
  padding: clamp(30px, 6vw, 58px);
}

.offer-dialog h2 {
  font-size: clamp(42px, 6vw, 66px);
}

.offer-dialog form > p:not(.offer-card-kicker) {
  color: var(--muted);
}

.offer-dialog-close {
  position: absolute;
  top: 20px;
  right: 22px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 30px;
}

.offer-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 34px;
}

.offer-dialog-confirm {
  min-height: 50px;
}

@media (max-width: 980px) {
  .offer-main {
    grid-template-columns: 1fr;
  }

  .offer-intro,
  .offer-workspace {
    min-height: auto;
  }

  .offer-intro {
    gap: 64px;
    padding-top: 140px;
  }

  .offer-intro h1 {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .offer-intro,
  .offer-workspace {
    padding-inline: 20px;
  }

  .offer-workspace {
    padding-block: 54px;
  }

  .offer-code-card,
  .offer-result {
    padding: 26px 20px;
  }

  .offer-code-entry {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .offer-code-entry input {
    border-bottom: 2px solid var(--ink);
  }

  .offer-code-entry button {
    min-height: 52px;
    margin-top: 14px;
  }

  .offer-result-title,
  .offer-result-actions {
    display: grid;
  }

  .offer-price {
    text-align: left;
  }

  .offer-countdown strong {
    font-size: clamp(27px, 9vw, 40px);
  }

  .offer-accept-button {
    width: 100%;
  }

  .offer-other-code {
    justify-self: start;
  }

  .offer-dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .offer-dialog-confirm {
    min-height: 52px;
  }
}
