/* Landing only. Loaded after tokens.css and style.css, scoped to body.landing. */
body.landing {
  --ink: #0e1114;
  --ink-2: #171b20;
  --paper: #fbf7ef;
  --line: #f4efe4;
  --teal: #4fc3d4;
  --teal-deep: #0b6e7f;
  --orange: #ff9f0a;
  --muted: #a9b0b8;
  --border: 3px solid var(--ink);
  background: var(--ink);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
  color: var(--line);
  overflow-x: hidden;
}
body.landing main { overflow-x: clip; }
.landing .wrap { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
body.landing a { color: inherit; }

/* Header */
body.landing .site-header {
  background: rgba(14, 17, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky; top: 0; z-index: 10;
}
body.landing .site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
body.landing .brand { color: #fff; font-weight: 800; font-size: 1.15rem; display: flex; gap: 10px; align-items: center; text-decoration: none; }
body.landing .brand img { border-radius: 8px; }

/* Play button */
.landing .play {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); text-decoration: none;
  border: var(--border); border-radius: 14px;
  padding: 10px 20px 10px 16px;
  box-shadow: 5px 5px 0 var(--orange);
  font-weight: 800; font-size: 1.1rem; line-height: 1.05;
  transition: transform .15s ease, box-shadow .15s ease;
}
.landing .play small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.landing .play:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--orange); }
.landing .play:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--orange); }
.landing .play-sm { padding: 6px 14px 6px 10px; font-size: .9rem; box-shadow: 3px 3px 0 var(--orange); border-width: 2px; border-radius: 10px; }
.landing .play-sm svg { width: 18px; height: 18px; }
.landing .play-lg { font-size: 1.3rem; padding: 14px 28px 14px 22px; }

/* Hero */
.landing .lp-hero { padding: 72px 0 88px; position: relative; }
.landing .lp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 78% 40%, rgba(79, 195, 212, 0.22), transparent 70%),
              radial-gradient(40% 50% at 10% 90%, rgba(255, 159, 10, 0.14), transparent 70%);
}
.landing .lp-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.landing .eyebrow { color: var(--orange); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin: 0 0 18px; }
.landing h1 {
  font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 900; color: #fff; margin: 0 0 24px;
}
.landing .bubble {
  display: inline-block; position: relative; margin-top: 10px;
  background: #fff; color: var(--ink);
  padding: 0.04em 0.34em 0.1em; border-radius: 0.55em;
  border: var(--border); transform: rotate(-2deg);
  box-shadow: 6px 6px 0 var(--teal);
}
.landing .bubble::after {
  content: ""; position: absolute; left: 18%; bottom: -0.36em;
  width: 0.5em; height: 0.5em; background: #fff;
  border-right: var(--border); border-bottom: var(--border);
  transform: skewX(30deg) rotate(45deg);
}
.landing .lp-lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 34em; margin: 34px 0 32px; }
.landing .cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.landing .fine { color: var(--muted); font-size: .9rem; margin: 0; }

/* Before/after */
.landing .compare {
  --pos: 50%;
  position: relative; margin: 0; justify-self: center;
  width: 100%; max-width: 440px; aspect-ratio: 1080 / 1524;
  border: 4px solid #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 14px 14px 0 var(--teal-deep), 0 30px 80px rgba(0, 0, 0, .5);
  transform: rotate(1.5deg); background: #fff;
  touch-action: pan-y;
}
.landing .compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.landing .compare-top { clip-path: inset(0 0 0 var(--pos)); }
.landing .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--orange); pointer-events: none; }
.landing .handle span {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: var(--orange); border: 3px solid var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.landing .handle span::before, .landing .handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px;
  border: 6px solid transparent;
}
.landing .handle span::before { left: 3px; border-right-color: var(--ink); }
.landing .handle span::after { right: 3px; border-left-color: var(--ink); }
.landing .compare input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.landing .tag {
  position: absolute; top: 12px; z-index: 2; pointer-events: none;
  background: var(--ink); color: #fff; font-weight: 800; font-size: .78rem;
  padding: 5px 10px; border-radius: 999px;
}
.landing .tag-l { left: 12px; }
.landing .tag-r { right: 12px; background: var(--teal-deep); }
.landing .compare figcaption {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(14, 17, 20, .85); color: #fff; font-size: .8rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; pointer-events: none; white-space: nowrap;
  transition: opacity .3s;
}
.landing .compare.touched figcaption { opacity: 0; }

