
/* Felt marketing pages. Black-and-white family layout, with a vivid blue accent. */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
}

:root {
  --accent: #1f4bff;
  --accent-deep: #1236d6;
  --glow: #9af6ff;
  --ink: #0a0a0a;
  --mute: #5e5e5e;
  --rule: #e6e6e6;
  --wash: #fafafa;
  --dmute: #a1a1a1;
  --drule: #262626;
  --markink: #000;
  --max: 1160px;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter Tight", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

.skip {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 8px 14px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  z-index: 30;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  overflow: visible;
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* ---------- Shared chrome ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(6, 16, 48, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #1f4bff;
  color: #fff;
  --markink: #000;
}
.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
  color: #fff;
}
.mark { width: 24px; height: 24px; color: var(--accent); flex: none; }
.mark path { stroke: var(--glow); }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--dmute); }
.nav-links a:hover { color: #fff; }
.nav-button {
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  padding: 8px 16px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}
.nav-button:hover { background: var(--accent-deep); color: #fff !important; }

.site-footer {
  background: #000;
  color: var(--dmute);
  border-top: 3px solid var(--accent);
  padding: 32px max(32px, calc((100% - var(--max)) / 2 + 32px));
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.site-footer p { margin: 0; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-header a:focus-visible,
.site-footer a:focus-visible,
.hero a:focus-visible,
.hero button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- Marketing pages ---------- */
body.site h1,
body.site h2,
body.site h3 {
  font-weight: 700;
  letter-spacing: -.035em;
  margin: 0;
  line-height: 1.05;
}
body.site p { margin: 0 0 1em; }
body.site b,
body.site strong { font-weight: 600; }

.hero-shell {
  background-color: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #1a3ad4;
  background-image:
    radial-gradient(ellipse 55% 48% at 88% 0%, rgba(154, 246, 255, .42), transparent 58%),
    radial-gradient(ellipse 48% 58% at 8% 18%, rgba(31, 75, 255, .72), transparent 62%),
    radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px;
  background-position: 0 0, 0 0, -12px -12px;
  --markink: #000;
}
.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, transparent 0, rgba(0, 0, 0, .2) 40%, #000 100%);
  pointer-events: none;
}
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 32px 80px;
  text-align: center;
}
body.site p.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: #d4d4d4;
  border: 1px solid var(--accent);
  background: #0d0d0d;
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 32px;
}
body.site .hero h1 {
  font-size: clamp(46px, 7.6vw, 96px);
  letter-spacing: -.05em;
  line-height: .98;
  font-weight: 800;
  margin: 0 auto 28px;
  max-width: 11ch;
  background: linear-gradient(180deg, #fff 18%, #b9d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.site p.tagline { font-size: 22px; line-height: 1.4; color: #d4d4d4; margin: 0 0 16px; }
.tagline b { color: #fff; font-weight: 600; }
body.site p.subline { color: var(--dmute); max-width: 56ch; margin: 0 auto 36px; font-size: 17px; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 13px 24px;
  text-decoration: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.cta:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.cta.secondary { background: transparent; color: #fff; border-color: var(--glow); }
.cta.secondary:hover { border-color: #fff; background: rgba(31, 75, 255, .45); }
body.site p.cta-sub { font-family: var(--mono); font-size: 12px; color: var(--dmute); margin: 0; }
.hero-visual {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 72px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column-reverse;
}
.app-window {
  background: #0a0a0a;
  border: 1px solid #3d63ff;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(31, 75, 255, .45);
  overflow: hidden;
  width: min(100%, 380px);
  margin-left: auto;
  margin-right: auto;
  line-height: 0;
}
.app-window img {
  display: block;
  width: 100%;
  height: auto;
}
.window-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--drule);
  font-size: 13px;
  background: #111;
}
.window-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.window-brand .mark { width: 18px; height: 18px; }
.window-tabs {
  display: flex;
  gap: 2px;
  background: #000;
  border: 1px solid var(--drule);
  border-radius: 999px;
  padding: 3px;
}
.window-tabs span { padding: 4px 12px; border-radius: 999px; color: var(--dmute); font-size: 12px; }
.window-tabs .active { background: #fff; color: #000; font-weight: 600; }
.window-body {
  padding: 32px 36px 36px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  column-gap: 32px;
}
.window-body > * { grid-column: 1; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dmute);
  margin-bottom: 12px;
}
body.site .window-body h2 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 12px; color: #fff; line-height: 1.1; }
.window-body p { font-size: 14px; color: var(--dmute); }
.hero-finding {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  border: 1px solid #333;
  background: #000;
  border-radius: 12px;
  padding: 18px;
}
.hero-finding b { display: block; font-size: 16px; line-height: 1.4; margin-bottom: 8px; color: #fff; }
.hero-finding span { font-size: 13px; color: var(--dmute); }
.evidence { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.evidence div { border: 1px solid var(--drule); border-radius: 10px; padding: 12px 14px; background: #0f0f0f; }
.evidence strong { display: block; font-size: 15px; color: #fff; }
.evidence small { font-family: var(--mono); font-size: 11px; color: var(--dmute); }
.float-note {
  align-self: center;
  max-width: 760px;
  text-align: center;
  margin: 0 0 20px;
  background: #0d0d0d;
  border: 1px solid #2e2e2e;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12.5px;
  color: var(--dmute);
  line-height: 1.5;
  z-index: 2;
}
.float-note b { color: #fff; font-size: 13px; margin-right: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.card { grid-column: 1 / -1; padding: 96px 0 0; background: transparent; border: 0; box-shadow: none; }
.full { grid-column: 1 / -1; }
body.site .card > h2 { font-size: clamp(32px, 4vw, 48px); max-width: 20ch; margin: 0 0 20px; color: var(--ink); line-height: 1.05; letter-spacing: -.035em; }
.card > p { font-size: 17px; color: #333; max-width: 68ch; }
.quote {
  margin: 32px 0 0;
  padding: 28px 32px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: #f3f6ff;
  border-color: #c9d6ff;
  border-top: 3px solid var(--accent);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--ink);
  max-width: none;
}
.featgrid,
.lensgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 36px 0 28px; }
.lensgrid { grid-template-columns: repeat(3, 1fr); }
.feat,
.lens {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px;
  background: #fff;
  transition: border-color .15s ease;
}
.feat:hover,
.lens:hover { border-color: var(--accent); }
.feat b,
.lens b { display: block; font-size: 16px; letter-spacing: -.01em; margin-bottom: 8px; color: var(--ink); }
.feat span,
.lens span { font-size: 14px; color: var(--mute); line-height: 1.55; }
.card > p.after { color: var(--mute); }
body.site .card h3 { font-size: 24px; margin: 48px 0 16px; color: var(--ink); letter-spacing: -.03em; line-height: 1.15; font-weight: 700; }
.insightrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
body.site .insight {
  background: #000;
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 170px;
  border: 0;
  border-top: 3px solid var(--accent);
}
body.site .insight i { font-style: normal; font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; color: #fff; }
body.site .src { font-family: var(--mono); font-size: 11px; color: var(--dmute); }

.card.tint.full {
  margin-top: 96px;
  padding: 80px 48px;
  background-color: #050b22;
  color: #fff;
  border-radius: 24px;
  background-image:
    radial-gradient(ellipse 42% 55% at 0% 0%, rgba(154, 246, 255, .28), transparent 62%),
    radial-gradient(ellipse 46% 60% at 100% 100%, rgba(31, 75, 255, .5), transparent 58%),
    radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
}
.card.tint.full > h2 { color: #fff; margin-left: auto; margin-right: auto; text-align: center; max-width: 22ch; }
body.site .card.tint.full > .preview-intro {
  color: var(--dmute);
  text-align: center;
  margin: 0 auto;
  max-width: 62ch;
}
.previewgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.phone {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 32px;
  padding: 20px 18px;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 0 0 6px #111;
}
.phonebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--drule);
  margin-bottom: 12px;
}
.phonebar b { font-weight: 600; }
.screenlabel { font-family: var(--mono); color: var(--dmute); font-size: 11px; }
.mocktitle { font-weight: 600; font-size: 14px; margin: 14px 0 8px; }
body.site .moods { display: flex; justify-content: space-between; margin: 0 0 4px; }
body.site .moods span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--drule);
  border-radius: 50%;
  filter: grayscale(1);
  font-size: 16px;
}
body.site .moods .on { border-color: #fff; background: #222; }
.score { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 12px; color: #d4d4d4; }
.scores { display: flex; gap: 4px; }
.scores i {
  font-style: normal;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  border: 1px solid var(--drule);
  font-size: 11px;
  font-family: var(--mono);
  color: #fff;
}
.scores .on { background: #fff; color: #000; border-color: #fff; }
body.site .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
body.site .chip {
  border: 1px solid #333;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  color: #d4d4d4;
  background: transparent;
}
body.site p.microcopy { font-size: 12px; color: var(--dmute); margin: 16px 0 0; line-height: 1.5; max-width: none; }
.finding { border: 1px solid #333; border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.45; color: #fff; }
.finding small { display: block; color: var(--dmute); font-size: 12px; margin-top: 6px; }
.mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 96px; margin-top: 22px; border-bottom: 1px solid #444; }
.mini-chart i { flex: 1; background: #333; border-radius: 4px 4px 0 0; display: block; }
.mini-chart i:nth-child(4),
.mini-chart i:nth-child(6) { background: #fff; }
.privacyline {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--drule);
  font-size: 12px;
  color: var(--dmute);
  line-height: 1.45;
}
.privacyline strong { display: block; color: #fff; font-size: 12.5px; }
.privacyicon {
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid #333;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
}
.card-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 600; }
.card-link:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }

#privacy,
#download { grid-column: auto; }
#privacy > p,
#download > p { font-size: 16px; }
#download {
  background: #f3f6ff;
  border: 1px solid #c9d6ff;
  border-radius: 24px;
  padding: 48px 40px 40px;
  margin-top: 96px;
}
#privacy { padding-top: 144px; padding-right: 24px; }
#how,
#privacy,
#download,
#preview-heading { scroll-margin-top: 80px; }

#download .form-actions .cta[aria-disabled="true"] {
  opacity: 1;
  cursor: not-allowed;
}

figure.shot {
  margin: 32px 0 0;
  max-width: 360px;
}
figure.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #c9d6ff;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(31, 75, 255, .18);
}
figure.shot figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mute);
}
.previewgrid .phone.real {
  padding: 10px 10px 16px;
  margin: 0;
  border-color: #5d7dff;
  box-shadow: 0 0 0 6px #1236d6;
}
.previewgrid .phone.real img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.beta-form {
  display: grid;
  gap: 6px;
  margin: 28px 0;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px;
}
.beta-form label { font-size: 13px; font-weight: 500; margin-top: 8px; color: var(--ink); }
.beta-form input {
  font: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid #767676;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  min-height: 44px;
}
.beta-form input::placeholder { color: #5e5e5e; }
.beta-form input:focus { outline: 2px solid #000; outline-offset: 1px; border-color: #000; }
.form-actions { margin-top: 16px; }
.form-actions .cta { background: var(--accent); color: #fff; border-color: var(--accent); width: 100%; }
.form-actions .cta:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
body.site .form-note { font-size: 12.5px; color: var(--mute); margin: 12px 0 0; max-width: none; }
body.site .start-now { font-size: 14.5px; color: var(--mute); margin-top: 8px; }
.start-now b { color: var(--ink); }
body.site .maker > p { font-size: 20px; line-height: 1.5; color: #222; letter-spacing: -.01em; }
body.site p.sign { font-size: 15px; margin-top: 24px; margin-bottom: 0; color: var(--ink); max-width: none; }
body.site .disclaimer {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  border-top: 1px solid var(--rule);
  padding: 32px 0 64px;
  margin: 96px 0 0;
  max-width: none;
}

/* Privacy notes */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 32px 96px; }
body.site .doc h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -.045em; margin: 0 0 12px; line-height: 1.05; }
body.site p.updated { font-family: var(--mono); font-size: 13px; color: var(--mute); margin: 0 0 28px; }
.summary {
  font-size: 17px;
  border: 1px solid #c9d6ff;
  border-top: 3px solid var(--accent);
  border-radius: 16px;
  background: #f3f6ff;
  padding: 20px 22px;
  color: #222;
}
body.site .doc h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -.03em; line-height: 1.15; }
.doc p { color: #333; font-size: 16.5px; max-width: 68ch; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--accent-deep); }
.back { display: inline-block; margin-bottom: 20px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--accent); }
.back:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Thanks */
body.site.thanks { min-height: 100vh; display: flex; flex-direction: column; }
.thanks-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 20px; }
.thanks-card {
  max-width: 560px;
  width: 100%;
  padding: 48px 40px;
  border: 1px solid #c9d6ff;
  border-top: 3px solid var(--accent);
  border-radius: 24px;
  background: #fff;
  text-align: center;
}
body.site .thanks-card h1 { font-size: clamp(36px, 5vw, 52px); margin: 0 0 16px; line-height: 1.05; }
.thanks-card p { color: #333; font-size: 17px; }
.thanks-card a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.thanks-card a:hover { color: var(--accent-deep); }

body.site a:focus-visible,
body.site button:focus-visible,
body.site input:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}
body.site .hero a:focus-visible,
body.site .hero button:focus-visible,
body.site .site-header a:focus-visible,
body.site .site-footer a:focus-visible,
body.site .card.tint.full a:focus-visible {
  outline-color: #fff;
}

/* ---------- Browser diary ---------- */
body.diary {
  --muted: #5e5e5e;
  --accent: #0a0a0a;
  --accent-deep: #0a0a0a;
  --teal: #0a0a0a;
  --text: #0a0a0a;
  --border: #e6e6e6;
  background: #fff;
  color: var(--ink);
  min-height: 100vh;
}
body.diary .wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}
body.diary h1,
body.diary h2,
body.diary h3,
body.diary p { margin: 0; }
body.diary button,
body.diary input,
body.diary select,
body.diary textarea { font-family: inherit; }

.diary-lead { margin: 0 0 8px; }
.diary-lead a { color: var(--ink); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.diary-intro { margin: 0 0 22px; color: var(--mute); font-size: 14.5px; line-height: 1.5; max-width: 68ch; }
.diary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.diary-head h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--ink);
}
.diary-head h1 span {
  font-weight: 500;
  font-size: 13px;
  color: var(--mute);
  letter-spacing: 0;
  max-width: 14em;
  line-height: 1.35;
}
.diary-head .mark { width: 28px; height: 28px; color: #0a0a0a; --markink: #fff; }
.streak { font-size: 14px; color: var(--mute); font-family: var(--mono); }
.streak b { color: var(--ink); font-weight: 600; }

body.diary .diary-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 24px;
  background: #0a0a0a;
  padding: 4px;
  border-radius: 999px;
  position: sticky;
  top: 62px;
  z-index: 4;
}
body.diary .diary-tabs button {
  flex: 1;
  min-height: 44px;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dmute);
  cursor: pointer;
}
body.diary .diary-tabs button.active { background: #fff; color: #000; }
body.diary .diary-tabs button:hover { color: #fff; }
body.diary .diary-tabs button.active:hover { color: #000; }

body.diary .card {
  grid-column: auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 20px;
  margin: 0 0 16px;
  box-shadow: none;
}
body.diary .card h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: none;
}
body.diary .card h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  opacity: 1;
  margin: 16px 0 8px;
}
.checkin-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 4px 0 10px;
}
body.diary .moods {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
body.diary .moods button {
  font-size: 30px;
  line-height: 1;
  border: 1px solid #d4d4d4;
  cursor: pointer;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #fff;
  filter: grayscale(1);
  color: inherit;
}
body.diary .moods button:hover { border-color: #000; }
body.diary .moods button.on {
  border-color: #000;
  background: #f3f3f3;
  box-shadow: 0 0 0 2px #000;
  filter: grayscale(1);
  transform: none;
  animation: none;
}
.moodlbl {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 10px;
  min-height: 18px;
}
.sleep-block { border-top: 1px solid var(--rule); margin-top: 18px; padding-top: 16px; }
.sleep-block h3 { text-align: center; margin: 0 0 4px; font-size: 16px; }
.sleep-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 12px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
body.diary .sleep-scale button {
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
}
body.diary .sleep-scale button.on { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
.sleep-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  min-height: 19px;
  margin-top: 8px;
}
label.fld { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 10px 0 6px; }
body.diary input[type="date"],
body.diary input[type="time"],
body.diary input[type="number"],
body.diary select,
body.diary textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #767676;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
}
body.diary textarea { resize: vertical; min-height: 72px; }
.symrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  gap: 8px;
  flex-wrap: wrap;
}
.symrow:last-child { border-bottom: none; }
.symname { font-size: 14.5px; flex: 1; min-width: 130px; }
.sev { display: flex; gap: 4px; flex-wrap: wrap; }
body.diary .sev button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #cfcfcf;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--ink);
  cursor: pointer;
}
body.diary .sev button.s0.on { background: #f5f5f5; border-color: #a3a3a3; color: #0a0a0a; }
body.diary .sev button.s1.on { background: #e5e5e5; border-color: #a3a3a3; color: #0a0a0a; }
body.diary .sev button.s2.on { background: #c4c4c4; border-color: #737373; color: #0a0a0a; }
body.diary .sev button.s3.on { background: #404040; border-color: #404040; color: #fff; }
body.diary .sev button.s4.on { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.diary .chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.diary .chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #cfcfcf;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
  min-height: 40px;
}
body.diary .chip.on { background: #0a0a0a; border-color: #0a0a0a; color: #fff; transform: none; box-shadow: none; }
.btn {
  display: inline-block;
  padding: 14px 22px;
  border: 1px solid #0a0a0a;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  box-shadow: none;
  text-align: center;
}
.btn:hover { background: #262626; }
.btn.small { width: auto; padding: 8px 14px; font-size: 13px; font-weight: 600; min-height: 40px; }
.btn.ghost { background: #fff; color: #0a0a0a; border: 1px solid #0a0a0a; }
.btn.ghost:hover { background: #f5f5f5; }
.saved { color: var(--ink); font-weight: 600; font-size: 14px; text-align: center; margin-top: 10px; min-height: 18px; }
.histitem { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.histhead { display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 8px; }
.histdate { font-weight: 700; font-size: 15px; }
.histsum { font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.histbody { display: none; margin-top: 10px; font-size: 14px; line-height: 1.6; }
.histbody.open { display: block; }
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  margin: 2px 3px 2px 0;
  background: #f5f5f5;
  color: #0a0a0a;
  border: 1px solid #e6e6e6;
}
.pill.life { background: #fff; border-color: #0a0a0a; }
body.diary .insight {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  background: #fafafa;
  border: 1px solid #e6e6e6;
  border-left: 3px solid #0a0a0a;
  color: var(--ink);
  min-height: 0;
  display: block;
}
body.diary .insight.pos { background: #f3f3f3; border-left-color: #737373; }
body.diary .insight b { color: var(--ink); }
body.diary .insight .n { color: var(--mute); font-size: 12.5px; font-family: var(--mono); }
.empty { color: var(--mute); font-size: 14.5px; text-align: center; padding: 20px 10px; line-height: 1.6; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.controls select { width: auto; flex: 1; min-width: 130px; }
body.diary canvas { max-width: 100%; filter: grayscale(1) contrast(1.15); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.note { font-size: 13px; color: var(--mute); margin-top: 10px; line-height: 1.5; }
body.diary button:focus-visible,
body.diary input:focus-visible,
body.diary select:focus-visible,
body.diary textarea:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}
body.diary .diary-tabs button:focus-visible { outline-color: #fff; }

@media (min-width: 600px) {
  .sleep-scale { grid-template-columns: repeat(10, 1fr); max-width: none; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  #privacy,
  #download { grid-column: 1; }
  #privacy { padding-top: 96px; padding-right: 0; }
  .featgrid { grid-template-columns: 1fr 1fr; }
  .lensgrid,
  .insightrow,
  .previewgrid { grid-template-columns: 1fr; }
  .previewgrid { max-width: 360px; }
  .window-body { grid-template-columns: 1fr; }
  .hero-finding { grid-column: 1; grid-row: auto; margin: 8px 0 0; }
}
@media (max-width: 640px) {
  .nav-wrap { padding: 12px 20px; }
  .nav-links a:not(.nav-button) { display: none; }
  .hero { padding: 80px 20px 48px; }
  body.site p.tagline { font-size: 19px; }
  .wrap { padding: 0 20px; }
  body.diary .wrap { padding: 22px 16px 56px; }
  .featgrid { grid-template-columns: 1fr; }
  .card { padding-top: 72px; }
  body.diary .card { padding: 16px; }
  .card.tint.full { padding: 56px 20px; margin-top: 72px; border-radius: 20px; }
  #download { padding: 32px 20px; margin-top: 72px; }
  .window-body { padding: 24px 20px; }
  .site-footer { padding: 28px 20px; }
  body.site p.kicker { font-size: 11px; padding: 5px 12px; }
  .float-note { border-radius: 14px; padding: 10px 14px; }
  .evidence { gap: 8px; }
  .evidence div { padding: 10px; }
  .quote { font-size: 20px; padding: 22px; }
  .doc { padding: 40px 20px 72px; }
  .thanks-card { padding: 36px 22px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .cta { width: 100%; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  body.diary .moods button { width: 48px; height: 48px; font-size: 26px; }
  body.diary .diary-head h1 { font-size: 24px; }
  .window-tabs span { display: none; }
  .window-tabs .active { display: block; }
}
/* Playbook-like presentation: blue gradient hero, pill buttons, rounded cards.
   Scoped to the marketing pages. Wording is unchanged. */
body.site {
  background: #f4f7ff;
  color: #16181d;
}
body.site .site-header {
  background: #1636c4;
  border-bottom: 0;
  color: #fff;
}
body.site .brand { color: #fff; }
body.site .site-header .mark { color: #fff; }
body.site .site-header .mark path { stroke: #1a4bff; }
body.site .nav-links a { color: rgba(255, 255, 255, .86); }
body.site .nav-links a:hover { color: #fff; }
body.site .nav-button {
  background: #fff;
  color: #1236d6 !important;
}
body.site .nav-button:hover { background: #e7eeff; color: #1236d6 !important; }

body.site .hero-shell {
  background-color: #1a4bff;
  border-bottom: 0;
  background-image:
    radial-gradient(ellipse 42% 50% at 92% 8%, rgba(154, 246, 255, .35), transparent 62%),
    radial-gradient(ellipse 36% 42% at 6% 88%, rgba(124, 108, 255, .32), transparent 64%),
    linear-gradient(165deg, #1636c4 0%, #1a4bff 52%, #245bff 100%);
  background-size: auto, auto, auto;
}
body.site .hero-shell::after { display: none; }
body.site .hero { padding: 88px 32px 72px; }
body.site p.kicker {
  color: #fff;
  background: rgba(8, 20, 70, .35);
  border: 1px solid rgba(255, 255, 255, .55);
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.site .hero h1 {
  max-width: 12ch;
  background: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
  letter-spacing: -.045em;
}
body.site p.tagline { color: #fff; }
body.site .tagline b { color: #fff; }
body.site p.subline { color: #fff; }
body.site .hero .cta {
  background: #fff;
  color: #1236d6;
  border-color: #fff;
}
body.site .hero .cta:hover { background: #e7eeff; border-color: #e7eeff; color: #1236d6; }
body.site .hero .cta.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .75);
}
body.site .hero .cta.secondary:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
body.site p.cta-sub { color: #fff; }
body.site .float-note {
  background: rgba(8, 20, 70, .35);
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
}
body.site .float-note b { color: #fff; }
body.site .app-window {
  background: transparent;
  border: 0;
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(10, 24, 80, .35);
}
body.site .app-window img { border-radius: 32px; }

body.site .card > h2 { letter-spacing: -.04em; }
body.site .feat,
body.site .lens {
  background: #fff;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(22, 54, 196, .08);
}
body.site .feat:hover,
body.site .lens:hover { border: 0; box-shadow: 0 14px 34px rgba(26, 75, 255, .16); }
body.site .quote {
  background: linear-gradient(135deg, #1636c4, #245bff);
  color: #fff;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(22, 54, 196, .18);
}
body.site .insight {
  background: linear-gradient(160deg, #1a4bff 0%, #245bff 100%);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(22, 54, 196, .16);
}
body.site .insight i { color: #fff; }
body.site .src { color: rgba(255, 255, 255, .86); }
body.site .card.tint.full {
  background: #fff;
  color: #16181d;
  border-radius: 32px;
  box-shadow: 0 16px 48px rgba(22, 54, 196, .08);
  background-image: none;
}
body.site .card.tint.full > h2 { color: #16181d; }
body.site .card.tint.full > .preview-intro { color: #3e4a63; }
body.site .previewgrid .phone.real {
  background: #eef2fb;
  border: 0;
  box-shadow: none;
  border-radius: 28px;
}
body.site .previewgrid .microcopy { color: #3e4a63; }
body.site figure.shot img {
  border: 0;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(22, 54, 196, .16);
}
body.site #download {
  background: #fff;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(22, 54, 196, .1);
}
body.site .form-actions .cta,
body.site #download .form-actions .cta[aria-disabled="true"] {
  background: #1a4bff;
  color: #fff;
  border-color: #1a4bff;
}
body.site .form-actions .cta:hover { background: #1236d6; border-color: #1236d6; }
body.site .summary,
body.site .thanks-card {
  background: #fff;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(22, 54, 196, .1);
}
body.site .card-link,
body.site .doc a,
body.site .back,
body.site .thanks-card a { color: #1a4bff; }
body.site .card-link:hover,
body.site .doc a:hover,
body.site .thanks-card a:hover { color: #1236d6; }
body.site .site-footer {
  background: #12215c;
  border-top: 0;
  color: rgba(255, 255, 255, .78);
}
body.site .footer-links a { color: #fff; }
body.site a:focus-visible,
body.site button:focus-visible {
  outline: 2px solid #1236d6;
  outline-offset: 3px;
}
body.site .hero a:focus-visible,
body.site .hero button:focus-visible,
body.site .site-header a:focus-visible,
body.site .site-footer a:focus-visible {
  outline-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  .hero h1 {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
  .mark path { stroke: CanvasText; }
}