/* RateForge website — shared styles
   Matches the landing page brand: navy + orange + white.
   Quick + clean so Andrew can iterate tomorrow. */

:root {
  --navy:        #0E1747;
  --navy-2:      #182158;
  --orange:      #E0742C;
  --orange-2:    #f08a3f;
  --text:        #0f172a;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --bg:          #f5f6fa;
  --card:        #ffffff;
  --success:     #16a34a;
  --error:       #dc2626;
  --shadow:      0 20px 50px rgba(10, 19, 74, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ───── NAV ───── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 19, 74, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; }
.brand-text { font-weight: 800; font-size: 20px; letter-spacing: 0.5px; }
.brand-rate { color: var(--orange); }
.brand-forge { color: white; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: rgba(255, 255, 255, 0.85); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--orange-2); }
.nav-cta {
  background: var(--orange);
  color: white !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--orange-2); color: white !important; }
/* ───── MOBILE NAV (hamburger) ─────
   nav.js injects a button.nav-toggle into .nav-inner on every page.
   On desktop the button is hidden and links display inline as before.
   On mobile the inline links collapse, the hamburger shows, and tapping
   it slides a full-width menu down from the nav bar.                  */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 6px 4px;
  margin-left: 8px;
  cursor: pointer;
  color: #fff;
}
.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle .bar + .bar { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 700px) {
  .nav-toggle { display: inline-block; }

  /* Inline link strip becomes a stacked drawer that lives below the bar */
  .nav-inner { flex-wrap: wrap; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 8px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 16px;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta {
    margin-top: 12px;
    text-align: center;
    padding: 12px 18px !important;
    border-radius: 10px !important;
  }
}

/* ───── BUTTONS ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
}
.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}
.btn-secondary {
  background: white;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: white; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--navy); }

/* ───── CONTAINER ───── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}
@media (max-width: 700px) {
  .section { padding: 56px 0; }
}

/* ───── HERO ───── */
.hero {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(40, 60, 140, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(24, 42, 92, 0.5) 0%, transparent 60%),
    var(--navy);
  color: white;
  padding: 80px 24px 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-logo {
  height: 110px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.4));
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero h1 .accent { color: var(--orange); }
.hero p.lede {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.trial-line {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* ───── SECTION HEAD ───── */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.eyebrow {
  color: var(--orange);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--navy);
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
}

/* ───── FEATURE GRID ───── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ───── PRICING ───── */
.pricing-section { background: var(--card); padding-top: 80px; padding-bottom: 80px; }
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: stretch;
}
.plan {
  background: white;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
}
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px)  { .plans { grid-template-columns: 1fr !important; } }
.plan.featured {
  border-color: var(--orange);
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.15);
  transform: scale(1.02);
}
.plan.lifetime {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2770 100%);
  border-color: var(--navy);
  color: white;
}
.plan.lifetime .plan-name,
.plan.lifetime .plan-note { color: rgba(255, 255, 255, 0.7); }
.plan.lifetime .plan-price { color: white; }
.plan.lifetime .plan-price span { color: rgba(255, 255, 255, 0.6); }
.plan.lifetime ul li { color: rgba(255, 255, 255, 0.92); border-bottom-color: rgba(255, 255, 255, 0.12); }
.plan.lifetime ul li::before { color: var(--orange-2); }
.plan-tag {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--orange);
  color: white;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.plan-name {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  margin-bottom: 14px;
}
.plan-price {
  font-size: 46px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -1.5px;
  line-height: 1;
}
.plan-price span { font-size: 16px; color: var(--muted); font-weight: 500; }
.plan-note { color: var(--muted); font-size: 13px; margin: 8px 0 22px; }
.plan ul { list-style: none; flex: 1; margin-bottom: 22px; }
.plan ul li {
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.plan ul li::before { content: '✓ '; color: var(--orange); font-weight: bold; margin-right: 6px; }
.plan ul li:last-child { border: none; }
.plan .btn { width: 100%; }
.founder-counter {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: var(--orange-2);
}

/* ───── CTA STRIP ───── */
.cta-strip {
  background: var(--navy);
  color: white;
  padding: 64px 24px;
  text-align: center;
}
.cta-strip h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
}
.cta-strip p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  font-size: 16px;
}

/* ───── FORMS ───── */
.form-page {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.form-card {
  background: white;
  max-width: 460px;
  width: 100%;
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-card h1 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.form-card .sub { color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: white;
  color: var(--text);
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--orange);
}
.field textarea { min-height: 90px; resize: vertical; }
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.15s;
}
.oauth-btn:hover { background: var(--bg); }
.oauth-btn.dark { background: black; color: white; border-color: black; }
.oauth-btn.dark:hover { background: #222; }
.form-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.form-link a { color: var(--orange); font-weight: 700; }

/* ───── PLAN PILL on checkout/account ───── */
.plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 20px;
}

/* ───── FOOTER ───── */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-brand { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 36px; }
footer h4 {
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
footer a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  padding: 4px 0;
  font-size: 14px;
}
footer a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  text-align: center;
  font-size: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ───── INDUSTRY CHIPS (homepage feature) ───── */
.industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.industry-chip {
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ───── ALERT / NOTICE ───── */
.notice {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  margin: 18px 0;
}
.notice strong { color: var(--navy); }
