/* Lull site – shared calm "paper" styling. Light only; never auto-switches to dark. */
:root {
  color-scheme: light;
  --paper: #f7f4ee; --ink: #221f1a; --mute: #7c756a; --line: #e3ddd2;
  --card: #fffdf8; --accent: #221f1a;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 56px 24px 96px; }
.mark { font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: 30px; letter-spacing: -0.5px; text-decoration: none; color: var(--ink); }
h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.5px; margin: 24px 0 4px; }
h2 { font-size: 16px; font-weight: 600; margin: 30px 0 6px; }
p, li { font-size: 14px; color: var(--ink); }
.mute, .updated { color: var(--mute); font-size: 12.5px; }
a { color: var(--ink); text-decoration: none; }
.draft { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: var(--mute); margin: 18px 0; }
.foot { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--mute); font-size: 11.5px; }
ul { padding-left: 20px; }

/* =========================================================
   Landing / marketing components (home; reusable on any page)
   ========================================================= */
/* nav */
nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; }
nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: 960px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: 13px; color: var(--mute); }
.nav-links a:hover { color: var(--ink); }
.navmark { display: flex; align-items: center; }
.navmark img { height: 30px; width: 30px; display: block; }
.pill { background: var(--accent); padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 500; }
.nav-links a.pill, .nav-links a.pill:hover { color: #f5f1eb; }

/* hero */
.hero { text-align: center; padding: 56px 24px 8px; }
.hero h1 { font-size: 46px; line-height: 1.05; letter-spacing: -1px; margin: 18px auto 14px; max-width: 12ch; }
.hero .sub { font-size: 18px; color: var(--mute); max-width: 600px; margin: 0 auto; line-height: 1.55; }
.cta { display: inline-flex; gap: 12px; align-items: center; margin: 26px 0 10px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-block; border-radius: 11px; padding: 12px 20px; font-size: 15px; font-weight: 500; }
.btn.primary { background: var(--accent); color: var(--paper); }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); }
.btn:hover { opacity: .9; }
.trust { color: var(--mute); font-size: 12.5px; margin-top: 8px; }

/* screenshot slider (no card – the captures carry their own window shadow) */
.showcase { position: relative; margin-top: 8px; }
.ambient { position: absolute; left: 0; top: -20px; width: 100%; height: calc(100% + 20px); z-index: 0; pointer-events: none; color: var(--ink); transition: transform .7s cubic-bezier(.16,1,.3,1); }
.shotStage { position: relative; z-index: 1; width: 100%; max-width: 468px; margin: 24px auto 0; perspective: 1700px; opacity: 0; transform: translateY(34px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.16,1,.3,1); }
.shotStage.in { opacity: 1; transform: none; }
.shotWin { position: relative; transform-style: preserve-3d; }
.shotShadow { position: absolute; left: 50%; bottom: 2%; width: 64%; height: 42px; transform: translateX(-50%); z-index: 0; background: radial-gradient(ellipse at center, rgba(92,72,46,.30), transparent 70%); filter: blur(12px); animation: shadowBreathe 11s ease-in-out infinite; }
.shotFloat { position: relative; z-index: 1; will-change: transform; transform-style: preserve-3d; animation: floatY 11s ease-in-out infinite; }
.shotTilt { transition: transform .55s cubic-bezier(.16,1,.3,1); transform-style: preserve-3d; will-change: transform; }
.slider { position: relative; height: 716px; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .9s ease; }
.slide.active { opacity: 1; }
.slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; filter: drop-shadow(0 22px 38px rgba(92,72,46,.20)); }
.dots { display: flex; gap: 9px; justify-content: center; margin-top: 26px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); border: 0; padding: 0; cursor: pointer; transition: background .3s ease, transform .3s ease; }
.dot.active { background: var(--ink); transform: scale(1.3); }
@keyframes floatY { 0%,100% { transform: translateY(0) rotate(-.35deg); } 50% { transform: translateY(-17px) rotate(.35deg); } }
@keyframes shadowBreathe { 0%,100% { transform: translateX(-50%) scale(1); opacity: .55; } 50% { transform: translateX(-50%) scale(.82); opacity: .30; } }
@keyframes twinkle { 0%,100% { opacity: var(--o,.14); } 46% { opacity: calc(var(--o,.14) * .28); } }
@keyframes breathe { 0%,100% { opacity: .10; } 50% { opacity: .17; } }
.ambient .star { animation: twinkle var(--d,6s) ease-in-out var(--dl,0s) infinite; }
.ambient .moon { animation: breathe 15s ease-in-out infinite; }
.ambient .comet { animation: breathe 18s ease-in-out -6s infinite; }
@media (max-width: 500px) { .slider { height: 560px; } }
@media (prefers-reduced-motion: reduce) { .shotStage { opacity:1; transform:none; transition:none; } .shotFloat, .shotShadow { animation:none; } .shotTilt { transition:none; } .slide { transition: opacity .3s ease; } .ambient .star, .ambient .moon, .ambient .comet { animation: none; } }

