:root {
  --ink: #1a1a1f;
  --ink-soft: #111214;
  --muted: #6b6b73;
  --paper: #f3f1ed;
  --paper-2: #ebe7e0;
  --line: rgba(26, 26, 31, 0.08);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(17, 18, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body {
  min-height: 100dvh;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 10% -10%, #fff 0%, transparent 55%),
    radial-gradient(900px 500px at 110% 10%, #ddd6cc 0%, transparent 50%),
    linear-gradient(180deg, #f7f5f1 0%, #ebe6df 100%);
}

.top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 8px;
  max-width: 560px;
  margin: 0 auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px 40px;
}

.card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px 18px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.meta {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.ba {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 18px;
  border-radius: 22px;
  overflow: hidden;
  background: #d8d4ce;
  aspect-ratio: 4 / 3;
  isolation: isolate;
}

.ba-half {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.ba-media {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, #cfc9c0, #b7b1a8 45%, #9e9890);
  background-size: cover;
  background-position: center;
}

.ba-media-clear {
  filter: none;
  transform: none;
}

.ba-media-blur {
  filter: blur(18px) brightness(0.9) saturate(0.9);
  transform: scale(1.12);
}

.ba-media.has-image {
  background-color: #cfc9c0;
}

.ba-label {
  position: absolute;
  top: 10px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(17, 18, 20, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ba-before .ba-label {
  left: 10px;
}

.ba-after .ba-label {
  right: 10px;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.85);
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lock {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    rgba(17, 18, 20, 0.12) 0%,
    rgba(17, 18, 20, 0.42) 100%
  );
  pointer-events: none;
}

.lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 16px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 18, 20, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.gate-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}

.lock-icon {
  font-size: 13px;
}

.tab-bar {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(26, 26, 31, 0.06);
}

.tab {
  flex: 1;
  appearance: none;
  border: 0;
  cursor: pointer;
  text-align: center;
  padding: 10px 8px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
}

.tab-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.locked-block.is-hidden,
.locked-block[hidden] {
  display: none;
}

.locked-block {
  position: relative;
  margin-top: 14px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.locked-inner {
  padding: 12px;
}

.gated-content {
  user-select: none;
  pointer-events: none;
}

.gate {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(247, 245, 241, 0.55);
  backdrop-filter: saturate(1.05);
}

.milestone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.milestone + .milestone {
  margin-top: 8px;
}

.milestone-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  background:
    linear-gradient(#fff, #fff) center 11px / 14px 1.5px no-repeat,
    linear-gradient(#fff, #fff) 11px 15px / 1.5px 10px no-repeat,
    linear-gradient(#fff, #fff) 15px 15px / 1.5px 10px no-repeat,
    linear-gradient(#fff, #fff) 19px 15px / 1.5px 10px no-repeat,
    linear-gradient(#fff, #fff) 23px 15px / 1.5px 10px no-repeat,
    rgba(26, 26, 31, 0.08);
  box-shadow: inset 0 0 0 1px rgba(26, 26, 31, 0.04);
}

.milestone-copy {
  flex: 1;
  min-width: 0;
}

.milestone-day {
  margin: 0 0 6px;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
}

.milestone-thumb,
.locked-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(26, 26, 31, 0.06);
  border: 1px dashed rgba(26, 26, 31, 0.14);
  position: relative;
}

.locked-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background-color: rgba(26, 26, 31, 0.4);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 10.6a2 2 0 0 0 2.8 2.8M9.9 5.1A9 9 0 0 1 12 5c5 0 9 4.5 9 7-1 1.6-2.7 3.4-4.7 4.6M6.1 6.1C4.5 7.3 3.2 8.9 2.5 12c.8 1.8 2.8 4.4 5.6 5.9A9 9 0 0 0 12 19c.7 0 1.4-.1 2-.2'/%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' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 10.6a2 2 0 0 0 2.8 2.8M9.9 5.1A9 9 0 0 1 12 5c5 0 9 4.5 9 7-1 1.6-2.7 3.4-4.7 4.6M6.1 6.1C4.5 7.3 3.2 8.9 2.5 12c.8 1.8 2.8 4.4 5.6 5.9A9 9 0 0 0 12 19c.7 0 1.4-.1 2-.2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.skel {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(26, 26, 31, 0.08),
    rgba(26, 26, 31, 0.14),
    rgba(26, 26, 31, 0.08)
  );
  background-size: 180% 100%;
}

.skel-title {
  width: 62%;
  height: 11px;
  margin-bottom: 7px;
}

.skel-line {
  width: 88%;
  height: 8px;
}

.skel-line.short,
.skel-value.short {
  width: 42%;
}

.skel-value {
  width: 96px;
  height: 10px;
  flex-shrink: 0;
}

.skel-value.wide {
  width: 128px;
}

.about-panel {
  padding: 16px 14px;
}

.about-heading {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.about-row span {
  color: var(--muted);
  font-weight: 600;
}

.teaser {
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

.actions {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink-soft);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid var(--line);
  flex: 1;
}

.store-row {
  display: flex;
  gap: 8px;
}

.footnote {
  margin: 18px 8px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: rgba(247, 245, 241, 0.72);
  backdrop-filter: blur(10px);
}

.loading[hidden] {
  display: none;
}

.orb-root {
  width: 64px;
  height: 64px;
}

.loading-label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.shell.is-loading {
  visibility: hidden;
}

.card.error h1 {
  font-size: 24px;
}

@media (min-width: 640px) {
  .card {
    padding: 26px 24px 22px;
  }
}
