@import url("https://fonts.googleapis.com/css2?family=Parkinsans:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --brand-primary: #504471;
  --brand-secondary: #6C6482;
  --brand-blush: #D6C2CA;
  --brand-white: #FFFFFF;
  --brand-pink: #E3A8C8;
  --brand-rose: #DFB7CD;
  --ink: #3D2B3D;
  --muted: #6C6482;
  --line: rgba(80, 68, 113, 0.16);
  --surface: #FFFFFF;
  --mist: #FFF9F5;
  --warning: #9B6B35;
  --error: #9B2746;
  --font-display: "Poppins", sans-serif;
  --font-body: "Parkinsans", "Open Sans", sans-serif;
  --shadow: 0 18px 45px rgba(80, 68, 113, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(165deg, var(--brand-blush) 0%, #F7E9EF 34%, var(--brand-white) 74%);
  line-height: 1.7;
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(80, 68, 113, 0.08);
  box-shadow: 0 2px 40px rgba(80, 68, 113, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.topbar-inner {
  width: min(1200px, calc(100% - 40px));
  min-height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  text-decoration: none;
  display: inline-grid;
  gap: 0;
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.92;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.brand span:last-child {
  color: var(--brand-secondary);
  font-size: 0.74em;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.nav-pill {
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--brand-pink);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand-primary);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-pill {
  min-height: 40px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-white);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-pink));
  box-shadow: 0 4px 20px rgba(80, 68, 113, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(80, 68, 113, 0.32);
}

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 136px 0 72px;
  flex: 1;
}

.compact-page {
  width: min(520px, calc(100% - 32px));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.panel,
.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
}

.plan-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-card.featured {
  border-color: rgba(227, 168, 200, 0.62);
  box-shadow: 0 20px 55px rgba(80, 68, 113, 0.18);
}

.plan-name {
  margin: 0;
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.plan-copy,
.muted {
  color: var(--muted);
  line-height: 1.6;
}

.feature-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feature-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--brand-pink);
  flex: 0 0 auto;
}

.button {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-pink));
  color: var(--brand-white);
  box-shadow: 0 10px 26px rgba(80, 68, 113, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(80, 68, 113, 0.26);
}

.button.secondary {
  background: rgba(214, 194, 202, 0.38);
  color: var(--brand-primary);
  box-shadow: none;
}

.button.ghost {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.button.full {
  width: 100%;
}

.button-label {
  transition: opacity 0.2s ease;
}

.button-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--brand-white);
  display: none;
  position: absolute;
  animation: spin 0.8s linear infinite;
}

.button.is-loading .button-label {
  opacity: 0;
}

.button.is-loading .button-spinner {
  display: inline-block;
}

.button.is-loading {
  cursor: progress;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.google-auth-block {
  display: none;
}

.google-auth-block.is-ready {
  display: block;
}

.google-login-wrap {
  min-height: 44px;
  display: flex;
  justify-content: center;
}

.google-login-wrap > div {
  width: min(100%, 400px);
}

.auth-divider {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 46px;
  padding: 0 12px;
  font: inherit;
  background: var(--brand-white);
  color: var(--ink);
}

input:focus {
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 4px rgba(227, 168, 200, 0.2);
  outline: none;
}

.status {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(214, 194, 202, 0.36);
  color: var(--brand-primary);
  display: none;
}

.status.error {
  background: #fff2f4;
  color: var(--error);
}

.status.warn {
  background: #fff7e8;
  color: var(--warning);
}

.account-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(227, 168, 200, 0.2);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}

@media (max-width: 760px) {
  .topbar {
    padding: 12px 0;
  }

  .topbar-inner {
    width: min(100% - 32px, 1200px);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
  }

  .page {
    width: min(100% - 32px, 1120px);
    padding-top: 164px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
