:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f3f4f8;
  --surface-blue: #e5f1ff;
  --surface-green: #eef8ee;
  --surface-warning: #fff4e5;
  --line: #d6d8eb;
  --line-soft: #e8e8ef;
  --text: #404d59;
  --text-strong: #0b1f33;
  --muted: #86868b;
  --muted-soft: #adadad;
  --blue: #1b6ef2;
  --blue-strong: #1937ff;
  --green: #31ce58;
  --green-strong: #2e7d32;
  --orange: #e65100;
  --error-color: #c53d2f;
  --shadow-panel: 0 0 18.5px rgba(0, 0, 0, 0.13);
  --shadow-card: 0 3px 8px rgba(0, 0, 0, 0.1);
  --radius-panel: 24px;
  --radius-control: 18px;
  --radius-card: 12px;
  --container-width: min(calc(100% - 32px), 1140px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  padding: 17px 20px;
  font-size: 16px;
  line-height: 1.2;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder {
  color: var(--muted);
}

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button,
input::-webkit-search-decoration,
input::-webkit-search-cancel-button,
input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
  appearance: none;
  -webkit-appearance: none;
}

:focus-visible {
  outline: 3px solid rgba(27, 110, 242, 0.22);
  outline-offset: 2px;
}

:where(h1, h2, h3, p, span, strong, a, button, label, small) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: normal;
  border: 0;
}

.page-shell {
  min-height: 100svh;
}

.container {
  width: var(--container-width);
  margin-inline: auto;
}

.masthead {
  padding-top: 18px;
}

.masthead__nav,
.masthead__hero,
.hero-form,
.detail-form,
.services-grid,
.perks-row,
.stats-grid,
.reviews-grid,
.micro-badges,
.payment-panel__heading,
.payment-form,
.rating-banner,
.progress {
  display: grid;
  gap: 12px;
}

.masthead__nav > *,
.masthead__hero > *,
.hero-form > *,
.detail-form > *,
.services-grid > *,
.perks-row > *,
.stats-grid > *,
.reviews-grid > *,
.micro-badges > *,
.payment-panel__heading > *,
.payment-form > *,
.rating-banner > *,
.progress > * {
  min-width: 0;
}

.masthead__nav {
  display: grid;
  align-items: center;
  gap: 10px;
}

.masthead__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.brand__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.brand__label {
  display: none;
  min-width: 0;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 6px;
  width: min(100%, 364px);
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #c8e6c9;
  border-radius: 71px;
  background: var(--surface-green);
  color: var(--green-strong);
  font-weight: 700;
  font-size: 11px;
  text-align: center;
}

.service-pill > span:last-child {
  min-width: 0;
  text-align: center;
}

.account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: 11px;
  text-decoration: none;
}

.account-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.account-link__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.account-link__label {
  display: none;
}

.masthead__hero {
  justify-items: center;
  padding: 38px 0 28px;
  text-align: center;
}

