:root {
  --bg: #F8FAFC;
  --panel: #ffffff;
  --edge: #E2E8F0;
  --edge-strong: #CBD5E1;
  --muted: #64748B;
  --text: #0F172A;
  
  /* Brand Colors */
  --accent: #0F766E;        /* Teal 700 */
  --accent-light: #14B8A6;  /* Teal 500 */
  --accent-dark: #134E4A;   /* Teal 900 */
  --amber: #D97706;
  
  /* UI Tokens */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
  --max-width: 1200px;
  
  --font-display: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  padding: 0 0 6rem;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { padding: 0; margin: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3.6rem, 5vw, 5.6rem); line-height: 1.1; }
h2 { font-size: clamp(2.8rem, 3vw, 3.6rem); line-height: 1.2; }
h3 { font-size: 2rem; font-weight: 600; }

p { margin: 0; color: var(--muted); }

.container {
  width: min(var(--max-width), 100% - 4rem);
  margin: 0 auto;
}

.section {
  margin: 6rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}
.btn.primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn.ghost { background: transparent; color: var(--text); border-color: var(--edge-strong); }
.btn.ghost:hover { background: #fff; border-color: var(--text); }

.btn.small { padding: 0.8rem 1.6rem; font-size: 1.4rem; }

/* Dark Mode Overrides for Hero Buttons */
.btn.on-dark.primary { background: #fff; color: var(--accent-dark); }
.btn.on-dark.ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.btn.on-dark.ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.pill {
  display: inline-flex;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill.dark-mode {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: block;
}

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; min-height: 10rem;}
.brand { display: flex; gap: 1rem; align-items: center; font-weight: 700; color: var(--text); }
.brand-logo { height: 6.5rem; width: auto; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a:not(.btn) { font-weight: 600; font-size: 1.4rem; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }

/* Navigation Toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
.nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 40;
  align-items: flex-start; justify-content: center; padding-top: 2rem;
}
.nav-overlay.open { display: flex; }
.nav-overlay__card {
  background: #fff; padding: 2rem; border-radius: var(--radius-lg); width: 90%; max-width: 400px;
}
.nav-menu { display: flex; flex-direction: column; gap: 1rem; }
.nav-menu a { display: block; padding: 1rem; font-weight: 600; color: var(--text); }
.close-icon {
  /* Positioning inside the relative drawer header */
  position: absolute;
  top: 2rem;
  right: 2rem;

  /* Reset Default Button Styles */
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;

  /* Sizing & Layout */
  width: 40px;  /* Large hit area for fingers */
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Typography for the "&times;" symbol */
  font-size: 3.2rem; /* Makes the X big enough to look like an icon */
  line-height: 1;    /* Prevents text spacing from pushing it off-center */
  font-weight: 400;  /* Standard weight for the symbol */
  
  /* Colors & Transition */
  color: var(--muted);
  transition: all 0.2s ease;
  z-index: 10;
}

/* Hover Effect */
.close-icon:hover {
  color: var(--accent); /* Turns Teal on hover */
  transform: scale(1.1) rotate(90deg); /* Adds a subtle spin/grow effect */
}

/* Footer */
footer { padding: 4rem 0; border-top: 1px solid var(--edge); text-align: center; color: var(--muted); font-size: 1.4rem; }


/* Utilities */
.is-hidden { display: none !important; }
html.auth-pending body { visibility: hidden; }

/* Form controls */
.input {
  width: 100%;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  background: #fff;
  color: var(--text);
  font-size: 1.5rem;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.input-row { display: flex; gap: 0.8rem; align-items: stretch; }
.check-row { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); font-weight: 600; font-size: 1.4rem; }

.info-banner {
  border: 1px solid rgba(20,184,166,0.35);
  background: rgba(20,184,166,0.08);
  color: var(--text);
  padding: 1.2rem 1.2rem;
  border-radius: var(--radius);
}
.error-banner {
  border: 1px solid rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.08);
  color: var(--text);
  padding: 1.2rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.4rem;
}
