@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-wght-italic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --bg: #f8f3ea;
  --paper: #fffdf8;
  --ink: #1f3550;
  --muted: #5d6b80;
  --amber: #c08a2e;
  --amber-soft: #f6e3bd;
  --line: #e8dfcf;
  --night: #120b06;
  --night-ink: #c98a4b;
  --radius: 22px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 'DM Sans', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(40px, 6.4vw, 72px);
}
h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--amber);
}
h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 36em;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 20px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  font-weight: 650;
}
.brand img {
  border-radius: 11px;
}

main section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 24px !important;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 28px;
}
.cta-note {
  font-size: 14.5px;
  color: var(--muted);
}
.hero-phones {
  position: relative;
  height: 600px;
}
.hero-phones .phone {
  position: absolute;
  width: 62%;
}
.hero-phones .back {
  right: 0;
  top: 0;
  transform: rotate(4deg);
}
.hero-phones .front {
  left: 2%;
  top: 60px;
  transform: rotate(-3deg);
}

/* A phone frame around a screenshot */
.phone {
  margin: 0;
  padding: 10px;
  border-radius: 44px;
  background: #1f2a38;
  box-shadow: 0 2px 0 rgb(255 255 255 / 0.1) inset, 0 30px 60px -20px rgb(31 53 80 / 0.45);
}
.phone img {
  border-radius: 34px;
  width: 100%;
}

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.feature .phone {
  max-width: 330px;
  justify-self: center;
}
.feature.reverse .feature-text {
  order: 2;
}
.points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.points li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}
.points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 14px;
  background: var(--amber);
  /* a little four-point star, like in the app's drawings */
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.points b {
  color: var(--ink);
}

/* The night section looks like the app at night */
.feature.night {
  max-width: none;
  background: var(--night);
  color: var(--night-ink);
  padding-left: max(20px, calc((100% - 1080px) / 2));
  padding-right: max(20px, calc((100% - 1080px) / 2));
  margin: 30px 0;
}
.night h2 {
  color: #d39a4f;
}
.night .points li {
  color: #9b6b3e;
}
.night .points b {
  color: var(--night-ink);
}
.night .phone {
  background: #2a1d12;
  box-shadow: 0 0 0 1px #4a2e17, 0 30px 60px -20px rgb(0 0 0 / 0.8);
}

/* Photo book */
.book {
  text-align: center;
}
.book .lead {
  margin: 0 auto;
}
.pages {
  position: relative;
  height: 470px;
  margin-top: 40px;
}
.page {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(300px, 34vw);
  border-radius: 6px;
  box-shadow: 0 24px 50px -18px rgb(31 53 80 / 0.4);
}
.p1 {
  transform: translateX(-150%) rotate(-5deg);
  top: 20px;
}
.p2 {
  transform: translateX(-50%);
  z-index: 2;
}
.p3 {
  transform: translateX(50%) rotate(5deg);
  top: 20px;
}

/* Data */
.calm h2 {
  text-align: center;
}
.calm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.calm-grid > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 8px;
}
.calm-grid b {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 21px;
  font-weight: 650;
}
.calm-grid p {
  color: var(--muted);
}

.last {
  text-align: center;
}
.last img {
  margin: 0 auto 18px;
  border-radius: 18px;
}
.last p {
  color: var(--muted);
  margin: 0 0 24px;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 20px max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* Phones and small tablets */
@media (max-width: 820px) {
  main section {
    padding: 40px 16px;
  }
  .top {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero,
  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature.reverse .feature-text {
    order: 0;
  }
  .hero-phones {
    height: 520px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }
  .feature .phone {
    max-width: 280px;
  }
  .pages {
    height: 330px;
  }
  .page {
    width: 42vw;
  }
  .p1 {
    transform: translateX(-118%) rotate(-5deg);
  }
  .p3 {
    transform: translateX(18%) rotate(5deg);
  }
  .calm-grid {
    grid-template-columns: 1fr;
  }
  .foot {
    flex-direction: column;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Text pages (privacy) */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.doc h1 {
  font-size: clamp(36px, 5vw, 54px);
}
.doc h2 {
  font-size: 26px;
  margin: 36px 0 10px;
}
.doc p,
.doc li {
  color: var(--muted);
}
.doc b {
  color: var(--ink);
}
.doc ul {
  padding-left: 20px;
}
.doc li {
  margin: 6px 0;
}
.doc a,
.foot a {
  color: var(--ink);
}