section { max-width: 880px; margin: 96px auto 0; padding: 0 24px; }
.eyebrow { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mute); }
section h2 { font-size: 26px; letter-spacing: -.4px; margin: 8px 0 10px; }
section p.lead { font-size: 16px; color: var(--mute); line-height: 1.6; }

.ic { width: 22px; height: 22px; color: var(--ink); display: block; }

/* code / install commands (shared) */
pre, code { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; color: var(--ink); margin: 12px 0; }

/* problem: memory comparison bars – equal-length tracks; a light comet runs each bar.
   both share the browser's 3.4s cycle so they launch together; Lull sweeps in the first
   ~41% then waits off-screen until the browser comet finishes. hover lifts + sharpens. */
.membars { margin-top: 30px; display: grid; gap: 16px; }
.membar { display: grid; grid-template-columns: 100px 1fr 104px; align-items: center; gap: 16px; cursor: pointer; transition: transform .55s cubic-bezier(.16,1,.3,1); }
.membar:hover { transform: translateY(-1px); }
.membar .ml { font-size: 12.5px; color: var(--ink); transition: color .45s ease; }
.membar .mv { font-size: 11.5px; color: var(--mute); font-family: "SF Mono", ui-monospace, Menlo, monospace; white-space: nowrap; text-align: right; transition: color .45s ease; }
.membar:hover .ml, .membar:hover .mv { color: var(--ink); }
.membar .track { position: relative; height: 12px; border-radius: 7px; background: var(--line); overflow: hidden; transition: box-shadow .55s ease; }
.membar:hover .track { box-shadow: 0 6px 18px -8px rgba(92,72,46,.35); }
.membar .fill { position: relative; height: 100%; border-radius: 7px; overflow: hidden; background: color-mix(in srgb, var(--ink) 32%, transparent); }
.membar .fill.lull { background: var(--accent); }
.membar .fill::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 26px; transform: translateX(-50%); border-radius: 7px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--paper) 84%, transparent));
  animation: comet 3.4s cubic-bezier(.45,0,.2,1) infinite;
}
.membars .membar:last-child .fill::after { animation-name: cometLull; }
@keyframes comet { 0% { left: -13px; } 100% { left: calc(100% + 13px); } }
@keyframes cometLull { 0% { left: -13px; } 41% { left: calc(100% + 13px); } 100% { left: calc(100% + 13px); } }

/* how it works + why lull: one section, flat columns (no cards, no circles).
   the icon swells and the whole cell lifts on hover – calm. */
