/* Civetta marketing site — single hand-rolled stylesheet.
 * No frameworks. No JavaScript. No external assets except Inter from
 * Google Fonts (preconnected so first-paint isn't blocked).
 *
 * Color tokens roughly mirror the slate palette used by the
 * authenticated web dashboard's LegalPageShell, so a reviewer
 * navigating between the two doesn't see a jarring style break.
 */

:root {
  --bg:           #ffffff;
  --fg:           #0f172a;  /* slate-900 */
  --fg-muted:     #475569;  /* slate-600 */
  --fg-subtle:    #94a3b8;  /* slate-400 */
  --border:       #e2e8f0;  /* slate-200 */
  --accent:       #4f46e5;  /* indigo-600 */
  --accent-hover: #4338ca;  /* indigo-700 */
  --surface:      #f8fafc;  /* slate-50 */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0f172a;
    --fg:           #f1f5f9;
    --fg-muted:     #94a3b8;
    --fg-subtle:    #64748b;
    --border:       #1e293b;
    --accent:       #818cf8;
    --accent-hover: #a5b4fc;
    --surface:      #1e293b;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.site-header__inner,
main,
.site-footer__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

.brand__mark {
  width: 24px;
  height: 24px;
}

.brand__name {
  font-size: 15px;
}

.nav-link {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--fg);
}

main {
  flex: 1;
  padding-top: 48px;
  padding-bottom: 64px;
}

@media (min-width: 640px) {
  main {
    padding-top: 64px;
    padding-bottom: 96px;
  }
}

.page-title {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.page-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--fg-subtle);
}

.legal-body {
  margin-top: 32px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg);
}

.legal-body h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 10px 0;
  letter-spacing: -0.01em;
}

.legal-body h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 6px 0;
}

.legal-body p,
.legal-body ul {
  margin: 0 0 14px 0;
  color: var(--fg);
}

.legal-body ul {
  padding-left: 22px;
}

.legal-body li {
  margin: 4px 0;
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body a:hover {
  color: var(--accent-hover);
}

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

/* Landing-page specific. */

.hero {
  text-align: center;
  padding: 24px 0 16px 0;
}

.hero__mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px auto;
  display: block;
}

.hero__title {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px 0;
}

@media (min-width: 640px) {
  .hero__title { font-size: 44px; }
}

.hero__lead {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 480px;
  margin: 0 auto 28px auto;
}

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

.app-store-badge {
  display: inline-block;
  height: 48px;
}

.app-store-badge img {
  height: 100%;
  display: block;
}

.feature-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.feature {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.feature__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.feature__body {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* Support page specific. */

.contact-block {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.contact-block strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.contact-block a {
  color: var(--accent);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 12px;
  color: var(--fg-subtle);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__nav {
  display: flex;
  gap: 16px;
}

.site-footer a {
  color: var(--fg-subtle);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
}
