:root {
  --ink: #061b2d;
  --ink-soft: #17334a;
  --mineral: #eef7fa;
  --paper: #fbfdfe;
  --muted: #6c7f8c;
  --line: rgba(6, 27, 45, 0.13);
  --line-strong: rgba(6, 27, 45, 0.22);
  --blue: #0a4c8b;
  --cyan: #0a7d98;
  --focus-ring: rgba(10, 125, 152, 0.28);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #e8f2f6;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #e8f2f6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

::selection {
  background: rgba(10, 125, 152, 0.16);
}

.page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: 96px;
  background: var(--paper);
}

.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: min(calc(100% - 24px), 406px);
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(251, 253, 254, 0.74);
  box-shadow: 0 18px 48px rgba(6, 27, 45, 0.08);
  transform: translateX(-50%);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.brand strong {
  font-size: 16px;
  line-height: 1;
  font-weight: 760;
}

.brand small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.18em;
}

.header-links {
  display: inline-flex;
  gap: 15px;
  color: #496170;
  font-size: 12px;
  font-weight: 680;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: 104px 24px 120px;
  background: #f8fcfd url("./assets/regsip-luxe-bg.jpg") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(251, 253, 254, 0.12) 0%, rgba(251, 253, 254, 0.1) 46%, rgba(251, 253, 254, 0.42) 72%, rgba(251, 253, 254, 0.86) 100%),
    radial-gradient(circle at 71% 43%, rgba(10, 76, 139, 0.08), transparent 36%);
  content: "";
}

.hero-wordmark {
  position: absolute;
  top: 274px;
  left: 15px;
  z-index: -1;
  color: rgba(6, 27, 45, 0.045);
  font-size: 77px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  transform: rotate(90deg);
  transform-origin: left top;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: 270px;
  animation: rise-in 920ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.kicker,
.chapter-mark {
  margin: 0;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.16em;
}

.hero h1,
.chapter h2,
.sheet-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero h1 {
  margin-top: 15px;
  font-size: 58px;
  line-height: 1.02;
}

.hero-copy p:last-child {
  max-width: 205px;
  margin: 20px 0 0;
  color: #435a68;
  font-size: 15px;
  line-height: 1.9;
}

.product-stage {
  position: absolute;
  right: 28px;
  bottom: 164px;
  z-index: 2;
  width: min(43vw, 178px);
  margin: 0;
  animation: product-in 1180ms cubic-bezier(0.19, 1, 0.22, 1) 100ms both;
}

.product-stage img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.08) saturate(1.05) drop-shadow(0 34px 44px rgba(6, 27, 45, 0.2));
}

.falling-drop {
  position: absolute;
  top: 244px;
  right: 94px;
  z-index: 4;
  width: 16px;
  height: 52px;
  pointer-events: none;
  opacity: 0;
  animation: drop-fall 5.4s cubic-bezier(0.19, 1, 0.22, 1) 900ms infinite;
}

.falling-drop::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(10, 76, 139, 0), rgba(10, 76, 139, 0.2));
  content: "";
}

.falling-drop::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 13px;
  height: 18px;
  border: 1px solid rgba(10, 76, 139, 0.14);
  border-radius: 52% 48% 56% 44%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.26) 38%, rgba(10, 125, 152, 0.18) 74%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(10, 76, 139, 0.16));
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.62), 0 12px 24px rgba(6, 27, 45, 0.1);
  content: "";
  transform: rotate(45deg);
}

.chapter {
  padding: 82px 24px 10px;
  background: var(--paper);
}