.masthead__hero h1,
.section-heading h2,
.summary-panel h2,
.payment-panel h2 {
  margin: 0;
  color: var(--blue-strong);
  font-size: clamp(2rem, 6vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.masthead__hero h1 {
  width: 100%;
  max-width: 16ch;
  font-size: clamp(1.75rem, 9vw, 36px);
  text-align: center;
}

.masthead__hero [data-fit-single-line]:not([data-fit-desktop-only]) {
  display: block;
  width: 100%;
  text-align: center;
  max-width: none;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.masthead__hero p,
.section-heading p,
.section-note,
.summary-panel p,
.payment-note,
.tracking-summary__copy span,
.progress__step span,
.service-card__name,
.perks-row,
.stat-card__label,
.review-card__text,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.masthead__hero p {
  font-size: clamp(1rem, 3vw, 20px);
  max-width: 38rem;
}

body[data-page="check"] .masthead__hero h1,
body[data-page="buy"] .masthead__hero h1 {
  max-width: none;
  white-space: nowrap;
}

.status-minute-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25em;
}

.status-minute-loader {
  width: 0.9em;
  height: 0.9em;
  border: 2px solid rgba(27, 110, 242, 0.18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin-minute 0.8s linear infinite;
}

.status-minute-loader.is-hidden {
  display: none;
}

.status-minute[hidden] {
  display: none;
}

.main-content {
  padding-bottom: 28px;
}

.section {
  padding: 18px 0;
}

.section--compact {
  padding-top: 6px;
}

.section--stacked .container {
  display: grid;
  gap: 10px;
}

.section--tight {
  padding-top: 6px;
}

.panel {
  min-width: 0;
  max-width: 100%;
  padding: 28px 20px;
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.panel--tall {
  padding-bottom: 32px;
}

.hero-card {
  display: grid;
  gap: 18px;
}

.hero-form,
.detail-form {
  max-width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 59px;
  min-width: 0;
  max-width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-control);
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
}

.button--primary {
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
}

.button--stacked {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.button__title {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.button__subtext {
  display: block;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 500;
}

.detail-form .button--primary {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.detail-form .button--primary strong {
  font-size: 20px;
  line-height: 1.2;
}

.button__note {
  display: block;
  font-size: 12px;
  font-weight: 400;
}

.live-pill,
.alert-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 35px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 20px;
  border-radius: 71px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.live-pill {
  justify-self: center;
}

.live-pill--blue {
  background: var(--surface-blue);
  color: var(--blue);
}

.live-pill--green {
  background: var(--surface-green);
  color: var(--green);
}

.live-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

.micro-badges {
  justify-items: center;
}

.micro-badges span {
  color: var(--text);
  font-size: 10px;
  text-align: center;
}

.micro-badges--wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  color: var(--muted-soft);
  font-size: 10px;
  line-height: 1.35;
}

.consent-row a {
  text-decoration: underline;
}

.consent-row input {
  margin: 2px 0 0;
}

.form-error,
.fineprint,
.payment-note {
  min-height: 1.4em;
  margin: 0;
  text-align: center;
}

.form-error {
  color: var(--error-color);
  font-size: 12px;
}

.form-error:empty,
.payment-note:empty {
  display: none;
}

.fineprint {
  color: var(--muted-soft);
  font-size: 9px;
  line-height: 1.45;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  text-align: center;
}

.section-heading h2,
.summary-panel h2 {
  color: var(--text);
  font-size: clamp(1.45rem, 4vw, 24px);
}

.section-heading p,
.section-note {
  font-size: 16px;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-note {
  margin-top: 14px;
}

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px 14px 18px;
  min-height: 126px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 7px;
  border-radius: 10px;
}

.service-card__icon img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.service-card__name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.perks-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 0 10px;
  text-align: center;
  font-size: clamp(10px, 3vw, 14px);
  color: var(--text);
}

.perks-row span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.summary-panel {
  display: grid;
  gap: 24px;
  text-align: center;
}

.stats-grid,
.reviews-grid {
  grid-template-columns: 1fr;
}

.stat-card,
.review-card {
  display: grid;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 19px 22px;
  border-radius: var(--radius-card);
  background: var(--surface-soft);
}

.stat-card {
  grid-template-columns: auto 1fr;
  text-align: left;
}

.stat-card__icon {
  font-size: 32px;
  line-height: 1;
}

.stat-card__value {
  color: var(--text-strong);
  font-size: 24px;
  font-weight: 700;
}

.stat-card__label {
  font-size: 12px;
}

.rating-banner {
  justify-content: center;
  justify-items: center;
  gap: 6px;
}

.rating-banner strong {
  color: #e6a400;
  font-size: 24px;
}

.rating-banner span {
  font-size: 16px;
}

.review-card {
  border-left: 5px solid #4dce6e;
  text-align: left;
}

.review-card__stars {
  color: #e6a400;
  font-size: 13px;
}

.review-card__name {
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 700;
}

.review-card__text {
  font-size: 12px;
  line-height: 1.45;
}

.tracking-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 70px;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--surface-soft);
}

.tracking-summary__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 7px;
  border-radius: 10px;
}

.tracking-summary__icon img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.tracking-summary__icon--parcel {
  background: var(--surface-blue);
}

.tracking-summary__glyph {
  font-size: 28px;
  line-height: 1;
}

.tracking-summary__copy {
  display: grid;
  gap: 2px;
}

.tracking-summary__copy strong {
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
}

.tracking-summary__copy span {
  font-size: 11px;
}

.progress {
  position: relative;
  --progress-fill: 0%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  padding-top: 8px;
}

.progress::before {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 21px;
  height: 1px;
  background: var(--line);
}

.progress--check::before {
  background:
    linear-gradient(
      90deg,
      var(--green) 0 var(--progress-fill, 60%),
      var(--line) var(--progress-fill, 60%) 100%
    );
}

.progress--buy::before {
  background:
    linear-gradient(
      90deg,
      var(--green) 0 var(--progress-fill, 100%),
      var(--line) var(--progress-fill, 100%) 100%
    );
}

.progress__step {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  z-index: 1;
}

.progress__dot {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  transition:
    border-color 0.24s ease,
    background-color 0.24s ease,
    color 0.24s ease,
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.progress__step.is-done .progress__dot {
  border-color: var(--green);
  background: var(--green);
}

.progress__step.is-current .progress__dot {
  border-color: var(--blue);
  background: var(--blue);
}

.progress__step.is-future .progress__dot {
  background: #f1f1f5;
  color: #aeb3c0;
}

.progress__step.is-activating .progress__dot {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(27, 110, 242, 0.08);
}

.progress__step span:last-child {
  color: var(--muted);
  font-size: 8px;
}

.progress__step.is-current span:last-child,
.progress__step.is-done span:last-child {
  color: var(--green);
}

.progress__step.is-current span:last-child {
  color: var(--blue);
}

.status-preview {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  color: var(--muted);
}

.status-preview p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.status-preview__blur {
  display: grid;
  gap: 4px;
  filter: blur(5px);
}

.status-preview__note {
  color: var(--text);
  font-size: 12px;
  text-align: center;
}

.status-preview__subline {
  display: block;
  margin-top: 4px;
}

.progress-reveal-stack {
  display: grid;
  gap: 18px;
  width: 100%;
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition:
    max-height 0.55s ease,
    opacity 0.35s ease,
    transform 0.45s ease;
}

.progress-reveal-stack.is-open {
  overflow: visible;
}

.progress-reveal-stack.is-pending {
  max-height: 0;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.text-success {
  color: var(--green);
  font-weight: 700;
}

.alert-pill {
  width: 100%;
}

.alert-pill--warning {
  background: var(--surface-warning);
  color: var(--orange);
}

.payment-panel {
  display: grid;
  gap: 20px;
}

.payment-panel__heading {
  align-items: start;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 12px;
  margin-top: 18px;
}

.price-row__label,
.price-row__old {
  color: var(--muted);
  font-size: 16px;
}

.price-row__current {
  color: var(--green);
  font-size: clamp(2.8rem, 10vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.price-row__old {
  text-decoration: line-through;
}

.payment-panel__status {
  color: var(--green);
  font-size: 20px;
  font-weight: 700;
  text-align: left;
}

.payment-form {
  justify-items: stretch;
}

.button--payment {
  min-height: 75px;
}

.consent-row--payment {
  justify-self: center;
  max-width: 28rem;
  color: var(--muted);
  font-size: 13px;
}

.payment-note {
  color: var(--green-strong);
  font-size: 13px;
}

.site-footer {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 42px 16px 25px;
  text-align: center;
}

body[data-page="post"] .site-footer {
  padding-top: 18px;
}

.site-footer__cta {
  width: min(100%, 320px);
  min-height: 54px;
  font-size: 18px;
}

.site-footer p {
  font-size: 11px;
  line-height: 1.45;
  max-width: 50rem;
}

.site-footer__copyright {
  font-size: 14px;
  color: #8d8c8c;
}

.site-footer__mark {
  width: 42px;
  height: 42px;
}

.scroll-top-button {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(27, 110, 242, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 480px) {
  .stats-grid,
  .reviews-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }
}

@media (min-width: 640px) {
  .masthead__hero [data-fit-single-line][data-fit-desktop-only] {
    display: block;
    width: 100%;
    text-align: center;
    max-width: none;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  .masthead__nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
  }

  .masthead__top {
    display: contents;
  }

  .brand {
    grid-column: 1;
    gap: 7px;
  }

  .brand__icon {
    width: 13px;
    height: 13px;
  }

  .brand__label {
    display: inline;
  }

  .service-pill {
    grid-column: 2;
    width: auto;
    justify-self: center;
  }

  .account-link {
    grid-column: 3;
    justify-self: end;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--blue);
    text-decoration: underline;
  }

  .account-link__icon {
    display: none;
  }

  .account-link__label {
    display: inline;
  }

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

  .perks-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, max-content));
    gap: 14px 24px;
    font-size: 14px;
  }

  .payment-panel__heading {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  }
}

@media (min-width: 768px) {
  :root {
    --container-width: min(calc(100% - 48px), 1140px);
  }

  .masthead {
    padding-top: 24px;
  }

  .masthead__hero {
    padding: 52px 0 24px;
  }

  .panel {
    padding: 31px 38px;
  }

  .hero-form,
  .detail-form {
    gap: 15px;
  }

  .micro-badges {
    grid-auto-flow: column;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .stats-grid,
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    padding-top: 60px;
  }

  body[data-page="post"] .site-footer {
    padding-top: 60px;
  }
}

@media (min-width: 1024px) {
  body[data-page="post"] .masthead__hero h1,
  body[data-page="post"] .masthead__hero p {
    max-width: none;
    white-space: nowrap;
  }

  .hero-card {
    gap: 16px;
  }

  .hero-section {
    padding-top: 6px;
  }

  .progress {
    width: min(100%, 364px);
    justify-self: center;
  }

  .payment-form {
    grid-template-columns: minmax(0, 1fr);
    justify-items: end;
  }

  .button--payment {
    width: min(100%, 518px);
  }
}

@media (min-width: 1280px) {
  :root {
    --container-width: min(calc(100% - 72px), 1140px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .status-minute-loader {
    animation: none;
  }
}

@keyframes spin-minute {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  body[data-page="check"] .masthead__hero {
    padding: 5px 0 10px;
  }

  body[data-page="check"] .hero-card,
  body[data-page="check"] .progress-reveal-stack,
  body[data-page="check"] .status-preview {
    gap: 5px;
  }

  body[data-page="check"] .status-preview p {
    font-size: 14px;
  }
}
