:root {
  --bg: #fff7fb;
  --card: rgba(255, 255, 255, 0.82);
  --text: #271929;
  --muted: #7c647e;
  --line: rgba(117, 76, 130, 0.16);
  --pink: #ff6b9d;
  --violet: #7c3aed;
  --gold: #f6b94b;
  --shadow: 0 26px 70px rgba(89, 40, 99, 0.14);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 157, 0.18), transparent 28rem),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.14), transparent 25rem),
    linear-gradient(180deg, #fff7fb 0%, #fff 50%, #fff7fb 100%);
}

a {
  color: inherit;
}

.page {
  width: min(100%, 430px);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 107, 157, 0.18), transparent 12rem),
    radial-gradient(circle at 95% 18%, rgba(124, 58, 237, 0.14), transparent 14rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 52%, #fff7fb 100%);
  box-shadow: 0 0 0 1px rgba(117, 76, 130, 0.08), 0 30px 90px rgba(67, 31, 76, 0.18);
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image:
    linear-gradient(90deg, #000 1px, transparent 1px),
    linear-gradient(#000 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.screen {
  min-height: 100svh;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  position: relative;
}

.hero-screen {
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 26px;
}

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

.brand,
.nav-pill,
.badge {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 12px 34px rgba(89, 40, 99, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 0 0 6px rgba(255, 107, 157, 0.12);
}

.nav-pill {
  padding: 10px 13px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.15rem, 16vw, 4.55rem);
  line-height: 0.87;
  letter-spacing: -0.09em;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2.15rem, 11vw, 3.45rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.hero-text,
.section-heading p,
.text-card p,
.letter-card p,
.card-note,
.micro-note {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-text {
  margin-bottom: 0;
}

.hero-card,
.chart-card,
.radar-card,
.text-card,
.letter-card,
.kpi,
.timeline-item,
.donut-card,
.micro-note {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-card {
  padding: 20px;
  overflow: hidden;
}

.status-row,
.chart-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.status-row span {
  color: var(--muted);
  font-weight: 800;
}

.status-row strong {
  color: var(--violet);
  text-align: right;
}

.big-meter {
  width: min(67vw, 250px);
  aspect-ratio: 1;
  margin: 14px auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, white 0 55%, transparent 56%),
    conic-gradient(var(--pink) 0 97%, rgba(124, 58, 237, 0.12) 97% 100%);
  box-shadow:
    inset 0 0 34px rgba(255, 107, 157, 0.10),
    0 22px 54px rgba(124, 58, 237, 0.16);
}

.meter-content {
  text-align: center;
}

.meter-content span {
  display: block;
  font-size: 4.1rem;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.meter-content small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.66rem;
}

.card-note {
  margin-bottom: 0;
}

.scroll-cue {
  align-self: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.section-heading.compact {
  margin-bottom: 0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kpi {
  padding: 16px;
  min-height: 142px;
}

.kpi-label {
  display: block;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 850;
  line-height: 1.25;
  min-height: 38px;
  margin-bottom: 12px;
}

.kpi strong {
  display: block;
  font-size: 2.25rem;
  letter-spacing: -0.08em;
  margin-bottom: 12px;
}

.mini-bar,
.bar-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.09);
}

.mini-bar span,
.bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  transform-origin: left;
}

.chart-title {
  align-items: flex-start;
}

.badge {
  color: var(--violet);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 950;
  font-size: 0.8rem;
  flex: 0 0 auto;
}

.chart-card {
  padding: 18px;
}

.bar-chart {
  display: grid;
  gap: 15px;
}

.bar-row {
  display: grid;
  gap: 7px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.bar-label span {
  font-weight: 850;
  line-height: 1.2;
}

.bar-label b {
  color: var(--violet);
  font-weight: 950;
}

.micro-note {
  padding: 15px;
  margin: 0;
}

.donut-card {
  padding: 24px 18px;
  display: grid;
  place-items: center;
  gap: 22px;
}

.donut {
  width: min(66vw, 245px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, white 0 55%, transparent 56%),
    conic-gradient(var(--pink) 0 42%, var(--violet) 42% 70%, var(--gold) 70% 100%);
  box-shadow: inset 0 0 40px rgba(124, 58, 237, 0.10);
}

.legend {
  display: grid;
  gap: 12px;
  width: 100%;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.3;
}

.legend i {
  display: inline-block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
}

.legend span:nth-child(2) i {
  background: var(--violet);
}

.legend span:nth-child(3) i {
  background: var(--gold);
}

.radar-card {
  padding: 12px 8px 8px;
}

.radar {
  width: 100%;
  min-height: 342px;
}

.radar text {
  fill: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-anchor: middle;
}

.grid-lines polygon,
.grid-lines line {
  fill: none;
  stroke: rgba(124, 58, 237, 0.15);
  stroke-width: 1.3;
}

.radar-poly {
  fill: url(#polyGradient) !important;
  stroke: var(--pink) !important;
  stroke-width: 3 !important;
  filter: drop-shadow(0 12px 20px rgba(124, 58, 237, 0.18));
}

.radar-dot {
  fill: white;
  stroke: var(--pink);
  stroke-width: 3;
}

.text-card {
  padding: 22px;
}

.hidden-message {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition: max-height 260ms ease, opacity 260ms ease, margin 260ms ease;
}

.hidden-message.show {
  max-height: 150px;
  opacity: 1;
  margin-top: 16px;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 950;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 16px 38px rgba(124, 58, 237, 0.22);
}

.btn.small {
  margin-top: 8px;
}

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.timeline-item {
  padding: 16px;
}

.timeline-item span {
  display: inline-block;
  color: var(--pink);
  font-size: 0.70rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.timeline-item strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 7px;
}

.timeline-item p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
}

.final-screen {
  justify-content: center;
}

.letter-card {
  padding: 24px 18px;
  text-align: center;
}

.countdown-line {
  margin-top: 12px;
  margin-bottom: 14px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 12px;
}

.countdown div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 6px;
  background: rgba(255, 255, 255, 0.72);
}

.countdown strong {
  display: block;
  font-size: 1.72rem;
  line-height: 1;
  letter-spacing: -0.07em;
  color: var(--violet);
}

.countdown span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tiny-note {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-top: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  transform: translate(-50%, 120px);
  width: min(92vw, 390px);
  padding: 14px 16px;
  border-radius: 18px;
  color: white;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.28);
  transition: transform 240ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 18px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 700px) {
  body {
    padding: 20px 0;
  }

  .page {
    border-radius: 34px;
  }

  .screen {
    min-height: min(760px, calc(100vw * 16 / 9));
  }
}

@media (max-width: 360px) {
  .screen {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: 2.95rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .kpi {
    padding: 14px;
  }

  .kpi strong {
    font-size: 2rem;
  }
}
