/* Reflect Daily — marketing/legal site
   Matches the app's own visual identity: Twilight palette, Fraunces for
   display type, Plus Jakarta Sans for everything else. */

:root {
  --bg: #191c2a;
  --surface: #232640;
  --surface2: #2e3350;
  --border: #3b4160;
  --text: #f2f3f8;
  --text-dim: #9297ae;
  --accent: #8ca0e8;
  --accent-strong: #6c82d6;
  --warm: #f6b589;
  --warm-strong: #e8724f;
  --on-accent: #191c2a;
  --radius-lg: 16px;
  --radius-md: 12px;
  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal[data-reveal="up"] { transform: translateY(28px); }
.reveal[data-reveal="scale"] { transform: scale(0.92); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Nav ---------- */
nav.site-nav {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  position: relative;
  z-index: 5;
}
nav.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
}
.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a:hover {
  color: var(--text);
}
@media (max-width: 460px) {
  nav.site-nav {
    padding: 18px 0;
  }
  nav.site-nav .wrap {
    flex-wrap: wrap;
    gap: 10px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
    white-space: nowrap;
  }
  .brand .mark {
    width: 26px;
    height: 26px;
  }
  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav-links a {
    font-size: 12.5px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  background: radial-gradient(closest-side, rgba(140, 160, 232, 0.28), rgba(246, 181, 137, 0.12) 55%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-mark {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  margin-bottom: 32px;
  box-shadow: 0 16px 48px rgba(232, 137, 79, 0.3);
}
.hero h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1.14;
  margin: 0 0 20px;
}
.hero p.lead {
  font-size: 20px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 36px;
}
.store-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.store-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}
.store-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.scroll-cue {
  margin: 56px auto 0;
  width: 22px;
  height: 36px;
  border: 2px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-cue-move 1.8s ease infinite;
}
@keyframes scroll-cue-move {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(10px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
}

/* ---------- Relatable beat ---------- */
.beat-relatable {
  padding: 100px 0;
  text-align: center;
}
.beat-line {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(28px, 5vw, 42px);
  margin: 0;
}
.beat-line-dim {
  color: var(--text-dim);
  margin-top: 10px;
}

/* ---------- Mission / vision beats ---------- */
.beat-mission,
.beat-vision {
  padding: 96px 0;
  text-align: center;
}
.eyebrow-center {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  font-weight: 700;
  color: var(--warm);
  margin: 0 0 20px;
}
.mission-line {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(26px, 4.2vw, 38px);
  line-height: 1.3;
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- Feedback beat ---------- */
.beat-feedback {
  padding: 96px 0;
  text-align: center;
}
.beat-feedback h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 34px);
  margin: 0 0 16px;
}
.beat-feedback p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 28px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- Screen beats (phone + copy) ---------- */
.screen-beat {
  padding: 72px 0;
}
.screen-beat-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center;
}
.screen-beat-reverse .screen-beat-inner {
  grid-template-columns: 1fr 340px;
}
.screen-beat-reverse .phone-col { order: 2; }
.screen-beat-reverse .copy-col { order: 1; }
.copy-col .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 700;
  color: var(--warm);
  margin: 0 0 12px;
}
.copy-col h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(26px, 3.3vw, 33px);
  margin: 0 0 16px;
  text-wrap: balance;
}
.copy-col p {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 440px;
  margin: 0;
}
.phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
@media (max-width: 840px) {
  .br-lg { display: none; }
  .screen-beat-inner,
  .screen-beat-reverse .screen-beat-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  /* On a phone the words always come first, then the walkthrough. */
  .screen-beat .copy-col { order: 1; }
  .screen-beat .phone-col { order: 2; }
  .copy-col p {
    margin: 0 auto;
  }
}

/* ---------- Phone mockup ----------
   Proportions follow the iPhone 18 Pro display: 2622 x 1206 px at 3x, i.e.
   a 402 x 874 pt screen with a Dynamic Island. The app UI inside is laid
   out at those real point sizes (mirroring the app's own components) and
   scaled by --k. */