/* Marquee */
.landing .marquee {
  display: flex; overflow: hidden; background: var(--orange); color: var(--ink);
  border-block: var(--border); transform: rotate(-1.2deg); margin: 0 -20px;
  font-weight: 900; text-transform: uppercase; letter-spacing: .02em; font-size: 1.15rem;
}
.landing .marquee ul { display: flex; flex-shrink: 0; gap: 0; margin: 0; padding: 14px 0; list-style: none; animation: marquee 36s linear infinite; }
.landing .marquee li { padding: 0 22px; white-space: nowrap; }
.landing .marquee li::after { content: "✦"; margin-left: 44px; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Comic page of features */
.landing .panels { padding-top: 120px; padding-bottom: 40px; }
.landing .section-title { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 900; color: #fff; margin: 0 0 40px; }
.landing .page {
  display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr);
  background: var(--paper); padding: 14px; border-radius: 4px;
  box-shadow: 12px 12px 0 rgba(79, 195, 212, .35);
}
.landing .panel {
  position: relative; background: #fff; color: var(--ink);
  border: var(--border); padding: 26px 24px 24px; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.landing .panel h3 { font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.02em; font-weight: 900; margin: 6px 0 0; }
.landing .panel p { margin: 0; color: #3d454e; line-height: 1.5; }
.landing .num {
  position: absolute; top: 0; right: 0; background: var(--ink); color: #fff;
  font-weight: 900; font-size: .85rem; padding: 6px 12px;
}
.landing .p-bubbles { grid-column: span 4; background: var(--teal); }
.landing .p-bubbles p { color: var(--ink); }
.landing .pair { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; }
.landing .pair img { width: calc(50% - 22px); height: auto; border: var(--border); border-radius: 6px; background: #fff; }
.landing .arrow { font-weight: 900; font-size: 1.6rem; }
.landing .p-offline {
  grid-column: span 2; background: var(--ink); color: #fff;
  background-image: radial-gradient(rgba(255, 159, 10, .35) 1.5px, transparent 1.7px); background-size: 10px 10px;
}
.landing .p-offline p { color: var(--muted); }
.landing .p-offline .num { background: var(--orange); color: var(--ink); }
.landing .big { font-size: 6.5rem !important; font-weight: 900; line-height: .9; color: var(--orange) !important; letter-spacing: -0.05em; margin: 0 !important; }
.landing .big small { display: block; font-size: 1.2rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.landing .p-strip { grid-column: span 2; grid-row: span 2; }
.landing .strip { flex: 1; min-height: 260px; border: var(--border); overflow: hidden; position: relative; }
.landing .strip img { position: absolute; left: 0; top: 0; width: 100%; height: auto; animation: scroll-strip 14s ease-in-out infinite alternate; }
@keyframes scroll-strip { to { transform: translateY(calc(-100% + 300px)); } }
.landing .p-files { grid-column: span 4; background: var(--orange); }
.landing .p-files p { color: var(--ink); }
.landing .fan { display: flex; justify-content: center; padding: 10px 0 6px; height: 170px; }
.landing .fan img { width: 112px; height: 150px; object-fit: cover; border: var(--border); border-radius: 4px; margin: 0 -14px; box-shadow: 4px 4px 0 var(--ink); }
.landing .fan img:nth-child(1) { transform: rotate(-12deg) translateY(14px); }
.landing .fan img:nth-child(2) { transform: rotate(-6deg) translateY(4px); }
.landing .fan img:nth-child(3) { transform: translateY(-2px); z-index: 1; }
.landing .fan img:nth-child(4) { transform: rotate(6deg) translateY(4px); }
.landing .fan img:nth-child(5) { transform: rotate(12deg) translateY(14px); }
.landing .p-ai { grid-column: span 2; }
.landing .chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: auto 0 0; }
.landing .chips li { border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .85rem; background: var(--paper); }
.landing .p-web { grid-column: span 2; }
.landing .browser { border: var(--border); border-radius: 8px; overflow: hidden; height: 170px; position: relative; }
.landing .browser .bar { display: flex; align-items: center; gap: 5px; background: var(--ink); color: #fff; padding: 7px 10px; font-size: .72rem; position: relative; z-index: 1; }
.landing .browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.landing .browser .bar b { margin-left: 8px; font-weight: 600; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landing .browser img { width: 100%; height: auto; display: block; transform: translateY(-18%); }

/* Languages */
.landing .langs { display: grid; grid-template-columns: auto auto 1fr; gap: 28px; align-items: center; padding-top: 90px; padding-bottom: 30px; }
.landing .langs ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.landing .langs li { border: 2px solid rgba(255, 255, 255, .25); border-radius: 12px; padding: 10px 16px; font-weight: 800; font-size: 1.1rem; color: #fff; }
.landing .langs-from li { background: #fff; color: var(--ink); border-color: #fff; font-size: 1.4rem; }
.landing .langs-arrow { font-size: 3rem; font-weight: 900; color: var(--orange); }

/* FAQ */
.landing .lp-faq { padding-top: 90px; }
.landing .lp-faq details { max-width: 820px; }
.landing .lp-faq details { border-top: 1px solid rgba(255, 255, 255, .14); }
.landing .lp-faq details:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.landing .lp-faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 800; font-size: 1.2rem; color: #fff; position: relative; }
.landing .lp-faq summary::-webkit-details-marker { display: none; }
.landing .lp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.8rem; color: var(--orange); transition: transform .2s; }
.landing .lp-faq details[open] summary::after { transform: rotate(45deg); }
.landing .lp-faq details p { margin: 0 0 22px; color: var(--muted); line-height: 1.6; }

/* Final CTA */
.landing .final { text-align: center; padding-top: 110px; padding-bottom: 90px; display: flex; flex-direction: column; align-items: center; gap: 34px; }
.landing .final-bubble {
  position: relative; background: #fff; color: var(--ink); margin: 0;
  font-size: clamp(1.8rem, 4.6vw, 3.2rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1;
  padding: 26px 40px; border: 4px solid var(--ink); border-radius: 50% / 46%;
  box-shadow: 10px 10px 0 var(--teal); max-width: 16em;
}
.landing .final-bubble::after {
  content: ""; position: absolute; bottom: -24px; left: 30%; width: 34px; height: 34px;
  background: #fff; border-right: 4px solid var(--ink); border-bottom: 4px solid var(--ink);
  transform: skewX(25deg) rotate(40deg);
}
.landing .credit { color: var(--muted); font-size: .85rem; margin: 0; }

/* Footer */
body.landing .site-footer { background: transparent; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--muted); }
body.landing .site-footer a { color: var(--muted); }

@media (max-width: 900px) {
  .landing .lp-hero { padding: 40px 0 64px; }
  .landing .panels { padding-top: 72px; }
  .landing .lp-grid { grid-template-columns: 1fr; gap: 44px; }
  .landing .compare { max-width: 380px; }
  .landing .page { grid-template-columns: 1fr 1fr; }
  .landing .p-bubbles, .landing .p-files { grid-column: span 2; }
  .landing .p-offline, .landing .p-strip, .landing .p-ai, .landing .p-web { grid-column: span 1; grid-row: auto; }
  .landing .langs { grid-template-columns: 1fr; gap: 16px; }
  .landing .langs-arrow { transform: rotate(90deg); justify-self: start; line-height: 1; }
}
@media (max-width: 560px) {
  .landing .page { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .landing .p-bubbles, .landing .p-files, .landing .p-offline, .landing .p-strip, .landing .p-ai, .landing .p-web { grid-column: span 1; }
  .landing .site-header .play-sm small { display: none; }
  .landing .lp-lead { font-size: 1.05rem; margin-top: 28px; }
  .landing .fan img { width: 84px; height: 112px; margin: 0 -12px; }
  .landing .fan { height: 140px; }
  .landing .final-bubble { padding: 22px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing .marquee ul, .landing .strip img { animation: none; }
}
