@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #e8e8ed;
  --border: #d2d2d7;
  --fg: #1d1d1f;
  --fg-2: #515154;
  --fg-3: #6e6e73;
  --link: #0066cc;
  --btn: #1d1d1f;
  --btn-fg: #ffffff;
  --focus: #0071e3;
  --nav: rgb(255 255 255 / 0.78);
  --gutter: max(16px, env(safe-area-inset-left));
  --wide: 1200px;
  --squircle: 22.4%;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--fg); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: var(--squircle); }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--fg-2); }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav .btn { margin-left: 4px; }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--btn); color: var(--btn-fg);
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.btn:hover { text-decoration: none; opacity: 0.86; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.stores a { display: block; border-radius: 10px; }
.stores img { height: 48px; width: auto; }
.fine { font-size: 14px; color: var(--fg-3); }

/* Type */
.display {
  font-size: clamp(52px, 9.2vw, 120px); line-height: 0.94;
  font-weight: 650; letter-spacing: -0.048em;
}
.h2 {
  font-size: clamp(38px, 5.8vw, 72px); line-height: 1;
  font-weight: 640; letter-spacing: -0.04em;
}
.lead { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.38; color: var(--fg-2); letter-spacing: -0.012em; }
.section { padding-block: clamp(88px, 13vw, 168px); }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-top: 20px; max-width: 640px; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 112px); text-align: center; }
.hero-icon {
  width: clamp(96px, 11vw, 132px); height: auto; margin: 0 auto 36px;
  border-radius: var(--squircle);
  box-shadow: 0 24px 60px -18px rgb(0 0 0 / 0.45);
}
.hero .lead { max-width: 620px; margin: 28px auto 36px; }
.hero .fine { margin-top: 16px; }

/* Hero result: the original shrinks into the corner and uncovers the result */
.reveal {
  position: relative; margin: clamp(56px, 8vw, 96px) auto 0;
  width: min(620px, 100%); aspect-ratio: 3 / 4;
  border-radius: 28px; overflow: hidden; background: var(--surface);
}
.reveal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reveal .original {
  inset: auto auto 16px 16px; width: 28%; height: auto; aspect-ratio: 3 / 4;
  border-radius: 12px; transform-origin: bottom left;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.9), 0 12px 32px rgb(0 0 0 / 0.55);
}
.reveal figcaption span {
  position: absolute; padding: 5px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: #fff;
  background: rgb(0 0 0 / 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.reveal figcaption span:first-child { left: calc(16px + 28% + 10px); bottom: 16px; }
.reveal figcaption span:last-child { right: 16px; top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  /* 1 / 0.28 scales the inset back to full size; the translate cancels its 16px offset. */
  .reveal .original { animation: shrink 1.2s cubic-bezier(0.7, 0, 0.2, 1) 0.9s both; }
  .reveal figcaption { animation: fade 0.5s ease 2s both; }
  @keyframes shrink {
    from { transform: translate(-16px, 16px) scale(3.5715); border-radius: 3.4px; box-shadow: none; }
  }
  @keyframes fade { from { opacity: 0; } }
}

/* Wall of results */
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot figure { position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: var(--surface); }
.shot figure > img { width: 100%; height: 100%; object-fit: cover; }
.shot .original {
  position: absolute; left: 12px; bottom: 12px; width: 26%; height: auto;
  aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.9), 0 8px 24px rgb(0 0 0 / 0.5);
}
.shot h3 { margin-top: 16px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.shot p { margin-top: 2px; font-size: 15px; color: var(--fg-3); }
.wall .shot:nth-child(3n + 2) { margin-top: 56px; }
@media (max-width: 900px) {
  .wall { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .wall .shot:nth-child(3n + 2) { margin-top: 0; }
  .wall .shot:nth-child(2n) { margin-top: 40px; }
}
@media (max-width: 560px) {
  .wall { grid-template-columns: 1fr; }
  .wall .shot:nth-child(2n) { margin-top: 0; }
}

/* Destinations rail */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(180px, 22vw, 240px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), (100% - var(--wide)) / 2);
  scroll-padding-inline: max(var(--gutter), (100% - var(--wide)) / 2);
}
.rail::-webkit-scrollbar { display: none; }
.rail figure { scroll-snap-align: start; }
.rail img { aspect-ratio: 2 / 3; width: 100%; object-fit: cover; border-radius: 18px; background: var(--surface); }
.rail figcaption { margin-top: 10px; font-size: 15px; font-weight: 500; }
.rail figcaption span { display: block; font-weight: 400; font-size: 14px; color: var(--fg-3); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; list-style: none; padding: 0; }
.steps li { border-top: 1px solid var(--border); padding-top: 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-size: 15px; color: var(--fg-3); font-variant-numeric: tabular-nums; margin-bottom: 28px; }
.steps h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin-top: 8px; color: var(--fg-2); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feature { grid-column: span 2; background: var(--surface); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; overflow: hidden; }
.feature.big { grid-column: span 3; }
.feature h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 640; letter-spacing: -0.03em; line-height: 1.1; }
.feature p { margin-top: 12px; color: var(--fg-2); }
.feature .pro { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--fg-3); }
.feature .art { margin: 32px -32px -32px; height: clamp(300px, 34vw, 420px); overflow: hidden; }
.feature .art.bleed img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.feature .art.screen { display: flex; justify-content: center; }
.feature .art.screen img { width: min(300px, 72%); height: auto; align-self: flex-start; border-radius: 36px 36px 0 0; box-shadow: 0 0 0 6px var(--surface-2); margin-top: 6px; }
@media (max-width: 900px) {
  .feature, .feature.big { grid-column: span 6; min-height: 0; }
}

