@font-face {
  font-family: Pangolin;
  src: url("assets/Pangolin-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --page: #f1f2f6;
  --ink: #272727;
  --muted: #747474;
  --frame: #d9d9d9;
  --red: #fc3636;
  --white: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: Pangolin, system-ui, sans-serif;
  font-size: 18px;
}

a { color: inherit; }

header,
main,
footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  text-decoration: none;
}

.brand img { border-radius: 12px; }

.text-link {
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 60px 0 100px;
}

.hero-copy { min-width: 0; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(54px, 6.5vw, 96px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.04em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.03em;
}

h3 {
  margin-bottom: 10px;
  font-size: 30px;
  font-weight: 400;
}

.lead {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.45;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-link {
  width: fit-content;
  padding: 13px 20px;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  font-size: 18px;
  text-decoration: none;
}

.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.demo {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  justify-self: center;
}

.comparison {
  padding: 120px 5%;
  border-top: 2px solid var(--frame);
}

.comparison > p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
  line-height: 1.45;
}

.comparison-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 42px;
  overflow: hidden;
  background: var(--ink);
  border: 2px solid var(--frame);
  border-radius: 28px;
  box-shadow: 0 24px 60px #27272718;
}

.comparison-frame img,
.comparison-frame video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-after {
  /* Keep the original on the left and reveal the compressed video on the right. */
  clip-path: inset(0 0 0 var(--position));
}

.comparison-label {
  position: absolute;
  top: 18px;
  z-index: 2;
  padding: 8px 13px;
  color: var(--white);
  background: #272727d9;
  border-radius: 10px;
  font-size: 15px;
}

.before-label { left: 18px; }
.after-label { right: 18px; }

.comparison-line {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 4px;
  background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
}

.comparison-line b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border: 4px solid var(--white);
  border-radius: 50%;
  font: 24px system-ui, sans-serif;
  transform: translate(-50%, -50%);
}

.comparison-frame input {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
}

.comparison-frame:focus-within {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.privacy p {
  color: var(--muted);
  line-height: 1.45;
}

.privacy {
  display: flex;
  align-items: center;
  gap: clamp(30px, 8vw, 100px);
  margin-bottom: 100px;
  padding: clamp(38px, 7vw, 80px);
  color: var(--white);
  background: var(--ink);
  border-radius: 32px;
}

.privacy img {
  width: clamp(110px, 18vw, 220px);
  height: auto;
  border-radius: 26%;
  transform: rotate(-7deg);
}

.privacy p:last-child {
  max-width: 580px;
  margin-bottom: 0;
  color: #d0d0d0;
  font-size: 21px;
}

.policy-page {
  min-height: calc(100vh - 198px);
  display: grid;
  align-items: center;
  padding: 60px 0 100px;
}

.policy {
  max-width: 760px;
}

.policy h1 {
  font-size: clamp(54px, 7vw, 88px);
}

.policy p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.45;
}

.policy a {
  color: var(--ink);
  text-underline-offset: 5px;
}

footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 2px solid var(--frame);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

footer a { text-underline-offset: 4px; }

@media (max-width: 900px) {
  header,
  main,
  footer { width: min(100% - 28px, 560px); }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 70px 0 90px;
  }

  h1 { font-size: clamp(48px, 15vw, 78px); }

  .demo {
    width: min(100%, 480px);
    margin-top: 20px;
  }

  .comparison { padding: 90px 0; }

  .privacy {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 60px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 32px 0;
  }
}

@media (max-width: 520px) {
  header { height: 76px; }
  .brand { font-size: 18px; }
  .brand img { width: 38px; height: 38px; }
  .top-links { gap: 12px; font-size: 16px; }
  .hero { padding-top: 48px; }
  h1 { font-size: clamp(40px, 11.5vw, 46px); }
  .lead { font-size: 18px; }
  .privacy { padding: 30px 24px; }
  .comparison-frame { border-radius: 18px; }
  .comparison-line b { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
