/* Launchpad Dashboard Styles */
.launchpad-container {
  max-width: 1200px;
  margin: auto;
  padding: 3rem 1rem;
}

#welcome-message {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
  text-align: center;
}

.launchpad-desc {
  text-align: center;
  color: var(--muted);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.launchpad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.launchpad-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 24px var(--shadow);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.2s;
}

.launchpad-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.launchpad-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.launchpad-btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.launchpad-btn:hover {
  background: var(--accent-dark);
}
/* General Styling & Variables 
  This section defines the overall look and feel, including colors and fonts.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Dark theme is the default */
:root {
  --bg: #1a202c;
  --text: #e2e8f0;
  --card-bg: #2d3748;
  --user-bubble: #264e3a;
  --bot-bubble: #1f2a36;
  --accent: #63b3ed;
  --accent-dark: #4299e1;
  --muted: #a0aec0;
  --header-bg: rgba(26, 32, 44, 0.85);
  --footer-bg: #2d3748;
  --shadow: rgba(0, 0, 0, 0.2);
  --border: #4a5568;
}

/* Light theme override when body.light is present */
body.light {
  --bg: #ffffff;
  --text: #1a202c;
  --card-bg: #ffffff;
  --user-bubble: #d1e7dd;
  --bot-bubble: #f1f5f9;
  --accent: #4299e1;
  --accent-dark: #2b6cb0;
  --muted: #718096;
  --header-bg: rgba(255, 255, 255, 0.85);
  --footer-bg: #f7fafc;
  --shadow: rgba(0, 0, 0, 0.05);
  --border: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header & Navigation 
  Styles for the top navigation bar.
*/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--header-bg);
  box-shadow: 0 2px 6px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

nav a {
  text-decoration: none;
  margin-left: 2rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

.toggle-btn {
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 20px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.toggle-btn:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}

/* Main Page: Hero Section 
  Styles for the main introductory section on index.html.
*/
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem;
  text-align: center;
  background: radial-gradient(circle, var(--bg) 0%, var(--footer-bg) 100%);
}

.hero h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero p {
  max-width: 600px;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: var(--muted);
}

.hero .cta-buttons {
    display: flex;
    gap: 1rem;
}

.hero button {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* Main Page: Features Section
  Styles for the feature cards on index.html.
*/
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 3rem 1.25rem;
  max-width: 1200px;
  margin: auto;
}

.feature {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.feature.show {
  opacity: 1;
  transform: translateY(0);
}

.feature h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.feature p {
  font-size: 1rem;
  color: var(--muted);
}

/* Pricing Table */
.pricing-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.95rem; }
.pricing-table th, .pricing-table td { padding: 0.75rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }
.pricing-table thead th { background: rgba(255,255,255,0.04); font-weight: 600; color: var(--text); }
body.light .pricing-table thead th { background: rgba(0,0,0,0.04); }
.pricing-table tbody tr:hover { background: rgba(255,255,255,0.03); }
body.light .pricing-table tbody tr:hover { background: rgba(0,0,0,0.03); }
.pricing-table td:first-child { font-weight: 600; }

/* New horizontal pricing layout */
.pricing-rates {
  margin-top: 1.25rem;
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  text-align: left;
  flex-wrap: wrap;
}

.pricing-rates .rate-group {
  background: linear-gradient(145deg, var(--card-bg), var(--footer-bg));
  border: 1px solid var(--border);
  padding: 1.5rem 1.4rem 1.4rem;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 4px 14px var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  flex: 1 1 320px; /* grow, shrink, base width */
  min-width: 260px;
}

.pricing-rates .rate-group:not(:last-child) {
  /* subtle vertical divider effect on wide screens */
  --divider: 1px solid var(--border);
}

.pricing-rates .rate-group:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--shadow);
}

.pricing-rates h4 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.rate-line {
  margin: 0.2rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
  font-size: 0.97rem;
}

.rate-line .label { color: var(--muted); font-weight: 600; }
.rate-line .price { font-weight: 700; color: var(--text); }
.rate-line .per-hour {
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  letter-spacing: 0.5px;
}
body.light .rate-line .per-hour { background: rgba(0,0,0,0.04); }

