:root {
  --bg: #f7f7f5;
  --bg-card: #ffffff;
  --text: #1c1c1e;
  --text-muted: #6b6b70;
  --accent: #2f6fed;
  --accent-dark: #1f4fb8;
  --border: #e4e4e1;
  --radius: 14px;
  --max-width: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a;
    --bg-card: #1f2023;
    --text: #f2f2f2;
    --text-muted: #a3a3a8;
    --accent: #6d9bff;
    --accent-dark: #a9c4ff;
    --border: #303134;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

header.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

nav.crumbs {
  font-size: 0.9rem;
  color: var(--text-muted);
}

nav.crumbs a { color: var(--text-muted); }

main { padding: 48px 0 80px; }

h1 {
  font-size: 2rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
}

h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

p { margin: 0 0 16px; }

.lede {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.app-grid a.app-tile {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s ease;
}

.app-grid a.app-tile:hover { border-color: var(--accent); }

.app-tile .app-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.app-tile .app-status {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero {
  text-align: center;
  padding: 40px 0 8px;
}

.hero .badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.shots {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 56px;
}

.shot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.shot-row.reverse .shot-copy { order: 2; }
.shot-row.reverse .shot-img { order: 1; }

.shot-img img {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.shot-copy h3 {
  font-size: 1.4rem;
  margin-top: 0;
}

.shot-copy p {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .shot-row, .shot-row.reverse {
    grid-template-columns: 1fr;
  }
  .shot-row.reverse .shot-copy,
  .shot-row.reverse .shot-img,
  .shot-row .shot-copy,
  .shot-row .shot-img {
    order: initial;
  }
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.todo-box {
  background: #fff4d6;
  border: 1px solid #e8c869;
  color: #6b5300;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.95rem;
}

@media (prefers-color-scheme: dark) {
  .todo-box {
    background: #3a3010;
    border-color: #6b5300;
    color: #f0d375;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.92rem;
}

table th, table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

table th {
  background: var(--bg-card);
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.placeholder-page {
  text-align: center;
  padding: 80px 0;
}

.placeholder-page .icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
