/* SpeakEase website (home, privacy, terms, account deletion). Builds on the Help page's look. */
@import url('/help/help.css');

/* ── Header: brand, big Open button, and the tab row ── */
.site-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 16px 8px;
}
.open-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
.open-app:hover { filter: brightness(1.05); }
@media (prefers-color-scheme: dark) { .open-app { color: #0b1120; } }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px 10px;
}
.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 600;
  text-decoration: none;
}
.tabs a:hover { background: var(--surface-2); color: var(--text); }
.tabs a[aria-current='page'] { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (max-width: 480px) {
  .tabs { gap: 4px; }
  .tabs a { flex: 1 1 auto; justify-content: center; padding: 0 10px; font-size: 0.95rem; }
}

/* ── Home ── */
.hero { text-align: center; padding: 28px 0 8px; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); margin: 0 0 12px; }
.hero .lead { max-width: 640px; margin: 0 auto 24px; font-size: 1.25rem; }
.hero .open-app { min-height: 72px; padding: 0 40px; font-size: 1.35rem; border-radius: 20px; }
.hero .sub { margin-top: 14px; color: var(--muted); font-size: 1rem; }
.hero-shot { max-width: 900px; margin: 32px auto 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-2); font-size: 1rem; }

/* ── Legal pages ── */
.legal h1 { margin-bottom: 4px; }
.updated { color: var(--muted); margin: 0 0 20px; }
.legal h2 { font-size: 1.3rem; margin-top: 36px; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.summary ul { margin: 0; }

/* Details still to be filled in before publishing. */
.fill { background: #fde68a; color: #422006; padding: 0 6px; border-radius: 6px; font-weight: 700; }

.site-footer { max-width: 860px; margin: 64px auto 0; padding: 20px 16px 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }

/* Phones: the header (with two rows of tabs) scrolls away instead of covering the page. */
@media (max-width: 600px) {
  .site-top { position: static; }
  h2 { scroll-margin-top: 16px; }
}

/* Who it helps + questions */
.who { columns: 2 260px; column-gap: 28px; }
.faq { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 20px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 18px; }
.faq summary { min-height: 56px; display: flex; align-items: center; cursor: pointer; font-weight: 650; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; padding-left: 12px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 16px; }
