/* Sightline Technologies - base layout & components.
   Color accents are supplied per-page by theme classes in themes.css. */

:root {
  --bg: #F7FAFC;
  --surface: #FFFFFF;
  --text: #1A202C;
  --text-muted: #4A5568;
  --border: #E2E8F0;

  --accent: #3B6FD6;
  --accent-dark: #6C63FF;
  --accent-soft: #EEF2FF;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  margin-top: 0;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}
.site-nav a {
  margin-left: 20px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent-dark); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 72px 0;
}
.hero-inner { max-width: 760px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.85;
  margin: 0 0 12px;
}
.hero h1 { font-size: 2.4rem; margin-bottom: 16px; }
.hero .lead { font-size: 1.1rem; opacity: 0.92; max-width: 620px; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: #fff; color: var(--accent-dark); }
.btn-primary:hover { opacity: 0.92; text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--accent-dark); border-color: var(--border); }
.btn-outline:hover { background: var(--accent-soft); text-decoration: none; }
.btn-block { display: block; width: 100%; text-align: center; box-sizing: border-box; }
.btn-block + .btn-block { margin-top: 10px; }

/* Sections */
.section { padding: 64px 0; }
.section h2 { font-size: 1.8rem; margin-bottom: 8px; }
.section-intro { color: var(--text-muted); max-width: 640px; margin-bottom: 36px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.about-points li {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text);
}

/* App cards */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  border-top: 4px solid var(--card-accent, var(--accent));
  display: flex;
  flex-direction: column;
  height: 100%;
}
.app-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: block;
}
.app-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.app-card .tagline {
  font-weight: 600;
  color: var(--card-accent, var(--accent));
  margin-bottom: 12px;
  font-size: 0.92rem;
}
.app-card p { color: var(--text-muted); flex-grow: 1; }
.app-card .learn-more { font-weight: 700; margin-top: 16px; display: inline-block; }

/* App page hero */
.app-hero {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 56px 0 64px;
}
.back-link {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 18px;
}
.app-hero-head { display: flex; align-items: flex-start; gap: 16px; }
.app-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  flex-shrink: 0;
  margin-top: 4px;
}
.app-hero-text { min-width: 0; }
.app-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.app-hero .tagline { font-size: 1.15rem; opacity: 0.92; max-width: 600px; }
.store-badges { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 8px;
  padding: 10px 18px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}
.store-badge:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

/* Screenshot carousel */
.carousel {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: 14px;
}
.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
}
.carousel-slide {
  flex: 0 0 calc((100% - 32px) / 3);
  aspect-ratio: 9 / 16;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
@media (max-width: 760px) {
  .carousel-slide { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 480px) {
  .carousel-slide { flex-basis: 100%; }
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-single-page .carousel-btn,
.carousel-single-page .carousel-dots {
  display: none;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(26,32,44,0.55);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: rgba(26,32,44,0.8); }
.carousel-btn-prev { left: -18px; }
.carousel-btn-next { right: -18px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
}
.carousel-dot.is-active { background: var(--accent); }

/* Feature list */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li {
  padding-left: 30px;
  position: relative;
  color: var(--text);
}
.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dark);
  font-weight: 800;
}

/* Legal links row on app pages */
.legal-links { display: flex; gap: 24px; flex-wrap: wrap; }
.legal-links a { font-weight: 700; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-form .form-row { margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; }
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }
.form-status { display: block; margin-top: 14px; font-weight: 700; }
.form-status.success { color: #1a7a4a; }
.form-status.error { color: #b03030; }
.field-error { color: #b03030; font-size: 0.85rem; display: block; margin-top: 4px; }

/* Signup / login forms - centered elevated card */
.auth-section { padding: 56px 0; }
.auth-container { display: flex; justify-content: center; }
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(26,32,44,0.16), 0 2px 8px rgba(26,32,44,0.04);
  padding: 40px 36px;
}
.auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 28px; }
.auth-switch { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin: 24px 0 0; }
.auth-switch a { font-weight: 700; }

/* Contact CTA card (homepage) - reuses .auth-card, gated behind login */
.contact-cta { max-width: none; text-align: center; }
.contact-cta h3 { font-size: 1.3rem; margin-bottom: 6px; }

/* Feedback form reuses the same field styling, but as a plain (non-card) section */
.feedback-form { max-width: 560px; }

.auth-form .form-row { margin-bottom: 18px; }
.auth-form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; }
.auth-form input[type=text],
.auth-form input[type=email],
.auth-form input[type=password],
.auth-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-form input[type=text]:focus,
.auth-form input[type=email]:focus,
.auth-form input[type=password]:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-form textarea { min-height: 140px; resize: vertical; }
.auth-form .btn-solid {
  width: 100%;
  text-align: center;
  padding: 13px;
  font-size: 1rem;
  margin-top: 4px;
}
.auth-form .btn-solid:disabled,
.auth-form .btn-solid[disabled] {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}
.field-hint { color: var(--text-muted); font-size: 0.85rem; display: block; margin-top: 4px; }

/* Legal pages */
.legal-content h2 { font-size: 1.25rem; margin-top: 32px; }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }
.legal-disclaimer {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 16px;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .header-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
}
