/* Background Off: landing page
   Three colors only: ink, paper, mint (from the app icon). */

:root {
  --paper: #fafdfc;
  --ink: #1d1d1f;
  --mint: #84dcc2;

  --ink-2: rgba(29, 29, 31, 0.62);
  --hair: rgba(29, 29, 31, 0.1);
  --tint: rgba(132, 220, 194, 0.3);
  --shadow: 0 1px 2px rgba(29, 29, 31, 0.04), 0 18px 40px -18px rgba(30, 110, 90, 0.2);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1211;
    --ink: #f5f5f7;
    --mint: #84dcc2;
    --ink-2: rgba(245, 245, 247, 0.62);
    --hair: rgba(245, 245, 247, 0.12);
    --tint: rgba(132, 220, 194, 0.16);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 620px; }

/* Bar */

.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--hair);
}
.bar-row { height: 52px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; }
.bar-link { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.bar-link:hover { color: var(--ink); }

/* Hero */

.hero { text-align: center; padding-top: 88px; }
.hero-icon { margin: 0 auto 28px; width: 96px; filter: drop-shadow(0 10px 22px rgba(40, 140, 110, 0.3)); }
h1 {
  font: 700 clamp(40px, 7vw, 68px)/1.04 var(--display);
  letter-spacing: -0.035em;
}
.lede { margin: 20px auto 0; max-width: 560px; color: var(--ink-2); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; }
.lede span { display: block; }

.badge {
  display: inline-block; margin-top: 28px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--tint); color: var(--ink);
  font-size: 14px; font-weight: 500;
}

/* Phones */

.phone {
  border-radius: 13.5% / 6.2%;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hair), var(--shadow);
}
.phone img { width: 100%; }


/* Before / after slider */

.compare-wrap { width: min(440px, 100%); margin: 56px auto 0; }
.compare {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 0 0 1px var(--hair), var(--shadow);
  background: var(--paper);
  touch-action: pan-y; cursor: ew-resize;
  user-select: none; -webkit-user-select: none;
  --pos: 50%;
  outline: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.compare-after {
  position: absolute; inset: 0;
  background-color: #f2f4f3;
  background-image: conic-gradient(#e2e6e4 25%, transparent 0 50%, #e2e6e4 0 75%, transparent 0);
  background-size: 28px 28px;
  clip-path: inset(0 0 0 var(--pos));
}
.compare-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}
.compare-handle {
  position: absolute; top: 50%; left: var(--pos);
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: #fff; color: #1d1d1f;
  display: grid; place-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}
.compare:focus-visible .compare-handle { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.compare-tag {
  position: absolute; top: 14px; z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.82); color: #1d1d1f;
  font-size: 12px; font-weight: 600; letter-spacing: 0;
  pointer-events: none;
}
.compare-tag.l { left: 14px; }
.compare-tag.r { right: 14px; }
.compare-hint { margin-top: 18px; text-align: center; color: var(--ink-2); font-size: 14px; }

/* Why */

.why { padding-top: 128px; text-align: center; }
h2 { font: 700 clamp(28px, 4vw, 40px)/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 18px; }
.why p { color: var(--ink-2); font-size: 19px; }
.why p + p { margin-top: 14px; color: var(--ink); }

/* Shots */

.shots {
  padding-top: 112px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 56px 40px;
}
.shot { grid-column: span 2; }
.shot:nth-child(4) { grid-column: 2 / span 2; }
.shot:nth-child(5) { grid-column: 4 / span 2; }
.shot .phone { width: min(100%, 280px); margin: 0 auto; }
.shot figcaption { margin: 22px auto 0; max-width: 260px; text-align: center; color: var(--ink-2); font-size: 15px; }
.shot strong { display: block; color: var(--ink); font-size: 17px; font-weight: 600; margin-bottom: 2px; }

/* iPad frame */

.phone.tablet { border-radius: 4.2% / 3.2%; width: 100%; }
.shot .phone.tablet { width: 100%; }

/* Promises */

.promises {
  margin-top: 128px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.promises > div { padding: 36px 28px; text-align: center; }
.promises > div + div { border-left: 1px solid var(--hair); }
.promises h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.promises p { color: var(--ink-2); font-size: 15px; }

/* Get */

.get {
  padding-top: 112px; padding-bottom: 120px;
  text-align: center;
}
.get h2 { margin-bottom: 8px; }
.get p { color: var(--ink-2); }
.get .badge { margin-top: 18px; }

/* Footer */

.foot { border-top: 1px solid var(--hair); font-size: 13px; color: var(--ink-2); }
.foot-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Privacy page */

.policy { padding-top: 72px; padding-bottom: 120px; }
.policy h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.policy .updated { color: var(--ink-2); font-size: 14px; margin-bottom: 36px; }
.policy p, .policy li { font-size: 17px; }
.policy p + p, .policy ul + p { margin-top: 18px; }
.policy ul { margin: 18px 0 0; padding-left: 20px; }
.policy li + li { margin-top: 10px; }
.policy li::marker { color: var(--mint); }

/* Phone width */

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 56px; }
  .hero-icon { width: 80px; margin-bottom: 22px; }
  .compare-wrap { margin-top: 40px; }
  .compare { border-radius: 22px; }
  .lede span { display: inline; }
  .why { padding-top: 96px; }

  .shots {
    padding-top: 88px;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    padding-bottom: 16px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot, .shot:nth-child(4), .shot:nth-child(5) { grid-column: auto; scroll-snap-align: start; }
  .shot figcaption { font-size: 14px; }

  .promises { margin-top: 80px; grid-template-columns: none; border-bottom: 0; }
  .promises > div { padding: 26px 8px; border-bottom: 1px solid var(--hair); }
  .promises > div + div { border-left: 0; }

  .get { padding-top: 80px; padding-bottom: 88px; }

  .foot-row { flex-direction: column-reverse; justify-content: center; padding: 22px 0; }
}
