:root {
  --bg: #080603 !important;
  --bg-card: #0D0A06 !important;
  --card: #0D0A06 !important;
  --bg-warm: #141008 !important;
  --warm: #141008 !important;
  --gold: #C4923A !important;
  --gold-light: #D4A44A !important;
  --gold-dim: rgba(196,146,58,0.30) !important;
  --text: #F5ECD7 !important;
  --white: #F5ECD7 !important;
  --muted: #9A8A72 !important;
  --border: rgba(196,146,58,0.20) !important;
  --green: #6DAA8A !important;
  --success: #6DAA8A !important;
  --red: #C46A5A !important;
  --error: #C46A5A !important;
  --header-bg: rgba(8,6,3,0.92);
  --on-accent: #080603;
  --shadow: rgba(0,0,0,0.35);
  color-scheme: dark;
}

:root[data-theme='light'] {
  --bg: #F6F0E4 !important;
  --bg-card: #FFF9EE !important;
  --card: #FFF9EE !important;
  --bg-warm: #EEE4D3 !important;
  --warm: #EEE4D3 !important;
  --gold: #95651F !important;
  --gold-light: #7C5218 !important;
  --gold-dim: rgba(149,101,31,0.38) !important;
  --text: #2B2118 !important;
  --white: #2B2118 !important;
  --muted: #6F604E !important;
  --border: rgba(117,82,34,0.24) !important;
  --green: #397858 !important;
  --success: #397858 !important;
  --red: #A3473E !important;
  --error: #A3473E !important;
  --header-bg: rgba(246,240,228,0.92);
  --on-accent: #FFF9EE;
  --shadow: rgba(65,45,22,0.16);
  color-scheme: light;
}

html, body { background: var(--bg) !important; }
body, body * { transition-property: background-color, border-color, color, fill, stroke; transition-duration: 160ms; }
nav { background: var(--header-bg) !important; }
.nt-founder-logo {
  display: block;
  width: clamp(150px, 22vw, 210px);
  height: auto;
  margin: 0 auto 28px;
  border-radius: 18px;
  box-shadow: 0 18px 50px var(--shadow);
}
:root[data-theme='dark'] .nt-founder-logo { filter: brightness(.88) contrast(1.04); }
.nt-secondary-nav { justify-content: space-between; gap: 20px; }
.nt-back-home { color: var(--muted); font-size: .82rem; font-weight: 600; text-decoration: none; }
.nt-back-home:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
input, textarea, select { background: var(--bg-card) !important; border-color: var(--border) !important; color: var(--text) !important; color-scheme: inherit; }
button, input, textarea, select { font: inherit; }
button, select, input[type='checkbox'], input[type='radio'] { min-height: 44px; }
.btn, .btn-gold, .btn-primary, .btn-primary-large, .nav-cta, button[type='submit'] { color: var(--on-accent) !important; }
.mockup-frame { box-shadow: 0 30px 70px var(--shadow) !important; }
:root[data-theme='light'] .hero-portability-note,
:root[data-theme='light'] .access-note,
:root[data-theme='light'] .privacy-note,
:root[data-theme='light'] .message-meta,
:root[data-theme='light'] .copyright { color: var(--muted) !important; }
:root[data-theme='light'] .mockup-photo,
:root[data-theme='light'] .memory-photo-mock { filter: brightness(1.35) saturate(0.75); }

.nt-theme-control { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); vertical-align: middle; }
.nt-theme-control button { min-height: 34px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.7rem; font-weight: 600; padding: 4px 8px; }
.nt-theme-control button[aria-checked='true'] { background: var(--bg-warm); color: var(--text); box-shadow: inset 0 0 0 1px var(--gold-dim); }
.nt-theme-wrap { display: flex; justify-content: center; padding: 0 20px 20px; }

.nt-cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  display: none; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 14px 24px;
  background: var(--bg-card); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px var(--shadow);
}
.nt-cookie-bar[data-visible='true'] { display: flex; }
.nt-cookie-bar p { font-family: 'Inter', sans-serif; font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.6; }
.nt-cookie-bar a { color: var(--gold); text-decoration: none; margin-left: 6px; }
.nt-cookie-bar a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.nt-cookie-bar button {
  flex-shrink: 0; min-height: 44px; padding: 8px 20px;
  border: 0; border-radius: 6px; background: var(--gold); color: var(--on-accent);
  cursor: pointer; font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.nt-cookie-bar button:hover { background: var(--gold-light); }

@media (max-width: 600px) {
  .nt-founder-logo { width: 148px; margin-bottom: 22px; border-radius: 14px; }
  .nt-theme-control button { padding-inline: 7px; }
  .nt-cookie-bar { align-items: stretch; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
  .nt-cookie-bar p { flex: 1 1 100%; }
  .nt-cookie-bar button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
