:root {
  --bg: #0f0f11;
  --bg-soft: #151519;
  --grid: rgba(255,255,255,0.04);
  --text: #f2f2f2;
  --muted: #b0b0b0;
  --accent: #ff7a18;
  --accent-2: #ff9a3d;
  --card: #1b1b20;
  --card-border: rgba(255,255,255,0.06);
  --shadow: rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #2a1a0f 0%, transparent 60%),
              radial-gradient(900px 500px at 100% 10%, #1e1e2a 0%, transparent 60%),
              var(--bg);
  min-height: 100vh;
}

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: grid;
  gap: 24px;
}

.hero {
  text-align: left;
  animation: fadeUp 0.6s ease-out;
}

.brand {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--text);
}

.hero h1 {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 30px;
  margin: 6px 0 8px;
  color: var(--accent);
}

.subtitle {
  color: var(--muted);
  line-height: 1.5;
  font-size: 15px;
}

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
              var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 20px 60px var(--shadow);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s ease-out;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.25;
  pointer-events: none;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.tab {
  flex: 1;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab.active {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255,122,24,0.4);
}

.currency {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.pill {
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  padding: 6px 12px;
  cursor: pointer;
}

.pill.active {
  border-color: var(--accent);
  color: var(--text);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.plan {
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan.active {
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(255,122,24,0.2);
  transform: translateY(-2px);
}

.plan-title {
  font-size: 15px;
  color: var(--muted);
}

.plan-price {
  font-size: 22px;
  font-weight: 700;
  margin-top: 6px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.field span {
  color: var(--muted);
  font-size: 13px;
}

.field input {
  background: #141418;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
}

.cta {
  width: 100%;
  border: none;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #111;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}

.cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255,122,24,0.3);
}

.fineprint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.fineprint a {
  color: var(--text);
}

.legal-link {
  background: transparent;
  border: none;
  color: var(--text);
  text-decoration: underline;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.legal-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.summary {
  animation: fadeUp 0.8s ease-out;
}

.summary-card {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--card-border);
}

.summary-title {
  color: var(--muted);
  font-size: 13px;
}

.summary-price {
  font-size: 26px;
  font-weight: 700;
  margin-top: 6px;
}

.summary-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(720px, 92vw);
  max-height: 80vh;
  overflow: hidden;
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 80px var(--shadow);
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
}

.modal__title {
  font-weight: 700;
  font-size: 16px;
}

.modal__close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 18px;
  cursor: pointer;
}

.modal__body {
  padding: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  overflow: auto;
  white-space: pre-wrap;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 720px) {
  .hero h1 { font-size: 38px; }
  .brand { font-size: 32px; }
}
