/* Peapod */

:root {
  --bg:     #f4f4f2;
  --fg:     #1c1c1e;
  --muted:  #8a8a8e;
  --tint:   #4B92AE;
  --bg-foot: #efefed;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 24px;
  --column: 620px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #111113;
    --fg:     #f2f2f0;
    --muted:  #8a8a8e;
    --tint:   #479ff0;
    --bg-foot: #0a0a0b;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tint); }

/* ---- layout ---- */

.page {
  /*max-width: var(--column);*/
  margin: 0 auto;
  padding: 72px var(--gutter) 0;
  text-align: center;
}

span.title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
}

a.title {
    color: var(--fg);
    text-decoration: none;
}

a.title:hover {
    opacity: 0.5;
    transition: 0.5s all;
}

h1 {
    margin: 0;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.028em;
}

.sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.pitch {
  margin: 32px 0 0;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ---- app store ---- */

.cta { margin: 32px 0 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px 11px 17px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

/* Inverted; the inset stroke keeps the pill's edge visible on the page. */
.badge:hover,
.badge:focus-visible {
  background: var(--bg);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--fg);
}

.glyph {
  width: 17px;
  height: 17px;
  margin-top: -2px;
}

.note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* ---- device shot ---- */

.device {
  margin: 56px 0 0;
}

.device img {
  display: block;
  width: 100%;
  max-width: 1170px;
  height: auto;
  margin: 0 auto;
  /*transform: rotate(-2deg);*/
}

/* ---- home ---- */

.splash {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 25%, transparent);
          mask-image: linear-gradient(#000 25%, transparent);
}

.splash img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: max(1680px, 100%);
  max-width: none;
  transform: translateX(-50%);
}

.home {
  padding: 84px 0 0;
  text-align: center;
}

.home .copy { padding: 0 var(--gutter); }

.home .pitch {
  max-width: 500px;
  margin: 28px auto 0;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.022em;
  text-wrap: pretty;
}

.home .note { margin: 12px 0 0; }

.home .cta { margin: 24px 0 0; }

/* The render is clipped partway down the phone; the clip scales with the
   image so the crop stays the same at every width. */
.home .device {
  margin: clamp(40px, 6vw, 80px) 0 0;
  overflow: hidden;
}

.device-clip {
  position: relative;
  left: 50%;
  width: clamp(512px, 100%, 1280px);
  aspect-ratio: 1280 / 540;
  overflow: hidden;
  transform: translateX(-50%);
}

.home .device img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

/* Let the footer band fill any leftover viewport height. */
body:has(.home) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.home-foot {
  flex-grow: 1;
  background: var(--bg-foot);
  color: var(--muted);
  font-size: 13px;
}

.home-foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 580px;
  margin: 0 auto;
  padding: 72px var(--gutter);
}

.home-foot p { margin: 0; }

.home-foot nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-foot a {
  color: var(--muted);
  text-decoration: none;
}

.home-foot a:hover { color: var(--fg); }

@media (max-width: 600px) {
  .home { padding-top: 64px; }
  .home .pitch { font-size: 28px; text-wrap: balance; }

  .home-foot-inner {
    flex-direction: column;
    gap: 18px;
    padding: 40px var(--gutter) 48px;
  }
}

/* ---- privacy page ---- */

.back {
  position: absolute;
  top: 28px;
  left: 28px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.doc {
  max-width: var(--column);
  text-align: left;
  padding-top: 88px;
}

.doc h1,
.doc .sub {
  text-align: center;
}

.doc section {
  margin-top: 34px;
}

.doc h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.doc p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

/* ---- footer ---- */

.foot {
  max-width: var(--column);
  margin: 0 auto;
  padding: 88px var(--gutter) 56px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.foot nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.foot nav a {
  color: var(--muted);
  text-decoration: none;
}

.foot p {
  margin: 22px 0 0;
}

/* ---- small screens ---- */

@media (max-width: 520px) {
  .page { padding-top: 56px; }
  h1 { font-size: 34px; }
  .pitch { margin-top: 44px; }
  .device { margin-top: 44px; }
  .back { top: 20px; left: 20px; }
  .doc { padding-top: 68px; }
  .foot { padding-top: 64px; }
}
