/* SnapLog AI — shared site styles (snaplogai.com) */

:root {
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f4f6f9;
  --card: #ffffff;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
  --header-h: 3.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

address {
  font-style: normal;
  line-height: 1.65;
}

ul {
  margin: 0;
  padding-left: 1.25rem;
}

li {
  margin: 0.35rem 0;
}

li::marker {
  color: var(--muted);
}

/* —— Site chrome —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 246, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 4vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.site-logo {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--accent);
}

.site-footer {
  margin-top: auto;
  padding: 2rem clamp(1rem, 4vw, 1.5rem);
  border-top: 1px solid var(--border);
  background: var(--card);
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .site-footer__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer__links a {
  color: var(--muted);
}

.site-footer__links a:hover {
  color: var(--accent);
}

/* —— Legal / narrow pages —— */

.page-legal {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  flex: 1;
}

.page-legal header {
  margin-bottom: 1.75rem;
}

.page-legal h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.page-legal .subtitle,
.page-legal .meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
}

.card + .card {
  margin-top: 1.25rem;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.card p {
  margin: 0 0 1rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 0 0 1rem;
}

.card ul:last-child {
  margin-bottom: 0;
}

/* —— Landing page —— */

.page-landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.landing-main {
  flex: 1;
}

.landing-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 1.5rem);
}

.landing-section + .landing-section {
  padding-top: 0;
}

.hero {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.hero__inner {
  max-width: 40rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.hero__tagline {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--muted);
  line-height: 1.5;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 30rem) {
  .hero__ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 40rem;
}

.product-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.product-block p {
  margin: 0;
  font-size: 0.98rem;
}

.features-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 36rem) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 56rem) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.shots-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .shots-scroll {
    display: none;
  }

  .shots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 39.99rem) {
  .shots-grid {
    display: none;
  }
}

.shot {
  flex: 0 0 min(85vw, 280px);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.shot figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.landing-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

.landing-meta code {
  font-size: 0.8em;
  background: #e5e7eb;
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.form-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.6);
}

.form-placeholder p {
  margin: 0;
}

/* —— Contact form (support page) —— */

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 36rem;
  margin-top: 1.25rem;
  box-sizing: border-box;
}

.card > p + .contact-form {
  margin-top: 1rem;
}

.contact-form .form-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  width: 100%;
  min-width: 0;
}

.contact-form .form-field > label:not(.form-consent) {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--text);
  line-height: 1.35;
}

.contact-form .form-hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
}

.contact-form .form-hint--block {
  display: block;
  margin-top: 0.15rem;
  line-height: 1.45;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: #d1d5db;
  background: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
  font-family: inherit;
}

.contact-form .form-field--consent {
  margin-bottom: 1rem;
}

.contact-form .form-consent {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  cursor: pointer;
  color: var(--text);
}

.contact-form .form-consent input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  margin: 0.15rem 0 0 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
}

.contact-form .form-consent span {
  flex: 1;
  min-width: 0;
}

.contact-form .form-submit {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
}

.contact-form .btn--submit {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

@media (min-width: 30rem) {
  .contact-form .btn--submit {
    width: auto;
    min-width: 11rem;
  }
}

/* Honeypot: off-screen + inert visually; keep in DOM for bots */
.contact-form .form-honeypot-wrap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.form-status[hidden] {
  display: none;
}

.form-status--success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.form-status--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
