/* ── Graflio landing: quiet paper — same field as the app ───── */

:root {
  --ink: #131e2b;
  --paper: #fbfaf7;
  --cream: #ffffff;
  --accent: #0c8a5f;
  --accent-deep: #0a6e4c;
  --accent-soft: #e8f4ee;
  --line: #eae7df;
  --line-strong: #d9d5ca;
  --dim: #949288;
  --body: #4c5866;
  --mono: 'Fragment Mono', monospace;
  --sans: 'Archivo', sans-serif;
  --display: 'Fraunces', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.12; }
h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.5px; }

.kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.head .kicker { display: block; margin-bottom: 12px; }

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 22px;
  border-radius: 11px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); }
.btn.ghost { border: 1px solid var(--line-strong); color: var(--body); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn.big { font-size: 16px; padding: 14px 30px; }

.mark { color: var(--accent); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-brand { font-family: 'Archivo', var(--sans, sans-serif); font-weight: 800; font-size: 18px; letter-spacing: -0.025em; color: var(--ink); text-decoration: none; }
.wm-l { color: var(--accent, #0c8a5f); }
.wm-i { position: relative; }
.wm-i::before {
  content: ''; position: absolute; width: .165em; height: .165em; border-radius: 50%;
  background: var(--accent, #0c8a5f); left: .0625em; top: .075em;
}

.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--body); text-decoration: none; font-weight: 500; font-size: 13.5px; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; }

.langs { display: flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 12px; }
.langs a { color: var(--dim); text-decoration: none; padding: 3px 7px; border-radius: 6px; }
.langs a:hover { color: var(--ink); }
.langs a.active { color: var(--accent); border: 1px solid var(--accent); }
.langs span { color: var(--dim); }

/* ── hero ── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  padding: clamp(56px, 8vw, 120px) clamp(20px, 5vw, 72px) clamp(48px, 6vw, 90px);
  max-width: 1320px;
  margin: 0 auto;
}
.hero h1 { font-size: clamp(36px, 4.8vw, 62px); letter-spacing: -1.2px; margin: 16px 0 22px; }
.hero .sub { font-size: 16.5px; color: var(--body); max-width: 560px; margin-bottom: 32px; line-height: 1.65; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stat { margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--dim); }

/* ── before/after slider ── */
.ba {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -18px rgba(35, 30, 15, 0.25);
  cursor: ew-resize;
  user-select: none;
  aspect-ratio: 1;
  background: #fff;
}
.ba img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-top {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  border-right: 3px solid #fff;
}
.ba-top img { width: 100%; max-width: none; height: 100%; }
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(22, 19, 16, 0.3);
  pointer-events: none;
}
.ba-tag {
  position: absolute;
  top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(22, 19, 16, 0.78);
  color: #fff;
  pointer-events: none;
}
.tag-l { left: 14px; }
.tag-r { right: 14px; background: var(--accent); }
.ba-sub {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--dim);
  text-align: center;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ── platform logos marquee ── */
.logos { padding: 6px 0 clamp(44px, 6vw, 72px); }
.logos-title {
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 28px;
  padding: 0 20px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: logos-scroll 45s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(44px, 5vw, 76px);
  padding-right: clamp(44px, 5vw, 76px);
}
.marquee-group img {
  display: block;
  height: 26px;
  width: auto;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.25s ease;
}
.marquee-group img:hover { filter: none; }
.marquee-group .lg-slim { height: 21px; }
.marquee-group .lg-mid { height: 30px; }
.marquee-group .lg-tall { height: 38px; }
.lg-tiktok { display: flex; align-items: center; gap: 7px; }
@keyframes logos-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 24px; }
  .marquee-group[aria-hidden] { display: none; }
}

/* ── bands ── */
.band {
  padding: clamp(56px, 7vw, 100px) clamp(20px, 5vw, 72px);
  max-width: 1320px;
  margin: 0 auto;
}
.band.tint { max-width: none; background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.tint > * { max-width: 1176px; margin-left: auto; margin-right: auto; }
.band.tint + .band.tint { border-top: none; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 0 1px 2px rgba(35, 30, 15, 0.04);
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--line-strong); }
.band.tint .card { background: var(--paper); }
.card-ico { font-size: 20px; color: var(--accent); display: block; margin-bottom: 14px; }
.card p { font-size: 14px; color: var(--body); line-height: 1.6; }
.card.chan h3 { font-family: var(--display); font-weight: 500; font-size: 21px; margin-bottom: 10px; }

/* ── stats ── */
.stats .stat { text-align: center; padding: 12px; }
.stat strong {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 4.2vw, 54px);
  color: var(--accent-deep);
  margin-bottom: 8px;
}
.stat span { font-size: 14.5px; color: var(--body); }

/* ── steps timeline ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.step { position: relative; padding: 26px 22px 22px; }
.step em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.step::after {
  content: '';
  position: absolute;
  top: 45px;
  left: 74px;
  right: -6px;
  border-top: 2px dashed var(--line);
}
.step:last-child::after { display: none; }
.step p { font-size: 14.5px; color: var(--body); }

/* ── split (model shot) ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.split-copy .kicker { display: block; margin-bottom: 12px; }
.split-copy h2 { margin-bottom: 18px; }
.split-copy .lede { font-size: 16.5px; color: var(--body); margin-bottom: 28px; max-width: 480px; }

/* ── gallery ── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px -14px rgba(35, 30, 15, 0.18);
  transition: box-shadow 0.2s ease;
}
.gallery figure:hover img { box-shadow: 0 18px 44px -14px rgba(35, 30, 15, 0.26); }
.gallery figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  text-align: center;
}

/* ── faq ── */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-family: var(--mono); font-size: 19px; flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; color: var(--body); font-size: 15px; max-width: 620px; }

/* ── final cta ── */
.cta-final { text-align: center; padding-top: clamp(70px, 9vw, 130px); padding-bottom: clamp(70px, 9vw, 130px); }
.cta-final h2 { margin-bottom: 30px; font-size: clamp(32px, 4.5vw, 54px); }

/* ── footer ── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 32px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--cream);
  font-size: 14px;
  color: var(--dim);
}
.footer .langs a { font-family: var(--sans); font-size: 13px; }

/* ── responsive ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

.footer .foot-links a { color: var(--dim); text-decoration: none; }
.footer .foot-links a:hover { color: var(--accent); }