.block { margin-top: 84px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 34px 30px; margin-top: 28px; }
.col { cursor: pointer; transition: transform .55s cubic-bezier(.16,1,.3,1); }
.col:hover { transform: translateY(-3px); }
.col .ic { width: 20px; height: 20px; color: var(--ink); display: block; margin-bottom: 14px; transition: transform .55s cubic-bezier(.16,1,.3,1); transform-origin: left center; }
.col:hover .ic { transform: scale(1.14) translateY(-1px); }
.col h3 { margin: 0 0 6px; font-size: 15px; }
.col p { margin: 0; font-size: 13px; color: var(--mute); line-height: 1.6; }
.col .r { display: inline-block; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.subhead { margin-top: 62px; }

@media (prefers-reduced-motion: reduce) {
  .membar, .col, .col .ic { transition: color .3s ease, box-shadow .3s ease; }
  .membar:hover, .col:hover, .col:hover .ic { transform: none; }
  .membar .fill::after { animation: none; }
}

/* comparison: split panels (tab vs Lull) – a soft light follows the cursor + a whisper of 3D tilt (JS) */
.split { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.panel { position: relative; overflow: hidden; border-radius: 18px; padding: 28px 26px; border: 1px solid var(--line); background: var(--card); transform-style: preserve-3d; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .4s ease, border-color .4s ease; }
.panel > * { position: relative; z-index: 1; }
.panel.lull { border: 1.5px solid color-mix(in srgb, var(--accent) 38%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, var(--card)); box-shadow: 0 22px 46px -30px rgba(90,70,45,.18); }
.plabel { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); }
.pstat { font-size: 34px; font-weight: 600; letter-spacing: -1.2px; line-height: 1; margin: 9px 0 4px; }
.panel.tab .pstat { color: var(--mute); }
.panel.lull .pstat { color: var(--ink); }
.psub { font-size: 12px; color: var(--mute); }
.plist { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.plist li { font-size: 13.5px; line-height: 1.45; padding-left: 20px; position: relative; }
.panel.tab .plist li { color: var(--mute); }
.panel.lull .plist li { color: var(--ink); }
.plist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; }
.panel.tab .plist li::before { background: var(--line); }
.panel.lull .plist li::before { background: var(--accent); }
.panel::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none; transition: opacity .45s ease;
  background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.6), transparent 60%); }
.panel.lull::before { background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%), rgba(255,250,238,.75), transparent 60%); }
.panel:hover::before { opacity: 1; }
.panel.tab:hover { box-shadow: 0 20px 44px -30px rgba(90,70,45,.16); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.panel.lull:hover { box-shadow: 0 34px 66px -34px rgba(90,70,45,.26); }
@media (max-width: 540px) { .split { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .panel { transition: box-shadow .3s ease, border-color .3s ease; } }

.faq h3 { font-size: 15px; margin: 20px 0 4px; }
.faq p { font-size: 13.5px; color: var(--mute); margin: 0; line-height: 1.6; }

.close { text-align: center; }
.close .btn { margin-top: 8px; }

/* supported-sources strip (home): brand marks forced to one ink tone; direct sources quieter */
.logostrip { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 36px; padding: 30px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.lgm { position: relative; display: inline-flex; align-items: center; gap: 9px; transition: transform .4s ease; }
.lgm:hover { transform: translateY(-2px); }
.lgm img { max-height: 20px; max-width: 90px; width: auto; filter: grayscale(1) brightness(0) opacity(.5); transition: opacity .4s ease; }
.lgm:hover img { opacity: .9; }
.lgm svg { width: 19px; height: 19px; color: var(--mute); transition: color .4s ease; }
.lgm:hover svg { color: var(--ink); }
.lgm .lname { font-size: 14px; font-weight: 500; color: var(--mute); transition: color .4s ease; }
.lgm:hover .lname { color: var(--ink); }
.lgm.aux svg { width: 17px; height: 17px; }
.lgm.aux .lname { font-weight: 400; }
.disclaim { font-size: 11px; color: var(--mute); margin: 14px 0 0; }
@media (prefers-reduced-motion: reduce) { .lgm { transition: none; } .lgm:hover { transform: none; } }
