/* The landing page (index.html). Builds on style.css: the same theme
   tokens (theme.js), the same grain card surface, the same Gabarito and
   lowercase voice, over texture.js's ASCII backdrop. Everything here reads
   var(--…) so all twelve themes still work. */

.lp { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.lp section { scroll-margin-top: 88px; }

/* ---------- nav ---------- */
.lp-nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--raw) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--outline) 50%, transparent);
}
.lp-nav .lp { display: flex; align-items: center; gap: 16px; height: 68px; }
.lp-nav .wordmark { font-size: 26px; flex: 1; }
.lp-nav .nav-links { gap: 2px; }
@media (max-width: 720px) { .lp-nav .pill.ghost { display: none; } }

/* ---------- shared type ---------- */
.lp-h1 { font-size: clamp(52px, 8.4vw, 116px); line-height: 0.94; letter-spacing: -0.045em; font-weight: 700; margin: 0; text-wrap: balance; }
.lp-h2 { font-size: clamp(38px, 4.8vw, 64px); line-height: 1; letter-spacing: -0.035em; font-weight: 700; margin: 0; text-wrap: balance; }
.lp-lede { font-size: 19px; line-height: 1.55; color: var(--deep-brass); margin: 0; max-width: 34ch; text-wrap: pretty; }
.lp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 64px; margin-bottom: 48px; }
.lp-head .lp-h2 { flex: 1 1 520px; }
.lp-head .lp-lede { flex: 0 1 380px; }
.lp-block { padding: 72px 0 72px; }
.lp .eyebrow { margin: 0; }

/* ---------- phones: top-cropped screens in the app's own frame ---------- */
.lp-dev { border-radius: 44px 44px 0 0; padding: 8px 8px 0; background: #0f0f0f; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent), 0 40px 80px rgba(0, 0, 0, 0.28); }
.lp-dev img { display: block; width: 100%; height: auto; border-radius: 36px 36px 0 0; }
.lp-shot { display: block; width: 100%; height: auto; border-radius: var(--r-xl); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent), var(--shadow-3); }

/* ---------- hero ---------- */
.lp-hero { position: relative; padding: 88px 0 0; overflow: hidden; }
.lp-hero-top { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-end; }
.lp-hero-top .lp-h1 { flex: 1 1 620px; }
.lp-hero-side { flex: 0 1 380px; display: flex; flex-direction: column; gap: 22px; padding-bottom: 10px; }
.lp-hero-side .lp-lede { max-width: none; }
.lp-hero-side .cta-row { gap: 12px 18px; }
.lp-word { display: inline-block; }
.lp-stage { position: relative; height: 470px; margin-top: 72px; display: flex; justify-content: center; align-items: flex-end; gap: 26px; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.lp-stage .ph { flex: none; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: transform; }
.lp-stage .ph-l { width: 250px; transform: translate(calc(var(--mx, 0) * -18px), calc(70px + var(--my, 0) * -10px)) rotate(-5deg); transform-origin: bottom center; }
.lp-stage .ph-c { width: 300px; transform: translate(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * -14px)); }
.lp-stage .ph-r { width: 250px; transform: translate(calc(var(--mx, 0) * 18px), calc(70px + var(--my, 0) * -10px)) rotate(5deg); transform-origin: bottom center; }
@media (max-width: 760px) {
  .lp-stage { height: 380px; gap: 0; }
  .lp-stage .ph-l, .lp-stage .ph-r { width: 170px; position: absolute; bottom: -40px; opacity: 0.7; }
  .lp-stage .ph-l { left: -40px; }
  .lp-stage .ph-r { right: -40px; }
  .lp-stage .ph-c { width: 230px; position: relative; z-index: 1; }
}

