/* =========================================
   Design System / Variables
========================================= */

:root {
  --bg: #0f172a;
  --bg-card: #020617;
  --bg-soft: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --accent-strong: #0ea5e9;
  --border-subtle: #1f2937;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --danger: #f97373;
  --radius-xl: 1rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1d283a 0, #020617 55%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
}

/* =========================================
   Global Site Nav
========================================= */

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  z-index: 10;
}

.site-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav-logo {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
}

.site-nav-logo:hover {
  opacity: 0.9;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-nav-link {
  font-size: 0.85rem;
  color: #9ca3af;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s ease-out, background 0.15s ease-out, border-color 0.15s ease-out;
}

.site-nav-link:hover {
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
}

.site-nav-link-cta {
  border-color: rgba(56, 189, 248, 0.45);
  color: #e5e7eb;
}

.site-nav-user {
  font-size: 0.8rem;
  color: #9ca3af;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  margin-right: 0.4rem;
}

/* =========================================
   Checklist App Layout (checklist.php)
========================================= */

.page {
  max-width: 1600px;
  margin: 4.5rem auto 3rem;
  padding: 2rem 1.8rem 4rem;
  min-height: calc(100vh - 6rem);
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.94)
  );
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f9fafb;
}

.badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--accent-strong);
}

.subtitle {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.disclaimer {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.disclaimer strong {
  color: #e5e7eb;
}

.disclaimer-icon {
  font-size: 1.1rem;
  margin-top: 1px;
}

/* top status area */

.top-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.25rem 0 1.5rem;
}

.progress {
  flex: 1 1 240px;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.progress-bar {
  width: 100%;
  height: 0.75rem;
  border-radius: 999px;
  background: #020617;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #22c55e);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
  transition: width 0.25s ease-out;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  min-width: 260px;
}

button {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: background 0.15s ease-out, border-color 0.15s ease-out, transform 0.05s;
}

.button-secondary {
  background: transparent;
}

.button-danger {
  border-color: rgba(248, 113, 113, 0.6);
  color: #fecaca;
}

button:hover {
  background: #111827;
  transform: translateY(-0.5px);
}

button:active {
  transform: translateY(0);
}

/* layout columns */

main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Top row above checklist: Safety + FAQ side-by-side */
.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: stretch;  /* both columns the same height */
}

.info-col {
  display: flex;
  flex-direction: column;
}


/* On small screens, stack them */
@media (max-width: 900px) {
  .info-row {
    grid-template-columns: 1fr;
  }
}

/* cards for sections and helper sidebar */

.section-card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow:
    0 16px 35px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 60%);
  border-bottom: 1px solid rgba(30, 64, 175, 0.7);
  cursor: pointer;
}

.section-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f9fafb;
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.section-toggle-icon {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.2s ease-out;
}

.section-card.open .section-toggle-icon {
  transform: rotate(90deg);
}

.section-body {
  padding: 0.75rem 1rem 0.9rem;
}

.section-card.open .section-body {
  display: block;
}

/* checklist items */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.86rem;
  padding: 0.25rem 0.2rem;
  border-radius: 0.6rem;
  transition: background 0.12s ease-out;
}

.check-item:hover {
  background: rgba(15, 23, 42, 0.9);
}

.check-item input[type="checkbox"] {
  margin-top: 0.1rem;
  width: 1rem;
  height: 1rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #020617;
  accent-color: var(--accent-strong);
  cursor: pointer;
}

.check-label {
  flex: 1;
}

.check-label span {
  display: block;
  color: var(--text-main);
}

.check-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* notes */

.notes-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  border-radius: 0.65rem;
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 0.6rem;
  background: #020617;
  color: var(--text-main);
  font-size: 0.84rem;
  font-family: inherit;
  outline: none;
}

textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

/* helper card (right column) */

.helper-card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 1rem 1.1rem 1.2rem;
  font-size: 0.84rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow:
    0 16px 35px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.helper-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f9fafb;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.helper-title span {
  font-size: 1.05rem;
}

.helper-list {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
  color: var(--text-muted);
}

.helper-list li + li {
  margin-top: 0.3rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  color: var(--text-muted);
  background: #020617;
}

/* footer text inside card */

footer {
  margin-top: 1.7rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
}

.user-label {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-right: auto;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* FAQ under checklist */

.faq-section {
  margin-top: 2rem;
  padding: 1rem 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

.faq-section h2 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.faq-item + .faq-item {
  margin-top: 0.6rem;
}

.faq-question {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.faq-answer {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Make safety + FAQ share a consistent card style when in the top row */
.info-row .helper-card,
.info-row .faq-section {
  margin-top: 0;                /* kill the old FAQ margin */
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.98);
  box-shadow:
    0 16px 35px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  height: 100%;                 /* match heights */
  display: flex;
  flex-direction: column;
}

/* =========================================
   Auth + Marketing Pages
========================================= */

.auth-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 38%, #000 100%);
  color: #e5e7eb;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 2.5rem;
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-brand-title {
  margin: 0;
  font-size: 2.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.auth-brand-subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: #9ca3af;
}

.auth-card,
.login-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.94)
  );
  border-radius: 1.5rem;
  padding: 1.9rem 1.7rem 2.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.auth-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 600;
}

.auth-card-subtitle {
  margin: 0 0 1.4rem;
  font-size: 0.93rem;
  color: #9ca3af;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-label {
  font-size: 0.85rem;
  color: #9ca3af;
}

