@import "https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Nunito:wght@400;500;600;700&display=swap";

:root {
  --bg: #fff7f9;
  --blush: #ffe4ec;
  --rose: #e86b8f;
  --rose-deep: #b83d63;
  --ink: #3a2430;
  --muted: #8a6574;
  --line: #f3d4df;
  --white: #fff;
  --shadow: 0 18px 50px #e86b8f1f;
  color: var(--ink);
  background: var(--bg);
  font-family: Nunito, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, var(--blush), transparent 55%),
    radial-gradient(ellipse 50% 35% at 95% 10%, #ffeef5, transparent 50%),
    var(--bg);
}

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

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.btn {
  appearance: none;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose), #f08aa8);
  color: #fff;
  box-shadow: 0 10px 24px #e86b8f47;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgb(255 255 255 / 82%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffd0df, #ffb3c9);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px 40px;
  max-width: 1100px;
  min-height: calc(100svh - 88px);
  margin: 0 auto;
  padding: 12px 24px 36px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-kicker,
.profile-kicker {
  margin: 0 0 10px;
  color: var(--rose-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(42px, 6.4vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 0 24px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  pointer-events: none;
}

.logo-mark img {
  display: block;
}

.hero-illustration,
.profile-cat-svg {
  display: block;
  width: min(100%, 520px);
  max-height: min(52vh, 420px);
  height: auto;
}

.profile-cat-svg {
  max-width: 220px;
}

.hero-float-a {
  transform-origin: 50%;
  animation: hero-bob 5.5s ease-in-out infinite;
}

.hero-float-b {
  transform-origin: 50%;
  animation: hero-bob 4.2s ease-in-out 0.6s infinite;
}

@keyframes hero-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.profile-page {
  display: grid;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: 24px;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.6fr);
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.profile-hero h1 {
  margin: 0 0 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
}

.profile-email {
  margin: 0 0 16px;
  color: var(--muted);
}

.sub-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
}

.sub-pill.is-active {
  background: #e8fff3;
  border: 1px solid #b7efd0;
}

.sub-pill.is-idle {
  background: #fff3f7;
  border: 1px dashed var(--rose);
}

.sub-pill strong {
  display: block;
  font-size: 15px;
}

.sub-pill span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.profile-hero-art {
  display: grid;
  place-items: center;
}

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

.stat-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgb(255 255 255 / 90%);
  box-shadow: var(--shadow);
}

.stat-card strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.license-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff8fb;
}

.license-label {
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.license-key,
.detail-row code {
  display: block;
  padding: 12px 14px;
  overflow-x: auto;
  white-space: nowrap;
  border-radius: 12px;
  background: #3a2430;
  color: #ffe8f0;
  font-size: 14px;
}

.detail-row {
  display: grid;
  gap: 4px;
}

.detail-row span {
  color: var(--muted);
  font-size: 12px;
}

.profile-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-actions {
  display: grid;
  gap: 10px;
}

.steps-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.error {
  margin: 0;
  color: #a63a4a;
}

.auth-dialog {
  width: min(92vw, 460px);
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-dialog::backdrop {
  background: rgb(58 36 48 / 35%);
  backdrop-filter: blur(4px);
}

.auth-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.auth-panel input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.auth-panel h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 32px;
}

.auth-panel p {
  margin: 0;
  color: var(--muted);
}

.auth-panel {
  display: grid;
  gap: 14px;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero,
  .profile-hero,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 8px;
  }

  .hero-art {
    order: -1;
  }

  .hero-illustration {
    width: min(100%, 360px);
    max-height: 280px;
  }
}