.savings-note {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  opacity: 0.9;
  border-top: 1px dashed var(--border);
  padding-top: 0.75rem;
}

/* On small screens, stack vertically and remove hover lift for less motion */
@media (max-width: 639px) {
  .pricing-rates { display: block; }
  .pricing-rates .rate-group { margin-bottom: 1rem; border-radius: 12px; }
  .pricing-rates .rate-group:hover { transform: none; box-shadow: 0 6px 16px var(--shadow); }
}

/* Tip card styling — separate card below the rates */
.tip-card {
  margin-top: 1rem;
  background: linear-gradient(180deg, rgba(99,179,237,0.04), transparent);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.035);
}

@media (min-width: 640px) {
  /* On wider screens keep the tip card centered and slightly narrower than the rate blocks */
  .tip-card { max-width: 840px; margin-left: auto; margin-right: auto; }
}

/* Inline tip — slim non-card banner placed near the rates */
.inline-tip {
  width: 100%;
  max-width: 880px;
  margin: 0.75rem auto 1rem auto;
  padding: 0.6rem 0.9rem;
  border-left: 4px solid var(--accent);
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.95rem;
}
.inline-tip .savings-note { margin: 0; text-transform: none; font-size: 0.95rem; }

@media (max-width: 639px) {
  .inline-tip { padding-left: 0.9rem; border-left-width: 3px; }
}

/* Rates section styling */
.rates-section {
  max-width: 1200px;
  margin: 2rem auto 3rem auto;
  padding: 0 1.25rem;
}

.rates-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.rates-intro h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.rates-intro p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Centered tip below all cards */
.centered-tip {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  text-align: center;
  border-left: 4px solid var(--accent);
  background: rgba(99, 179, 237, 0.04);
  border-radius: 8px;
}

.centered-tip .savings-note {
  margin: 0;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  opacity: 1;
  border: none;
  padding: 0;
}

/* Make anchor-wrapped feature cards behave visually like cards */
.feature-link { text-decoration: none; color: inherit; display: block; }
.feature-link:focus { outline: 3px solid rgba(99,179,237,0.25); border-radius: 12px; }

/*
  Authentication Pages (Login/Signup) & Index Auth Section
*/
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  background-color: var(--footer-bg);
}

.auth-card, #auth {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px var(--shadow);
  width: 100%;
  max-width: 400px;
  text-align: center;
  border: 1px solid var(--border);
}

#auth {
    margin: 4rem auto;
}


.auth-card h2, #auth h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.auth-card input, #auth input {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--bg);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure textarea in auth-card / #auth follows the theme */
.auth-card textarea, #auth textarea {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--bg);
  color: var(--text);
  font-size: 1rem;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-card textarea:focus, #auth textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.12);
}

/* Placeholder color follows muted variable */
.auth-card input::placeholder, .auth-card textarea::placeholder,
#auth input::placeholder, #auth textarea::placeholder {
  color: var(--muted);
}

.auth-card input:focus, #auth input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

.auth-card button, #auth button {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.auth-card button:hover, #auth button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

#status {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 1.2em;
}

.auth-card p {
    margin-top: 1.5rem;
    color: var(--muted);
}

/* Contact form specific styles */
.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 0.75rem;
}

.contact-form button[type="submit"] {
  padding: 0.9rem 1.25rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.contact-form button[type="submit"]:hover { background: var(--accent-dark); }

#status { margin-top: 0.75rem; color: var(--muted); }

.auth-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-card a:hover {
    text-decoration: underline;
}

/* Footer 
*/
footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
}

