/* GPOutcomes — Shared Styles */
:root {
  --bg: #f8fafc; --bg2: #ffffff; --bg3: #f1f5f9;
  --text: #0f172a; --text2: #64748b; --text3: #94a3b8;
  --border: #e2e8f0;
  --accent: #2563eb; --accent-hover: #1d4ed8; --accent-light: #eff6ff; --accent-lighter: #dbeafe;
  --green: #10b981; --green-light: #ecfdf5;
  --red: #ef4444; --red-light: #fef2f2;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --radius: 8px; --radius-lg: 12px; --radius-xl: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
p { color: var(--text2); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg2); }
.text-center { text-align: center; }

/* ── Navigation ── */
.nav {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 14px 0; position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-size: 1.35rem; font-weight: 800; color: var(--text);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.02em;
}
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text2); text-decoration: none; font-size: 0.92rem;
  font-weight: 500; transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-size: 0.92rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.15s;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 3px rgba(37,99,235,0.3);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.25); }
.btn-secondary {
  background: var(--bg2); color: var(--text); border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg3); border-color: var(--text3); }
.btn-large { padding: 16px 36px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-small { padding: 8px 16px; font-size: 0.85rem; }
.btn-ghost { background: none; border: none; color: var(--accent); padding: 8px 4px; }
.btn-ghost:hover { background: var(--accent-light); border-radius: var(--radius); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Hero ── */
.hero {
  padding: 100px 0 80px; text-align: center;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg) 100%);
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .highlight { color: var(--accent); }
.hero p { font-size: 1.2rem; max-width: 640px; margin: 0 auto 32px; color: var(--text2); }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-image {
  margin-top: 60px; max-width: 960px; margin-left: auto; margin-right: auto;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.hero-image img { width: 100%; display: block; }

/* ── Stats Bar ── */
.stats-bar {
  display: flex; justify-content: center; gap: 48px; padding: 40px 0;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-item .stat-label { font-size: 0.88rem; color: var(--text2); margin-top: 2px; }

/* ── Feature Cards ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px; margin-top: 48px;
}
.feature-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: all 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent-lighter); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--accent-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; line-height: 1.6; }

/* ── Pricing ── */
.pricing-card {
  max-width: 460px; margin: 48px auto 0; background: var(--bg2);
  border: 2px solid var(--accent); border-radius: var(--radius-xl);
  padding: 40px 36px; text-align: center; position: relative;
  box-shadow: var(--shadow-md);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 4px 16px; border-radius: 20px; letter-spacing: 0.5px; text-transform: uppercase;
}
.pricing-amount { margin: 20px 0 8px; }
.pricing-amount .currency { font-size: 1.5rem; font-weight: 700; vertical-align: top; line-height: 1.8; }
.pricing-amount .price { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.03em; }
.pricing-amount .period { font-size: 1rem; color: var(--text2); font-weight: 500; }
.pricing-features {
  list-style: none; text-align: left; margin: 28px 0; display: flex;
  flex-direction: column; gap: 12px;
}
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; color: var(--text);
}
.pricing-features li::before {
  content: '✓'; color: var(--green); font-weight: 700; font-size: 1rem; flex-shrink: 0;
}

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 48px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.faq-q {
  padding: 20px 0; font-size: 1rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; width: 100%; text-align: left;
  color: var(--text); transition: color 0.15s;
}
.faq-q:hover { color: var(--accent); }
.faq-q .arrow { font-size: 1.2rem; transition: transform 0.2s; color: var(--text3); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }
.faq-a p { font-size: 0.94rem; line-height: 1.7; color: var(--text2); }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg) 50%, var(--bg3) 100%);
  padding: 24px;
}
.auth-card {
  background: var(--bg2); border-radius: var(--radius-xl); padding: 40px 36px;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.auth-card .logo {
  text-align: center; margin-bottom: 28px;
}
.auth-card .logo a {
  font-size: 1.5rem; font-weight: 800; color: var(--text); text-decoration: none;
}
.auth-card .logo a span { color: var(--accent); }
.auth-card h2 { text-align: center; margin-bottom: 6px; font-size: 1.4rem; }
.auth-card .subtitle { text-align: center; margin-bottom: 28px; font-size: 0.92rem; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600; color: var(--text);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.95rem; background: var(--bg);
  color: var(--text); outline: none; transition: all 0.15s;
}
.form-group input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-group input::placeholder { color: var(--text3); }

.auth-error {
  background: var(--red-light); color: var(--red); padding: 10px 14px;
  border-radius: var(--radius); font-size: 0.88rem; margin-bottom: 16px;
  display: none; font-weight: 500;
}
.auth-success {
  background: var(--green-light); color: var(--green); padding: 10px 14px;
  border-radius: var(--radius); font-size: 0.88rem; margin-bottom: 16px;
  display: none; font-weight: 500;
}

.auth-footer {
  text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--text2);
}
.auth-footer a { font-weight: 600; }
.auth-links {
  display: flex; justify-content: space-between; margin-top: 12px; font-size: 0.85rem;
}

/* ── Account Page ── */
.account-page { padding: 40px 0; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto; }
.account-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.account-card h3 { margin-bottom: 16px; }
.account-info { font-size: 0.92rem; color: var(--text2); margin-bottom: 8px; }
.account-info strong { color: var(--text); }

.sub-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; font-size: 0.82rem; font-weight: 600;
}
.sub-active { background: var(--green-light); color: #059669; }
.sub-inactive { background: var(--red-light); color: var(--red); }
.sub-none { background: var(--bg3); color: var(--text2); }

/* ── Footer ── */
.footer {
  background: var(--text); color: var(--text3); padding: 40px 0;
  font-size: 0.88rem;
}
.footer .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer a { color: var(--bg3); }
.footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 24px; list-style: none; }

/* ── Success Page ── */
.success-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.success-card {
  background: var(--bg2); border-radius: var(--radius-xl); padding: 48px 40px;
  max-width: 480px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.success-card h2 { margin-bottom: 10px; }
.success-card p { margin-bottom: 24px; }

/* ── 404 Page ── */
.error-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.error-page h1 { font-size: 6rem; color: var(--accent); margin-bottom: 8px; }
.error-page p { margin-bottom: 24px; }

/* ── Spinner ── */
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.7s linear infinite; margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 60px 0 50px; }
  .hero p { font-size: 1.05rem; }
  .stats-bar { gap: 24px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.82rem; }
  .account-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 32px 24px; }
  .auth-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .nav-links .hide-mobile { display: none; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