.chapter:nth-of-type(odd) {
  background: linear-gradient(180deg, #fbfdfe 0%, #f1f8fb 100%);
}

.chapter h2 {
  margin-top: 18px;
  font-size: 36px;
  line-height: 1.12;
}

.chapter-lede {
  margin: 26px 0 0;
  color: #354d5c;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.72;
}

.metric-list,
.report-list,
.sku-list {
  margin-top: 34px;
  border-top: 1px solid var(--line-strong);
}

.metric-row,
.report-row,
.sku-row,
.order-line,
.choice {
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.metric-row {
  grid-template-columns: 1fr auto;
  min-height: 82px;
  gap: 18px;
}

.metric-row span {
  color: #5d7180;
  font-size: 14px;
}

.metric-row strong {
  color: var(--ink);
  font-size: 27px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.report-row {
  width: 100%;
  grid-template-columns: 1fr;
  min-height: 76px;
  padding: 0;
  background: transparent;
  text-align: left;
}

.report-row span,
.sku-row strong,
.choice strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
}

.report-row small,
.sku-row small,
.choice span span {
  display: block;
  margin-top: 7px;
  color: #687c8a;
  font-size: 13px;
  line-height: 1.35;
}

.report-note {
  min-height: 20px;
  margin: 18px 0 0;
  color: #687c8a;
  font-size: 12px;
  line-height: 1.6;
}

.order-chapter {
  padding-bottom: 44px;
}

.sku-row {
  width: 100%;
  grid-template-columns: 1fr auto;
  min-height: 86px;
  padding: 0;
  background: transparent;
  text-align: left;
}

.sku-row b,
.choice b {
  color: var(--ink);
  font-size: 25px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 34px 24px 48px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer strong {
  color: #fff;
  font-size: 15px;
}

.buybar {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 34;
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 12px;
  align-items: center;
  width: min(calc(100% - 24px), 406px);
  min-height: 68px;
  padding: 10px 10px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(251, 253, 254, 0.88);
  box-shadow: 0 22px 68px rgba(6, 27, 45, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(24px);
}

.buybar span {
  display: block;
  color: #5c7280;
  font-size: 12px;
  line-height: 1.3;
}

.buybar strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.buybar button,
.pay-button {
  min-height: 48px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 760;
  transition:
    transform 340ms cubic-bezier(0.19, 1, 0.22, 1),
    background 340ms cubic-bezier(0.19, 1, 0.22, 1);
}

.buybar button:active,
.pay-button:active {
  transform: translateY(1px);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 38;
  background: rgba(6, 27, 45, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms cubic-bezier(0.19, 1, 0.22, 1);
}

.sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.order-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  width: min(100%, 430px);
  max-height: 88svh;
  margin: 0 auto;
  overflow: auto;
  padding: 30px 24px calc(24px + env(safe-area-inset-bottom));
  background: rgba(251, 253, 254, 0.98);
  box-shadow: 0 -30px 78px rgba(6, 27, 45, 0.2);
  transform: translateY(104%);
  transition: transform 360ms cubic-bezier(0.19, 1, 0.22, 1);
}

.order-sheet.is-open {
  transform: translateY(0);
}

.sheet-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.sheet-head h2 {
  font-size: 32px;
  line-height: 1.1;
}

.sheet-head p {
  margin: 10px 0 0;
  color: #5d7180;
  font-size: 14px;
  line-height: 1.5;
}

.close-sheet {
  width: 34px;
  height: 34px;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.choice-list {
  margin-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.choice {
  width: 100%;
  grid-template-columns: 1fr auto;
  gap: 14px;
  min-height: 76px;
  padding: 0;
  background: transparent;
  text-align: left;
}

.choice.is-selected strong,
.choice.is-selected b {
  color: var(--cyan);
}

.order-line {
  grid-template-columns: 1fr auto;
  min-height: 62px;
  gap: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
}

.stepper {
  display: grid;
  grid-template-columns: 36px 44px 36px;
  height: 34px;
  border: 1px solid var(--line-strong);
}

.stepper button {
  background: transparent;
  color: var(--ink);
  font-size: 20px;
}

.stepper output {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.address-button {
  width: 100%;
  background: transparent;
  text-align: left;
}

.address-button small {
  color: #8a99a3;
  font-size: 13px;
  font-weight: 600;
}

.total strong {
  color: var(--ink);
  font-size: 25px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.pay-button {
  width: 100%;
  margin-top: 24px;
}

.pay-note {
  min-height: 22px;
  margin: 13px 0 0;
  color: #687c8a;
  font-size: 12px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 820ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 820ms cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes product-in {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
  }

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

@keyframes drop-fall {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.86);
  }

  20% {
    opacity: 0.95;
  }

  70% {
    opacity: 0.95;
    transform: translateY(172px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(204px) scale(0.96);
  }
}

@media (max-height: 750px) {
  .hero {
    padding-top: 88px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-copy p:last-child {
    margin-top: 16px;
    line-height: 1.72;
  }

  .product-stage {
    width: min(39vw, 164px);
    bottom: 146px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
