@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,700;0,9..144,900;1,9..144,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #FAFAF8;
  --panel: #F5F0E8;
  --surface: #FFFFFF;
  --primary: #F04E23;
  --accent: #F7B731;
  --ink: #1A120A;
  --ink-muted: #7A5C3E;
  --line: rgba(240,78,35,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; }

/* Utilities */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.grad-text { background: linear-gradient(135deg, #F04E23, #F7B731); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 800;
  border-radius: 0.75rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  opacity: 1;
  /* Solid fill + opaque gradient overlay (no translucency through the button) */
  background-color: #F04E23;
  background-image: linear-gradient(135deg, #F04E23 0%, #EB4718 38%, #F7B731 100%);
  box-shadow: 0 4px 14px rgba(212, 60, 20, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
  transform: scale(1.02);
  background-image: linear-gradient(135deg, #E03D18 0%, #D93614 38%, #EDAA28 100%);
  box-shadow: 0 6px 20px rgba(212, 60, 20, 0.5);
}
.btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.75); color: #1A120A; border: 1.5px solid rgba(26,18,10,0.35); border-radius: 0.75rem; padding: 0.875rem 1.75rem; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: border-color 0.15s, background 0.15s; text-decoration: none; font-family: inherit; backdrop-filter: blur(4px); }
.btn-outline:hover { border-color: rgba(240,78,35,0.6); background: rgba(255,255,255,0.92); }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid rgba(240,78,35,0.35); background: rgba(240,78,35,0.08); color: #F04E23; border-radius: 9999px; padding: 0.375rem 1rem; font-size: 0.75rem; font-weight: 600; }
.ft-card731 { background: var(--surface); border-radius: 1rem; border: 1px solid rgba(0,0,0,0.07); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(250,250,248,0.95); backdrop-filter: blur(12px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; height: 4rem; }
.wordmark { font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-size: 1.75rem; background: linear-gradient(135deg, #F04E23, #F7B731); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 0.75rem; }
.nav-links a { font-size: 0.875rem; color: var(--ink-muted); transition: color 0.15s; }
.nav-links .btn-nav { border: 1px solid rgba(240,78,35,0.25); border-radius: 0.5rem; padding: 0.375rem 0.75rem; }
.nav-links .btn-cta { background: linear-gradient(135deg, #F04E23, #F7B731); color: #fff; border-radius: 0.5rem; padding: 0.375rem 1rem; font-weight: 600; box-shadow: 0 0 16px rgba(240,78,35,0.35); }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--panel); padding: 2rem 0; }
.footer-inner { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.75rem; color: var(--ink-muted); }
.footer-nav a:hover { color: var(--accent); }
.legal { font-size: 0.6875rem; color: var(--ink-muted); line-height: 1.6; }
.legal a { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--primary); }

/* Form elements */
.form-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.075em; margin-bottom: 0.5rem; }
.form-input { height: 2.75rem; width: 100%; border-radius: 0.75rem; border: 1px solid #E8D0B8; background: var(--panel); padding: 0 1rem; font-size: 0.875rem; color: var(--ink); font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s; outline: none; }
.form-input:focus { border-color: rgba(240,78,35,0.6); box-shadow: 0 0 0 3px rgba(240,78,35,0.12); }
.form-input::placeholder { color: rgba(122,92,62,0.4); }

/* Section spacing */
section { padding: 5rem 0; }

/* Popup */
#email-popup { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100; width: 340px; background: var(--surface); border-radius: 1.25rem; border: 1px solid var(--line); box-shadow: 0 8px 40px rgba(0,0,0,0.15); padding: 1.5rem; transition: opacity 0.3s, transform 0.3s; }
#email-popup.hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
#email-popup .popup-close { position: absolute; top: 0.75rem; right: 0.75rem; background: none; border: none; font-size: 1rem; color: var(--ink-muted); cursor: pointer; line-height: 1; padding: 0.25rem; }

/* Email popup re-open bubble */
.email-popup-bubble {
  position: fixed;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 200;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 1px solid rgba(240,78,35,0.25);
  background: rgba(255,255,255,0.95);
  color: #F04E23;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.email-popup-bubble.hidden { display: none; }

/* Auth layout */
.auth-layout { display: flex; min-height: 100vh; }
.auth-sidebar { display: none; width: 460px; flex-shrink: 0; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(240,78,35,0.15); padding: 2.5rem; background: linear-gradient(160deg, #FAFAF8, #FFF5F0); overflow: hidden; position: relative; }
.auth-glow1 { position: absolute; top: -8rem; right: -8rem; height: 16rem; width: 16rem; border-radius: 50%; opacity: 0.2; background: radial-gradient(circle, #F04E23, transparent 70%); pointer-events: none; }
.auth-glow2 { position: absolute; bottom: -5rem; left: -5rem; height: 12rem; width: 12rem; border-radius: 50%; opacity: 0.12; background: radial-gradient(circle, #F7B731, transparent 70%); pointer-events: none; }
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(240,78,35,0.09) 0%, rgba(240,78,35,0) 38%),
    radial-gradient(circle at 82% 84%, rgba(247,183,49,0.09) 0%, rgba(247,183,49,0) 34%),
    linear-gradient(180deg, #FFFCF9 0%, #FAFAF8 55%, #F8F2EA 100%);
}
.auth-main::before {
  content: "🏋";
  position: absolute;
  top: 11%;
  left: 12%;
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  opacity: 0.12;
  transform: rotate(-10deg);
  filter: saturate(1.1);
  pointer-events: none;
}
.auth-main::after {
  content: "⚡";
  position: absolute;
  bottom: 12%;
  right: 14%;
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  opacity: 0.12;
  transform: rotate(8deg);
  pointer-events: none;
}
.auth-box { width: 100%; max-width: 24rem; }
.auth-box {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(240,78,35,0.12);
  border-radius: 1.1rem;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(2px);
  box-shadow: 0 16px 48px rgba(26,18,10,0.08), 0 4px 18px rgba(240,78,35,0.08);
  padding: 1.25rem;
}
@media (max-width: 1023px) {
  .auth-main::before {
    top: 7%;
    left: 7%;
    opacity: 0.1;
  }
  .auth-main::after {
    right: 7%;
    bottom: 10%;
    opacity: 0.1;
  }
}
@media (min-width: 1024px) { .auth-sidebar { display: flex; } .auth-sidebar-wordmark { display: none; } }
@media (max-width: 1023px) { .auth-sidebar-wordmark { display: block; margin-bottom: 2rem; } }

/* Error page */
.error-page { display: flex; flex-direction: column; min-height: 100vh; }
.error-header { border-bottom: 1px solid var(--line); background: var(--surface); padding: 1.25rem 1.5rem; }
.error-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 1.5rem; text-align: center; }
.error-icon { width: 5rem; height: 5rem; border-radius: 1rem; border: 1px solid rgba(240,78,35,0.2); background: linear-gradient(145deg, #FFFFFF, #F5F0E8); display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem; box-shadow: 0 1px 3px rgba(240,78,35,0.08); }
.error-icon svg { width: 2.5rem; height: 2.5rem; color: var(--primary); }
.error-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 2rem 1.5rem; }

@media (max-width: 640px) {
  .nav-links .hide-sm { display: none; }
  .wordmark { font-size: 1.5rem; }
  .grid-cols-4 { grid-template-columns: 1fr 1fr; }
}
