/* flatharbor.com — SnapSlim static site */

:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --border: #e5e5ea;
  --border-strong: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --max-width: 68rem;
  --header-height: 3.75rem;
  --radius: 12px;
  --radius-lg: 20px;
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1d1f;
    --bg-elevated: #2c2c2e;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #86868b;
    --border: #3a3a3c;
    --border-strong: #48484a;
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --compare-slider-bg: #3a3a3c;
  }

  .site-header {
    background: rgba(29, 29, 31, 0.88);
  }

  .compare-slider__handle {
    background: #f5f5f7;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  }

  .faq summary:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--text);
}

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

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand__sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
}

.nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

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

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

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--text-tertiary);
  color: var(--text);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding-inline: 0.5rem;
}

.btn--ghost:hover {
  color: var(--accent-hover);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.section__lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.section__note {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  margin-top: 1.5rem;
}

.hero {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3rem);
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 1rem;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill-list li {
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  border-radius: 980px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06);
}

.hero-visual__shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease;
}

.hero-visual__shot--dark {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.hero-visual__shot--light {
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .hero-visual__shot--light {
    opacity: 0;
  }

  .hero-visual__shot--dark {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual__shot {
    transition: none;
  }
}

.compare-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.compare-slider {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--compare-slider-bg, #e8e8ed);
  user-select: none;
  touch-action: pan-y;
}

.compare-slider__after,
.compare-slider__before {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.compare-slider__before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}

.compare-slider__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}

.compare-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.compare-stats {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .compare-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.compare-stats dl {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.compare-stats dt {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.compare-stats dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.9375rem;
}

.steps {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.step {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step__num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.step__title {
  font-weight: 600;
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card__icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.mode-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .mode-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.download-card {
  max-width: 28rem;
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.download-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.download-card__meta {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
}

.checksum {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  word-break: break-all;
  color: var(--text-tertiary);
  margin: 1rem 0 0;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.trust-line {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 1.25rem;
}

.photo-attribution {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 1rem 0 0;
  line-height: 1.45;
}

.photo-attribution a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.photo-attribution a:hover {
  color: var(--text);
}

.faq {
  max-width: 40rem;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.35rem;
  margin: 0 -0.35rem;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.25rem;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: var(--text-tertiary);
}

.faq details[open] summary::after {
  content: "−";
}

.faq summary:hover {
  background: rgba(0, 0, 0, 0.04);
}

.faq summary:focus {
  outline: none;
}

.faq p {
  margin: 0.25rem 0 0.75rem;
  padding: 0 0.35rem 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.feedback-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feedback-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  margin-top: var(--section-y);
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.site-footer__brand {
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.site-footer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
}

.site-footer__links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--text);
}

.legal-doc {
  max-width: 42rem;
  padding-bottom: 3rem;
}

.legal-doc h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

.legal-doc h2 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.legal-doc ul {
  padding-left: 1.25rem;
}

.page-hero--compact {
  padding-block: clamp(2.5rem, 6vw, 4rem) 1rem;
}

.text-center {
  text-align: center;
}

.muted {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header__actions .btn--primary {
    display: none;
  }
}
