/* SEED Memoir · app page concept. Loads after seed/tokens/seed.css and _kit/app-kit.css. Tokens only. */

/* Instant anchor jumps: the kit's smooth scrolling stalls scripted capture and leaves reveals unrendered. */
html { scroll-behavior: auto; }

/* Shared bits */
.src-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: var(--seed-radius-sm); background: var(--seed-color-ink); color: var(--seed-color-pale-mint); }
.src-icon svg { width: 16px; height: 16px; }
.signup-note strong { color: var(--seed-ink); font-weight: 600; }

/* 1 · Hero */
.hero { position: relative; overflow: hidden; background: var(--seed-bg); color: var(--seed-ink); padding: 56px 0 48px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 10% -10% auto; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, var(--seed-color-mineral-teal) 40%, transparent), transparent); z-index: -1; pointer-events: none; }
.hero-app { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.hero-app .app-icon { --s: 72px; }
.hero-app .status { margin-left: 8px; }
.hero-app-name { font: 500 1.375rem/1.1 var(--seed-font-display); letter-spacing: -0.01em; }
.hero-app-meta { color: var(--seed-muted); font-size: 0.875rem; margin-top: 4px; }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.75rem); }
.hero h1 span { color: var(--seed-accent); }
.hero .lead { margin-top: 24px; }
.hero-alt { margin-top: 20px; font-size: 0.9375rem; }


/* 2 · Moment */
.moment-photo { margin: 0; }
.moment-photo img { width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; object-position: 50% 30%; border-radius: var(--seed-radius-lg); }
.moment-copy > p:not(.eyebrow) { margin-top: 20px; font-size: 1.125rem; color: var(--seed-muted); max-width: 34em; }
.moment-copy h2 { max-width: 13em; }
.pull { margin: 40px 0 0; padding: 28px; border-radius: var(--seed-radius-md); background: var(--seed-surface); border: 1px solid var(--seed-line); }
.pull > p { font: 500 clamp(1.5rem, 2.4vw, 1.875rem)/1.2 var(--seed-font-display); letter-spacing: -0.02em; }
.pull footer { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 0.875rem; color: var(--seed-muted); }
.pull footer strong { color: var(--seed-ink); font-weight: 600; }

/* 3 · How it works: Memoir's three real tabs */
.how { background: var(--seed-bg); color: var(--seed-ink); position: relative; isolation: isolate; overflow: hidden; }
.how::before { content: ""; position: absolute; inset: 30% -20% -30% -20%; background: radial-gradient(45% 50% at 50% 50%, color-mix(in srgb, var(--seed-color-mineral-teal) 35%, transparent), transparent); z-index: -1; pointer-events: none; }
.how .section-head h2 { max-width: 14em; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.how-photo { margin: 0; }
.how-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 45% 50%; border-radius: var(--seed-radius-lg); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--seed-color-ink) 90%, transparent); }
.how-steps { display: grid; gap: 0; }
.how-steps li { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--seed-line); }
.how-steps li:first-child { padding-top: 0; border-top: 0; }
.how-steps li:last-child { padding-bottom: 0; }
.how-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--seed-color-pale-mint); color: var(--seed-color-ink); }
.how-icon svg { width: 24px; height: 24px; }
.how-n { color: var(--seed-link); font-size: 0.8125rem; margin-bottom: 6px; }
.how-steps h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.how-steps p:not(.how-n) { margin-top: 8px; color: var(--seed-muted); max-width: 36em; }

/* 5 · Private */
.private-grid { align-items: start; }
.private-lead { margin-top: 20px; font-size: 1.125rem; color: var(--seed-muted); max-width: 34em; }
.controls { display: grid; gap: 24px; margin: 40px 0 32px; }
.controls li { display: flex; gap: 16px; }
.controls h3 { font-size: 1.125rem; }
.controls p { margin-top: 4px; color: var(--seed-muted); max-width: 38em; }
.ctl-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--seed-bg); border: 1px solid var(--seed-line); color: var(--seed-link); }
.ctl-icon svg { width: 22px; height: 22px; }
.edition { margin: 0; position: sticky; top: 104px; }
.edition-card { padding: 28px; border-radius: var(--seed-radius-lg); background: var(--seed-surface); box-shadow: 0 0 0 1px var(--seed-line), 0 30px 70px -40px rgb(16 26 26 / .45); }
.edition-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--seed-line); }
.edition-head .mono { color: var(--seed-muted); font-size: 0.75rem; }
.edition-head .pill { margin-left: auto; }
.edition-title { font: 500 1.375rem/1.15 var(--seed-font-display); letter-spacing: -0.01em; }
.cover-mini { display: grid; place-items: center; width: 44px; height: 56px; flex: none; border-radius: 3px 8px 8px 3px; background: linear-gradient(90deg, rgb(0 0 0 / .25) 0 4px, transparent 4px), var(--seed-color-mineral-teal); }
.cover-mini img { width: 24px; height: 24px; }
.edition-rows { display: grid; }
.edition-rows li { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--seed-line); font-size: 0.9375rem; }
.edition-rows svg { width: 18px; height: 18px; color: var(--seed-link); }
.edition-rows span { flex: 1; min-width: 0; }
.edition-rows b { font-size: 0.8125rem; font-weight: 600; color: var(--seed-muted); white-space: nowrap; }
.edition-rows b.ok { color: var(--seed-success); }
.edition-foot { margin-top: 20px; font-size: 0.875rem; color: var(--seed-muted); }

