/* ============================================================
   LockingSmart.life Global Stylesheet
   Author: Nova (Optimal AI)
   Version: 1.0
   ============================================================ */

:root {
  --bg: #fafafa;
  --text: #1f2937;
  --accent: #00897b;
  --accent-dark: #00695c;
  --accent-2: #0ea5e9;
  --light: #ffffff;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 16px;
}

/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* Layout Wrappers */
.wrap { width: 90%; max-width: 1000px; margin: 0 auto; }
main {
  background: var(--light);
  margin: 56px auto;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
header {
  background: var(--light);
  border-bottom: 2px solid var(--border);
}
header .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}
footer {
  margin: 80px 0 0;
  background: var(--light);
  border-top: 2px solid var(--border);
}
footer .wrap {
  padding: 40px 0;
  color: #555;
  font-size: 0.95rem;
  text-align: center;
}
footer .footer-content {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
footer .footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer .footer-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
footer .footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
footer a {
  color: var(--accent-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
footer a:hover { 
  color: var(--accent);
  text-decoration: underline;
}
footer .footer-divider {
  border-top: 1px solid var(--border);
  margin: 16px 0;
  padding-top: 16px;
}
footer .footer-credit {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Typography */
h1, h2, h3, h4 { color: var(--accent-dark); margin: 0.5rem 0 0.7rem; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; }
p { margin: 0.6rem 0; }
small.muted, .muted { color: var(--muted); }

/* Navigation & Navbar */
nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 1.1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
nav a:hover { color: var(--accent); }

.navbar {
  background: var(--light);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 1.1rem;
  transition: opacity 0.2s ease;
}
.navbar-logo:hover { opacity: 0.8; }
.navbar-logo img {
  height: 32px;
  width: 32px;
}
.navbar nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.navbar nav a {
  margin-left: 1.5rem;
  font-size: 0.95rem;
}

/* Components */
.card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: var(--radius);
  padding: 16px;
}
.note {
  background: #f0fdfa;
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 18px 0;
}
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 10px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  margin-top: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: var(--accent-2); }
.btn.secondary:hover { background: #0284c7; }

/* Forms */
label { display: block; margin: 0.35rem 0 0.2rem; font-weight: 600; }
input, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
}

/* Tables */
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-variant-numeric: tabular-nums;
}
tfoot td { font-weight: 800; }
.right { text-align: right; }

/* Utilities */
.center { text-align: center; }
.result { font-weight: 800; }
.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 0.92em;
}
.hidden { display: none !important; }

/* CTA links */
.cta {
  display: inline-block;
  margin-top: 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 28px;
  transition: background 0.2s ease;
}
.cta:hover { background: var(--accent-dark); }

/* Hero section */
.hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
  padding: 60px 20px;
  text-align: center;
}
.hero h1 { font-size: 2.2rem; margin-bottom: 16px; }
.hero p { font-size: 1.05rem; color: var(--muted); margin-bottom: 24px; }

/* Responsive tweaks */
@media (max-width: 640px) {
  nav a { margin-left: 0.6rem; }
  h1 { font-size: 1.6rem; }
  .row { grid-template-columns: 1fr; }
  
  .navbar .wrap {
    flex-direction: column;
    gap: 12px;
  }
  .navbar nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .navbar nav a {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  
  footer .footer-content {
    flex-direction: column;
    gap: 16px;
  }
  footer .footer-section {
    width: 100%;
  }
  
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.95rem; }
}
