/* Tally temporary page, aligned with the Digitally, Keigh visual system. */

:root {
  color-scheme: light;
  --lavender-fog: #f6f2f8;
  --lilac-mist: #eae1f0;
  --dusty-orchid: #b99cc8;
  --muted-plum: #765982;
  --deep-plum: #5e456a;
  --deep-aubergine: #302536;
  --soft-charcoal: #625a66;
  --clean-white: #ffffff;
  --sage-mist: #b7c7bd;
  --lavender-border: #d9cde0;
  --shadow: 0 18px 45px rgba(48, 37, 54, 0.1);
  --button-shadow: 0 10px 24px rgba(118, 89, 130, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.78), transparent 18rem),
    radial-gradient(circle at 85% 78%, rgba(185, 156, 200, 0.28), transparent 22rem),
    var(--lavender-fog);
  color: var(--soft-charcoal);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body,
button,
input,
select,
textarea {
  overflow-wrap: break-word;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  content: "";
  border: 1px solid rgba(217, 205, 224, 0.72);
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.42);
  transform: rotate(-8deg);
}

body::before {
  top: 11%;
  left: max(-5rem, -8vw);
  width: 14rem;
  height: 18rem;
}

body::after {
  right: max(-6rem, -9vw);
  bottom: 9%;
  width: 16rem;
  height: 20rem;
  transform: rotate(9deg);
}

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

a:focus-visible {
  outline: 3px solid var(--deep-plum);
  outline-offset: 4px;
}

.page-shell {
  display: grid;
  width: 100%;
  max-width: 1120px;
  min-height: calc(100vh - 4.75rem);
  margin: 0 auto;
  padding: 78px 20px 42px;
  place-items: center;
}

.card {
  position: relative;
  display: grid;
  width: min(100%, 760px);
  gap: 30px;
  overflow: hidden;
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid var(--lavender-border);
  border-radius: 16px;
  background-color: var(--clean-white);
  box-shadow: var(--shadow);
  animation: card-enter 0.45s ease-out both;
}

.card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  content: "";
  background-color: var(--lilac-mist);
  border-bottom: 1px solid var(--lavender-border);
}

.card::after {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 118px;
  height: 118px;
  content: "";
  border: 1px solid rgba(217, 205, 224, 0.92);
  border-radius: 16px;
  background-color: var(--lilac-mist);
  transform: rotate(8deg);
}

.brand-lockup,
.message,
.progress-visual,
.site-link {
  position: relative;
  z-index: 1;
}

.brand-lockup {
  margin-bottom: clamp(4px, 1.5vw, 14px);
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tally-mark {
  flex: 0 0 auto;
  width: clamp(58px, 10vw, 74px);
  height: auto;
  padding: 11px;
  color: var(--deep-plum);
  border: 1px solid var(--lavender-border);
  border-radius: 16px;
  background-color: var(--lavender-fog);
  box-shadow: 0 10px 24px rgba(118, 89, 130, 0.1);
}

.tally-mark rect {
  fill: currentColor;
}

.tally-mark .diagonal {
  fill: var(--dusty-orchid);
}

.product-name {
  color: var(--deep-aubergine);
  font-family: "Syne", sans-serif;
  font-size: clamp(42px, 7vw, 62px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
}

.parent-brand {
  margin-top: 4px;
  color: var(--deep-plum);
  font-size: clamp(14px, 2.3vw, 16px);
  font-weight: 700;
  line-height: 1.4;
}

.message {
  max-width: 620px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--muted-plum);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  max-width: 640px;
  color: var(--deep-aubergine);
  font-family: "Syne", sans-serif;
  font-size: clamp(34px, 5.4vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.supporting-copy {
  max-width: 580px;
  margin-top: 22px;
  color: var(--soft-charcoal);
  font-size: 18px;
  line-height: 1.8;
}

.progress-visual {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  width: min(100%, 360px);
  padding-top: 22px;
  border-top: 1px solid var(--lavender-border);
}

.progress-visual span {
  min-height: 8px;
  border-radius: 999px;
  background-color: var(--lilac-mist);
}

.progress-visual span:nth-child(-n + 4) {
  background-color: var(--muted-plum);
}

.progress-visual span:nth-child(5) {
  position: relative;
  overflow: hidden;
}

.progress-visual span:nth-child(5)::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 46%;
  content: "";
  border-radius: inherit;
  background-color: var(--dusty-orchid);
  animation: progress-fill 0.9s ease-out 0.18s both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: fit-content;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary-button {
  background-color: var(--muted-plum);
  color: var(--clean-white);
  box-shadow: var(--button-shadow);
}

.primary-button:hover {
  background-color: var(--deep-plum);
}

.site-link {
  margin-top: 2px;
}

.footer {
  min-height: 4.75rem;
  padding: 0 20px 34px;
  color: var(--soft-charcoal);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.footer p {
  max-width: 700px;
  margin: 0 auto;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progress-fill {
  from {
    width: 0;
  }
}

@media (min-width: 700px) {
  .page-shell {
    padding-right: 32px;
    padding-left: 32px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    min-height: calc(100vh - 4.75rem);
    padding: 56px 14px 28px;
  }

  .card {
    width: min(100%, 300px);
    min-width: 0;
    gap: 24px;
    padding: 28px 22px 30px;
  }

  .card::after {
    top: 24px;
    right: -34px;
    width: 104px;
    height: 104px;
  }

  .logo-row {
    align-items: flex-start;
    gap: 14px;
  }

  .tally-mark {
    width: 54px;
    padding: 9px;
  }

  .product-name {
    font-size: clamp(36px, 12vw, 44px);
  }

  h1 {
    max-width: 10.5ch;
    font-size: clamp(32px, 10vw, 40px);
  }

  .supporting-copy {
    font-size: 16px;
    line-height: 1.7;
  }

  .progress-visual {
    width: 100%;
  }

  .button {
    width: 100%;
    min-width: 0;
    padding-right: 18px;
    padding-left: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
