:root {
  --accent: #007aff;
  --text: #1a1a1a;
  --muted: #6b6b70;
  --border: #e5e5ea;
  --bg: #ffffff;
  --surface: #fafafa;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
}

header.site .mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  flex: 0 0 auto;
}

header.site a.brand {
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
}

header.site nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

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

h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 8px 0 4px;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 34px 0 8px;
}

p, li { color: #2a2a2e; }

a { color: var(--accent); }

ul { padding-left: 20px; }

li { margin: 4px 0; }

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
  margin: 24px 0;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.hero {
  text-align: center;
  padding: 64px 20px 40px;
}

.hero .mark-lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent);
  margin: 0 auto 20px;
}

.hero h1 { font-size: 36px; }

.hero p { color: var(--muted); font-size: 18px; max-width: 520px; margin: 8px auto 28px; }

.coming-soon {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Waitlist */

.waitlist-section {
  margin: 8px auto 0;
  max-width: 440px;
}

.waitlist-heading {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}

.waitlist-subtext {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 16px;
}

.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
}

.waitlist-form button {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.waitlist-form button:hover { opacity: 0.85; }
.waitlist-form button:disabled { opacity: 0.5; cursor: default; }

.waitlist-msg {
  font-size: 14px;
  margin: 12px 0 0;
}

.waitlist-msg.success { color: #34c759; }
.waitlist-msg.error { color: #ff3b30; }

/* App preview */

.preview-section {
  padding: 0 20px 48px;
  text-align: center;
}

.app-preview {
  max-width: 100%;
  width: 900px;
  border-radius: 16px;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0 20px;
}

.feature {
  text-align: center;
  padding: 24px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}

.feature p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 20px 48px;
}

.links a {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.links a.primary { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (max-width: 480px) {
  .waitlist-form {
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f2f7;
    --muted: #9a9aa0;
    --border: #2c2c2e;
    --bg: #000000;
    --surface: #1c1c1e;
  }
  body { background: var(--bg); }
  header.site { background: rgba(0, 0, 0, 0.7); }
  header.site a.brand { color: var(--text); }
  p, li { color: #d6d6da; }
  .links a { color: var(--text); }
  .waitlist-form input[type="email"] {
    background: var(--surface);
    color: var(--text);
  }
}
