:root {
  /* Light mode - matching UiColorPaletteLight */
  --background: #fafafa;
  --foreground: #171717;
  --card: #f5f5f5;
  --card-foreground: #292524;
  --muted: #e5e5e5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --primary: #171717;
  --primary-foreground: #fafafa;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode - matching UiColorPaletteDark */
    --background: #0a0a0a;
    --foreground: #fafafa;
    --card: #141414;
    --card-foreground: #d6d3d1;
    --muted: #1a1a1a;
    --muted-foreground: #737373;
    --border: #262626;
    --primary: #fafafa;
    --primary-foreground: #0a0a0a;
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header */
header {
  padding: 1.25rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--background);
  z-index: 100;
}

.header-content {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--foreground);
}

/* Main content */
main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  width: 100%;
}

/* Landing Hero */
.hero {
  text-align: center;
  padding: 8rem 0 6rem;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  font-weight: 400;
  max-width: 400px;
  margin: 0 auto 3.5rem;
  line-height: 1.5;
}

.app-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.app-button {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.app-button:hover {
  opacity: 0.85;
}

.app-button svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.app-button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.app-button-small {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  line-height: 1.2;
}

.app-button-large {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.feature {
  text-align: left;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
  color: var(--foreground);
  opacity: 0.8;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0;
}

.feature p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  font-weight: 400;
}

/* Document pages */
.document {
  padding-top: 4rem;
}

.document h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.last-updated {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.document h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
}

.document h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.625rem;
}

.document p {
  margin-bottom: 1rem;
  color: var(--card-foreground);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.document ul,
.document ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  color: var(--card-foreground);
}

.document li {
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.document a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  transition: text-decoration-color 0.2s ease;
}

.document a:hover {
  text-decoration-color: var(--foreground);
}

/* Footer */
footer {
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

.footer-links {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-divider {
  margin: 0 0.75rem;
  opacity: 0.4;
}

/* Mobile */
@media (max-width: 640px) {
  header {
    padding: 1rem 1.5rem;
  }

  nav {
    gap: 1.5rem;
  }

  main {
    padding: 5rem 1.5rem 3rem;
  }

  .hero {
    padding: 4rem 0 4rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 320px;
  }

  .app-buttons {
    flex-direction: column;
    align-items: center;
  }

  .app-button {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
  }

  .feature {
    text-align: center;
  }

  .feature-icon {
    margin-bottom: 1rem;
  }

  .document {
    padding-top: 2rem;
  }

  .document h1 {
    font-size: 1.5rem;
  }

  footer {
    padding: 2rem 1.5rem;
  }
}

/* Delete Account Page */
.delete-email-link {
  display: inline-block;
  background: var(--foreground);
  color: var(--background) !important;
  padding: 0.875rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: opacity 0.2s;
  letter-spacing: -0.01em;
}

.delete-email-link:hover {
  opacity: 0.85;
  color: var(--background) !important;
}
