/* Cartlet site — monochrome, calm, matches the app's design language. */

:root {
  --bg:        #F5F2EC;   /* paper-warm */
  --paper:     #FFFFFF;
  --ink:       #1F1B14;
  --ink-2:     #6B6258;
  --rule:      #E5DFD3;
  --accent:    #C8553D;
  --max-w:     1080px;
}

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

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a {
  color: inherit;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--ink); }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p { color: var(--ink); }

.muted { color: var(--ink-2); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ─────────────────────────────────────────────────── */

header.site {
  padding: 18px 0;
  border-bottom: 0.5px solid transparent;
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  transition: padding .25s ease, border-color .25s ease, background .25s ease;
}

header.site.scrolled {
  padding: 12px 0;
  border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

header.site .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}

nav.site a {
  margin-left: 18px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}

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

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

.hero {
  padding: 36px 0 56px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

.hero .lede {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 40ch;
}

.cta-row {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.cta-primary {
  background: var(--ink);
  color: var(--bg);
}

.cta-primary:hover { background: #000; }

.cta-secondary {
  background: transparent;
  color: var(--ink);
  border: 0.5px solid var(--rule);
}

.cta-secondary:hover { border-color: var(--ink); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: center;
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 24px 0 32px; }
  .hero .shot-frame { margin: 0 auto; }
}

.shot-frame {
  background: var(--paper);
  border: 0.5px solid var(--rule);
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(31, 27, 20, 0.08);
  width: 100%;
  max-width: 280px;
  margin-left: auto;
}

.shot-frame img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
}

.hero .shot-frame {
  transform: rotate(1.2deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}

.hero .shot-frame:hover {
  transform: rotate(0deg) translateY(-2px);
}

/* ─── Features ───────────────────────────────────────────────── */

.features {
  padding: 64px 0;
  border-top: 0.5px solid var(--rule);
}

.features h2 {
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.features .sub {
  color: var(--ink-2);
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 50ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; gap: 22px; }
}

.feature {
  background: var(--paper);
  border: 0.5px solid var(--rule);
  border-radius: 18px;
  padding: 24px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ink) 18%, var(--rule));
  box-shadow: 0 12px 28px rgba(31, 27, 20, 0.06);
}

.feature h3 {
  font-size: 19px;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.feature p {
  color: var(--ink-2);
  font-size: 15px;
}

/* ─── Showcase ───────────────────────────────────────────────── */

.showcase {
  padding: 64px 0;
  border-top: 0.5px solid var(--rule);
}

.showcase h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.showcase .sub {
  color: var(--ink-2);
  margin-bottom: 36px;
  max-width: 50ch;
}

.showcase-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: start;
  justify-items: center;
}

.showcase-row .shot-frame {
  margin: 0;
  max-width: 260px;
}

.showcase-row .shot-frame:nth-child(1) { transform: rotate(-1.5deg); }
.showcase-row .shot-frame:nth-child(2) { transform: rotate(1.5deg); }
.showcase-row .shot-frame { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.showcase-row .shot-frame:hover { transform: rotate(0deg) translateY(-4px); }

@media (max-width: 760px) {
  .showcase-row { grid-template-columns: 1fr; gap: 28px; }
  .showcase-row .shot-frame:nth-child(n) { transform: none; }
}

/* ─── Footer ─────────────────────────────────────────────────── */

footer.site {
  padding: 36px 0;
  border-top: 0.5px solid var(--rule);
  font-size: 13px;
  color: var(--ink-2);
}

footer.site .row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site a {
  color: var(--ink-2);
  margin-left: 18px;
  text-decoration: none;
}

footer.site a:hover { color: var(--ink); }

/* ─── Privacy page ──────────────────────────────────────────── */

article.privacy {
  padding: 56px 0 96px;
  max-width: 720px;
}

article.privacy h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 8px;
}

article.privacy .effective {
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 32px;
}

article.privacy h2 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

article.privacy p,
article.privacy li {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 12px;
}

article.privacy ul {
  padding-left: 22px;
}

article.privacy strong { font-weight: 600; }

article.privacy a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

article.privacy a:hover { text-decoration-color: var(--ink); }

/* ─── Scroll reveals ────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.feature-grid .reveal:nth-child(2) { transition-delay: .08s; }
.feature-grid .reveal:nth-child(3) { transition-delay: .16s; }
.feature-grid .reveal:nth-child(4) { transition-delay: .04s; }
.feature-grid .reveal:nth-child(5) { transition-delay: .12s; }
.feature-grid .reveal:nth-child(6) { transition-delay: .20s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero .shot-frame,
  .showcase-row .shot-frame:nth-child(n) { transform: none; transition: none; }
}
