/* =========================================================
   Meanwhile — design system
   Warm, quiet, storybook. Nothing shouts. Nothing is a dashboard.
   ========================================================= */

:root {
  --cream:      #FBF7F0;
  --cream-2:    #F4EDE2;
  --card:       #FFFFFF;
  --ink:        #221F1B;
  --ink-2:      #4A443C;
  --muted:      #857B6D;
  --line:       #E5DCCD;
  --sage:       #6F8260;
  --sage-soft:  #E8EDE1;
  --terra:      #C4653F;
  --terra-soft: #F7E7DF;
  --gold:       #C9A227;
  --night:      #2A2E38;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(34,31,27,.05), 0 2px 8px rgba(34,31,27,.04);
  --shadow:    0 2px 6px rgba(34,31,27,.06), 0 12px 32px rgba(34,31,27,.07);
  --shadow-lg: 0 24px 60px rgba(34,31,27,.14);

  --display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --shell: 520px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; }
body.locked-scroll { overflow: hidden; }

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; margin: 0; }
p { margin: 0; }

.serif { font-family: var(--display); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny  { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.hidden { display: none !important; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 13px 22px; font-weight: 600; font-size: 15px;
  background: var(--cream-2); color: var(--ink);
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #000; box-shadow: var(--shadow); }
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { background: #B35836; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--cream-2); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------------- landing ---------------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 22px; }

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,247,240,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--sage) 0%, var(--terra) 100%);
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ''; position: absolute; right: 5px; bottom: 5px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--cream);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { text-decoration: none; font-size: 14.5px; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { background: var(--cream-2); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

.hero { padding: 54px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--terra); background: var(--terra-soft);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); line-height: 1.05; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--sage); }
.hero-lede { font-size: 18px; color: var(--ink-2); max-width: 30em; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

.hero-art { position: relative; }
.hero-art img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); aspect-ratio: 3/2.1; object-fit: cover; width: 100%; }
.hero-card {
  position: absolute; left: -16px; bottom: -20px; max-width: 285px;
  background: var(--card); border-radius: var(--r); padding: 14px 16px;
  box-shadow: var(--shadow);
}
.hero-card .t { font-size: 11.5px; letter-spacing: .07em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.hero-card .x { font-family: var(--display); font-size: 15.5px; line-height: 1.4; }
@media (max-width: 900px) { .hero-card { position: static; margin-top: 14px; max-width: none; } }

section.band { padding: 64px 0; }
.band-head { max-width: 640px; margin-bottom: 36px; }
.band-head h2 { font-size: clamp(27px, 3.6vw, 38px); line-height: 1.15; margin-bottom: 14px; }
.band-head p { font-size: 16.5px; color: var(--ink-2); }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; } }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 22px;
}
.tile .num { font-family: var(--display); font-size: 13px; color: var(--terra); font-weight: 700; letter-spacing: .1em; margin-bottom: 12px; }
.tile h3 { font-size: 20px; margin-bottom: 8px; }
.tile p { font-size: 15px; color: var(--ink-2); }

