/* CutTogether landing page — scrapbook paper, ink and terracotta.
   No external dependencies: system font stack, vanilla CSS. */
:root {
  --linen: #f5eee0;
  --paper: #fbf6ea;
  --ink: #3a3128;
  --ink-2: #7a6a55;
  --accent: #b0603a;
  --tape: rgba(214, 183, 128, 0.62);
  --rule: rgba(58, 49, 40, 0.12);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--body-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Ruled notebook ground, same as the app's work surface */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 43px,
    rgba(58, 49, 40, 0.055) 43px 44px
  );
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

/* ---------- top bar ---------- */
.top {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0 8px;
}
.top .mark {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 21px;
  letter-spacing: 0.01em;
}
.langs { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.langs a {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2);
  padding: 5px 9px; border-radius: 999px;
}
.langs a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }

/* ---------- hero ---------- */
.hero { padding: 34px 0 20px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.kicker {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 22px;
  display: inline-block;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.05; margin: 0 0 18px; font-weight: 400; letter-spacing: -0.01em;
}
h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: 18px; color: var(--ink-2); margin: 0 0 26px; max-width: 44ch; }
.note { font-size: 11px; letter-spacing: 0.14em; color: var(--ink-2); margin-top: 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: var(--linen);
  padding: 13px 22px; border-radius: 14px; text-decoration: none;
  box-shadow: 0 6px 0 rgba(58, 49, 40, 0.16);
}
.badge svg { width: 22px; height: 26px; fill: currentColor; }
.badge b { display: block; font-size: 16px; line-height: 1.15; font-weight: 600; }
.badge span { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.badge[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* ---------- hero poster demo ---------- */
.demo { position: relative; }
.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 24px 50px rgba(58, 49, 40, 0.22);
  transform: rotate(-1.4deg);
  overflow: hidden;
}
.poster .tape {
  position: absolute; top: -13px; left: 50%; width: 96px; height: 30px;
  transform: translateX(-50%) rotate(2deg);
  background: var(--tape);
}
.poster figure {
  position: absolute; margin: 0; height: 40%;
  opacity: 0; transform: translateY(-40px) scale(1.22) rotate(9deg);
  animation: land 8s cubic-bezier(0.22, 1.3, 0.4, 1) infinite;
}
/* Two stacked white shadows fake the app's die-cut sticker edge. */
.poster figure img {
  height: 100%; width: auto; display: block;
  filter: drop-shadow(0 0 2.5px #fff) drop-shadow(0 0 2.5px #fff)
          drop-shadow(0 0 2.5px #fff) drop-shadow(0 3px 6px rgba(58, 49, 40, 0.22));
}
.poster figure:nth-child(2) { left: 7%;  top: 10%; animation-delay: 0.2s; }
.poster figure:nth-child(3) { right: 6%; top: 8%;  animation-delay: 0.6s; }
.poster figure:nth-child(4) { left: 10%; bottom: 12%; animation-delay: 1.0s; }
.poster figure:nth-child(5) { right: 9%; bottom: 12%; animation-delay: 1.4s; }
.poster .caption {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  font-family: Georgia, serif; font-style: italic; font-size: 15px; color: var(--ink-2);
  opacity: 0; animation: fadecap 8s ease infinite; animation-delay: 1.9s;
}
@keyframes land {
  0%   { opacity: 0; transform: translateY(-40px) scale(1.22) rotate(9deg); }
  9%   { opacity: 1; transform: translateY(0) scale(1) rotate(var(--tilt, -2deg)); }
  86%  { opacity: 1; transform: translateY(0) scale(1) rotate(var(--tilt, -2deg)); }
  100% { opacity: 0; transform: translateY(-40px) scale(1.22) rotate(9deg); }
}
@keyframes fadecap { 0%, 12% { opacity: 0; } 22%, 86% { opacity: 1; } 100% { opacity: 0; } }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chip {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 999px;
  padding: 6px 13px; font-size: 12px; color: var(--ink-2);
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 46px 0; padding: 13px 0; }
.marquee div { display: flex; gap: 44px; width: max-content; animation: slide 34s linear infinite; }
.marquee span { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 58px 0; }
h2 {
  font-family: Georgia, "Times New Roman", serif; font-weight: 400;
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em;
}
h2 em { font-style: italic; color: var(--accent); }
.sec-lede { color: var(--ink-2); max-width: 56ch; margin: 0 0 34px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; box-shadow: 0 5px 0 rgba(58,49,40,0.06); }
.step .n { font-size: 11px; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.step h3 { font-size: 18px; margin: 10px 0 8px; font-weight: 600; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 18px 36px rgba(58,49,40,0.18); display: block; }
.shots figcaption { font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-2); margin-top: 12px; }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 34px; }
.feat h3 { font-size: 16px; margin: 0 0 6px; font-weight: 600; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }
.feat { border-top: 1px solid var(--rule); padding-top: 14px; }

.privacy { background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: 32px; }

.final { text-align: center; padding: 70px 0 60px; }
.final h2 { margin-bottom: 10px; }
.final p { color: var(--ink-2); margin: 0 0 26px; }

footer { background: var(--ink); color: var(--linen); padding: 34px 0; margin-top: 20px; }
footer .wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
footer a { color: var(--linen); opacity: 0.8; text-decoration: none; font-size: 14px; }
footer a:hover { opacity: 1; }
footer .copy { margin-left: auto; font-size: 13px; opacity: 0.6; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .steps, .shots, .feats { grid-template-columns: 1fr; }
  .demo { max-width: 380px; margin: 0 auto; }
  .shots img { max-width: 380px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .poster figure, .poster .caption, .marquee div { animation: none; opacity: 1; transform: none; }
}