/* iPhone Duo: the cover swings open as the section scrolls past */
.duo { position: relative; }
.duo-sticky { padding-block: clamp(88px, 13vw, 168px); }
.duo-copy { text-align: center; }
.duo-copy .lead { max-width: 640px; margin: 20px auto 0; }
.duo-stage { perspective: 2400px; margin-top: clamp(40px, 6vw, 72px); display: flex; justify-content: center; }
.duo-device { position: relative; width: min(980px, 100% - 2 * var(--gutter), (100svh - 380px) * 1.402); aspect-ratio: 1130 / 806; transform-style: preserve-3d; }
.duo-device img { position: absolute; top: 0; height: 100%; }
.duo-right { left: 49.82%; width: 50.18%; }
.duo-flap {
  position: absolute; left: 0; top: 0; width: 49.82%; height: 100%;
  transform-origin: right center; transform-style: preserve-3d;
}
.duo-flap img { left: 0; width: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.duo-back { transform: rotateY(180deg); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .duo { height: 320vh; view-timeline: --duo block; }
    .duo-sticky {
      position: sticky; top: 52px; height: calc(100svh - 52px); padding-block: 0;
      display: flex; flex-direction: column; justify-content: center; overflow: clip;
    }
    .duo-copy { animation: duo-copy linear both; animation-timeline: --duo; animation-range: contain 0% contain 60%; }
    .duo-device { animation: duo-shift linear both; animation-timeline: --duo; animation-range: contain 15% contain 80%; }
    .duo-flap { animation: duo-unfold linear both; animation-timeline: --duo; animation-range: contain 15% contain 80%; }
    /* Closed, the cover lies over the right half; shifting the body left by a quarter centres it. */
    @keyframes duo-shift {
      from { transform: translateX(-25%) scale(0.86); }
      to { transform: none; }
    }
    @keyframes duo-unfold {
      from { transform: translateZ(1px) rotateY(180deg); }
      to { transform: translateZ(1px) rotateY(0deg); }
    }
    @keyframes duo-copy {
      from { transform: translateY(40px); opacity: 0.2; }
      40% { opacity: 1; }
      to { transform: translateY(-24px); opacity: 1; }
    }
  }
}

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { border: 1px solid var(--border); border-radius: 24px; padding: 32px; }
.plan h3 { font-size: 28px; font-weight: 640; letter-spacing: -0.03em; }
.plan .sub { color: var(--fg-2); margin-top: 4px; }
.plan ul { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before {
  content: ''; position: absolute; left: 0; top: 0.32em; width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--fg-3);
}
.plan.pro { background: var(--surface); border-color: transparent; }
.packs { margin-top: 28px; border-top: 1px solid var(--border); }
.packs div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.packs span:last-child { color: var(--fg-2); }
.plans + .fine { margin-top: 20px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Closing call to action */
.closer { text-align: center; }
.closer img { width: 96px; margin: 0 auto 32px; border-radius: var(--squircle); }
.closer .stores { margin-top: 36px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 13px; color: var(--fg-3); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--fg-2); }
.footer .copy { margin-left: auto; }
@media (max-width: 720px) { .footer .copy { margin-left: 0; width: 100%; } }

/* Documents: terms, privacy, support, account deletion */
.doc { padding-block: clamp(48px, 8vw, 96px) 96px; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); line-height: 1.05; font-weight: 650; letter-spacing: -0.04em; }
.doc .updated { margin-top: 12px; color: var(--fg-3); font-size: 15px; }
.doc .intro { margin-top: 28px; font-size: 19px; color: var(--fg-2); line-height: 1.5; }
.doc h2 { margin-top: 56px; font-size: 24px; font-weight: 640; letter-spacing: -0.025em; }
.doc h3 { margin-top: 28px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.doc p, .doc ul, .doc ol { margin-top: 12px; color: var(--fg-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc .toc { margin-top: 32px; padding: 20px 24px; background: var(--surface); border-radius: 16px; columns: 2; column-gap: 32px; list-style: none; }
.doc .toc li { margin: 0 0 6px; break-inside: avoid; }
@media (max-width: 560px) { .doc .toc { columns: 1; } }
.doc table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--fg); font-weight: 600; }
.doc td { color: var(--fg-2); }
.card { margin-top: 20px; padding: 24px; border-radius: 18px; background: var(--surface); }
.card h3 { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--fg); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--fg-3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; }
