/* Vistara Landing — shared stylesheet */

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

:root {
  --color-bg:       #ffffff;
  --color-surface:  #f7f7f8;
  --color-border:   #e4e4e7;
  --color-text:     #18181b;
  --color-muted:    #71717a;
  --color-accent:   #2563eb;
  --color-accent-h: #1d4ed8;
  --radius:         8px;
  --max-w:          720px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ─────────────────────────────────────────────── */

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

.site-header .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.brand-link {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-link:hover {
  color: var(--color-accent);
}

main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.site-footer .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

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

.site-footer a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ── Typography ──────────────────────────────────────────── */

h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

ul, ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.35rem;
}

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

a:hover {
  color: var(--color-accent-h);
}

/* ── Index / Hero ────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: 2.5rem;
}

.hero .tagline {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-h);
  color: #fff;
}

.btn-ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-border);
  color: var(--color-text);
}

/* ── Policy / Terms page ─────────────────────────────────── */

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin-bottom: 0.25rem;
}

.meta {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* ── Contact page ────────────────────────────────────────── */

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
}

.contact-card p {
  margin-bottom: 0.75rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 600px) {
  h1       { font-size: 1.6rem; }
  .hero h1 { font-size: 1.9rem; }

  .site-footer .inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}
