:root {
  --sidebar-bg: #0f1419;
  --sidebar-text: #e8eef4;
  --sidebar-muted: #8b9aab;
  --accent: #3d9a6e;
  --accent-hover: #2d7a56;
  --page-bg: #f6f8fa;
  --card-bg: #fff;
  --border: #d8dee4;
  --text: #1a2332;
  --error: #c53030;
  --success: #276749;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--page-bg);
  min-height: 100vh;
}

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

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 1.5rem 0;
}

.sidebar-brand {
  padding: 0 1.25rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.75rem;
}

.sidebar-link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: var(--sidebar-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.sidebar-link:hover {
  color: var(--sidebar-text);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-link.active {
  color: var(--sidebar-text);
  background: rgba(61, 154, 110, 0.25);
}

.main-content {
  flex: 1;
  padding: 2rem 2.5rem;
  max-width: 720px;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.page-lead {
  margin: 0 0 1.75rem;
  color: #4a5568;
  max-width: 52ch;
}

.support-static a {
  color: var(--accent);
  font-weight: 600;
}

.support-static a:hover {
  color: var(--accent-hover);
}

.policy-doc {
  max-width: 52rem;
}

.policy-meta {
  margin: 0 0 0.35rem;
  color: #4a5568;
  font-size: 0.95rem;
}

.policy-doc > p:first-of-type {
  margin-top: 1.25rem;
}

.policy-heading {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.policy-doc p {
  margin: 0 0 1rem;
}

.policy-doc ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.policy-doc li {
  margin-bottom: 0.4rem;
}

.policy-doc a {
  color: var(--accent);
  font-weight: 600;
}

.policy-doc a:hover {
  color: var(--accent-hover);
}

.support-form .field {
  margin-bottom: 1.25rem;
}

.support-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.input {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--card-bg);
}

.input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.field-error {
  display: block;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.btn-primary {
  margin-top: 0.5rem;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

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

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.alert-success {
  background: #e6ffed;
  border: 1px solid #9ae6b4;
  color: var(--success);
}

.alert-error {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  color: var(--error);
}

.text-muted {
  color: #718096;
}

/* Home landing */
.home-landing {
  max-width: 40rem;
}

.home-hero {
  margin-bottom: 1.75rem;
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a3d2e 0%, #0f2840 50%, #1e1a40 100%);
  color: #f0f4fc;
  box-shadow: 0 12px 40px rgba(15, 40, 64, 0.35);
}

.home-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3a8;
}

.home-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(90deg, #7dd3a8, #5eead4, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-tagline {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #c8e6ff;
  line-height: 1.45;
}

.home-panel {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px solid transparent;
}

.home-panel--protein {
  background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 45%, #e0f2fe 100%);
  border-color: rgba(61, 154, 110, 0.35);
  box-shadow: 0 8px 24px rgba(61, 154, 110, 0.12);
}

.home-panel--bonus {
  background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 50%, #fef3c7 100%);
  border-color: rgba(234, 88, 12, 0.35);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.12);
}

.home-bonus-title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #9a3412;
  letter-spacing: -0.02em;
}

.home-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.home-list li {
  position: relative;
  margin-bottom: 0.65rem;
  padding-left: 1.35rem;
  line-height: 1.5;
  color: #1a2332;
}

.home-list li:last-child {
  margin-bottom: 0;
}

.home-panel--protein .home-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d9a6e, #14b8a6);
  box-shadow: 0 0 0 3px rgba(61, 154, 110, 0.25);
}

.home-panel--bonus .home-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

.home-list--compact li {
  margin-bottom: 0.45rem;
}

.home-outro {
  margin-top: 1.75rem;
  padding: 1.25rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(120deg, #312e81 0%, #1e1b4b 55%, #134e4a 100%);
  color: #e0e7ff;
  text-align: center;
  box-shadow: 0 10px 32px rgba(30, 27, 75, 0.35);
}

.home-price {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fde68a;
}

.home-closing {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fde68a, #fbbf24, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 1rem 0;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .main-content {
    padding: 1.25rem 1rem;
  }
}
