/* TaxLite Design System - Stripe-inspired */

:root {
  --color-primary: #000000;
  --color-background: #FFFFFF;
  --color-accent: #0066FF;
  --color-text: #1A1A1A;
  --color-text-light: #4A4A4A;
  --color-text-secondary: var(--color-text-light);
  --color-border: #E5E5E5;
  --color-success: #00D4AA;
  --color-error: #FF3333;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: 'Geist Mono', 'Courier New', monospace;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: #333333;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: #F5F5F5;
}

.btn-accent {
  background-color: var(--color-accent);
  color: white;
}

.btn-accent:hover {
  background-color: #0052CC;
}

/* -------------------------------------------------------------------------- */
/* Shared site header (public pages)                                          */
/* -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  padding: 16px 0;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, opacity 0.2s;
}

.site-nav a:hover {
  color: var(--color-accent);
}

.site-nav a.active {
  color: var(--color-accent);
}

.site-nav .btn {
  padding: 8px 18px;
  font-size: 0.9rem;
}

/* Ensure button text colors aren't overridden by `.site-nav a { color: ... }` */
.site-nav a.btn-primary {
  color: #FFFFFF;
}

.site-nav a.btn-primary:hover {
  color: #FFFFFF;
}

.site-nav a.btn-secondary {
  color: var(--color-primary);
}

.site-nav a.btn-secondary:hover {
  color: var(--color-primary);
}

/* Auth-gated header items:
   - Default to logged-out (hide data-auth="in")
   - When html[data-authenticated="true"], hide data-auth="out" and show data-auth="in" */
[data-auth="in"] {
  display: none !important;
}

html[data-authenticated="true"] [data-auth="out"] {
  display: none !important;
}

html[data-authenticated="true"] [data-auth="in"] {
  display: inline-block !important;
}

@media (max-width: 900px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Cards */
.card {
  background: white;
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.card h4 {
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.card-header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

/* Forms */
input, textarea, select {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-accent);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Code blocks */
pre {
  background: #1A1A1A;
  color: #FFFFFF;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Geist Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

code {
  background: #F5F5F5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

pre code {
  background: transparent;
  padding: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Utilities */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Policy / boilerplate pages */
.policy-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 24px;
}

.policy-meta {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-top: -6px;
  margin-bottom: 24px;
}

.policy-content h2 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.policy-content ul {
  margin: 10px 0 16px;
  padding-left: 18px;
}

.policy-content li {
  margin: 6px 0;
}

.policy-divider {
  height: 1px;
  background: var(--color-border);
  margin: 18px 0;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .container {
    padding: 0 16px;
  }
}

