:root {
  --ink: #14211d;
  --ink-soft: #4f5f59;
  --paper: #f4f6f5;
  --surface: #ffffff;
  --line: #d3dbd7;
  --rope: #e0b340;
  --focus: #1b6b58;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul,
dl,
dd,
figure,
fieldset {
  margin: 0;
  padding: 0;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

.is-hidden {
  display: none;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
}

.brand {
  font-stretch: 125%;
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.demo-tag {
  padding: 1px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.cart-button {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.cart-button__count {
  min-width: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 24px;
  text-align: center;
}

.cart-button__count[data-filled] {
  background: var(--rope);
  color: var(--ink);
}

/* Product, top */

.product__top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 104px);
}

.gallery {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background-color: var(--panel);
  background-image: url('/img/contours.svg');
  background-size: cover;
  background-position: center;
  transition: background-color 240ms ease;
}

.gallery__image {
  width: auto;
  height: 86%;
}

.media {
  display: grid;
  gap: 16px;
}

.gallery-detail {
  overflow: hidden;
  aspect-ratio: 9 / 4;
  border-radius: 14px;
  background-color: var(--panel);
  transition: background-color 240ms ease;
}

.gallery-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__caption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.buy {
  padding-top: clamp(0px, 2vw, 28px);
}

.buy__title {
  font-stretch: 125%;
  font-weight: 650;
  font-size: clamp(2rem, 1.1rem + 2.5vw, 3.125rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.buy__price {
  margin-top: 18px;
  font-size: 1.5rem;
  font-weight: 500;
}

.buy__pitch {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--ink-soft);
}

.buy__offer {
  margin-top: 16px;
  max-width: 46ch;
  padding-left: 12px;
  border-left: 3px solid var(--rope);
  font-weight: 500;
}

.buy__form {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

.swatches {
  border: 0;
}

.swatches legend {
  padding: 0;
  font-weight: 500;
}

.swatches__row {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}

.swatch {
  display: grid;
  justify-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.swatch__dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgb(20 33 29 / 0.18);
}

.swatch input:checked + .swatch__dot {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.swatch input:checked ~ .swatch__name {
  color: var(--ink);
}

.swatch input:focus-visible + .swatch__dot {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.protect {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.protect:has(input:checked) {
  border-color: var(--ink);
}

.protect input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--ink);
}

.protect__body {
  display: grid;
  gap: 2px;
}

.protect__title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
}

.protect__copy {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-stretch: 112%;
  font-weight: 600;
  cursor: pointer;
}

.button:hover {
  background: #22352f;
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  justify-content: center;
  opacity: 0.45;
  cursor: not-allowed;
}

.assurances {
  margin-top: 28px;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.assurances li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

/* Product, details */

.product h2 {
  font-stretch: 116%;
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.25;
}

.product__details {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.about h2 {
  max-width: 18ch;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.about p {
  max-width: 62ch;
  margin-top: 20px;
}

.features {
  max-width: 62ch;
  margin-top: 24px;
  padding-left: 1.15em;
}

.features li {
  padding: 3px 0 3px 4px;
}

.features li::marker {
  color: var(--ink-soft);
}

.specs dl {
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
}

.specs dl div,
.rates div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.specs dt,
.rates dt {
  color: var(--ink-soft);
}

.specs dd,
.rates dd {
  text-align: right;
}

.accordion {
  max-width: 62ch;
  margin-top: 28px;
  border-block: 1px solid var(--line);
}

.accordion summary {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

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

.accordion summary::after {
  content: '+';
  color: var(--ink-soft);
}

.accordion[open] summary::after {
  content: '\2212';
}

.accordion p {
  margin: 0 0 16px;
}

.product .inbox__heading {
  margin-top: 40px;
}

.inbox {
  margin-top: 14px;
  padding-left: 1.15em;
}

.inbox li {
  padding: 3px 0 3px 4px;
}

.specs p {
  margin-top: 14px;
}

.text-link {
  text-underline-offset: 3px;
}

.product__service {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--ink);
  font-size: 1rem;
}

.product__service p {
  margin-top: 14px;
}

.rates {
  margin-top: 14px;
  border-bottom: 1px solid var(--line);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 28px;
}

/* Cart */

.cart {
  width: min(430px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 28px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
}

.cart::backdrop {
  background: rgb(20 33 29 / 0.4);
}

.cart[open] {
  animation: cart-in 200ms ease-out;
}

@keyframes cart-in {
  from {
    transform: translateX(32px);
    opacity: 0;
  }
}

.cart__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.cart__head h2 {
  font-stretch: 116%;
  font-weight: 600;
  font-size: 1.375rem;
}

.cart__close {
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cart__empty {
  margin-top: 28px;
  color: var(--ink-soft);
}

.cart__lines {
  margin-top: 24px;
  list-style: none;
}

.cart__line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.cart__line-name {
  font-weight: 500;
}

.cart__line-meta {
  grid-column: 1;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.cart__remove {
  grid-column: 1;
  justify-self: start;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cart__totals {
  margin-bottom: 24px;
  border-top: 1px solid var(--ink);
}

.cart__totals div {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
}

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

.cart__total dt,
.cart__total dd {
  color: var(--ink);
  font-weight: 600;
}

.cart__note {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Purchase flow pages */

a.cart-button {
  text-decoration: none;
}

.button--small {
  display: inline-flex;
  width: auto;
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
  text-decoration: none;
}

a.button {
  text-decoration: none;
}

.cart-page,
.checkout,
.order {
  padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 104px);
}

.cart-page h1,
.checkout h1,
.order h1 {
  font-stretch: 125%;
  font-weight: 650;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.08;
}

.cart-page__grid,
.checkout__grid,
.order__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 28px;
}

.cart-page .cart__lines {
  margin-top: 0;
  border-bottom: 1px solid var(--line);
}

.plus-offer {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.plus-offer--on {
  border-color: var(--ink);
}

.plus-offer__title {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

.plus-offer p + p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.plus-offer .button--small,
.plus-offer .text-link {
  margin-top: 14px;
}

.plus-offer .text-link {
  display: inline-block;
}

.plus-widget {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--surface);
}

.plus-widget__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plus-widget__badge {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-stretch: 112%;
  font-weight: 600;
  font-size: 0.875rem;
}

.plus-widget__price {
  font-weight: 600;
}

.plus-widget__badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.plus-widget__tag {
  padding: 2px 10px;
  border: 1px solid var(--rope);
  border-radius: 999px;
  background: #fbf3d9;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
}

.plus-widget__adoption {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.summary .summary__plus--off {
  background: #fbf3d9;
}

.plus-widget__title {
  margin-top: 12px;
  font-weight: 500;
}

.plus-widget__list {
  margin-top: 6px;
  padding-left: 1.15em;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.plus-widget__list li {
  padding: 2px 0;
}

.plus-widget + .button {
  margin-top: 14px;
}

.plus-card {
  margin: 8px 0 16px;
}

.plus-card__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plus-card__icon {
  display: flex;
  color: var(--ink);
}

.plus-card__copy {
  flex: 1;
  min-width: 0;
}

.plus-card__name {
  font-weight: 600;
  line-height: 1.2;
}

.plus-card__desc {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.3;
}

.plus-card__amount {
  margin-left: auto;
  font-weight: 600;
}

.button--plus {
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.plus-card__skip {
  display: block;
  margin-top: 16px;
  color: var(--ink);
  font-size: 1rem;
  text-align: center;
  text-underline-offset: 4px;
}

.plus-widget__skip {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-align: center;
  text-underline-offset: 3px;
}

.cart .cart__totals {
  margin-bottom: 0;
}

.summary {
  padding: 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.summary .cart__totals {
  margin-bottom: 20px;
  border-top: 0;
}

.summary .plus-widget {
  margin-top: 0;
}

.summary .summary__plus {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.summary .cart__totals div:first-child {
  padding-top: 0;
}

.summary .cart__note {
  margin-top: 14px;
  text-align: center;
}

.checkout__form {
  display: grid;
  gap: 32px;
}

.checkout__form h2 {
  font-stretch: 116%;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0 12px;
}

.option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.option:has(input:checked) {
  border-color: var(--ink);
}

.option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

.checkout .protect {
  margin-top: 8px;
}

.order__eyebrow {
  color: var(--ink-soft);
}

.order__number {
  margin-top: 16px;
  font-size: 1.25rem;
}

.order__note {
  margin-top: 12px;
  padding: 14px 16px;
  border-left: 3px solid var(--rope);
  background: var(--surface);
}

.order__grid p + p {
  margin-top: 12px;
}

.order .cart__totals {
  margin-bottom: 0;
}

.plus {
  padding-bottom: clamp(56px, 8vw, 104px);
}

.plus__facts {
  max-width: 72ch;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
}

.plus__facts div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

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

/* Standalone text pages */

.doc {
  max-width: 720px;
  padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 104px);
}

.doc h1 {
  margin-top: 20px;
  font-stretch: 125%;
  font-weight: 650;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.08;
}

.doc h2 {
  margin-top: 40px;
  font-stretch: 116%;
  font-weight: 600;
  font-size: 1.1875rem;
}

.doc p {
  margin-top: 14px;
}

.doc__list {
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
}

.doc__list div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.doc__list dt {
  font-weight: 500;
}

.doc__list dd {
  color: var(--ink-soft);
}

/* Not found */

.missing {
  padding-block: clamp(64px, 12vw, 160px);
}

.missing h1 {
  font-stretch: 125%;
  font-weight: 650;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.08;
}

.missing p {
  margin-top: 16px;
}

/* Small screens */

@media (max-width: 860px) {
  .product__top,
  .product__details,
  .product__service,
  .cart-page__grid,
  .checkout__grid,
  .order__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .plus__facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .gallery {
    aspect-ratio: 5 / 5.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery,
  .gallery-detail,
  .cart[open] {
    transition: none;
    animation: none;
  }
}
