/* ============================================================
   JustChecking Site — styles.css
   Aligned with MyGarage theme system (March 2026)
   ============================================================ */

:root {
  --accent:        #1a2a6c;
  --accent-strong:  #2a3a8c;
  --accent-soft:   rgba(26, 42, 108, 0.12);
  --bg:            #f5f7fa;
  --panel:         #ffffff;
  --panel-soft:    #f8f9fb;
  --text:          #2c3e50;
  --muted:         #5a6c7d;
  --link:          #1a2a6c;
  --border:        #e1e4e8;
  --header-text:   #1a2a6c;
  --radius:        12px;
  --max-w:         1080px;
}

[data-theme="dark"] {
  --accent:        #58a6ff;
  --accent-strong:  #4a8fd9;
  --accent-soft:   rgba(88, 166, 255, 0.12);
  --bg:            #0d1117;
  --panel:         #111727;
  --panel-soft:    #141c2d;
  --text:          #e6edf3;
  --muted:         #9fb0c3;
  --link:          #58a6ff;
  --border:        #1f2a3c;
  --header-text:   #58a6ff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent:        #58a6ff;
    --accent-strong:  #4a8fd9;
    --accent-soft:   rgba(88, 166, 255, 0.12);
    --bg:            #0d1117;
    --panel:         #111727;
    --panel-soft:    #141c2d;
    --text:          #e6edf3;
    --muted:         #9fb0c3;
    --link:          #58a6ff;
    --border:        #1f2a3c;
    --header-text:   #58a6ff;
  }
}

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

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(46, 188, 133, 0.08), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(52, 152, 219, 0.12), transparent 30%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
  background: radial-gradient(circle at 20% 20%, rgba(46, 188, 133, 0.08), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(88, 166, 255, 0.12), transparent 30%),
              var(--bg);
}

a {
  color: var(--link);
  text-decoration: none;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.08em;
}
a:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 18px 64px;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 18px;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .site-header {
  background: rgba(13, 17, 23, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--header-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-icon {
  height: 28px;
  width: 28px;
  border-radius: 6px;
}

/* Show light icon by default, dark icon in dark mode */
.logo-icon-dark { display: none; }
[data-theme="dark"] .logo-icon-light { display: none; }
[data-theme="dark"] .logo-icon-dark { display: inline; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
  font-weight: 600;
}
.nav a:hover { color: var(--text); }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  margin-left: 16px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}
.theme-toggle:hover {
  background: var(--panel-soft);
  border-color: var(--accent);
}
.theme-icon { display: inline-block; }

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 40px 20px 30px;
  color: var(--text);
}
.hero h1 {
  font-size: 2.8em;
  margin: 0 0 12px 0;
  font-weight: 700;
}
.hero h1 span { color: var(--accent); }
.lead {
  font-size: 1.1em;
  color: var(--muted);
  margin: 0 0 24px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.hero-icon-dark { display: none; }
[data-theme="dark"] .hero-icon-light { display: none; }
[data-theme="dark"] .hero-icon-dark { display: block; margin: 0 auto 1.5rem; }

.hero-splash {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}
.hero-splash-dark { display: none; }
[data-theme="dark"] .hero-splash-light { display: none; }
[data-theme="dark"] .hero-splash-dark { display: block; margin: 0 auto; }

/* ---- Features Section (panel style) ---- */
.features-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 60px 28px;
  margin-bottom: 28px;
}
.features-title {
  text-align: center;
  margin: 0 0 60px;
  font-size: 2.5em;
  color: var(--text);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  text-align: center;
  padding: 30px;
  border-radius: 15px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
}
.feature-icon {
  font-size: 3em;
  margin-bottom: 20px;
  display: block;
}
.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- Section titles & badges ---- */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 14px;
  font-size: 1.25rem;
  scroll-margin-top: 100px;
}
.badge-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
}
.badge-green {
  background: rgba(46, 188, 133, 0.12);
  color: #2ebc85;
}
[data-theme="dark"] .badge-green {
  background: rgba(46, 188, 133, 0.18);
  color: #2ebc85;
}

/* ---- Steps (how to get) ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.step {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.step .label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* ---- Buttons ---- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  color: #0b1a11;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.btn-primary {
  background: linear-gradient(135deg, #1a2a6c 0%, #2a3a8c 100%);
  color: #fff;
  border-color: #2a3a8c;
  box-shadow: 0 2px 8px rgba(26, 42, 108, 0.3);
}
.btn-primary:hover { box-shadow: 0 4px 16px rgba(26, 42, 108, 0.4); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }

/* ---- Feedback ---- */
.feedback {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(46,188,133,0.18), rgba(88,166,255,0.12));
  border: 1px solid var(--border);
}
.feedback h3 { margin: 0 0 6px; }
.feedback p { margin: 0; color: var(--muted); }
.feedback .btn { background: #0b1220; color: var(--text); border-color: var(--border); }
.feedback .btn:hover { border-color: var(--accent); }
[data-theme="light"] .feedback .btn {
  background: #1a2a6c;
  color: #fff;
  border-color: #2a3a8c;
}
[data-theme="light"] .feedback .btn:hover {
  background: #2a3a8c;
  border-color: #2a3a8c;
}

.muted { color: var(--muted); }

/* ---- Footer ---- */
.footer {
  background: #1a2a6c;
  color: #fff;
  padding: 18px;
  text-align: center;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.footer a { color: #fff; }
[data-theme="dark"] .footer { background: #111727; }

/* Site-footer (legal pages) */
.site-footer {
  background: #1a2a6c;
  color: #fff;
  padding: 18px;
  text-align: center;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-nav { display: flex; gap: 16px; justify-content: center; margin-top: 6px; }
[data-theme="dark"] .site-footer { background: #111727; }

/* ---- Legal pages ---- */
.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 18px;
}
.legal-container h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.legal-container h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  color: var(--text);
}
.legal-container h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}
.legal-container p,
.legal-container li {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.legal-container ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.legal-container strong {
  color: var(--text);
}
.highlight-box {
  background: var(--panel-soft);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  color: var(--text);
}
.warning-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  color: var(--text);
}
[data-theme="dark"] .warning-box {
  background: rgba(255, 193, 7, 0.1);
}
.contact {
  background: var(--panel-soft);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .feedback { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .nav { display: none; }
}
