/* PiperTTS landing page. Plain CSS, no build step; logo, icons and the app live next door in app/. */

:root {
  --text: #16181d;
  --text-2: #555b66;
  --text-3: #8a909a;
  --line: #e7e3df;
  --bg-2: #f7f5f3;
  --accent: #d61021;
  --accent-hover: #b20a19;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 6px rgba(16, 24, 40, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px; line-height: 1.55; color: var(--text); background: #fff;
  -webkit-font-smoothing: antialiased;
}
button, select { font: inherit; color: inherit; }
svg { display: block; }
.hidden { display: none !important; }

/* ---- the one screen: logo, text, buttons, GitHub ---- */
.hero {
  min-height: 92vh; min-height: 92svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px; text-align: center;
  background: radial-gradient(800px 420px at 50% 0%, rgba(214, 16, 33, 0.08), transparent 70%);
}
.logo { width: min(320px, 70vw); height: auto; margin-bottom: 30px; }
.hero h1 { max-width: 15em; font-size: clamp(30px, 4.6vw, 50px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 18px; }
.lead { max-width: 36em; font-size: 18.5px; color: var(--text-2); margin-bottom: 30px; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 650; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(214, 16, 33, 0.35); outline-offset: 2px; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(214, 16, 33, 0.6); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line); box-shadow: var(--shadow); }
.btn-secondary:hover { border-color: #cfc9c3; }

.install-msg {
  max-width: 32em; margin-top: 18px; padding: 12px 16px;
  background: var(--bg-2); border-radius: 10px; font-size: 15px; color: var(--text-2);
}
.notice {
  max-width: 30em; padding: 18px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.notice h2 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 6px; }
.notice p { color: var(--text-2); font-size: 15.5px; margin-bottom: 14px; }

.btn-github { height: 42px; padding: 0 20px; margin-top: 18px; font-size: 15px; background: #24292f; color: #fff; }
.btn-github:hover { background: #3a4048; }
.btn-github svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }

/* ---- voice samples ---- */
.voices { max-width: 820px; margin: 0 auto; padding: 24px 24px 80px; }
.voices h2 { text-align: center; font-size: 28px; letter-spacing: -0.02em; font-weight: 800; }
.lang-row { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 18px 0 32px; }
.lang-row label { font-weight: 600; color: var(--text-2); }
.lang-row select {
  height: 42px; padding: 0 38px 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font-weight: 550; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555b66' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.lang-row select:focus-visible { outline: 3px solid rgba(214, 16, 33, 0.35); outline-offset: 2px; }
.group { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
.group h3 { font-size: 16px; padding: 12px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.row { display: flex; align-items: center; padding: 8px 20px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }
.row:hover { background: #fcf8f6; }
.name { flex: 1; min-width: 0; padding-right: 16px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plays { display: flex; gap: 10px; flex-shrink: 0; }
.pb {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent; border: 2px solid var(--accent); color: var(--accent);
  transition: background-color 0.15s, color 0.15s, transform 0.1s;
}
.pb:hover, .pb.playing { background: var(--accent); color: #fff; }
.pb:active { transform: scale(0.94); }
.pb:focus-visible { outline: 3px solid rgba(214, 16, 33, 0.35); outline-offset: 2px; }
.pb svg { width: 20px; height: 20px; fill: currentColor; }
.pb .i-restart { display: none; }
.pb.playing .i-play { display: none; }
.pb.playing .i-restart { display: block; }

/* ---- footer: copyright and terms ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 28px 24px 36px; }
.site-footer p { max-width: 820px; margin: 0 auto; font-size: 13px; line-height: 1.6; color: var(--text-3); }
.site-footer p + p { margin-top: 10px; }

@media (max-width: 560px) {
  .logo { margin-bottom: 28px; }
  .lead { font-size: 17px; }
  .actions { flex-direction: column; align-self: stretch; }
  .row, .group h3 { padding-left: 14px; padding-right: 14px; }
  .plays { gap: 8px; }
}
