:root {
  --bg: #fbfaf8;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #1a1a1a;
  --border: #e6e3dd;
  --max: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #f0efec;
    --muted: #9a9a9a;
    --accent: #f0efec;
    --border: #2a2a2a;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Landing ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.25rem;
}

.mark {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  .mark {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.tagline {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 28rem;
}

.links {
  margin-top: 1rem;
  display: flex;
  gap: 1.75rem;
}

.link {
  color: var(--fg);
  text-decoration: none;
  font-size: 1rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.link:hover {
  border-color: var(--fg);
}

.app-store {
  display: inline-block;
  margin-top: 0.5rem;
  transition: opacity 0.2s ease;
}

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

.app-store img {
  width: 140px;
  height: auto;
  vertical-align: middle;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ---------- Privacy Policy ---------- */
.doc {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.doc .back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 2.5rem;
  transition: color 0.2s ease;
}

.doc .back:hover {
  color: var(--fg);
}

.doc h1 {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.doc h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  color: var(--fg);
}

.doc p {
  margin: 0.75rem 0;
}

.doc .updated {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.doc ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.doc li {
  margin: 0.375rem 0;
}

.doc a {
  color: var(--fg);
}

.doc strong {
  font-weight: 600;
}

/* ---------- Form ---------- */
.form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.field label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.625rem 0.75rem;
  width: 100%;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--fg);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.btn {
  align-self: flex-start;
  font: inherit;
  font-weight: 500;
  color: var(--bg);
  background: var(--fg);
  border: none;
  border-radius: 8px;
  padding: 0.6875rem 1.5rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

.hidden {
  display: none;
}