/* sample feed strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .strip { grid-template-columns: 1fr; } }
.mini {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.mini img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.mini .mini-b { padding: 15px 17px 18px; }
.mini .mini-t { font-size: 11.5px; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 7px; }
.mini .mini-x { font-family: var(--display); font-size: 16px; line-height: 1.42; }

/* pricing */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 780px) { .prices { grid-template-columns: 1fr; } }
.price {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; position: relative;
}
.price.best { border-color: var(--ink); box-shadow: var(--shadow); }
.price .tag {
  position: absolute; top: -12px; left: 26px; background: var(--terra); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.price h3 { font-size: 22px; margin-bottom: 6px; }
.price .amt { font-family: var(--display); font-size: 44px; line-height: 1; margin: 14px 0 4px; }
.price .amt span { font-size: 16px; color: var(--muted); font-family: var(--body); }
.price ul { list-style: none; padding: 0; margin: 22px 0 24px; }
.price li { padding: 8px 0 8px 26px; position: relative; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--cream-2); }
.price li:last-child { border-bottom: 0; }
.price li::before { content: ''; position: absolute; left: 4px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.price li.no { color: var(--muted); }
.price li.no::before { background: var(--line); }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h4 { font-size: 17px; margin-bottom: 8px; }
.faq-item p { font-size: 15px; color: var(--ink-2); max-width: 62ch; }

.foot { padding: 40px 0 60px; border-top: 1px solid var(--line); margin-top: 40px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------- app shell ---------------- */
.app { max-width: var(--shell); margin: 0 auto; min-height: 100vh; padding-bottom: 92px; }
.appbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251,247,240,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.appbar-in { display: flex; align-items: center; gap: 12px; padding: 13px 18px; }
.appbar .who { flex: 1; min-width: 0; }
.appbar .who .n { font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.2; }
.appbar .who .d { font-size: 12px; color: var(--muted); }
.avatar {
  width: 40px; height: 40px; border-radius: 13px; flex: 0 0 auto; overflow: hidden;
  background: linear-gradient(140deg, var(--sage-soft), var(--terra-soft));
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: var(--ink);
  border: 1px solid var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(251,247,240,.94); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar-in { max-width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.tab {
  background: none; border: 0; padding: 11px 4px 14px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600;
}
.tab svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--ink); }
.tab.on svg { stroke-width: 2.1; }

/* ---------------- feed ---------------- */
.feed { padding: 18px 18px 8px; }
.dayhead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 26px 2px 12px;
}
.dayhead .d1 { font-family: var(--display); font-size: 21px; font-weight: 600; }
.dayhead .d2 { font-size: 12.5px; color: var(--muted); }
.dayhead .wx { font-size: 12.5px; color: var(--muted); }

.moment {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 16px; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(10px);
  animation: rise .5s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }
.moment img { width: 100%; aspect-ratio: 3/2; object-fit: cover; background: var(--cream-2); }
.moment .body { padding: 16px 18px 18px; }
.moment .meta { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.moment .time { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--terra); font-variant-numeric: tabular-nums; }
.moment .where { font-size: 12px; color: var(--muted); }
.moment .text { font-family: var(--display); font-size: 18px; line-height: 1.44; }
.moment .foot { margin-top: 14px; display: flex; align-items: center; gap: 14px; }
.act {
  background: none; border: 0; padding: 0; color: var(--muted); font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.act:hover { color: var(--ink); }
.act svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.act.on { color: var(--terra); }

.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.badge.arc { background: var(--sage-soft); color: #4B5C3D; }
.badge.milestone { background: #FBF0D3; color: #8A6B0B; }
.badge.arrival { background: var(--terra-soft); color: #9C4A2A; }

/* locked moment */
.moment.is-locked { position: relative; }
.moment.is-locked .body .text,
.moment.is-locked img { filter: blur(11px) saturate(.5); }
.moment.is-locked .body .meta { filter: blur(5px); }
.lockveil {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(251,247,240,.15), rgba(251,247,240,.72));
  text-align: center; padding: 20px; border: 0; width: 100%; border-radius: var(--r-lg);
}
.lockveil .lk {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 8px;
}
.lockveil .lk svg { width: 15px; height: 15px; stroke: var(--terra); fill: none; stroke-width: 2; }

.gapnote {
  text-align: center; font-size: 13px; color: var(--muted);
  padding: 4px 0 10px; font-style: italic; font-family: var(--display);
}

/* recaps */
.recap {
  background: linear-gradient(150deg, var(--sage-soft), var(--terra-soft));
  border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 18px;
  border: 1px solid var(--line);
}
.recap .t { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #6B604F; margin-bottom: 8px; }
.recap .x { font-family: var(--display); font-size: 17.5px; line-height: 1.44; }

/* ---------------- account ---------------- */
.syncchip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px; letter-spacing: .02em;
}
.syncchip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.syncchip.on  { background: var(--sage-soft); color: #4B5C3D; }
.syncchip.off { background: var(--cream-2); color: var(--muted); }
.syncchip.err { background: var(--terra-soft); color: #9C4A2A; }

.acct-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 6px 18px; margin-bottom: 18px;
}
.acct-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--cream-2);
}
.acct-row:last-child { border-bottom: 0; }
.acct-row .k { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; color: var(--muted); flex: 0 0 auto; }
.acct-row .v { font-size: 14.5px; text-align: right; word-break: break-all; }

.acct-note {
  background: var(--cream-2); border-radius: var(--r-sm); padding: 14px 16px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 16px;
}
.acct-note.demo { background: #FBF0D3; margin: 12px 0 0; }
.acct-msg {
  margin-top: 14px; background: var(--terra-soft); color: #8E4426;
  border-radius: var(--r-sm); padding: 12px 15px; font-size: 13.5px; font-weight: 500;
}
.acct-fine { display: block; font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.code-input {
  font-family: var(--display); font-size: 26px !important; letter-spacing: .34em;
  text-align: center; font-variant-numeric: tabular-nums;
}

/* ---------------- onboarding ---------------- */
.onb { max-width: 560px; margin: 0 auto; padding: 34px 22px 60px; }
.onb-top { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.steps { display: flex; gap: 6px; flex: 1; }
.steps i { height: 3px; border-radius: 3px; background: var(--line); flex: 1; transition: background .3s; }
.steps i.on { background: var(--terra); }
.onb h2 { font-size: 31px; line-height: 1.15; margin-bottom: 10px; }
.onb .sub { font-size: 16px; color: var(--ink-2); margin-bottom: 26px; }

.picker { display: grid; gap: 12px; }
.choice {
  text-align: left; background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 17px 18px; transition: border-color .15s, box-shadow .15s, transform .12s;
}
.choice:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.choice.on { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.choice .ct { font-family: var(--display); font-size: 18px; font-weight: 600; margin-bottom: 3px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.choice .cd { font-size: 14.5px; color: var(--ink-2); }
.choice .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: 0 0 auto; }
.choice.on .dot { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3.5px var(--card); }

.field { display: block; margin-bottom: 18px; }
.field .lab { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; display: block; }
.field input[type=text] {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--card); outline: none; transition: border-color .15s;
}
.field input[type=text]:focus { border-color: var(--ink); }

.upload {
  border: 1.5px dashed var(--line); border-radius: var(--r); padding: 22px;
  text-align: center; background: var(--card); transition: border-color .15s;
}
.upload:hover { border-color: var(--sage); }
.upload .thumb { width: 76px; height: 76px; border-radius: 22px; object-fit: cover; margin: 0 auto 12px; border: 1px solid var(--line); }
.upload .ic { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 12px; background: var(--cream-2); display: grid; place-items: center; }
.upload .ic svg { width: 26px; height: 26px; stroke: var(--muted); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.upload .h { font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.upload .s { font-size: 13px; color: var(--muted); }

/* ---------------- pet page ---------------- */
.pet-hero { padding: 22px 18px 6px; }
.pet-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.pet-card .cover { aspect-ratio: 3/1.5; object-fit: cover; width: 100%; background: var(--cream-2); }
.pet-card .pc-b { padding: 20px; }
.pet-name { font-family: var(--display); font-size: 29px; font-weight: 600; line-height: 1.1; }
.pet-meta { font-size: 14px; color: var(--muted); margin-top: 5px; }
.pet-now {
  margin-top: 16px; background: var(--sage-soft); border-radius: var(--r); padding: 14px 16px;
}
.pet-now .t { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #5E6B4E; margin-bottom: 5px; }
.pet-now .x { font-family: var(--display); font-size: 16.5px; line-height: 1.42; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.stat { background: var(--cream-2); border-radius: var(--r); padding: 14px 16px; }
.stat .k { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.stat .v { font-family: var(--display); font-size: 22px; margin-top: 3px; }

.sec-title { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 28px 0 12px; }
.castrow { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.castrow::-webkit-scrollbar { display: none; }
.castcard {
  flex: 0 0 210px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 15px 16px;
}
.castcard .cn { font-family: var(--display); font-size: 16.5px; font-weight: 600; }
.castcard .ck { font-size: 12px; color: var(--muted); margin: 2px 0 7px; }
.castcard .cnote { font-size: 13.5px; color: var(--ink-2); line-height: 1.42; }

.arccard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; margin-bottom: 10px;
}
.arccard .an { font-family: var(--display); font-size: 16.5px; font-weight: 600; margin-bottom: 4px; }
.arccard .ap { font-size: 13px; color: var(--muted); }
.bar { height: 6px; border-radius: 6px; background: var(--cream-2); margin-top: 11px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--sage); border-radius: 6px; }

/* timeline */
.tl { padding: 18px; }
.tlday {
  display: flex; gap: 14px; align-items: flex-start; padding: 15px 4px;
  border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0;
  text-align: left;
}
.tlday:hover { background: var(--cream-2); }
.tlday .tln {
  font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--terra);
  width: 54px; flex: 0 0 auto; padding-top: 2px;
}
.tlday .tlb { flex: 1; min-width: 0; }
.tlday .tlx { font-size: 14.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlday .tld { font-size: 12px; color: var(--muted); margin-top: 3px; }
.tlday .tlc { font-size: 12px; color: var(--muted); flex: 0 0 auto; padding-top: 2px; }

/* ---------------- paywall ---------------- */
.veil {
  position: fixed; inset: 0; z-index: 100; background: rgba(34,31,27,.5);
  backdrop-filter: blur(3px); display: grid; place-items: end center; padding: 0;
  animation: fade .22s ease;
}
@media (min-width: 620px) { .veil { place-items: center; padding: 24px; } }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.sheet {
  background: var(--cream); width: 100%; max-width: 520px; max-height: 94vh; overflow-y: auto;
  border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 26px 24px 30px;
  animation: up .32s cubic-bezier(.2,.8,.3,1);
  position: relative;
}
@media (min-width: 620px) { .sheet { border-radius: var(--r-xl); animation: pop .26s cubic-bezier(.2,.8,.3,1); } }
@keyframes up { from { transform: translateY(40px); opacity: .4 } to { transform: none; opacity: 1 } }
@keyframes pop { from { transform: scale(.96); opacity: .5 } to { transform: none; opacity: 1 } }

.x-btn {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--muted);
}
.x-btn:hover { color: var(--ink); }
.x-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.sheet h2 { font-size: 27px; line-height: 1.15; margin-bottom: 8px; }
.sheet .sub { font-size: 15.5px; color: var(--ink-2); margin-bottom: 20px; }

.plans { display: grid; gap: 11px; margin-bottom: 18px; }
.plan {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 15px 17px;
  transition: border-color .15s, box-shadow .15s;
}
.plan:hover { box-shadow: var(--shadow-sm); }
.plan.on { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.plan .pl { flex: 1; min-width: 0; }
.plan .pn { font-family: var(--display); font-size: 17.5px; font-weight: 600; display: block; }
.plan .pd { font-size: 13px; color: var(--muted); margin-top: 3px; display: block; }
.plan .pp { text-align: right; }
.plan .pp b { font-family: var(--display); font-size: 21px; font-weight: 600; display: block; }
.plan .pp span { font-size: 12px; color: var(--muted); }
.plan .save {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--sage-soft); color: #4B5C3D; padding: 3px 8px; border-radius: 999px; margin-left: 8px;
}
.plan .dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); flex: 0 0 auto; }
.plan.on .dot { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--card); }

.trust { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 16px; font-size: 12px; color: var(--muted); }
.demo-note {
  margin-top: 18px; background: var(--cream-2); border-radius: var(--r-sm); padding: 13px 15px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.5;
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%) translateY(10px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* empty / intro gate */
.gate { max-width: 460px; margin: 0 auto; padding: 64px 24px; text-align: center; }
.gate h2 { font-size: 30px; margin-bottom: 12px; }
.gate p { color: var(--ink-2); margin-bottom: 26px; }

.spinner { width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* reveal-on-scroll for landing */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .moment { opacity: 1; transform: none; }
}
