@font-face {
  font-family: Inter;
  src: url("/assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  --ground: #090909;
  --text: #fafafa;
  --muted: #a8a8a8;
  --rule: #303030;
  --focus: #a7d8ff;
  background: var(--ground);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.wrap { width: min(calc(100% - 48px), 1000px); margin-inline: auto; }

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 44px 0 34px;
  text-align: center;
  background:
    radial-gradient(ellipse 112px 98px at calc(50% + 23px) 103px, #c14cff15, transparent),
    radial-gradient(ellipse 112px 98px at calc(50% - 23px) 103px, #27d6ee0f, transparent);
}

.hero-mark { width: clamp(94px, 14vw, 115px); height: auto; }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.9rem, 7vw, 4.15rem);
  font-weight: 780;
  letter-spacing: -.075em;
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #202020;
  color: var(--text);
  font-size: .84rem;
  font-weight: 650;
  white-space: nowrap;
}
.button:hover { background: #2c2c2c; }
.primary, .install { background: #f7f7f7; color: #111; border-color: #f7f7f7; }
.primary:hover, .install:hover { background: #ddd; border-color: #ddd; }
.install { min-width: 136px; min-height: 48px; border-radius: 999px; font-size: 1rem; }
.install-qr { display: none; }

@media (min-width: 900px) {
  .install-qr {
    position: absolute;
    inset: auto 6% 34px auto;
    display: grid;
    justify-items: center;
    gap: 9px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--rule);
    border-radius: 14px;
    background: #141414;
    color: #ddd;
    font-size: .75rem;
  }
  .install-qr img { display: block; width: 123px; height: 123px; border-radius: 4px; }
}

.demos {
  display: grid;
  gap: 18px;
  width: min(100%, 890px);
  margin-inline: auto;
}

.comparison {
  --split: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 15px;
  background: #222;
  isolation: isolate;
}
.comparison img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.before-photo { clip-path: inset(0 calc(100% - var(--split)) 0 0); }

.image-label {
  position: absolute;
  top: 10px;
  padding: 6px 8px;
  border: 1px solid #ffffff24;
  border-radius: 7px;
  background: #101010d9;
  color: #fff;
  font-size: .74rem;
  font-weight: 650;
  pointer-events: none;
}
.before { left: 10px; }
.after { right: 10px; }

.divider {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.divider::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: var(--split);
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
}
.divider-handle {
  position: absolute;
  top: 50%;
  left: clamp(17px, var(--split), calc(100% - 17px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  box-shadow: 0 1px 8px #0005;
}
.divider-handle::before, .divider-handle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.divider-handle::before { transform: rotate(-135deg); }
.divider-handle::after { transform: rotate(45deg); }
.comparison input[type="range"] {
  position: absolute;
  inset: 0;
  appearance: none;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.comparison input::-webkit-slider-thumb { appearance: none; width: 2px; }
.comparison input::-moz-range-thumb { width: 2px; border: 0; }
.comparison:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }

.site-sections {
  display: grid;
  gap: clamp(42px, 8vw, 80px);
  width: min(100%, 890px);
  margin: clamp(42px, 8vw, 80px) auto 0;
}
.site-sections > section { min-width: 0; }
.site-sections h2 {
  margin: 0 0 17px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 730;
  letter-spacing: -.05em;
  line-height: 1.16;
}
.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 15px;
  margin-bottom: 17px;
}
.section-title h2 { margin: 0; }

.feature-grid, .screen-gallery { list-style: none; margin: 0; padding: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature-grid li {
  --feature-accent: #ae9aff;
  padding: clamp(14px, 3.2vw, 24px);
  border: 1px solid var(--rule);
  border-radius: 15px;
  background: #141414;
}
.feature-grid li[data-feature="edit"] { --feature-accent: #8ddff2; }
.feature-grid li[data-feature="collage"] { --feature-accent: #ffbe8a; }
.feature-grid li[data-feature="gallery"] { --feature-accent: #9de2c4; }
.feature-grid li::before {
  display: block;
  width: 21px;
  height: 3px;
  margin-bottom: 13px;
  border-radius: 99px;
  background: var(--feature-accent);
  content: "";
}
.feature-grid h3 { margin: 0 0 7px; font-size: 1.02rem; letter-spacing: -.02em; }
.feature-grid p { margin: 0; color: #bcbcbc; font-size: .89rem; line-height: 1.55; }

.screen-controls { display: flex; gap: 8px; }
.screen-arrow, .expand-controls button {
  font: inherit;
  cursor: pointer;
}
.screen-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: #191919;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
}
.screen-arrow:not([aria-disabled="true"]):hover { background: #2d2d2d; }
.screen-arrow[aria-disabled="true"] { color: #787878; cursor: default; }
.screen-gallery {
  --screen-gap: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--screen-gap) * 3) / 4);
  gap: var(--screen-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: #5a5a5a #161616;
  border-radius: 15px;
}
.screen-gallery li {
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--rule);
  border-radius: 15px;
  background: #141414;
}
.screen-gallery a { display: block; height: 100%; }
.screen-gallery a:focus-visible { outline-offset: -4px; }
.screen-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 393 / 852; }
.screen-name {
  display: block;
  min-height: 62px;
  padding: 11px 12px;
  border-top: 1px solid var(--rule);
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.35;
}
.screen-name small { display: block; margin-top: 3px; color: #bcbcbc; font-size: .72rem; font-weight: 450; }

.expand-controls {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #171717;
}
.expand-controls button {
  min-height: 36px;
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #cecece;
  font-size: .81rem;
  font-weight: 650;
}
.expand-controls button:hover { background: #303030; color: var(--text); }
.expand-controls button[aria-pressed="true"] { background: #f7f7f7; color: #111; }
.expand-demo figure { margin: 0; }
.expand-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 15px;
  background: #1b1b1b;
}
.expand-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.expand-frame .expand-original { width: 66.6667%; }
.expand-demo figcaption { margin-top: 9px; color: #aaa; font-size: .78rem; }

.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 53px;
  padding: 12px 4px;
  list-style: none;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 620;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin: 0 5px 4px 0;
  transform: rotate(45deg);
  border-right: 2px solid #bbb;
  border-bottom: 2px solid #bbb;
  content: "";
}
.faq details[open] summary::after { transform: translateY(4px) rotate(225deg); }
.faq p { max-width: 65ch; margin: 0; padding: 0 4px 17px; color: #bcbcbc; font-size: .91rem; line-height: 1.65; }
.faq a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.landing-foot nav, .site-head nav, .site-foot nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  color: var(--muted);
  font-size: .83rem;
}
.landing-foot { width: min(calc(100% - 48px), 890px); margin-top: 24px; padding: 21px 0 24px; border-top: 1px solid var(--rule); }
.landing-foot nav { justify-content: center; }
.landing-foot a:hover, .site-head a:hover, .site-foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.skip {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .75rem;
  transform: translateY(-200%);
  background: #fff;
  color: #111;
}
.skip:focus { transform: none; }
.site-head, .site-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 74px;
}
.site-head { border-bottom: 1px solid var(--rule); }
.site-foot { border-top: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 720; letter-spacing: -.05em; }
.brand img { object-fit: contain; }
.site-foot .brand { font-size: 1rem; }
.header-action { padding: 8px 13px; border: 1px solid var(--rule); border-radius: 999px; font-size: .86rem; font-weight: 650; }
.legal { width: min(calc(100% - 48px), 780px); margin: 60px auto 70px; }
.legal h1 { margin: 0 0 18px; font-size: clamp(2.15rem, 6vw, 3.85rem); letter-spacing: -.065em; line-height: 1.03; }
.legal .updated { color: var(--text); margin-top: 0; font-size: .84rem; font-weight: 600; }
.legal h2 { margin: 0 0 .6em; font-size: 1.22rem; letter-spacing: -.026em; }
.legal p, .legal li { color: #c1c1c1; line-height: 1.67; }
.legal li + li { margin-top: .6em; }
.legal section { border-top: 1px solid var(--rule); margin-top: 26px; padding-top: 23px; }
.legal a:not(.button) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal .button { margin-block: 7px; }

@media (max-width: 760px) {
  .screen-gallery { grid-auto-columns: calc((100% - var(--screen-gap) * 2) / 2.4); }
}

@media (max-width: 560px) {
  .wrap, .legal, .landing-foot { width: calc(100% - 28px); }
  .hero {
    padding: 27px 0 28px;
    background:
      radial-gradient(ellipse 78px 76px at calc(50% + 19px) 76px, #c14cff16, transparent),
      radial-gradient(ellipse 78px 76px at calc(50% - 19px) 76px, #27d6ee0e, transparent);
  }
  .hero h1 { margin-bottom: 16px; }
  .demos { gap: 14px; }
  .screen-gallery { grid-auto-columns: 44%; }
  .feature-grid { gap: 8px; }
  .feature-grid p, .screen-name { font-size: .82rem; }
  .comparison { border-radius: 12px; }
  .image-label { top: 7px; padding: 5px 7px; }
  .before { left: 7px; }
  .after { right: 7px; }
  .landing-foot nav, .site-head nav, .site-foot nav { gap: 10px 13px; }
  .site-head { min-height: 64px; }
  .site-head .brand { font-size: 1.03rem; gap: 2px; }
  .site-head .brand img { width: 29px; height: 29px; }
  .header-action { display: none; }
  .site-foot { flex-wrap: wrap; padding-block: 15px; }
  .legal { margin-block: 39px; }
}