.phone {
  --k: 0.78;
  --app-bg-solid: #191c2a;
  --app-surface: #232640; --app-surface2: #2e3350; --app-border: #3b4160;
  --app-text: #f2f3f8; --app-dim: #9297ae; --app-accent: #8ca0e8;
  --app-on-accent: #191c2a; --app-tint: rgba(140, 160, 232, 0.16);
  --app-w1: #fff6e8; --app-w2: #f6b589; --app-w3: #e8724f;
  --app-shadow: rgba(0, 0, 0, 0.6);
  position: relative;
  width: calc(402px * var(--k) + 22px);
  padding: 11px;
  border-radius: calc(64px * var(--k) + 11px);
  background: linear-gradient(145deg, #3d4050 0%, #14161e 42%, #2a2d3a 100%);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 0 4px #0b0c12;
  flex-shrink: 0;
}
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  background: #2a2c38;
}
.phone::before {
  left: -3px;
  top: 96px;
  height: 26px;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 50px 0 #2a2c38, 0 100px 0 #2a2c38;
}
.phone::after {
  right: -3px;
  top: 170px;
  height: 78px;
  border-radius: 0 2px 2px 0;
}
.phone[data-palette="sunset"] {
  --app-bg-solid: #221521;
  --app-surface: #331f30; --app-surface2: #40273d; --app-border: #54314f;
  --app-text: #f7eef3; --app-dim: #b08ca8; --app-accent: #e8899e;
  --app-on-accent: #241017; --app-tint: rgba(232, 137, 158, 0.16);
  --app-w1: #ffeedc; --app-w2: #f2a65a; --app-w3: #e2793a;
}
.phone[data-palette="sunrise"] {
  --app-bg-solid: #fffbf5;
  --app-surface: #ffffff; --app-surface2: #fdeee0; --app-border: #f0dcc8;
  --app-text: #2b2318; --app-dim: #8a7a63; --app-accent: #5568cf;
  --app-on-accent: #ffffff; --app-tint: rgba(85, 104, 207, 0.12);
  --app-w1: #fff6e8; --app-w2: #f0935b; --app-w3: #d9642e;
  --app-shadow: rgba(140, 90, 40, 0.22);
}
.phone[data-palette="meadow"] {
  --app-bg-solid: #256b5a;
  --app-surface: #1b332c; --app-surface2: #234038; --app-border: #2f5347;
  --app-text: #eaf5ee; --app-dim: #9fc2b0; --app-accent: #7fcb9c;
  --app-on-accent: #12211f; --app-tint: rgba(127, 203, 156, 0.16);
  --app-w1: #fff6e8; --app-w2: #e8b589; --app-w3: #d9884f;
}
.phone[data-palette="ember"] {
  --app-bg-solid: #5c3a2e;
  --app-surface: #2e2140; --app-surface2: #3b2b52; --app-border: #4e3a66;
  --app-text: #fbf1e0; --app-dim: #c9afc4; --app-accent: #f0c86b;
  --app-on-accent: #241a33; --app-tint: rgba(240, 200, 107, 0.16);
  --app-w1: #fff3dc; --app-w2: #e8895e; --app-w3: #c96a3e;
}
.phone[data-palette="aurora"] {
  --app-bg-solid: #16324a;
  --app-surface: #2e2350; --app-surface2: #3a2c63; --app-border: #4a3a7a;
  --app-text: #f2effa; --app-dim: #a79bc7; --app-accent: #5fd9c4;
  --app-on-accent: #152a28; --app-tint: rgba(95, 217, 196, 0.16);
  --app-w1: #fff3e8; --app-w2: #e8a15c; --app-w3: #d9803a;
}
.phone-screen {
  position: relative;
  width: calc(402px * var(--k));
  height: calc(874px * var(--k));
  border-radius: calc(58px * var(--k));
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.pbg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.pbg[data-p="twilight"] { background: #191c2a; }
.pbg[data-p="sunset"] { background: #221521; }
.pbg[data-p="sunrise"] { background: linear-gradient(170deg, #fffbf5, #ffeedd 55%, #fbdcc0); }
.pbg[data-p="meadow"] { background: linear-gradient(170deg, #256b5a, #1b4a42 55%, #12211f); }
.pbg[data-p="ember"] { background: linear-gradient(170deg, #5c3a2e, #3d2640 55%, #241a33); }
.pbg[data-p="aurora"] { background: linear-gradient(170deg, #16324a, #123d35 55%, #241b3d); }
.phone[data-palette="twilight"] .pbg[data-p="twilight"],
.phone[data-palette="sunset"] .pbg[data-p="sunset"],
.phone[data-palette="sunrise"] .pbg[data-p="sunrise"],
.phone[data-palette="meadow"] .pbg[data-p="meadow"],
.phone[data-palette="ember"] .pbg[data-p="ember"],
.phone[data-palette="aurora"] .pbg[data-p="aurora"] {
  opacity: 1;
}
.phone-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 402px;
  height: 874px;
  transform: scale(var(--k));
  transform-origin: 0 0;
  color: var(--app-text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.3;
}
.island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  border-radius: 20px;
  background: #000;
  z-index: 9;
}
.sbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  padding: 8px 36px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: var(--app-text);
  z-index: 8;
  transition: color 0.5s ease;
}
.sb-right { display: flex; align-items: center; gap: 7px; }
.sb-ic { fill: currentColor; stroke: none; }
.top-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  z-index: 7;
  pointer-events: none;
  background: linear-gradient(var(--app-bg-solid) 35%, transparent);
  opacity: 0.92;
  transition: background 0.5s ease;
}
.home-ind {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 138px;
  height: 5px;
  border-radius: 3px;
  background: var(--app-text);
  opacity: 0.85;
  z-index: 8;
  transition: background-color 0.5s ease;
}

/* The app's own floating tab bar (MainTabs.js): pill with four tabs and a
   raised warm-gradient add button in the middle. */
.tabbar {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 30px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  /* Same shadow as the app's tab bar (theme.js shadows.tabBar): near black at the edge, fading out. */
  box-shadow: 0 0 3px 1.5px rgba(0, 0, 0, 0.9), 0 0 10px 2px rgba(0, 0, 0, 0.6), 0 0 28px 4px rgba(0, 0, 0, 0.38), 0 0 56px 9px rgba(0, 0, 0, 0.22), 0 0 90px 16px rgba(0, 0, 0, 0.1);
  z-index: 4;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 48px;
}
.tab.first { margin-right: 8px; }
.tab.last { margin-left: 8px; }
.tab-ic { font-size: 20px; line-height: 1.25; }
.tab-lb { font-size: 10px; font-weight: 700; color: var(--app-dim); transition: color 0.4s ease; }
.tab.active .tab-lb { color: var(--app-text); }
.add {
  width: 66px;
  height: 66px;
  margin-top: -24px;
  border-radius: 50%;
  border: 2px solid var(--app-border);
  display: grid;
  place-items: center;
  background: linear-gradient(149deg, var(--app-w1), var(--app-w2), var(--app-w3));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, border-color 0.5s ease;
}
.add span { font-size: 30px; font-weight: 700; line-height: 1; color: var(--app-on-accent); }
.add.pressed { transform: scale(0.9); }

.pbody {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 130px), transparent calc(100% - 40px));
  mask-image: linear-gradient(#000 calc(100% - 130px), transparent calc(100% - 40px));
  transition: opacity 0.3s ease;
}
.screen {
  position: absolute;
  inset: 0;
  padding: 59px 16px 0;
  transition: opacity 0.4s ease, visibility 0s;
}
.screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
}
.h-scroll {
  padding: 59px 16px 110px;
  will-change: transform;
}
.app-title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  margin: 8px 0 16px;
  color: var(--app-text);
  transition: color 0.5s ease;
}

/* Home header (GreetingCard): wordmark, greeting, a week status bar, one status line.
   Plain type on the page. The bar is a progress indicator, so it has no borders,
   shadows, or checkmarks and nothing about it looks pressable. */
.wk { padding: 8px 0 16px; }
.wk-brand {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--app-dim);
  opacity: 0.8;
  transition: color 0.5s ease;
}
.wk-hello {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 23px;
  line-height: 30px;
  color: var(--app-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.5s ease;
}
.wk-bar { display: flex; gap: 6px; margin-top: 14px; }
.wk-bar i {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: var(--app-dim);
  opacity: 0.28;
  transition: background-color 0.6s ease, opacity 0.6s ease, box-shadow 0.6s ease;
}
.wk-bar i.on { background: var(--app-accent); opacity: 1; }
.wk-bar i.today { background: transparent; opacity: 1; box-shadow: inset 0 0 0 1.5px var(--app-accent); }
.wk-letters { display: flex; gap: 6px; margin-top: 6px; }
.wk-letters span {
  flex: 1;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--app-dim);
  transition: color 0.5s ease;
}
.wk-letters span.today { color: var(--app-text); }
.wk-msg {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--app-dim);
  transition: color 0.5s ease, opacity 0.4s ease;
}

/* Entry tiles and full cards (EntryTile / EntryCard) */
.feed {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.feed .col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feed[data-layout="card"] { flex-direction: column; align-items: stretch; gap: 12px; }
.feed[data-layout="card"] .col { display: contents; }
.tile {
  --ar: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  /* Same as the app (theme.js shadows.entry): a very dark edge, then a soft drop. */
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.9), 0 7px 22px var(--app-shadow);
  transition: background-color 0.5s ease, border-color 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}
/* The app's gloss (components/Gloss.js): a faint diagonal sheen, no edge line. */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.025) 30%, rgba(255, 255, 255, 0) 55%);
}
.tile.pre { opacity: 0; transform: translateY(16px); }
.feed[data-ratio="wide"] .t-photo { --ar: 16 / 10; }
.feed[data-ratio="square"] .t-photo { --ar: 1 / 1; }
.feed[data-ratio="portrait"] .t-photo { --ar: 4 / 5; }
.feed[data-ratio="native"] .t-photo { --ar: var(--native); }
/* Height comes from padding-top rather than aspect-ratio: Safari does not
   animate aspect-ratio (the photo snapped to its new shape), but every
   browser animates padding smoothly. */
