:root {
  color-scheme: light;
  --tint: #dff5e6;
  --ink: #111111;
  --soft: #55585c;
  --line: rgb(0 0 0 / 0.1);
  --card: #ffffff;
  --cloud: #f1f2f3;
  --cta: #2d2d2d;
  --mint: #2db866;
  --shadow: 0 0 2.5rem rgb(51 51 51 / 0.1);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --bar: 4rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, 0.122, 0.362, 0.601, 0.79, 0.916, 0.988, 1.021, 1.031, 1.029, 1.022, 1.014, 1.008, 1.003, 1.001, 0.999, 0.999, 0.999, 0.999, 1, 1, 1, 1, 1, 1); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (min-width: 1024px) { html { font-size: clamp(100%, min(1.1111vw, 1.7778vh), 250%); } }
body {
  margin: 0;
  background: #fff linear-gradient(180deg, var(--tint) 0, #fff 85svh) no-repeat;
  color: var(--ink);
  font: 400 1rem/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, dl, dd, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Top bar: full width at the top, a floating pill once you scroll. Always on screen (owner, 2026-11-05). */
.bar {
  --morph: 460ms var(--spring);
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: center;
  pointer-events: none;
}
.bar-in {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  width: min(100%, 86rem); height: calc(var(--bar) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--pad) 0;
  transition:
    width var(--morph), height var(--morph), padding var(--morph), gap var(--morph), transform var(--morph),
    border-radius 240ms ease-out, background-color 200ms ease-out, box-shadow 200ms ease-out;
}
.bar.is-settling .bar-in { transition: none; }
.bar.is-floating .bar-in {
  width: min(19rem, calc(100vw - 1.5rem));
  height: 3.375rem;
  padding: 0 0.3125rem 0 0.875rem;
  gap: 0.75rem;
  border-radius: 999px;
  transform: translateY(calc(0.625rem + env(safe-area-inset-top)));
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(1rem);
  backdrop-filter: saturate(160%) blur(1rem);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05), 0 0.5rem 2rem rgb(51 51 51 / 0.16);
}
main { padding-top: calc(var(--bar) + env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 1.0625rem; }
.brand img { width: 1.75rem; height: 1.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0 1.375rem;
  border: 0; border-radius: 1.375rem;
  font-weight: 600; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: transform 140ms ease-out, background-color 140ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn-main { background: var(--cta); color: #fff; }
.btn-main:hover { background: #111; }
.btn-main[disabled] { background: #d9dadb; color: #6a6d70; cursor: default; transform: none; }
.btn-quiet { background: rgb(0 0 0 / 0.06); }
.btn-quiet:hover { background: rgb(0 0 0 / 0.1); }

.hero {
  min-height: calc(100svh - var(--bar) - env(safe-area-inset-top));
  display: grid; place-items: center;
  padding: 1rem var(--pad) 3rem;
}
.stage { width: min(100%, 35rem); display: flex; flex-direction: column; align-items: center; text-align: center; }

.note {
  width: 100%;
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.875rem 1rem;
  margin-bottom: 2.75rem;
  border: 0; border-radius: 1.5625rem;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left; cursor: pointer;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}
.note:hover { transform: translateY(-2px); box-shadow: 0 0.25rem 2.75rem rgb(51 51 51 / 0.16); }
.note:active { transform: scale(0.985); }
.note-icon { flex: none; width: 2.625rem; height: 2.625rem; border-radius: 0.625rem; }
.note-text { flex: 1; min-width: 0; display: block; }
.note-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; font-size: 0.9375rem; letter-spacing: -0.012em; }
.note-top b { font-weight: 700; }
.note-top time { flex: none; color: var(--soft); font-size: 0.8125rem; }
.note-body { display: block; margin-top: 0.0625rem; font-size: 0.9375rem; line-height: 1.35; letter-spacing: -0.012em; }

.moment { width: min(100%, 26rem); margin-bottom: 2.25rem; }
.moment img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.5625rem; background: #e6e7e8; box-shadow: var(--shadow); }
.moment figcaption { margin-top: 0.75rem; color: var(--soft); font-size: 0.875rem; font-variant-numeric: tabular-nums; }

h1 { font-size: clamp(2.125rem, 7vw, 3.25rem); line-height: 1.06; font-weight: 700; letter-spacing: -0.032em; text-wrap: balance; }
.lede { margin-top: 1rem; max-width: 30rem; color: var(--soft); font-size: 1.0625rem; line-height: 1.5; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem; margin-top: 1.75rem; }
.fine { margin-top: 0.75rem; color: var(--soft); font-size: 0.8125rem; }

section:not(.hero) { width: min(100%, 86rem); margin: 0 auto; padding: clamp(2.5rem, 4.5vw, 4rem) var(--pad); }
section > h2 { text-align: center; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.028em; text-wrap: balance; }
h3 { margin: 0; font-size: 1.25rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.sub { margin-top: 0.5rem; text-align: center; color: var(--soft); }

/* Rules: a real piece of the product in every card. */
section.rules { padding-top: 0; }
.rule-grid { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; padding: 1rem 1rem 1.375rem; border-radius: 1.5625rem; background: var(--cloud); }
.card h3 { margin: 1.125rem 0.375rem 0; }
.card > p { margin: 0.375rem 0.375rem 0; color: var(--soft); text-wrap: pretty; }
.demo { position: relative; height: 15.5rem; border-radius: 1rem; overflow: hidden; }

.demo-nudges { display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; padding: 0 0.25rem; }
.mini { margin: 0; display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5625rem 0.6875rem; border-radius: 0.9375rem; background: #fff; box-shadow: 0 0.125rem 0.75rem rgb(51 51 51 / 0.08); font-size: 0.8125rem; line-height: 1.3; letter-spacing: -0.01em; }
.mini img { flex: none; width: 1.875rem; height: 1.875rem; border-radius: 0.4375rem; }
.mini span { flex: 1; min-width: 0; }
.mini b { display: block; font-weight: 700; }
.mini time { flex: none; color: var(--soft); font-size: 0.6875rem; }
.mini.dim { opacity: 0.55; }

.demo-cam { display: flex; flex-direction: column; align-items: center; gap: 0.4375rem; padding: 0.5rem 0.75rem 0.625rem; background: #161616; color: #fff; }
.dc-time { font-weight: 700; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.demo-cam img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: 0.625rem; }
.demo-cam svg { flex: none; width: 3.25rem; height: 3.25rem; transform: rotate(-90deg); }
.dc-bg, .dc-ring { fill: none; stroke-width: 6; }
.dc-bg { stroke: rgb(255 255 255 / 0.18); }
.dc-ring { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 30; }
.dc-dot { fill: #fff; }

.demo-shot img { width: 100%; height: 100%; object-fit: cover; }
.stamp { position: absolute; left: 50%; bottom: 0.75rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.375rem; padding: 0.75rem 1.125rem; border-radius: 1rem; background: rgb(22 22 22 / 0.74); -webkit-backdrop-filter: blur(0.625rem); backdrop-filter: blur(0.625rem); color: #fff; white-space: nowrap; font-size: 0.875rem; }
.stamp b { font-weight: 700; letter-spacing: -0.01em; }
.stamp i { width: 1.5rem; height: 1px; background: var(--mint); }
.stamp em { font-style: normal; color: #d4d4d4; font-variant-numeric: tabular-nums; font-size: 0.8125rem; }

/* The wall of nudges: each one on the tint of its hour. */
.wall { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; }
.wall-note { display: flex; align-items: flex-start; gap: 0.625rem; min-height: 5.25rem; padding: 0.875rem 1rem; border-radius: 1.25rem; background: var(--hour); }
.wall-note img { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 0.5625rem; }
.wall-note div { flex: 1; min-width: 0; }
.wall-note p { display: flex; justify-content: space-between; gap: 0.75rem; margin: 0; font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.012em; }
.wall-note time { flex: none; font-weight: 400; font-size: 0.8125rem; color: rgb(0 0 0 / 0.58); }
.wall-note span { display: block; margin-top: 0.0625rem; font-size: 0.9375rem; line-height: 1.32; letter-spacing: -0.012em; }

/* Moments: pick one, read its record. */
.m-main { margin-top: 1.75rem; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; }
.m-print img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.5625rem; background: var(--cloud); }
.m-side { display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: 1.25rem; border-radius: 1.5625rem; background: var(--cloud); }
.m-said { margin: 0; display: flex; align-items: flex-start; gap: 0.625rem; padding: 0.75rem 0.875rem; border-radius: 1.0625rem; background: #fff; font-size: 0.9375rem; line-height: 1.32; letter-spacing: -0.012em; }
.m-said img { flex: none; width: 2.125rem; height: 2.125rem; border-radius: 0.5rem; }
.m-said b { display: block; font-weight: 700; }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.625rem 0.125rem; border-top: 1px solid var(--line); }
dl div:first-child { border-top: 0; }
dt { color: var(--soft); }
dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.m-thumbs { margin-top: 0.75rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.5rem; }
.m-thumb { position: relative; padding: 0; border: 0; border-radius: 0.75rem; background: var(--cloud); cursor: pointer; overflow: hidden; transition: transform 140ms ease-out; }
.m-thumb:active { transform: scale(0.96); }
.m-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.m-thumb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--mint); transition: box-shadow 120ms ease-out; }
.m-thumb[aria-pressed='true']::after { box-shadow: inset 0 0 0 0.1875rem var(--mint); }

/* The app, all five screens at once. */
.screens { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.75rem); }
.pane { margin: 0; min-width: 0; }
.device { position: relative; width: 100%; aspect-ratio: 435 / 902; }
.device::before { content: ''; position: absolute; inset: 3% 5% 1%; border-radius: 12% / 6%; box-shadow: 0 1rem 2.25rem rgb(0 0 0 / 0.2); }
.device .shot { position: absolute; left: 3.793%; top: 1.552%; width: 92.414%; height: 96.896%; border-radius: 11.443% / 5.263%; background: #eef1ef; }
.device-body { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pane figcaption { margin-top: 0.875rem; text-align: center; color: var(--soft); font-size: 0.9375rem; line-height: 1.35; text-wrap: balance; }
.pane figcaption b { display: block; color: var(--ink); }
.dots { display: none; }

.ends-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.75rem, 4vw, 3.25rem); border-radius: 1.5625rem; background: var(--tint); }
.invite h2 { text-align: left; }
.invite > p { margin-top: 0.625rem; color: var(--soft); }
.invite .actions { justify-content: flex-start; margin-top: 1.25rem; }
.works div { border-color: rgb(0 0 0 / 0.1); }

.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.25rem 1rem; }
.foot { display: flex; justify-content: space-between; gap: 1rem; width: min(100%, 86rem); margin: 0 auto; padding: 0.5rem var(--pad) calc(1.5rem + env(safe-area-inset-bottom)); color: var(--soft); font-size: 0.875rem; }

/* The camera: a full-screen layer, the shape of the app's own. */
.cam {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  background: #161616; color: #fff;
}
.cam-top { flex: none; display: flex; align-items: center; justify-content: space-between; height: 4rem; padding: 0 1rem; }
.cam-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.12); color: #fff; cursor: pointer; }
.cam-close svg { width: 1.375rem; height: 1.375rem; }
.cam-gap { width: 2.75rem; }
.cam-time { font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.cam-time.urgent { color: #ff9b8a; }
.cam-view { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 0.75rem; overflow: hidden; }
/* Sized from the window, because a video will not shrink to a grid cell by itself. 13.5rem is the bars above and below. */
.cam-view video { --room: calc(100svh - 13.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)); display: block; width: min(100%, calc(var(--room) * 3 / 4)); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 1.25rem; background: #232323; }
@media (orientation: landscape) { .cam-view video { width: min(100%, calc(var(--room) * 4 / 3)); aspect-ratio: 4 / 3; } }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; font-size: 1.0625rem; line-height: 1.4; color: #e8e8e8; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.go { animation: flash 180ms ease-out; }
@keyframes flash { from { opacity: 0.85; } to { opacity: 0; } }
.cam-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem 1.5rem; border-radius: 1.25rem; background: rgb(22 22 22 / 0.72); -webkit-backdrop-filter: blur(0.75rem); backdrop-filter: blur(0.75rem); white-space: nowrap; }
.cam-stamp span:first-child { font-weight: 700; letter-spacing: -0.01em; }
.cam-stamp i { width: 2rem; height: 1px; background: var(--mint); }
.cam-stamp span:last-child { font-size: 0.9375rem; color: #d4d4d4; font-variant-numeric: tabular-nums; }
.cam-bottom { flex: none; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem 0 1.25rem; }
.shutter { position: relative; width: 5rem; height: 5rem; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.shutter:disabled { cursor: default; opacity: 0.5; }
.shutter svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-bg, .ring { fill: none; stroke-width: 5; }
.ring-bg { stroke: rgb(255 255 255 / 0.18); }
.ring { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.ring.run { stroke-dashoffset: 100; transition: stroke-dashoffset 60s linear; }
.shutter-dot { position: absolute; inset: 0.625rem; border-radius: 50%; background: #fff; transition: transform 120ms ease-out; }
.shutter:active:not(:disabled) .shutter-dot { transform: scale(0.92); }
.cam-hint { font-size: 0.8125rem; color: #a9a9a9; }

@media (max-height: 480px) {
  .cam-top { height: 3rem; }
  .cam-hint { display: none; }
  .cam-bottom { padding: 0.25rem 0 0.5rem; }
  .shutter { width: 3.75rem; height: 3.75rem; }
  .cam-view video { --room: calc(100svh - 7.75rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) {
  .rule-grid { grid-template-columns: minmax(0, 1fr); }
  .demo { height: 14.5rem; }
  .wall { grid-template-columns: minmax(0, 1fr); }
  .wall-note { min-height: 0; }
  .wall-note:nth-child(even) { display: none; }
  .m-main { grid-template-columns: minmax(0, 1fr); }
  .m-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  section.diary { padding-left: 0; padding-right: 0; }
  .diary h2 { padding: 0 var(--pad); }
  .screens {
    --w: calc(min(100svh - 12rem, 38rem) * 435 / 902);
    display: flex; gap: calc((100vw - var(--w)) / 2 + 0.5rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 0.5rem calc((100% - var(--w)) / 2) 0;
  }
  .screens::-webkit-scrollbar { display: none; }
  .pane { flex: none; width: var(--w); scroll-snap-align: center; }
  .dots { display: flex; justify-content: center; gap: 0.5rem; padding-top: 0.75rem; }
  .dots i { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: rgb(0 0 0 / 0.18); transition: background-color 160ms ease-out; }
  .dots i.on { background: var(--ink); }
  .ends-card { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar-in { transition: none; }
  .btn, .note, .m-thumb, .m-thumb::after, .shutter-dot { transition: none; }
  .cam-flash.go { animation: none; }
}
