/* ==========================================================================
   Plan purchase flow (planes.html, planes/*.html)
   ========================================================================== */

.checkout {
  padding-block: 64px 100px;
}

.checkout > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.checkout__header {
  margin-bottom: 32px;
  text-align: center;
}

.checkout__header--tight {
  margin-bottom: 26px;
}

.checkout__title {
  font-size: 26px;
  font-weight: 700;
}

.checkout__lead {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--color-muted);
}

/* ==========================================================================
   Step 1 — plan cards
   Selected state comes from the checked radio (:has), so it works without JS.
   ========================================================================== */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 1240px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.plan-card {
  /* Colours that change with selection */
  --accent: var(--color-subtle);
  --accent-strong: var(--color-muted);
  --check: #C3CBD3;
  --icon-bg: #EEF1F4;
  --icon-fg: var(--color-subtle);

  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-input);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:has(.plan-card__radio:checked) {
  --accent: var(--color-primary);
  --accent-strong: var(--color-ink);
  --check: var(--color-primary);
  --icon-bg: var(--color-primary);
  --icon-fg: #FFFFFF;

  border-color: var(--color-primary);
  background: var(--color-surface);
  /* 1px border + 1px ring = the design's 2px border, without shifting the layout */
  box-shadow: 0 0 0 1px var(--color-primary), 0 0 0 5px var(--color-primary-soft);
  cursor: auto;
}

.plan-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.plan-card__radio {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid #CBD2D9;
  border-radius: 50%;
  background: var(--color-surface);
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.plan-card__radio:checked {
  border-color: var(--color-primary);
  background: radial-gradient(circle, var(--color-primary) 0 5.5px, var(--color-surface) 6px);
}

.plan-card__intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-card__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.2s ease;
}

.plan-card__title {
  font-size: 24px;
  font-weight: 700;
}

.plan-card__title label {
  cursor: inherit;
}

.plan-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-muted);
}

.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.plan-card__amount {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-strong);
  transition: color 0.2s ease;
}

.plan-card__price-note {
  font-size: 13px;
  color: var(--color-muted);
}

.plan-card__cta {
  width: 100%;
  height: 52px;
  border: 1.5px solid #CBD2D9;
  background: transparent;
  color: var(--color-muted);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.plan-card:has(.plan-card__radio:checked) .plan-card__cta {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #FFFFFF;
}

.plan-card__rule {
  height: 1px;
  border: 0;
  background: var(--color-border);
}

.plan-card__features {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 22px;
}

/* A feature group: icon tile + title + checklist */
.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.plan-feature__icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--icon-bg);
  color: var(--icon-fg);
  transition: background 0.2s ease, color 0.2s ease;
}

.plan-feature__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-feature__title {
  font-size: 15px;
  font-weight: 700;
}

.plan-feature__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-feature--roomy .plan-feature__body { gap: 8px; }
.plan-feature--roomy .plan-feature__list { gap: 10px; }

.plan-feature__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
}

.plan-feature__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  background: var(--check);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background 0.2s ease;
}

/* "Descarga un ejemplo de auditoría" */
.plan-card__sample {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 14px 16px;
  border: 1px dashed #D5DBE1;
  border-radius: 14px;
  background: var(--color-surface);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.plan-card__sample-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-muted);
}

.plan-card__sample-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
}

.plan-card__sample-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-subtle);
}

.plan-card:has(.plan-card__radio:checked) .plan-card__sample {
  border-color: #B9D1F8;
  background: #F5F9FF;
}

.plan-card:has(.plan-card__radio:checked) .plan-card__sample-icon {
  border-color: #DCE8FB;
  color: var(--color-primary);
}

.plan-card:has(.plan-card__radio:checked) .plan-card__sample-title {
  color: var(--color-primary);
}

@media (max-width: 899px) {
  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 600px;
  }
}

@media (max-width: 480px) {
  .plan-card {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   Step 2 — find your restaurant
   ========================================================================== */

.place-search {
  width: 100%;
  max-width: 600px;
}

.place-search__card {
  display: flex;
  flex-direction: column;
  padding: 28px 30px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-surface);
}

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 10px 0 24px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  box-shadow: 0 4px 14px rgba(27, 36, 48, 0.05);
  color: var(--color-subtle);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.search-bar:focus-within {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.search-bar__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--color-ink);
}

.search-bar__input:focus {
  outline: none;
}

.search-bar__input::placeholder {
  color: var(--color-subtle);
}

.search-bar__input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-bar__button {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 22px;
  font-weight: 700;
}

/* Status / error line under the search bar */
.place-search__status {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-muted);
}

.place-search__status:empty {
  display: none;
}

.place-search__status.is-error {
  color: var(--color-danger);
}

.place-search__status a {
  color: inherit;
}

/* Results */
.place-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.place-results__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.place-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.place-option:hover {
  border-color: #CBD2D9;
}

.place-option:has(:checked) {
  border-color: var(--color-primary);
}

