/* SynCam — minimal marketing + legal pages */

:root {
  --bg: #fefefe;
  --text: #1a1d21;
  --text-secondary: #5c6568;
  --border: rgba(26, 29, 33, 0.12);
  --link: #1a1d21;
  --link-hover: #5c6568;
  --radius: 12px;
  --max: 46rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  padding: 1.25rem 1.25rem 0;
  max-width: var(--max);
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
}

.site-header--text-only .site-header__back {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

.site-header--text-only .site-header__back:hover {
  color: var(--text);
  text-decoration: underline;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  padding-bottom: 2.5rem;
}

.hero__logo-wrap {
  margin: 0 auto 1.5rem;
  width: fit-content;
}

.hero__logo {
  display: block;
  width: min(200px, 42vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22%;
  object-fit: cover;
  box-shadow:
    0 4px 24px rgba(26, 29, 33, 0.08),
    0 1px 3px rgba(26, 29, 33, 0.06);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tagline {
  margin: 0 auto 1.25rem;
  max-width: 24rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero__lead {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
}

@media (min-width: 480px) {
  .hero__lead {
    text-align: center;
  }
}

.section {
  margin-top: 2.75rem;
  padding-top: 0.25rem;
}

.hero + .section {
  margin-top: 2.25rem;
}

.section__title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.section--onboarding .section__title {
  margin-bottom: 0.5rem;
}

.section__subtitle {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
}

.section--muted {
  padding: 1.75rem 1.25rem;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(26, 29, 33, 0.03);
  border: 1px solid var(--border);
}

/* App onboarding: horizontal row of cards (scroll on narrow screens) */
.onboarding-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.onboarding-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 100%;
  padding: 1.2rem 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 2px rgba(26, 29, 33, 0.04);
}

.onboarding-card__media {
  width: 100%;
  margin: 0 0 0.35rem;
  line-height: 0;
}

.onboarding-card__media--rounded {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(26, 29, 33, 0.04);
  aspect-ratio: 1;
}

.onboarding-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.onboarding-card__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--text);
  border-radius: 50%;
}

.onboarding-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.onboarding-card__body {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 700px) {
  .onboarding-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.875rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
    padding-bottom: 0.5rem;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .onboarding-card {
    flex: 0 0 min(76vw, 17.5rem);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

.bullet-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.bullet-list li {
  margin-bottom: 0.65rem;
}

.bullet-list li:last-child {
  margin-bottom: 0;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.features li {
  padding: 1.25rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}

.features__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.features p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.55;
}

.cta {
  margin-top: 2.5rem;
  text-align: center;
}

.cta--hero {
  margin-top: 0;
}

.cta--panel {
  margin-top: 2rem;
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
}

.cta-panel__text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--text);
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.store-link:hover {
  opacity: 0.88;
  color: var(--bg);
}

.store-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Legal documents */
.legal-page main {
  padding-top: 1.5rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.legal-body h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.legal-body h2:first-of-type {
  margin-top: 1.25rem;
}

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

.legal-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
}

.legal-body strong {
  font-weight: 600;
}