/* Animations 
*/
.hero h2, .hero p, .hero .cta-buttons {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.hero h2 { animation-delay: 0.2s; }
.hero p { animation-delay: 0.4s; }
.hero .cta-buttons { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Profile Setup Modal */
.profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  transition: all 0.3s ease-in-out;
}

.profile-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.profile-modal-card {
  width: 90%;
  max-width: 500px;
  padding: 2.5rem;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-modal-overlay.hidden .profile-modal-card {
  transform: scale(0.8);
}

.profile-modal-overlay:not(.hidden) .profile-modal-card {
  transform: scale(1);
}

.profile-modal-card label,
.profile-modal-card input {
  color: var(--text);
}

.profile-modal-card input[type="text"] {
  background-color: var(--bg);
  border: 1px solid var(--border);
}

.profile-modal-card input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

/* Chatbot page: reuses site variables for consistent theme */
.chatbot-container {
  max-width: 1000px;
  height: 640px;
  margin: 3rem auto;
  background: linear-gradient(180deg, var(--card-bg), var(--card-bg));
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow);
  display: grid;
  position: relative;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  color: var(--text);
}

.chatbot-container .title-bar {
  grid-column: 1 / -1;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display:flex;
  align-items:center;
  gap:12px;
  background: transparent;
}

.chatbot-container h2{font-size:1.5rem;margin:0;color:var(--accent);}
.chatbot-container p{margin:0 0 0 8px;color:var(--muted);font-size:0.95rem}

.sidebar{
  padding: 1rem;
  border-right: 1px solid var(--border);
  display:flex;flex-direction:column;gap:0.75rem;
}
.sidebar .title{font-weight:700;color:var(--accent);margin-bottom:0.5rem}
.conversation-item{padding:0.6rem 0.8rem;border-radius:8px;background:transparent;color:var(--text);cursor:pointer;border:1px solid transparent}
.conversation-item:hover{background:rgba(0,0,0,0.03)}

#chat { background: var(--footer-bg); padding: 1rem 1rem 140px 1rem; height: 100%; overflow-y: auto; display:flex; flex-direction:column; }
.messages{ display:flex; flex-direction:column; gap:12px; padding:12px 8px 24px 8px; }
.message-row{ display:flex; gap:12px; align-items:flex-start }
.message-row.user{ justify-content:flex-end }
.bubble{ max-width:78%; padding:12px 14px; border-radius:12px; font-size:1rem; line-height:1.4 }
.bubble.user{ background-color: var(--user-bubble); color:var(--text); border-bottom-right-radius:6px }
.bubble.bot{ background-color: var(--bot-bubble); color:var(--text); border-bottom-left-radius:6px }
.avatar{ width:36px; height:36px; border-radius:10px; background:var(--border); display:inline-flex; align-items:center; justify-content:center; color:var(--muted); font-weight:700 }

.composer{ position:absolute; right:0; left:260px; bottom:0; padding:14px; border-top:1px solid var(--border); background:var(--footer-bg); display:flex; gap:12px; align-items:flex-end; z-index:6 }
textarea#input{ flex:1; min-height:46px; max-height:160px; padding:12px; border-radius:10px; border:1px solid var(--border); background:var(--bg); color:var(--text); resize:none; font-size:1rem }
textarea#input:focus{ outline:none; box-shadow:0 0 0 4px rgba(66,153,225,0.06); border-color:var(--accent) }
button#send{ padding:10px 16px; border-radius:10px; border:none; background:var(--accent); color:#fff; font-weight:600; cursor:pointer }

/* Responsive */
@media (max-width: 1024px) {
  header { padding: 1rem 1.5rem; }
  header h1 { font-size: 1.25rem; }
  nav a { margin-left: 1rem; font-size: 0.95rem; }
  .hero h2 { font-size: 2.25rem; }
}

@media (max-width: 820px) {
  header { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0.75rem 1rem; }
  nav { display:flex; flex-wrap:wrap; gap:0.5rem; align-items:center; }
  .hero { padding: 3rem 1rem; }
  .hero h2 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .features { grid-template-columns: 1fr; padding: 2rem 1rem; gap: 1rem; }
  .feature { padding: 1.5rem; }
}

@media (max-width: 480px) {
  header h1 { font-size: 1rem; }
  .toggle-btn { padding: 0.4rem 0.75rem; }
  .hero h2 { font-size: 1.5rem; }
}

@media (max-width: 820px){ .chatbot-container{ grid-template-columns: 1fr; height: auto; } .composer{ left:0 } .sidebar{ display:none } #chat{ padding-bottom:220px } }