.auth-input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background 0.16s ease-out,
    transform 0.06s ease-out;
}

.auth-input::placeholder {
  color: #6b7280;
}

.auth-input:focus {
  border-color: #0ea5e9;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.6),
    0 0 24px rgba(56, 189, 248, 0.32);
  background: #020617;
  transform: translateY(-0.5px);
}

.auth-button-primary {
  margin-top: 0.8rem;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #020617;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow:
    0 14px 35px rgba(34, 197, 94, 0.35),
    0 0 0 1px rgba(15, 23, 42, 0.95);
  transition:
    transform 0.08s ease-out,
    box-shadow 0.16s ease-out,
    filter 0.16s ease-out;
}

.auth-button-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 20px 45px rgba(34, 197, 94, 0.45),
    0 0 0 1px rgba(15, 23, 42, 0.95);
  filter: brightness(1.03);
}

.auth-button-primary:active {
  transform: translateY(0);
  box-shadow:
    0 12px 30px rgba(34, 197, 94, 0.28),
    0 0 0 1px rgba(15, 23, 42, 0.95);
}

.auth-button-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.auth-error {
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 0.9rem;
  background: rgba(127, 29, 29, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.75);
  color: #fee2e2;
}

.auth-switch {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: #9ca3af;
  text-align: center;
}

.auth-link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-footnote {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* simple layout for legal pages */

.auth-page {
  max-width: 700px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 4.75rem 1.5rem 3rem;  /* increased top padding so it sits below nav */
  display: flex;
  flex-direction: column;
}


.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f9fafb;
}

.auth-subtitle {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* =========================================
   Floating labels
========================================= */

.auth-field-floating {
  margin-bottom: 0.3rem;
}

.auth-floating-wrapper {
  position: relative;
  width: 100%;
}

.auth-input-floating {
  padding-top: 1.15rem;
  padding-bottom: 0.55rem;
}

.auth-label-floating {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #9ca3af;
  pointer-events: none;
  transition:
    top 0.16s ease-out,
    font-size 0.16s ease-out,
    color 0.16s ease-out;
}

.auth-input-floating:focus + .auth-label-floating,
.auth-input-floating.auth-input-filled + .auth-label-floating {
  top: 0.4rem;
  font-size: 0.72rem;
  color: var(--accent-strong);
}

.auth-floating-with-toggle .auth-input-floating {
  padding-right: 4.2rem;
}

.password-toggle-inline {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.25rem 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s ease-out,
    border-color 0.15s ease-out,
    transform 0.06s ease-out;
}

.password-toggle-inline:hover {
  background: #111827;
  border-color: var(--accent-strong);
  transform: translateY(-50%) translateY(-0.5px);
}

.password-toggle-inline:active {
  transform: translateY(-50%);
}

/* password strength meter */

.password-meter {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.password-meter-bar {
  width: 100%;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(30, 64, 175, 0.7);
  overflow: hidden;
}

.password-meter-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  transition: width 0.2s ease-out, background 0.2s ease-out;
}

.password-meter-weak {
  background: #f97373;
}

.password-meter-medium {
  background: #facc15;
}

.password-meter-strong {
  background: #22c55e;
}

.password-meter-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =========================================
   Mobile tweaks
========================================= */

@media (max-width: 600px) {
  .site-nav {
    padding: 0.6rem 1rem;
  }

  .site-nav-inner {
    max-width: 100%;
    flex-direction: column;      /* stack logo and links */
    align-items: center;         /* center everything */
    gap: 0.4rem;
  }

  .site-nav-logo {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
  }
  
  .site-nav-links {
    display: flex;
    flex-wrap: wrap;             /* allow wrapping to next line */
    justify-content: center;     /* center the pills */
    gap: 0.4rem;
    width: 100%;
  }

  .site-nav-link {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
  }

  .site-nav-user {
    order: -1;                   /* put email pill before other links (optional) */
  }
  
  .auth-container {
    max-width: 100%;
    padding: 1.4rem 1rem 2.1rem;
    margin-top: 2.2rem;
  }

  .auth-card,
  .login-card {
    border-radius: 1.2rem;
    padding: 1.5rem 1.25rem 1.8rem;
  }

  .auth-brand-title {
    font-size: 2rem;
  }

  .auth-card-title {
    font-size: 1.4rem;
  }

  .page {
    margin: 3.5rem 0 1.8rem;
    border-radius: 1.2rem;
    padding: 1.4rem 1.1rem 2.4rem;
  }

  header {
    margin-bottom: 1.1rem;
  }

  .title-row h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  main {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Generic info pages (About, Privacy, Terms) */

.info-container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 2rem;
}

.info-title {
  font-size: 2.4rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.info-subtitle {
  color: #9ca3af;
  margin-bottom: 2rem;
}

.info-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 2rem;
  line-height: 1.6;
}

.info-card h2,
.info-card h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.info-card ul {
  padding-left: 1.25rem;
}

.info-card li {
  margin-bottom: 0.4rem;
}

.page-card h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.page-subtitle {
  font-size: 1rem;
  color: #9ca3af;
  margin-bottom: 2rem;
}

.info-section h2 {
  margin-top: 2rem;
  color: #fff;
}

.info-section h3 {
  margin-top: 1.5rem;
  color: #e5e7eb;
}

.info-section p,
.info-section li {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