.place-option:has(:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.place-option__radio {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  appearance: none;
  cursor: pointer;
}

.place-option__radio:focus-visible {
  outline: none;
}

.place-option__radio:checked {
  border: 2px solid var(--color-primary);
  background: radial-gradient(circle, var(--color-primary) 0 5px, transparent 5.5px);
}

.place-option__pin {
  flex: 0 0 auto;
  color: var(--color-primary);
}

.place-option__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.place-option__name {
  font-size: 15.5px;
  font-weight: 700;
}

.place-option__address {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--color-muted);
}

.place-option__rating {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
}

.stars--sm {
  --star-size: 13px;
  --star-gap: 2px;
}

/* Loading placeholders */
.place-option--skeleton {
  cursor: default;
}

.place-option--skeleton:hover {
  border-color: var(--color-border);
}

.skeleton {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--color-track) 25%, #F6F7F9 50%, var(--color-track) 75%) 0 0 / 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}

.place-results__more {
  align-self: center;
  padding: 6px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-primary);
}

.place-search__continue {
  width: 100%;
  height: 52px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
}

.place-search__continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* "Aún no estoy en Google Maps" */
.place-search__alt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-subtle);
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.place-search__no-listing {
  width: 100%;
  height: 52px;
  gap: 10px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 14.5px;
}

.place-search__alt-note {
  max-width: 480px;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--color-subtle);
}

@media (max-width: 480px) {
  .place-search__card {
    padding: 20px 16px;
  }

  .search-bar {
    height: 56px;
    padding-left: 16px;
    gap: 10px;
  }

  .search-bar__button {
    height: 40px;
    padding: 0 16px;
  }

  .place-option {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
  }

  .place-option__rating {
    width: 100%;
    padding-left: 34px;
  }
}

/* ==========================================================================
   Step 3 — what we'll do for you
   ========================================================================== */

.plan-roadmap {
  width: 100%;
  max-width: 600px;
  padding: 30px 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

/* Plan-specific milestones stay hidden until plan-details.js has picked them */
.js .plan-roadmap:not(.is-ready) [data-plan-only] {
  display: none;
}

.plan-roadmap__eyebrow {
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-subtle);
}

/* Timeline: dot + connector on the left, text, icon on the right */
.milestone {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 0 26px 28px;
}

.milestone:last-child {
  padding-bottom: 2px;
}

.milestone::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
}

.milestone:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  bottom: 2px;
  left: 5.25px;
  width: 1.5px;
  background: var(--color-border);
}

.milestone__body {
  flex: 1;
}

.milestone__when {
  margin-bottom: 3px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.milestone__title {
  margin-bottom: 3px;
  font-size: 15px;
  font-weight: 700;
}

.milestone__text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-muted);
}

.milestone__icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* Reveal: once plan-details.js marks the roadmap ready, milestones appear one
   after another (--i is their order). Each one: dot pops, text rises, icon
   pops, then the connector draws down towards the next dot. */
@keyframes milestone-dot { from { opacity: 0; transform: scale(0.3); } }
@keyframes milestone-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes milestone-pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes milestone-line { from { transform: scaleY(0); } }

.plan-roadmap {
  --ms-start: 0.15s;
  --ms-stagger: 0.42s;
}

.js .plan-roadmap:not(.is-ready) .milestone {
  visibility: hidden;
}

.js .plan-roadmap.is-ready .milestone {
  --ms-at: calc(var(--ms-start) + var(--i, 0) * var(--ms-stagger));
}

.js .plan-roadmap.is-ready .milestone::before {
  animation: milestone-dot 0.35s cubic-bezier(0.34, 1.5, 0.5, 1) var(--ms-at) both;
}

.js .plan-roadmap.is-ready .milestone__body {
  animation: milestone-rise 0.5s cubic-bezier(0.25, 0.85, 0.35, 1) calc(var(--ms-at) + 0.05s) both;
}

.js .plan-roadmap.is-ready .milestone__icon {
  animation: milestone-pop 0.45s cubic-bezier(0.34, 1.45, 0.5, 1) calc(var(--ms-at) + 0.15s) both;
}

.js .plan-roadmap.is-ready .milestone:not(:last-child)::after {
  transform-origin: top;
  animation: milestone-line 0.3s ease-in-out calc(var(--ms-at) + 0.15s) both;
}

@media (prefers-reduced-motion: reduce) {
  .js .plan-roadmap.is-ready .milestone,
  .js .plan-roadmap.is-ready .milestone * {
    animation: none !important;
  }

  .js .plan-roadmap.is-ready .milestone::before,
  .js .plan-roadmap.is-ready .milestone::after {
    animation: none !important;
  }
}

.plan-roadmap__continue {
  width: 100%;
  max-width: 420px;
  height: 54px;
  margin-top: 30px;
  font-size: 15.5px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .plan-roadmap {
    padding: 24px 20px;
  }

  .milestone {
    padding-left: 24px;
  }
}

