@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

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

:root {
  --bg: #eeeef5;
  --bg-nav: #e6e6f0;
  --bg-nav-border: rgba(0,0,0,0.08);
  --text: #1a1a2e;
  --text-muted: rgba(26, 26, 46, 0.42);
  --text-muted-hover: rgba(26, 26, 46, 0.75);
  --accent: #6b5ce7;
  --accent-light: rgba(107, 92, 231, 0.12);
  --border: rgba(26, 26, 46, 0.1);
  --link: #5b4fcf;
  --prose-h2: #1a1a2e;
  --prose-strong: #1a1a2e;
  --radius: 10px;
  --nav-height: 64px;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  padding-bottom: var(--nav-height);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  padding: 28px 0 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  text-decoration: none;
  color: var(--text);
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo span {
  font-weight: 500;
  font-size: 1.2rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--text);
}

.page-header time {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.tab {
  display: none;
  padding-top: 8px;
  padding-bottom: 40px;
}

#privacy {
  display: block;
}

body:has(#terms:target) #privacy,
body:has(#trial:target) #privacy {
  display: none;
}

#terms:target,
#trial:target {
  display: block;
}

.prose h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--prose-h2);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p {
  color: rgba(26, 26, 46, 0.82);
  margin-bottom: 0.85rem;
}

.prose ul {
  margin-bottom: 0.85rem;
  padding-left: 1.4rem;
}

.prose li {
  color: rgba(26, 26, 46, 0.82);
  margin-bottom: 0.35rem;
}

.prose strong {
  font-weight: 600;
  color: var(--prose-strong);
}

.prose a {
  color: var(--link);
}

.prose a:hover {
  text-decoration: underline;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  border-top: 1px solid var(--bg-nav-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: stretch;
}

.bottom-nav ul {
  display: flex;
  list-style: none;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 4px;
}

.bottom-nav li {
  flex: 1;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 4px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  text-align: center;
  line-height: 1.2;
}

.bottom-nav a:hover {
  color: var(--text-muted-hover);
  text-decoration: none;
}

.bottom-nav a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bottom-nav a.active,
body:not(:has(:target)) .bottom-nav a[href="#privacy"],
body:has(#privacy:target) .bottom-nav a[href="#privacy"],
body:has(#terms:target) .bottom-nav a[href="#terms"],
body:has(#trial:target) .bottom-nav a[href="#trial"] {
  color: var(--accent);
}

@media (max-width: 600px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header h1 {
    font-size: 1.25rem;
  }

  .prose h2 {
    font-size: 1rem;
  }
}
