/* QuitLosing main site — shared styles
   Design family: GitHub dark palette, same as practice.quitlosing.in
   bg:#0d1117  surface:#161b22  border:#30363d  text:#e6edf3
   muted:#8b949e  blue:#58a6ff  red:#ff7b72  green:#2ea043  yellow:#d29922
*/

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

html, body { min-height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(ellipse at top, #161b22 0%, #0d1117 60%);
  background-attachment: fixed;
  color: #e6edf3;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #21262d;
}
.nav {
  max-width: 1080px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex; flex-direction: column; line-height: 1.1;
  text-decoration: none;
}
.brand .logo { font-size: 20px; font-weight: 800; color: #58a6ff; letter-spacing: -0.5px; }
.brand .tag { font-size: 11px; color: #8b949e; margin-top: 2px; }

.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: #c9d1d9; font-size: 14px; font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: #58a6ff; }
.nav-links a.current { color: #58a6ff; }
.nav-cta {
  background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
  color: #fff !important;
  padding: 8px 16px; border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover { text-decoration: none; }

.nav-toggle {
  display: none;
  background: none; border: none; color: #e6edf3;
  font-size: 22px; cursor: pointer; padding: 4px 8px;
}

/* ---------- Layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 48px 20px; }
.narrow { max-width: 720px; }
section { padding: 40px 0; }
section + section { border-top: 1px solid #21262d; }

h1, h2, h3 { color: #f0f6fc; letter-spacing: -0.4px; line-height: 1.2; }
h1 { font-size: 42px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.8px; }
h2 { font-size: 28px; font-weight: 700; margin-bottom: 18px; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
p { color: #c9d1d9; margin-bottom: 16px; }
p.lead { font-size: 18px; color: #c9d1d9; }
.muted { color: #8b949e; }
strong { color: #f0f6fc; }
ul, ol { margin: 0 0 16px 22px; color: #c9d1d9; }
li { margin-bottom: 8px; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}
.hero h1 { max-width: 760px; margin-left: auto; margin-right: auto; }
.hero .lead { max-width: 620px; margin: 0 auto 28px; }
.hero .lead strong { color: #ff7b72; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(46, 160, 67, 0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(46, 160, 67, 0.4); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: #e6edf3;
  border: 1px solid #30363d;
}
.btn-secondary:hover { background: #161b22; border-color: #58a6ff; color: #58a6ff; text-decoration: none; }
.btn-lg { padding: 18px 36px; font-size: 17px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 22px;
}
.card h3 { color: #f0f6fc; margin-bottom: 8px; }
.card p { font-size: 14px; color: #c9d1d9; margin: 0; }

.stat-card { text-align: center; }
.stat-card .num { font-size: 28px; font-weight: 800; color: #58a6ff; margin-bottom: 6px; }
.stat-card .desc { font-size: 13px; color: #8b949e; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.step {
  background: #161b22; border: 1px solid #30363d; border-radius: 12px;
  padding: 24px;
}
.step .n {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: #58a6ff; background: rgba(88, 166, 255, 0.12);
  padding: 4px 10px; border-radius: 12px; margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; margin: 0; }

/* ---------- FAQ ---------- */
details {
  background: #161b22; border: 1px solid #30363d; border-radius: 10px;
  padding: 18px 20px; margin-bottom: 12px;
  cursor: pointer;
}
details[open] { border-color: #58a6ff; }
summary { font-weight: 600; color: #f0f6fc; list-style: none; outline: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: '+ '; color: #58a6ff; margin-right: 4px; }
details[open] summary::before { content: '– '; }
details p { margin-top: 12px; font-size: 14px; }

/* ---------- Forms ---------- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: #c9d1d9; margin-bottom: 6px; font-weight: 500; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px;
  background: #0d1117; color: #e6edf3;
  border: 1px solid #30363d; border-radius: 8px;
  font-size: 15px; font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}
.form-row input.input-error, .form-row textarea.input-error { border-color: #ff7b72; }
.field-error { color: #ff7b72; font-size: 12px; margin-top: 6px; display: none; }
.field-error.show { display: block; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 13px; color: #c9d1d9; line-height: 1.5; }
.consent input { margin-top: 3px; }
.consent a { color: #58a6ff; }

.form-status { margin-top: 16px; font-size: 14px; min-height: 20px; }
.form-status.success { color: #2ea043; }
.form-status.error { color: #ff7b72; }

/* ---------- Callouts ---------- */
.callout {
  background: rgba(88, 166, 255, 0.08);
  border-left: 3px solid #58a6ff;
  padding: 18px 20px; border-radius: 6px;
  margin: 24px 0;
}
.callout.warn { background: rgba(210, 153, 34, 0.08); border-left-color: #d29922; }
.callout p { margin: 0; font-size: 14px; }

.soon-badge {
  display: inline-block;
  background: rgba(210, 153, 34, 0.15); color: #d29922;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 10px;
  margin-left: 8px; letter-spacing: 0.5px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #21262d;
  padding: 36px 20px 24px;
  margin-top: 60px;
  text-align: center;
  background: #0d1117;
}
.site-footer .foot-brand { font-size: 13px; color: #c9d1d9; margin-bottom: 10px; }
.site-footer .foot-links { margin: 10px 0; font-size: 12px; }
.site-footer .foot-links a { color: #8b949e; margin: 0 8px; }
.site-footer .foot-links a:hover { color: #58a6ff; }
.site-footer .edu-disclaimer {
  max-width: 620px; margin: 16px auto 0;
  color: #6e7681; font-size: 11.5px; font-style: italic; line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0d1117; border-bottom: 1px solid #21262d; flex-direction: column; padding: 16px 20px; gap: 14px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .hero { padding: 48px 0 36px; }
  p.lead { font-size: 16px; }
  .btn-lg { padding: 16px 28px; font-size: 15px; width: 100%; max-width: 320px; }
}
