:root {
  --oat: #F6EBD9;
  --plum: #542442;
  --toast: #C9A77C;
  --ink: #30202A;
  --quiet: #6E5866;
  --card: #FFFAF2;
  --line: #E3D2B8;
  --display: 'Fraunces', Georgia, serif;
  --text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--oat);
  color: var(--ink);
  font: 17px/1.55 var(--text);
}
a { color: var(--plum); text-underline-offset: 3px; }
img { display: block; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

.top { padding: 28px 0 8px; }
.logo { height: 44px; width: auto; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0 72px;
}
h1, h2 {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  color: var(--plum);
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  font-weight: 620;
  margin: 0 0 22px;
}
.lede { font-size: 19px; color: var(--ink); max-width: 34em; margin: 0 0 28px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 15px;
  color: var(--plum);
  font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--toast); }

/* Illustrative phone: the journal is quiet and text-first, like the app. */
.phone {
  margin: 0;
  justify-self: center;
  width: min(340px, 100%);
  padding: 12px;
  border-radius: 46px;
  background: var(--plum);
  box-shadow: 0 30px 60px -30px rgba(84, 36, 66, 0.55);
}
.screen {
  position: relative;
  min-height: 500px;
  padding: 22px 22px 88px;
  border-radius: 36px;
  background: var(--oat);
  font-size: 16px;
  line-height: 1.45;
}
.bar { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.bar b { font-size: 20px; }
.bar span { font-size: 13px; color: var(--plum); font-weight: 600; }
.day { margin: 20px 0 6px; font-size: 12px; color: var(--quiet); }
.memory { margin: 0 0 12px; }
.tag { font-size: 11px; color: var(--plum); margin-left: 4px; white-space: nowrap; }
.composer {
  position: absolute;
  left: 14px; right: 14px; bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 12px 11px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  color: var(--quiet);
  font-size: 15px;
}
.send {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--plum); color: var(--oat); font-size: 14px;
}

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.points h2 { font-size: 24px; font-weight: 600; margin: 0 0 8px; }
.points p { margin: 0; color: var(--ink); }

.private {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 56px;
  padding: 28px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
}
.private h2 { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.private p { margin: 0; }

.foot {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--quiet);
}

/* Privacy and other text pages. */
.doc { max-width: 680px; padding: 32px 0 64px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 22px; font-weight: 600; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc .updated { color: var(--quiet); font-size: 15px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; }
  .points { grid-template-columns: 1fr; gap: 28px; }
  .screen { min-height: 460px; }
}

@media (prefers-color-scheme: dark) {
  :root { --oat: #21121C; --ink: #F6EBD9; --quiet: #C3A9B8; --card: #301D29; --line: #624455; }
  body { background: #21121C; }
  h1, h2, a, .status, .bar span, .tag { color: #E7B8D2; }
  .phone { background: #301D29; box-shadow: none; }
  .send { background: #E7B8D2; color: #21121C; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