.t-photo {
  order: -2;
  position: relative;
  width: 100%;
  height: 0;
  padding-top: calc(100% / (var(--ar)));
  background: var(--app-border);
  /* Rounded bottom corners (the app's default) with one thin dark line
     following them, where the photo meets the entry (Oct 3). */
  border-radius: 0 0 11px 11px;
  overflow: hidden;
  transition: padding-top 0.9s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.t-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.t-body { order: -1; padding: 8px; }
.t-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
}
.t-dg { display: flex; align-items: baseline; min-width: 0; }
.t-dg > * {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  font-style: normal;
  transition: max-width 0.6s ease, opacity 0.5s ease, margin-left 0.6s ease;
}
.t-dow, .t-date { font-size: 11px; font-weight: 700; letter-spacing: 0.3px; color: var(--app-accent); transition: color 0.5s ease, max-width 0.6s ease, opacity 0.5s ease; }
.t-time { font-size: 10px; font-weight: 400; color: var(--app-dim); }
.feed.show-date .t-date { max-width: 70px; opacity: 1; }
.feed.show-date .t-dow { max-width: 40px; opacity: 1; margin-left: 5px; }
.feed.show-time .t-time { max-width: 72px; opacity: 1; margin-left: 5px; }
.t-mood { font-size: 13px; line-height: 1; }
.t-grat,
.t-journal,
.t-emojis {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.8s ease, opacity 0.7s ease, margin-top 0.8s ease, color 0.5s ease;
}
.t-grat { font-family: "Nunito", sans-serif; font-weight: 600; font-size: 13px; line-height: 16.5px; color: var(--app-text); }
.t-journal { font-size: 11.5px; line-height: 15px; color: var(--app-dim); }
.t-emojis { display: flex; flex-wrap: wrap; gap: 3px; font-size: 13.5px; line-height: 1.25; }
.feed.show-grat .t-grat { max-height: 90px; opacity: 1; margin-top: 3px; }
.feed.show-journal .t-journal { max-height: 34px; opacity: 1; margin-top: 3px; }
.feed.show-tags .t-emojis { max-height: 60px; opacity: 1; margin-top: 5px; }
.feed[data-layout="card"] .tile { border-radius: 16px; padding: 12px; }
.feed[data-layout="card"] .t-body { display: contents; }
.feed[data-layout="card"] .t-head { order: -2; }
.feed[data-layout="card"] .t-photo { order: -1; margin-top: 8px; border-radius: 12px; overflow: hidden; }
.feed[data-layout="card"] .t-grat { font-size: 14.5px; line-height: 20px; }
.feed[data-layout="card"].show-grat .t-grat { margin-top: 8px; }
.feed[data-layout="card"] .t-journal { font-size: 12.5px; line-height: 18px; }
.feed[data-layout="card"].show-journal .t-journal { max-height: 40px; margin-top: 8px; }
.feed[data-layout="card"] .t-emojis { gap: 6px; font-size: 17px; }
.feed[data-layout="card"].show-tags .t-emojis { margin-top: 8px; }