/* ---------- marquee ---------- */
.lp-marquee { padding: 40px 0 8px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-track { display: flex; gap: 10px; width: max-content; animation: lp-slide 46s linear infinite; }
.lp-track.rev { animation-direction: reverse; animation-duration: 54s; }
.lp-marquee:hover .lp-track { animation-play-state: paused; }
@keyframes lp-slide { to { transform: translateX(-50%); } }
.lp-cat { display: inline-flex; align-items: center; height: 52px; padding: 0 22px; border-radius: 999px; background: var(--paper); border: 1px solid var(--outline); font-size: 19px; font-weight: 500; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease; }
.lp-cat:hover { background: var(--ink); color: var(--raw); }

/* ---------- stats ---------- */
.lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px; }
.lp-stat b { display: block; font-size: clamp(56px, 6vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.lp-stat > span { display: block; margin-top: 12px; font-size: 16px; color: var(--deep-brass); max-width: 24ch; }

/* ---------- notes app vs amverd ---------- */
.lp-compare { position: relative; height: 560px; border-radius: 28px; overflow: hidden; border: 1px solid var(--outline); --pos: 50; }
.lp-after { position: absolute; inset: 0; background: var(--wall); display: flex; justify-content: flex-end; align-items: flex-end; gap: 24px; padding: 0 64px; }
.lp-after .ph { width: 270px; flex: none; }
.lp-after .ph + .ph { margin-bottom: -110px; }
.lp-before { position: absolute; inset: 0; background: #f6f3ec; color: #1d1d1d; clip-path: inset(0 calc(100% - var(--pos) * 1%) 0 0); padding: 52px 60px; font-family: -apple-system, system-ui, sans-serif; }
.lp-before small { font-size: 13px; font-weight: 600; color: #b08a2e; }
.lp-before strong { display: block; font-size: 30px; margin: 6px 0 16px; }
.lp-before p { margin: 0; font-size: 19px; line-height: 1.9; color: #3a3a3a; }
.lp-handle { position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.lp-handle i { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--ink); color: var(--raw); display: grid; place-items: center; box-shadow: var(--shadow-3); }
.lp-handle svg { width: 22px; height: 22px; }
.lp-compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.lp-compare input:focus-visible + .lp-handle i { outline: 2px solid var(--accent); outline-offset: 3px; }
.lp-tag { position: absolute; bottom: 20px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #ffffff; font-size: 13px; font-weight: 500; pointer-events: none; }
@media (max-width: 760px) {
  .lp-compare { height: 520px; }
  .lp-after { padding: 0 20px; justify-content: center; }
  .lp-after .ph { width: 220px; }
  .lp-after .ph + .ph { display: none; }
  .lp-before { padding: 32px 24px; }
  .lp-before p { font-size: 16px; }
}

/* ---------- who it's for: hover widens ---------- */
.lp-who { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-who .card { flex: 1 1 220px; min-height: 320px; padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: flex-grow 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.3s ease; }
.lp-who .card:hover, .lp-who .card:focus-within { flex-grow: 2.1; background: var(--wall); }
.lp-who h3 { margin: auto 0 0; font-size: 24px; line-height: 1.22; font-weight: 600; letter-spacing: -0.015em; }
.lp-who p { margin: 0; font-size: 16px; color: var(--deep-brass); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s ease, opacity 0.4s ease; }
.lp-who .card:hover p, .lp-who .card:focus-within p { max-height: 120px; opacity: 1; }
@media (hover: none) { .lp-who p { max-height: none; opacity: 1; } }
@media (max-width: 760px) { .lp-who .card { min-height: 0; } .lp-who h3 { margin-top: 24px; } }

/* ---------- what you can make: sticky stacking cards ---------- */
.lp-stack { display: flex; flex-direction: column; gap: 24px; }
.lp-card { position: sticky; display: flex; flex-wrap: wrap; min-height: 560px; border-radius: 28px; overflow: hidden; transform-origin: center top; box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.18), var(--shadow-2); }
.lp-card:nth-child(1) { top: 92px; background: color-mix(in srgb, var(--paper) 86%, var(--tier-c)); }
.lp-card:nth-child(2) { top: 110px; background: color-mix(in srgb, var(--paper) 86%, var(--tier-a)); }
.lp-card:nth-child(3) { top: 128px; background: color-mix(in srgb, var(--paper) 86%, var(--tier-d)); }
.lp-card:nth-child(4) { top: 146px; background: color-mix(in srgb, var(--paper) 86%, var(--tier-b)); }
.lp-card:nth-child(5) { top: 164px; background: color-mix(in srgb, var(--paper) 86%, var(--tier-s)); }
.lp-card-txt { flex: 1 1 380px; padding: 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.lp-card-txt h3 { margin: 10px 0 14px; font-size: clamp(32px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.035em; font-weight: 700; }
.lp-card-txt p { margin: 0; font-size: 18px; color: var(--deep-brass); max-width: 30ch; }
.lp-num { font-size: 14px; color: var(--deep-brass); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 10px; }
.lp-pro { padding: 2px 9px; border-radius: 999px; background: var(--ink); color: var(--raw); font-size: 12px; font-weight: 600; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-tags span { height: 32px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); font-size: 14px; color: var(--ink); }
.lp-card-art { flex: 1 1 520px; display: flex; justify-content: center; align-items: flex-end; gap: 20px; padding-top: 52px; min-width: 0; }
.lp-card-art .ph { width: 250px; flex: none; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lp-card-art .ph + .ph { margin-bottom: -60px; }
.lp-card:hover .ph:first-child { transform: translateY(-16px) rotate(-2.5deg); }
.lp-card:hover .ph + .ph { transform: translateY(-30px) rotate(2.5deg); }
.lp-card-art .detail { align-self: center; width: 300px; flex: none; padding-bottom: 52px; }
.lp-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-swatches .swatch { all: unset; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); transition: transform 0.2s ease; }
.lp-swatches .swatch:hover { transform: scale(1.1); }
.lp-swatches .swatch[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--raw), 0 0 0 4px var(--ink); }
.lp-swatches .swatch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 760px) {
  .lp-card { position: relative; top: auto !important; min-height: 0; }
  .lp-card-txt { padding: 32px 24px 0; }
  .lp-card-art { padding: 32px 12px 0; }
  .lp-card-art .ph { width: 44%; }
  .lp-card-art .detail { display: none; }
}

/* ---------- how it works ---------- */
.lp-steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; padding-top: 36px; }
.lp-steps::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--outline); }
.lp-steps .line { position: absolute; left: 0; right: 0; top: 0; height: 2px; margin-top: -0.5px; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s; }
.lp-steps.in .line { transform: scaleX(1); }
.lp-step { position: relative; display: flex; flex-direction: column; gap: 10px; }
.lp-step::before { content: ''; position: absolute; top: -43px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--raw); border: 2px solid var(--ink); }
.lp-step h3 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.lp-step p { margin: 0; color: var(--deep-brass); font-size: 16px; }

/* ---------- founder ---------- */
.lp-founder { padding: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.lp-founder blockquote { margin: 0; flex: 1 1 520px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; }
.lp-founder .eyebrow { flex: 0 0 160px; }
.lp-founder cite { display: block; margin-top: 22px; font-style: normal; font-size: 15px; color: var(--deep-brass); }

/* ---------- pricing ---------- */
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.lp-plan { padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.lp-plan .big { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.lp-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.lp-plan li { display: flex; gap: 10px; align-items: flex-start; }
.lp-plan li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--accent); }
.lp-plan.pro { background: var(--ink); color: var(--raw); border-color: var(--ink); }
.lp-plan.pro::before, .lp-plan.pro::after { display: none; }
.lp-plan.pro .eyebrow, .lp-plan.pro li svg { color: color-mix(in srgb, var(--raw) 70%, var(--ink)); }

/* ---------- faq ---------- */
.lp-faq { display: flex; flex-wrap: wrap; gap: 32px 80px; }
.lp-faq .lp-h2 { flex: 1 1 300px; }
.lp-faq-list { flex: 2 1 560px; min-width: 0; }
.lp-faq details { border-top: 1px solid var(--outline); }
.lp-faq details:last-child { border-bottom: 1px solid var(--outline); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary i { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--outline); display: grid; place-items: center; font-style: normal; font-size: 22px; font-weight: 400; color: var(--deep-brass); transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease; }
.lp-faq details[open] summary i { transform: rotate(45deg); background: var(--ink); color: var(--raw); border-color: var(--ink); }
.lp-faq details p { margin: 0 0 24px; max-width: 60ch; color: var(--deep-brass); font-size: 17px; animation: lp-faq 0.45s ease; }
@keyframes lp-faq { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- closing ---------- */
.lp-close { padding: 120px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; border-radius: 28px; }
.lp-close .lp-h1 { font-size: clamp(44px, 6.4vw, 96px); max-width: 11ch; }
.lp-close .waitlist { margin-top: 8px; text-align: left; }

/* ---------- support + footer ---------- */
.lp-support { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.lp-support .card { padding: 28px; }
.lp-support h3 { margin: 0 0 6px; font-size: 18px; }
.lp-support p { margin: 0; color: var(--deep-brass); font-size: 15px; }
.lp footer { margin: 40px 0 24px; }

/* ---------- motion: reveal on scroll (landing.js adds .in) ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .lp-word { animation: lp-word 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
@keyframes lp-word { from { opacity: 0; transform: translateY(0.35em); } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .lp-word { opacity: 1; transform: none; animation: none; transition: none; }
  .lp-track { animation: none; }
  .lp-marquee { overflow-x: auto; }
  .lp-steps .line { transform: none; transition: none; }
  .lp-stage .ph, .lp-card-art .ph, .lp-who .card { transition: none; }
}
