/* Localpen: landing page (follows the Static QR page)
   Three colors only: ink, paper, and the teal from the app icon. */

:root {
  --paper: #f6faf9;
  --ink: #1d1d1f;
  --accent: #0f7f74;

  --ink-2: rgba(29, 29, 31, 0.62);
  --hair: rgba(29, 29, 31, 0.1);
  --tint: rgba(15, 127, 116, 0.1);
  --shadow: 0 1px 2px rgba(29, 29, 31, 0.04), 0 24px 50px -22px rgba(15, 110, 100, 0.28);

  --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: #0d1514;
    --ink: #f5f5f7;
    --accent: #63d9c1;
    --ink-2: rgba(245, 245, 247, 0.62);
    --hair: rgba(245, 245, 247, 0.12);
    --tint: rgba(99, 217, 193, 0.14);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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(15, 120, 105, 0.28)); }
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;
}

/* Mac windows: real screenshots in a thin outline, corners matching macOS */

.mac {
  border-radius: 1.15% / 1.85%;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hair), var(--shadow);
}
.mac img { width: 100%; }
.mac-hero { width: min(980px, 100%); margin: 64px auto 0; }

/* 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 32px;
}
.shot { grid-column: span 2; }
.shot:nth-child(4) { grid-column: 2 / span 2; }
.shot:nth-child(5) { grid-column: 4 / span 2; }
.shots-four .shot, .shots-four .shot:nth-child(4) { grid-column: span 3; }
.shot .mac { width: 100%; margin: 0 auto; }
.shot figcaption { margin: 20px auto 0; max-width: 300px; 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; }

.shot-dots { display: none; }

/* Scroll: sections ease in once (only with scripts on, never with reduced motion) */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.shots), .js .shots.reveal .shot {
    opacity: 0; transform: translateY(18px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  }
  .js .reveal.in:not(.shots), .js .shots.in .shot { opacity: 1; transform: none; }
  .js .shots .shot:nth-child(2) { transition-delay: .08s; }
  .js .shots .shot:nth-child(3) { transition-delay: .16s; }
  .js .shots .shot:nth-child(4) { transition-delay: .24s; }
  .js .shots .shot:nth-child(5) { transition-delay: .32s; }
}

/* 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;
  display: flex; align-items: center; justify-content: center; gap: 40px;
}
.get-icon { width: 112px; filter: drop-shadow(0 10px 22px rgba(15, 120, 105, 0.25)); }
.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(--accent); }

/* Phone width */

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

  .shots {
    padding-top: 88px;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    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: center; scroll-snap-stop: always; }
  .shots-four .shot, .shots-four .shot:nth-child(4) { grid-column: auto; }

  .shot-dots { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
  /* Each dot sits in a 28 point tap area, easy to hit with a thumb. */
  .shot-dots button {
    all: unset; cursor: pointer; min-width: 28px; min-height: 28px;
    display: flex; align-items: center; justify-content: center;
  }
  .shot-dots button::before {
    content: ""; display: block; width: 6px; height: 6px; border-radius: 3px;
    background: color-mix(in srgb, var(--ink) 22%, transparent); transition: width .25s ease, background-color .25s ease;
  }
  .shot-dots button[aria-current="true"]::before { width: 18px; background: var(--accent); }
  .shot-dots button:focus-visible::before { outline: 2px solid var(--accent); outline-offset: 3px; }
  .shot figcaption { font-size: 14px; }

  .promises { margin-top: 56px; 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; text-align: center; flex-direction: column; gap: 0; }
  .get-icon { display: none; }

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