/* Appearance picker */
.pal-list { display: flex; flex-direction: column; gap: 10px; }
.pal-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--app-surface);
  border: 1.5px solid var(--app-border);
  transition: background-color 0.5s ease, border-color 0.4s ease;
}
.pal-row.selected { border-color: var(--app-accent); }
.pal-sw {
  width: 44px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
.pal-text b { display: block; font-size: 16px; }
.pal-text small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--app-dim);
  transition: color 0.5s ease;
}
.pal-check {
  margin-left: auto;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--app-accent);
  color: var(--app-on-accent);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.pal-row.selected .pal-check { opacity: 1; transform: none; }

/* Composer sheet (CheckInComposerScreen, a modal) */
.cmp-backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.composer {
  position: absolute;
  left: 0;
  right: 0;
  top: 56px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  border-radius: 34px 34px 0 0;
  background: var(--app-bg-solid);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(105%);
  z-index: 6;
  overflow: hidden;
}
.cmp-top {
  position: relative;
  flex: none;
  height: 44px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cmp-x { position: absolute; left: 16px; font-size: 20px; color: var(--app-text); }
.cmp-date { font-family: "Fraunces", serif; font-weight: 600; font-size: 19px; color: var(--app-text); }
.cmp-scroll { flex: 1 1 0; min-height: 0; overflow: hidden; }
.cmp-inner { padding: 20px 16px 16px; will-change: transform; }
.cmp-mood { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 16px; }
.cmp-face { font-size: 44px; line-height: 1.2; }
.cmp-word { font-size: 14px; color: var(--app-dim); margin-bottom: 8px; }
.cmp-scale { display: flex; gap: 5px; padding: 0 16px; width: 100%; }
.cmp-scale i {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--app-dim);
}
.cmp-scale i.sel { background: var(--app-accent); border-color: var(--app-accent); color: var(--app-on-accent); }
.cmp-label {
  margin: 16px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--app-dim);
}
.cmp-gr { display: flex; flex-direction: column; }
.cmp-input,
.cmp-journal {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  font-size: 14px;
  line-height: 1.4;
  color: var(--app-text);
}
.cmp-journal { min-height: 96px; }
.cmp-ph { color: var(--app-dim); opacity: 0.75; }
.cmp-input.has-text .cmp-ph,
.cmp-journal.has-text .cmp-ph { display: none; }
.cmp-input.typing .cmp-text::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--app-accent);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.cmp-input.extra {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.45s ease, margin-top 0.5s ease, padding 0.5s ease;
}
.cmp-input.extra.on {
  max-height: 70px;
  opacity: 1;
  margin-top: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-width: 1px;
}
.cmp-add {
  margin-top: 8px;
  padding: 8px;
  border-radius: 12px;
  border: 1px dashed var(--app-border);
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--app-accent);
}
.cmp-photos { display: flex; gap: 8px; }
.cmp-photo {
  position: relative;
  width: calc((100% - 16px) / 3);
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  display: grid;
  place-items: center;
}
.cmp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-photo-add { font-size: 24px; color: var(--app-dim); border-style: dashed; }
.cmp-thumb { display: none; }
.cmp-thumb.on { display: grid; animation: pop-in 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.2); }
@keyframes pop-in { 0% { transform: scale(0.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.cmp-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cmp-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 12px;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
}
.cmp-chip em { font-style: normal; font-size: 22px; line-height: 1.2; }
.cmp-chip b { font-size: 11px; font-weight: 600; color: var(--app-dim); text-align: center; line-height: 1.2; }
.cmp-chip { transition: background-color 0.3s ease, border-color 0.3s ease; }
.cmp-chip.sel { background: var(--app-accent); border-color: var(--app-accent); animation: pop-in 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.2); }
.cmp-chip.sel b { color: var(--app-on-accent); }
.cmp-foot {
  flex: none;
  padding: 8px 16px 34px;
  border-top: 1px solid var(--app-border);
}
.cmp-save {
  display: block;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  background: var(--app-accent);
  color: var(--app-on-accent);
  transition: transform 0.15s ease;
}
.cmp-save.pressed { transform: scale(0.97); }
.cmp-save.disabled { opacity: 0.5; }
.cmp-face { transition: transform 0.3s ease; }
.cmp-face.pop { animation: pop-in 0.4s cubic-bezier(0.2, 0.9, 0.25, 1.2); }

/* Finger indicator for the Home demo */
.touch {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

/* Goals */
.seg {
  display: flex;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
}
.seg span {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--app-dim);
}
.seg .on { background: var(--app-accent); color: var(--app-on-accent); }
.goal-card {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 20px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
}
.goal-top { display: flex; align-items: center; gap: 12px; }
.goal-emoji {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--app-tint);
}
.goal-meta b { display: block; font-size: 16px; }
.goal-meta small { color: var(--app-dim); font-size: 12.5px; font-weight: 600; }
.goal-pct { margin-left: auto; font-size: 17px; font-weight: 800; color: var(--app-accent); }
.goal-bar {
  height: 8px;
  margin-top: 14px;
  border-radius: 5px;
  background: var(--app-border);
  overflow: hidden;
}
.goal-bar i { display: block; height: 100%; border-radius: 5px; background: var(--app-accent); }
.goal-dots { display: flex; justify-content: space-between; margin-top: 12px; }
.goal-dots i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--app-border);
}
.goal-dots i.on { background: var(--app-accent); box-shadow: none; }