/* 6 · Shelf */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.shelf li { display: grid; align-content: start; }
.shelf h3 { margin-top: 24px; }
.shelf p { margin-top: 6px; color: var(--seed-muted); font-size: 0.9375rem; }
.cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 3 / 4; padding: 18% 14% 12% 18%; border-radius: 4px 12px 12px 4px; text-align: center; box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 28px 40px -26px rgb(16 26 26 / .7), 0 6px 14px -8px rgb(16 26 26 / .35); transition: transform var(--seed-duration-base) var(--seed-ease); }
.cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 9%; border-radius: 4px 0 0 4px; background: linear-gradient(90deg, rgb(0 0 0 / .28), rgb(0 0 0 / .08) 70%, rgb(255 255 255 / .1)); }
.shelf li:hover .cover { transform: translateY(-6px); }
.cv-title { font: 500 clamp(1.25rem, 2vw, 1.625rem)/1.1 var(--seed-font-display); letter-spacing: -0.01em; text-wrap: balance; }
.cv-by { font: 400 0.75rem var(--seed-font-mono); opacity: .85; }
.cover-ink { background: var(--seed-color-ink); color: var(--seed-color-pale-mint); }
.cover-teal { background: var(--seed-color-mineral-teal); color: var(--seed-color-paper); }
.cover-paper { background: var(--seed-color-paper); color: var(--seed-color-ink); box-shadow: 0 0 0 1px var(--seed-line) inset, 0 28px 40px -26px rgb(16 26 26 / .6), 0 6px 14px -8px rgb(16 26 26 / .3); }
.cover-paper .cv-by { color: var(--seed-color-mineral-teal); opacity: 1; }
.cover-raised { background: var(--seed-color-dark-raised); color: var(--seed-color-paper); }
.shelf-note { margin-top: 40px; }
@media (prefers-reduced-motion: reduce) { .shelf li:hover .cover { transform: none; } }

/* 7 · Works with */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: flow; }
.flow-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--seed-line); border-radius: var(--seed-radius-lg); background: var(--seed-bg); }
.flow-free { border-color: var(--seed-color-mineral-teal); box-shadow: inset 0 0 0 1px var(--seed-color-mineral-teal); }
.flow-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.flow-top .app-icon { --s: 52px; }
.flow-card > p:not(.flow-gives) { color: var(--seed-muted); }
.flow-gives { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--seed-line); color: var(--seed-link); font-size: 0.75rem; }
.flow-card .text-link { font-size: 0.9375rem; }

/* 8 · Pricing */
.plan header .plan-icon { width: 24px; height: 24px; color: var(--seed-link); }
.plan-featured header .plan-icon { color: var(--seed-color-pale-mint); }
.price-notes { display: grid; gap: 12px; max-width: 820px; margin: 40px auto 24px; }
.price-notes p { display: flex; gap: 12px; font-size: 0.875rem; color: var(--seed-muted); }
.price-notes svg { width: 18px; height: 18px; color: var(--seed-link); margin-top: 2px; }
.price-notes strong { color: var(--seed-ink); }

/* Suite and FAQ tweaks */
.faq-split { align-items: start; }
.dock a[aria-current="page"] { box-shadow: 0 0 0 2px var(--seed-color-pale-mint); }

/* Responsive */
@media (max-width: 1080px) {
  .shelf { gap: 20px; }
  .flow { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .how-photo img { aspect-ratio: 16 / 9; }
  .moment-photo img { aspect-ratio: 3 / 2; }
  .edition { position: static; }
  .moment-copy h2 { max-width: none; }
}
@media (max-width: 720px) {
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .hero { padding: 48px 0 32px; }
  .hero-app { flex-wrap: wrap; row-gap: 12px; margin-bottom: 24px; }
  .hero-app .app-icon { --s: 60px; }
  .hero-app .status { margin-left: 0; flex-basis: auto; }
  .how-steps li { gap: 16px; padding: 24px 0; }
  .how-icon { width: 40px; height: 40px; border-radius: 12px; }
  .how-icon svg { width: 20px; height: 20px; }
  .pull { padding: 22px; }
  .edition-card { padding: 20px; }
}
@media (max-width: 520px) {
  .shelf { gap: 32px 16px; }
  .cv-title { font-size: 1rem; }
  .shelf h3 { margin-top: 16px; font-size: 1.0625rem; }
  .shelf p { font-size: 0.875rem; }
  .plan { padding: 24px; }
  .flow-card { padding: 22px; }
}

/* Signup contract helpers */
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { flex-basis: 100%; font-size: 0.8125rem; color: var(--seed-muted); }
.form-status:empty { display: none; }
.signup-note a { color: var(--seed-link); }


.plan-featured .price b { color: var(--seed-color-paper); }
