:root {
  --bg: #0a0a0b;
  --bg-elevated: #141416;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --border: #27272a;
  --radius: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

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

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
      ellipse 120% 80% at 50% -20%,
      rgba(56, 189, 248, 0.2),
      transparent 55%
    ),
    radial-gradient(
      ellipse 80% 50% at 100% 100%,
      rgba(56, 189, 248, 0.1),
      transparent 45%
    );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

main {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 2rem;
  padding: 0;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  vertical-align: middle;
}

.store-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.store-btn:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.14);
  transform: translateY(-1px);
}

.store-btn:active {
  transform: translateY(0);
}

.store-btn svg {
  flex-shrink: 0;
  opacity: 0.95;
}

.store-btn--apple svg {
  width: 22px;
  height: 22px;
}

.store-btn--google svg {
  width: 20px;
  height: 22px;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.site-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-links a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.site-links .sep {
  color: var(--border);
  user-select: none;
}

body.page-legal {
  justify-content: flex-start;
  align-items: stretch;
}

.page-legal main {
  max-width: 42rem;
  margin: 0 auto;
  text-align: left;
}

.back-row {
  margin-bottom: 1.5rem;
}

.back-row a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.back-row a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.legal-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-updated {
  margin: 0 0 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-doc h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.legal-doc p,
.legal-doc li {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.legal-doc a {
  color: var(--accent-hover);
}

.legal-doc a:hover {
  text-decoration: underline;
}
