/* 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.
 */

/* Always-dark theme, anchored to the Civetta logo's navy background
 * (sampled at #011220 from the brand PNG so the logo image blends
 * seamlessly with the page — no visible PNG seam). Accent matches
 * the logo's gold ring; foreground is a warm cream that complements
 * the wordmark color. prefers-color-scheme override removed —
 * brand requires consistent dark presentation across light + dark
 * system preference. */
:root {
  --bg:           #011220;
  --fg:           #e8e3d8;  /* warm cream — matches the CIVETTA wordmark */
  --fg-muted:     #94a3b8;  /* slate-400 */
  --fg-subtle:    #64748b;  /* slate-500 */
  --border:       #1f2e3f;  /* one tone above bg for card edges */
  --accent:       #d6a55c;  /* amber/gold — logo accent ring */
  --accent-hover: #e0b573;
  --surface:      #0a1c2e;  /* slightly lifted above bg for cards/tiles */
}

* {
  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 {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.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: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto 24px auto;
  display: block;
}

/* hero__title removed — the real Civetta logo image already contains
   the wordmark ("CIVETTA") and tagline ("Watching over what matters").
   Rendering them again below the image was redundant brand chrome. */
.hero__title {
  display: none;
}

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

.hero__sub {
  font-size: 13px;
  color: var(--fg-muted);
  opacity: 0.72;
  max-width: 480px;
  margin: 0 auto 28px auto;
  letter-spacing: 0.01em;
}

.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);
}
