:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #111827;
  --muted: #475569;
  --border: #d1d5db;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --success: #16a34a;
  --success-hover: #15803d;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Sora", "Nunito Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 2%, #fcd34d 0%, transparent 30%),
    radial-gradient(circle at 95% 10%, #7dd3fc 0%, transparent 34%),
    radial-gradient(circle at 10% 90%, #86efac 0%, transparent 28%),
    var(--bg);
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 26px;
  display: grid;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.09);
}

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.auth-header-left {
  min-width: 0;
}

.auth-header-left p {
  margin-top: 4px;
  font-weight: 700;
  word-break: break-word;
}

.auth-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  background: #f8fafc;
}

.logo {
  width: 190px;
  height: auto;
}

h1, h2 {
  margin: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

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

.btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.plan-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-item .plan {
  width: 100%;
}

.mp-checkout-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.mp-subscription-link {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.mp-checkout-btn > * {
  max-width: 100%;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px 10px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item p {
  margin-top: 8px;
}

.plan {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.h3 {
  margin: 12px 0 8px;
  font-size: 16px;
}

.muted {
  color: var(--muted);
}

@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }

  .auth-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-header-actions {
    width: 100%;
  }
}
