:root {
  color-scheme: light;
  --ink: #1c1a18;
  --muted: #716b63;
  --line: rgba(28, 26, 24, .14);
  --paper: #f4efe7;
  --accent: #e5452f;
  --display: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; padding: .6rem 1rem; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 38px; aspect-ratio: 1; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.site-header nav, footer nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a, footer nav a { color: var(--muted); font-size: .86rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover, footer nav a:hover { color: var(--ink); }

.hero { width: min(1180px, calc(100% - 48px)); min-height: 700px; margin: 34px auto 70px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.045em; line-height: .96; }
h1 { max-width: 720px; margin: 0; font-size: clamp(4rem, 7vw, 7.5rem); }
h1 em, h2 em { color: var(--accent); font-weight: 400; }
.hero-lede { max-width: 590px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.store-badge { min-width: 174px; padding: 9px 20px 10px; border-radius: 13px; background: var(--ink); color: white; font-size: 1.15rem; font-weight: 600; line-height: 1.1; text-align: center; box-shadow: 0 12px 24px rgba(28,26,24,.16); }
.store-badge span { display: block; font-size: .58rem; font-weight: 500; letter-spacing: .03em; }
.text-link, .button-link { color: var(--ink); font-size: .88rem; font-weight: 700; }

.phone-wrap { min-height: 650px; position: relative; display: grid; place-items: center; }

.trust-strip { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.trust-strip p { margin: 0; padding: 28px 5vw; border-right: 1px solid var(--line); text-align: center; }
.trust-strip p:last-child { border: 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { font-family: var(--display); font-size: 1.5rem; font-weight: 400; line-height: 1.2; }
.trust-strip span { color: var(--muted); font-size: .78rem; }

.feature-section { width: min(1180px, calc(100% - 48px)); margin: 150px auto; }
.feature-section > h2, .privacy-callout h2, .faq-preview h2 { max-width: 820px; margin: 0; font-size: clamp(3rem, 6vw, 6.2rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 90px; border-top: 1px solid var(--line); }
.feature-grid article { min-height: 290px; padding: 30px 42px 20px 0; border-right: 1px solid var(--line); }
.feature-grid article + article { padding-left: 42px; }
.feature-grid article:last-child { border: 0; }
.feature-number { color: var(--accent); font-family: var(--display); font-size: 1.2rem; }
.feature-grid h3 { margin: 85px 0 10px; font-family: var(--display); font-size: 2rem; font-weight: 400; line-height: 1.1; }
.feature-grid p { max-width: 300px; margin: 0; color: var(--muted); font-size: .92rem; }

.privacy-callout, .faq-preview { width: min(1180px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding: 120px 0; border-top: 1px solid var(--line); }
.privacy-callout > div:last-child, .questions { align-self: end; }
.privacy-callout > div:last-child > p { max-width: 520px; margin: 0 0 26px; color: var(--muted); font-size: 1.08rem; }
.button-link { display: inline-block; margin-top: 6px; }
.questions { border-top: 1px solid var(--line); }
.questions details { padding: 22px 0; border-bottom: 1px solid var(--line); }
.questions summary { cursor: pointer; font-family: var(--display); font-size: 1.45rem; line-height: 1.25; }
.questions details p { margin: 14px 0 0; color: var(--muted); font-size: .9rem; }
.questions .button-link { margin-top: 26px; }

.lightnfast { --paper: #fff8ed; --ink: #252118; --muted: #766f62; --line: rgba(56,44,27,.14); --accent: #b8611a; }
.sun-disc { position: absolute; width: 570px; height: 570px; border-radius: 50%; background: linear-gradient(135deg, #f7d591, #eda65e); box-shadow: 0 30px 100px rgba(202,119,36,.25); }
.lightnfast .app-screenshot { height: auto; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 18px 45px rgba(56,44,27,.12); }
.lightnfast .hero-screenshot { position: relative; z-index: 1; width: min(310px, 76vw); }
.lightnfast .sun-disc { width: min(100%, 570px); height: auto; aspect-ratio: 1; }
.screenshot-note { color: var(--muted); margin: 24px 0 40px; }
.screenshot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.screenshot-grid figure { margin: 0; }
.screenshot-grid h3 { margin: 24px 0 8px; font: 400 1.6rem var(--display); }
.screenshot-grid p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 850px) { .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; } }
@media (max-width: 420px) { .screenshot-grid { grid-template-columns: 1fr; max-width: 290px; margin-inline: auto; } }

footer { margin-top: 80px; padding: 65px 0 35px; display: grid; grid-template-columns: 1fr auto; gap: 30px; border-top: 1px solid var(--line); }
.footer-brand img { width: 32px; border-radius: 8px; }
footer p { margin: 8px 0 0; color: var(--muted); font-size: .8rem; }
.copyright { grid-column: 1 / -1; padding-top: 30px; border-top: 1px solid var(--line); }

.document .site-header { border-bottom: 1px solid var(--line); }
.legal-page { width: min(780px, calc(100% - 48px)); margin: 80px auto 140px; }
.back-link { display: inline-block; margin-bottom: 65px; color: var(--muted); font-size: .82rem; font-weight: 600; text-decoration: none; }
.legal-content h1 { margin-bottom: 26px; font-size: clamp(3.2rem, 8vw, 5.8rem); }
.legal-content h2 { margin: 65px 0 18px; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--display); font-size: 2.1rem; line-height: 1.1; }
.legal-content h3 { margin-top: 32px; font-size: 1rem; }
.legal-content p, .legal-content li { color: #575148; }
.legal-content strong { color: var(--ink); }
.legal-content hr { height: 1px; margin: 50px 0; border: 0; background: var(--line); }
.legal-content code { padding: .1em .35em; border-radius: 4px; background: rgba(0,0,0,.06); font-size: .88em; }

@media (max-width: 850px) {
  .site-header { height: auto; padding: 20px 0; align-items: flex-start; }
  .site-header nav { max-width: 250px; justify-content: flex-end; flex-wrap: wrap; gap: 8px 18px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 25px; margin-top: 75px; }
  .phone-wrap { min-height: 590px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip p { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-grid { grid-template-columns: 1fr; margin-top: 55px; }
  .feature-grid article, .feature-grid article + article { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-grid h3 { margin-top: 35px; }
  .privacy-callout, .faq-preview { grid-template-columns: 1fr; gap: 50px; padding: 90px 0; }
}

@media (max-width: 560px) {
  .site-header, .hero, .feature-section, .privacy-callout, .faq-preview, footer, .legal-page { width: min(100% - 32px, 1180px); }
  .site-header { display: block; }
  .site-header nav { max-width: none; margin-top: 20px; justify-content: flex-start; gap: 8px 16px; }
  .site-header nav a { font-size: .76rem; }
  .hero { margin-top: 55px; }
  h1 { font-size: clamp(3.7rem, 18vw, 5.2rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .phone-wrap { min-height: 540px; }
  .sun-disc { width: 390px; height: 390px; }
  .feature-section { margin-block: 100px; }
  footer { grid-template-columns: 1fr; }
  footer nav { flex-wrap: wrap; gap: 12px 22px; }
  .copyright { grid-column: 1; }
}

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

/* ================= MomentFold — the page is the app's feed ================= */
.momentfold {
  color-scheme: dark;
  --paper: #08080a;
  --ink: #f5f5f7;
  --muted: #98989f;
  --line: rgba(255,255,255,.14);
  --accent: #ff3b30;
  --glass: rgba(255,255,255,.16);
  --glass-line: rgba(255,255,255,.28);
}
.momentfold .skip-link { background: var(--ink); color: #08080a; }
.momentfold .store-badge { display: inline-block; background: var(--ink); color: #08080a; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.momentfold .brand img { box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.momentfold .legal-content p, .momentfold .legal-content li { color: #b9b9c0; }
.momentfold .legal-content code { background: rgba(255,255,255,.1); }

.sprite { display: none; }
.ico { width: 20px; height: 20px; fill: currentColor; }
.ico.sm { width: 14px; height: 14px; }
.ico.lg { width: 34px; height: 34px; }
.ico.green { color: #30d158; }
.ico.dim { color: var(--muted); }
.ico.flip { transform: rotate(180deg); }

.momentfold .feed-intro { width: min(1180px, calc(100% - 48px)); margin: 40px auto 60px; }
.momentfold .feed-intro h1 { font-size: clamp(3.4rem, 8vw, 6.4rem); }
.momentfold .hero-lede { max-width: 640px; }
.momentfold .stories { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.momentfold .stories a { display: grid; justify-items: center; gap: 9px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.momentfold .stories a:hover { color: var(--ink); }
.ring { width: 60px; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 5px rgba(255,255,255,.22); }
.ring-a { background: linear-gradient(135deg, #0a84ff, #5856d6 60%, #0b0b12); }
.ring-b { background: linear-gradient(135deg, #ff9500, #ff2d55 55%, #af52de); }
.ring-c { background: linear-gradient(135deg, #30d158, #0a84ff); }
.ring-d { background: linear-gradient(135deg, #64d2ff, #5e5ce6 60%, #101018); }
.ring-e { background: linear-gradient(135deg, #ffd60a, #ff9f0a 60%, #8a4a00); }
.ring-f { background: linear-gradient(135deg, #bf5af2, #5856d6); }
.ring-g { background: linear-gradient(135deg, var(--accent), #7a1a12); }
.momentfold .stories a:hover .ring { box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 5px var(--accent); }

.feed-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 320px); justify-content: space-between; gap: 70px; }
.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 60px; }
.post { border-top: 1px solid var(--line); padding-top: 20px; }
.post-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; aspect-ratio: 1; border-radius: 12px; }
.post-who { display: grid; line-height: 1.3; }
.post-who strong { font-size: .92rem; letter-spacing: -.01em; }
.post-who span { color: var(--muted); font-size: .76rem; }
.post-index { margin-left: auto; color: var(--accent); font-family: var(--display); font-size: 1.1rem; }

/* --- the app screen, rebuilt in CSS --- */
.screen {
  position: relative; margin-top: 16px; aspect-ratio: 4 / 5; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px; border-radius: 32px; color: white;
  box-shadow: 0 26px 60px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.18);
}
.scene-browse { background: linear-gradient(135deg, rgba(10,132,255,.9), #5856d6 52%, #000); }
.scene-decide { background: linear-gradient(135deg, #ff9500, rgba(255,45,85,.85) 50%, #af52de); }
.scene-versions { background: linear-gradient(135deg, #64d2ff, #5e5ce6 55%, #06060b); }
.scene-sheet { aspect-ratio: auto; justify-content: center; padding: 30px 26px; }
.scene-review { background: linear-gradient(150deg, #10312a, #0b1a2c 55%, #05060a); }
.scene-search { background: linear-gradient(150deg, #241f45, #131a33 55%, #06070c); }
.scene-weekly { background: linear-gradient(150deg, #3a1f14, #2a1122 55%, #08060a); }
.scene-privacy { background: linear-gradient(150deg, #13301c, #0d2030 55%, #05070a); }
.watermark { position: absolute; top: 50%; left: 50%; width: 58%; height: 58%; fill: rgba(255,255,255,.22); transform: translate(-50%, -46%); }

.glass { border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(18px); color: white; }
.glass.circle { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.glass.pill { display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.glass.pill.wide { padding: 0 18px; min-height: 40px; font-weight: 700; }
.glass.pill.active { background: rgba(255,255,255,.26); }
.status-pill { padding-left: 4px; }
.status-pill .count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: rgba(255,59,48,.85); font-size: .72rem; font-weight: 700; }

.screen-top { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.screen-bottom { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.screen-bottom.center { justify-content: center; }
.moment-label strong { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 400; letter-spacing: -.03em; }
.moment-label span { color: rgba(255,255,255,.72); font-size: .82rem; }

.rail { position: absolute; right: 16px; bottom: 92px; z-index: 3; display: grid; justify-items: center; gap: 12px; }
.rail .keep.on { color: var(--accent); }

.menu-anchor, .layers-col { display: grid; justify-items: end; gap: 8px; }
.layers-col { justify-items: start; }
.glass.menu { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(28,28,30,.72); font-size: .8rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.glass.menu b { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.glass.menu .danger { color: var(--accent); }
.divider { height: 1px; background: rgba(255,255,255,.15); }
.layer-menu .badge { padding: 3px 9px; border-radius: 7px; background: rgba(255,255,255,.9); color: #111; font-size: .7rem; font-weight: 700; }
.layer-menu .badge.ghost { background: rgba(255,255,255,.18); color: white; }

/* --- sheet-style screens (review, search, weekly, privacy) --- */
.sheet { padding: 22px; border-radius: 24px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); backdrop-filter: blur(20px); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.sheet-head strong { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 400; letter-spacing: -.03em; }
.sheet-head span { color: rgba(255,255,255,.66); font-size: .84rem; }
.sheet-title { margin: 14px 0 18px; font-family: var(--display); font-size: 1.8rem; line-height: 1.1; letter-spacing: -.03em; }
.thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tg { display: grid; place-items: center; aspect-ratio: .78; border-radius: 10px; color: rgba(255,255,255,.55); }
.tg.a { background: linear-gradient(135deg, #5e5ce6, #64d2ff); }
.tg.b { background: linear-gradient(135deg, #ff9500, #ff375f); }
.sheet-banner { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 13px; border-radius: 16px; background: rgba(48,209,88,.14); color: #30d158; font-size: .88rem; font-weight: 700; }
.sheet-banner.accent { background: rgba(255,59,48,.16); color: #ff6961; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.check-list li { position: relative; padding-left: 24px; color: rgba(255,255,255,.72); font-size: .9rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #30d158; font-weight: 700; }
.search-field { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); font-size: .76rem; font-weight: 600; }
.chip.on { background: var(--accent); color: white; }
.album-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.album-list li { display: flex; align-items: center; gap: 12px; font-size: .88rem; font-weight: 600; }
.album-list .tg { width: 42px; aspect-ratio: 1; flex: none; border-radius: 9px; }
.album-list li > span:nth-child(2) { display: grid; }
.album-list b { color: rgba(255,255,255,.55); font-size: .76rem; font-weight: 500; }
.album-list .dim { margin-left: auto; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-strip span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); font-size: .78rem; font-weight: 700; }
.week-strip .on { background: rgba(255,59,48,.28); color: white; }

.post-body { margin-top: 16px; }
.post-body p { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.post-body p strong { margin-right: 6px; color: var(--ink); }
.post-body .meta { color: rgba(152,152,159,.72); font-size: .82rem; }
.post-text .post-body { margin-top: 20px; border-top: 1px solid var(--line); }
.momentfold .questions details { padding: 20px 0; }
.post-cta h2 { margin: 20px 0 12px; font-size: clamp(2.4rem, 5vw, 3.4rem); }
.post-cta .hero-actions { margin-top: 26px; }
.feed-end { margin: 0; padding: 40px 0 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; text-align: center; }

.feed-side { position: sticky; top: 34px; align-self: start; }
.side-card { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.04); }
.avatar-lg { width: 62px; border-radius: 18px; }
.side-name { margin: 18px 0 6px; font-family: var(--display); font-size: 1.7rem; letter-spacing: -.03em; }
.side-bio { margin: 0 0 24px; color: var(--muted); font-size: .88rem; }
.side-stats { margin: 0 0 26px; padding-top: 20px; display: grid; gap: 14px; border-top: 1px solid var(--line); }
.side-stats div { display: flex; justify-content: space-between; gap: 14px; }
.side-stats dt { font-size: .84rem; font-weight: 700; }
.side-stats dd { margin: 0; color: var(--muted); font-size: .8rem; text-align: right; }
.side-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; }
.side-links a { color: var(--muted); font-size: .8rem; font-weight: 600; text-decoration: none; }
.side-links a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .feed-shell { grid-template-columns: minmax(0, 1fr); gap: 60px; justify-content: stretch; max-width: 520px; }
  .feed-side { position: static; }
}
@media (max-width: 560px) {
  .momentfold .feed-intro, .feed-shell { width: min(100% - 32px, 1180px); }
  .momentfold .stories { gap: 16px; }
  .ring { width: 52px; }
  .screen { padding: 14px; border-radius: 26px; }
  .glass.circle { width: 38px; height: 38px; }
  .rail { right: 12px; bottom: 78px; gap: 9px; }
  .screen-top { gap: 6px; }
  .status-pill { display: none; }
  .glass.pill { font-size: .76rem; }
  .moment-label strong { font-size: 1.4rem; }
  .feed { gap: 46px; }
}