/* ==========================================================================
   Step 4 — your details (+ payment for paid plans)
   ========================================================================== */

/* Hidden until customer-details.js has picked the plan's layout */
.js .customer-details:not(.is-ready) {
  visibility: hidden;
}

.customer-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 680px;
}

.customer-details__card {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  padding: 36px 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

/* Waiting list notice, shown above the form when the payment can't go ahead */
.payment-notice {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-bottom: 24px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.payment-notice:focus {
  outline: none;
}

.payment-notice__box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid #F0DBA6;
  border-radius: 18px;
  background: #FCF1DC;
  color: #7A5A12;
}

.payment-notice__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.payment-notice__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: #B8760A;
}

.payment-notice__title svg {
  flex: 0 0 auto;
}

.payment-notice__text {
  font-size: 13px;
  line-height: 1.55;
}

.payment-notice__charge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid #F0DBA6;
  font-size: 12.5px;
  line-height: 1.45;
}

.payment-notice__charge svg {
  flex: 0 0 auto;
  color: var(--color-success);
}

.payment-notice__actions {
  display: flex;
  gap: 12px;
}

.payment-notice__button {
  flex: 1;
  height: 52px;
  font-size: 15px;
  font-weight: 700;
}

.payment-notice__button:disabled {
  cursor: progress;
  opacity: 0.75;
}

.payment-notice__button--secondary {
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
}

@media (max-width: 639px) {
  .payment-notice__actions {
    flex-direction: column;
  }

  .payment-notice__button {
    flex: 0 0 auto;
    white-space: normal;
  }
}

/* Restaurant chosen in step 2 */
.order-place {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.order-place__photo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: rgba(255, 255, 255, 0.85);
}

.order-place__info {
  flex: 1;
  min-width: 0;
}

.order-place__name {
  font-size: 17px;
  font-weight: 700;
}

.order-place__address {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-muted);
}

.order-place__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--color-muted);
}

.order-place__rating strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
}

/* Plan chosen in step 1 */
.order-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--color-sand);
}

.order-plan__eyebrow {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.order-plan__name {
  font-size: 18px;
  font-weight: 700;
}

.order-plan__desc {
  max-width: 420px;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-muted);
}

.order-plan__price {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.order-plan__amount {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.order-plan__note {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-subtle);
}

/* Payment (paid plans only) */
.payment {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 26px 0 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.payment__title {
  display: flex;
  float: left; /* lets the legend sit inside the flex column like a normal row */
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
}

.payment__title svg {
  color: var(--color-primary);
}

.payment__provider {
  height: 20px;
  width: auto;
  margin-left: auto;
}

.payment__number {
  letter-spacing: 1px;
}

.payment__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.customer-details__error {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-danger);
}

.customer-details__error:empty {
  display: none;
}

.customer-details__error a {
  color: inherit;
}

.customer-details__submit {
  width: 100%;
  height: 54px;
  margin-top: 6px;
  font-size: 15.5px;
  font-weight: 700;
}

.customer-details__submit:disabled {
  cursor: progress;
  opacity: 0.75;
}

.customer-details__secure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--color-muted);
}

.customer-details__secure-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-success-soft);
  color: var(--color-success);
}

@media (max-width: 639px) {
  .customer-details__card {
    padding: 24px 20px;
  }

  .order-plan {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-plan__price {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

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

@media (max-width: 400px) {
  .order-place__photo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
}

/* ==========================================================================
   Step 5 — all done (same for every plan)
   ========================================================================== */

.js .confirmation:not(.is-ready) {
  visibility: hidden;
}

.confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 520px;
}

.confirmation__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  text-align: center;
}

.confirmation__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-success-soft);
  color: var(--color-success);
  animation: confirmation-pop 0.5s cubic-bezier(0.34, 1.45, 0.5, 1) both;
}

@keyframes confirmation-pop {
  from { transform: scale(0.4); opacity: 0; }
}

.confirmation__title {
  font-size: 28px;
  font-weight: 700;
}

.confirmation__lead {
  max-width: 460px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-muted);
}

.order-summary {
  width: 100%;
  margin-top: 28px;
  padding: 26px 28px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
}

.order-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 700;
}

.order-summary__plan {
  font-size: inherit;
}

.order-summary__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.order-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--color-muted);
}

.order-summary__row dd {
  min-width: 0;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
  color: var(--color-ink);
}

.next-steps {
  width: 100%;
  margin-top: 28px;
}

.next-steps__title {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.next-steps__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: next-step;
}

.next-steps__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-muted);
  counter-increment: next-step;
}

.next-steps__item::before {
  content: counter(next-step);
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
}

.confirmation__home {
  width: 100%;
  max-width: 320px;
  height: 50px;
  margin-top: 32px;
  border: 1.5px solid var(--color-primary);
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 14.5px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .confirmation__icon {
    animation: none;
  }
}

@media (max-width: 480px) {
  .confirmation__title {
    font-size: 24px;
  }

  .order-summary {
    padding: 22px 20px;
  }
}