/* Insights */
.ins-card {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 20px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
}
.ins-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-dim);
}
.ins-headline { margin: 6px 0 16px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.ins-chart { display: flex; align-items: flex-end; gap: 9px; height: 120px; }
.ins-chart i {
  flex: 1;
  border-radius: 7px 7px 3px 3px;
  background: var(--app-accent);
  opacity: 0.5;
}
.ins-chart i.top { opacity: 1; }
.ins-days { display: flex; gap: 9px; margin-top: 8px; }
.ins-days span { flex: 1; text-align: center; font-size: 11px; font-weight: 700; color: var(--app-dim); }
.ins-mood { display: flex; gap: 3px; height: 14px; margin: 14px 0; }
.ins-mood i { display: block; height: 100%; border-radius: 7px; }
.ins-legend { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.ins-words { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ins-words span {
  padding: 6px 13px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--app-accent);
  background: var(--app-tint);
}

/* Live demo captions under the phones */
.demo-caption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.demo-caption::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
}
.demo-caption.pop { animation: caption-pop 0.32s ease; }
@keyframes caption-pop {
  0% { transform: scale(0.94); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}
@media (max-width: 840px) {
  .phone { --k: 0.72; }
}
@media (max-width: 360px) {
  .phone { --k: 0.64; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-caption.pop { animation: none; }
}

/* ---------- Trust beat ---------- */
.beat-trust {
  padding: 72px 0;
}
.beat-trust h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 32px);
  text-align: center;
  margin: 0 0 40px;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .trust-grid { grid-template-columns: 1fr; }
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
}
.trust-card p {
  margin: 20px 0 0;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text-dim);
}
.trust-card p strong { color: var(--text); }
.trust-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(140, 160, 232, 0.22), rgba(246, 181, 137, 0.14));
  border: 1px solid rgba(140, 160, 232, 0.3);
}
.ti {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ti path,
.ti rect,
.ti circle {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.ti > :nth-child(2) { transition-delay: 0.12s; }
.ti > :nth-child(3) { transition-delay: 0.24s; }
.ti > :nth-child(4) { transition-delay: 0.36s; }
.ti > :nth-child(5) { transition-delay: 0.48s; }
.ti > :nth-child(6) { transition-delay: 0.6s; }
.ti > :nth-child(7) { transition-delay: 0.72s; }
.is-visible .ti { opacity: 1; }
.is-visible .ti path,
.is-visible .ti rect,
.is-visible .ti circle { stroke-dashoffset: 0; }
.ti .ti-scan {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  stroke-width: 1.2;
  opacity: 0;
}
.is-visible .ti .ti-scan { animation: ti-scan 3.6s ease-in-out 1.6s infinite; }
@keyframes ti-scan {
  0% { transform: translateY(-4px); opacity: 0; }
  25% { opacity: 0.85; }
  75% { opacity: 0.85; }
  100% { transform: translateY(4px); opacity: 0; }
}
/* Device: the lock lifts and clicks shut. */
.ti .ti-shackle,
.ti .ti-lockbody { transform-box: fill-box; transform-origin: center; }
.is-visible .ti .ti-shackle { animation: ti-shackle 4.8s ease-in-out 2s infinite; }
.is-visible .ti .ti-lockbody { animation: ti-lockbump 4.8s ease-in-out 2s infinite; }
@keyframes ti-shackle {
  0%, 52% { transform: translateY(0); }
  62%, 74% { transform: translateY(-1.8px); }
  82%, 100% { transform: translateY(0); }
}
@keyframes ti-lockbump {
  0%, 80% { transform: scale(1); }
  84% { transform: scale(1.1); }
  90%, 100% { transform: scale(1); }
}
/* Analytics: the eye glances around, then blinks. */
.ti .ti-eye { transform-box: fill-box; transform-origin: center; }
.ti .ti-pupil { transform-box: fill-box; transform-origin: center; }
.is-visible .ti .ti-eye { animation: ti-blink 5.2s ease-in-out 2s infinite; }
.is-visible .ti .ti-pupil { animation: ti-look 5.2s ease-in-out 2s infinite; }
@keyframes ti-blink {
  0%, 86%, 100% { transform: scaleY(1); }
  91% { transform: scaleY(0.1); }
  96% { transform: scaleY(1); }
}
@keyframes ti-look {
  0%, 12% { transform: translateX(0); }
  24%, 42% { transform: translateX(1.6px); }
  54%, 72% { transform: translateX(-1.6px); }
  84%, 100% { transform: translateX(0); }
}
/* Export: the arrow lifts out of the tray and returns. */
.is-visible .ti .ti-arrow { animation: ti-lift 4.2s ease-in-out 2s infinite; }
@keyframes ti-lift {
  0%, 18% { transform: translateY(0); opacity: 1; }
  44% { transform: translateY(-5px); opacity: 0; }
  46% { transform: translateY(5px); opacity: 0; }
  74%, 100% { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .is-visible .ti .ti-shackle,
  .is-visible .ti .ti-lockbody,
  .is-visible .ti .ti-eye,
  .is-visible .ti .ti-pupil,
  .is-visible .ti .ti-arrow { animation: none; }
  .ti { opacity: 1; transition: none; }
  .ti path,
  .ti rect,
  .ti circle { stroke-dashoffset: 0; transition: none; }
  .is-visible .ti .ti-scan { animation: none; }
}

/* ---------- Closing ---------- */
.closing {
  position: relative;
  padding: 96px 0 88px;
  text-align: center;
  overflow: hidden;
}
.closing-inner {
  position: relative;
  z-index: 1;
}
.closing-mark {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  margin-bottom: 28px;
  box-shadow: 0 14px 44px rgba(232, 137, 79, 0.3);
}
.closing h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 38px);
  margin: 0 0 32px;
}

/* ---------- Legal / support pages ---------- */
.doc {
  padding: 48px 0 80px;
}
.doc h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 32px;
  margin: 0 0 6px;
}
.doc .updated {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 40px;
}
.doc h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 20px;
  margin: 36px 0 12px;
}
.doc p,
.doc li {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}
.doc strong {
  color: var(--text);
}
.doc a {
  color: var(--accent);
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.placeholder {
  background: rgba(246, 181, 137, 0.14);
  color: var(--warm);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.92em;
  font-weight: 600;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 12px;
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--text);
}
.faq-item p {
  margin: 0;
}

.support-email {
  display: inline-block;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Feedback form ---------- */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 520px;
  margin-top: 32px;
}
.feedback-form label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-top: 14px;
}
.feedback-form .optional {
  font-weight: 500;
  color: var(--text-dim);
}
.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
}
.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.btn-solid {
  align-self: flex-start;
  margin-top: 20px;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.btn-solid:hover {
  background: var(--accent-strong);
}
.form-hint {
  margin-top: 10px;
  font-size: 13px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  text-align: center;
}
footer .nav-links {
  justify-content: center;
  margin-bottom: 14px;
}
footer .copyright {
  color: var(--text-dim);
  font-size: 13px;
}

/* The line under each photo: near black on dark looks, soft gray on light ones. */
/* Rounded photos have no line under them (Oct 4). */
