/* Pocket Diary site. The app's own palette (AppTheme, paywall) and its own
   bundled Nunito — no web fonts, no scripts, no third-party requests. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #161313;
  --muted: #737985;
  --soft: #606a77;
  --accent: #70beff;
  --accent-deep: #168de5;
  --tile: #e8f5ff;
  --page: #f9fcff;
  --card: rgba(255, 255, 255, 0.86);
  --line: #dce4ec;
  --warn-bg: #fff6e5;
  --warn-ink: #7a4b00;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, #f3f9ff 186px, rgba(243, 249, 255, 0) 320px),
    var(--page);
  line-height: 1.5;
  font-size: 17px;
}

a { color: var(--accent-deep); }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 56px 0 24px;
  text-align: center;
  overflow: hidden;
}

.app-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  background: linear-gradient(160deg, #ffffff, #e8f5ff);
  box-shadow: 0 10px 28px rgba(112, 190, 255, 0.34);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}

.app-icon img { width: 84px; height: 84px; }

h1 {
  font-size: clamp(36px, 7vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin: 0 0 12px;
}

.lead {
  font-size: clamp(18px, 2.6vw, 21px);
  color: var(--muted);
  font-weight: 600;
  max-width: 560px;
  margin: 0 auto;
}

.float {
  position: absolute;
  width: 72px;
  opacity: 0.95;
  pointer-events: none;
}
.float.a { left: 6%; top: 40px; transform: rotate(-12deg); }
.float.b { right: 7%; top: 70px; width: 60px; transform: rotate(10deg); }
.float.c { left: 12%; top: 190px; width: 48px; transform: rotate(8deg); }
.float.d { right: 13%; top: 200px; width: 54px; transform: rotate(-8deg); }

/* Hidden until the app is live; remove `hidden` from the element to show. */
.stores {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.stores[hidden] { display: none; }
.store {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

/* ---------- Screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 28px 0 8px;
}

.phone {
  aspect-ratio: 9 / 19.5;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(76, 76, 76, 0.1);
  overflow: hidden;
  position: relative;
}

.phone img.screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Illustration frames, shown until real screenshots replace them. */
.phone.covers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 8%;
  padding: 22% 9% 0;
  background: linear-gradient(180deg, #fff, #f3f9ff);
}
.phone.covers img { width: 100%; display: block; }

.phone.paper {
  background: url("img/paper.webp") center / cover;
}
.phone.paper .line {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 7px;
  border-radius: 4px;
  background: rgba(22, 19, 19, 0.14);
}
.phone.paper .title {
  position: absolute;
  left: 12%;
  top: 16%;
  font-weight: 900;
  font-size: clamp(13px, 2vw, 18px);
}
.phone.paper .sticker {
  position: absolute;
  width: 34%;
}

.phone.pro {
  background: linear-gradient(180deg, #fff, #f3f9ff);
  padding: 20% 10% 0;
}
.phone.pro .crown {
  font-weight: 900;
  font-size: clamp(14px, 2.2vw, 20px);
  line-height: 1.15;
  margin-bottom: 14%;
}
.phone.pro .row {
  display: flex;
  gap: 10%;
  align-items: center;
  margin-bottom: 12%;
}
.phone.pro .row span {
  width: 26%;
  aspect-ratio: 1;
  border-radius: 22%;
  background: var(--tile);
  flex: none;
}
.phone.pro .row i {
  height: 7px;
  border-radius: 4px;
  background: rgba(22, 19, 19, 0.12);
  flex: 1;
}
.phone.pro .cta {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 9%;
  height: 9%;
  border-radius: 12px;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(112, 190, 255, 0.34);
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 36px 0 12px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}

.feature img {
  width: 48px;
  height: 48px;
  flex: none;
  object-fit: contain;
  background: var(--tile);
  border-radius: 14px;
  padding: 6px;
}

.feature h3 { margin: 0 0 3px; font-size: 18px; font-weight: 800; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Footer ---------- */

footer {
  padding: 36px 0 48px;
  text-align: center;
}

.links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.pill:hover { border-color: var(--accent); }

.fine { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ---------- Documents (Privacy, Terms, Support) ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}
.back img { width: 30px; height: 30px; }

.doc h1 { font-size: clamp(30px, 6vw, 40px); margin: 22px 0 4px; }
.doc .updated { color: var(--muted); font-weight: 600; margin: 0 0 22px; }
.doc h2 { font-size: 21px; font-weight: 900; margin: 30px 0 8px; }
.doc p, .doc li { color: #2c2a2a; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }

.draft {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-left: 4px solid #f0a020;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 15px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 20px;
  margin: 14px 0;
}
.card h2 { margin-top: 0; }

/* ---------- Phone widths ---------- */

@media (max-width: 720px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .features { grid-template-columns: 1fr; }
  .float.c, .float.d { display: none; }
  .float.a { left: -8px; width: 56px; }
  .float.b { right: -6px; width: 50px; }
  .hero { padding-top: 40px; }
}
