/* Landing page. Colors come from the active table theme (site.css). */
body.landing {
  background:
    radial-gradient(1100px 620px at 85% -10%, color-mix(in srgb, var(--brass) 16%, transparent), transparent 70%),
    radial-gradient(900px 700px at -10% 40%, color-mix(in srgb, var(--ink) 70%, transparent), transparent 70%),
    var(--felt);
  background-repeat: no-repeat;
}
.landing main { overflow-x: clip; }
.lp-top { background: color-mix(in srgb, var(--felt) 82%, transparent); backdrop-filter: blur(8px); }
.lp-nav { display: flex; gap: 4px; margin-left: 10px; }
.lp-nav a { padding: 7px 10px; border-radius: 8px; color: var(--bone-dim); text-decoration: none; }
.lp-nav a:hover { color: var(--bone); }
.btn.big { padding: 12px 22px; font-size: 18px; }
.lp-top .btn { white-space: nowrap; }

/* hero: text on the left, the real table bleeding off the right edge */
.lp-hero { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1400px; margin: 0 auto; padding: 56px 24px 0; }
.lp-hero h1 { font-size: clamp(44px, 5vw, 74px); line-height: .98; letter-spacing: -.015em; margin-bottom: 24px; text-wrap: balance; }
.lp-lede { font-size: 20px; line-height: 1.5; color: var(--bone-dim); margin-bottom: 28px; }
.lp-fine { margin-top: 18px; color: var(--bone-dim); font-size: 14.5px; }
.lp-shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--ink);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--brass) 50%, transparent) inset, 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .25); }
.lp-shot img { display: block; width: 100%; height: auto; }
.lp-hero-shot { border-radius: 12px; }
.lp-themes { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 20px 28px; flex-wrap: wrap; padding: 30px 0 0; }
.lp-themes p { margin: 0; color: var(--bone-dim); max-width: 260px; font-size: 15px; }

/* story */
.lp-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 120px 24px 40px; }
.lp-story h2, .lp-feature h2, .lp-pricing h2, .lp-faq h2, .lp-cta h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
.lp-story blockquote { margin: 28px 0; padding: 0 0 0 22px; border-left: 3px solid var(--brass); }
.lp-story blockquote p { font: italic 400 clamp(24px, 2.4vw, 31px)/1.3 var(--serif); color: var(--bone); margin: 0; }
.lp-story p, .lp-feature p, .lp-more p { font-size: 18px; line-height: 1.55; color: var(--bone-dim); max-width: 34em; }
.lp-cap { font-size: 14px !important; }
.lp-tall { max-height: 640px; }

/* feature rows */
.lp-feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 72px 24px; }
.lp-feature.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.lp-feature + .lp-feature { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.lp-narrow { max-width: 460px; justify-self: center; width: 100%; }
.lp-feature .lp-narrow img[src*="sheet"] { max-height: 560px; object-fit: cover; object-position: top; }

/* full-width screenshot row */
.lp-wide { max-width: 1400px; margin: 0 auto; padding: 72px 24px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.lp-wide-text { max-width: 760px; margin: 0 0 28px; }
.lp-wide-text p { font-size: 18px; line-height: 1.55; color: var(--bone-dim); }
.lp-wide h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
@media (max-width: 1000px) { .lp-wide { padding: 56px 16px; } }

/* around the table */
.lp-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1240px; margin: 40px auto 0; padding: 48px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-more h3 { font-size: 23px; color: var(--brass-hi); }
.lp-more p { font-size: 16.5px; }

.lp-pricing { max-width: 1240px; margin: 0 auto; padding: 100px 24px 20px; }
.lp-pricing > p { font-size: 18px; max-width: 40em; margin-bottom: 24px; }

.lp-faq { max-width: 820px; margin: 0 auto; padding: 90px 24px 20px; }
.lp-faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.lp-faq summary { cursor: pointer; padding: 14px 0; font: 600 20px/1.3 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; color: var(--brass); font: 400 26px/1 var(--sans); }
.lp-faq details[open] summary::after { content: '−'; }
.lp-faq details p { color: var(--bone-dim); font-size: 17px; max-width: 40em; margin: 0 0 16px; }

.lp-cta { text-align: center; padding: 110px 24px 120px; }
.lp-cta h2 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 26px; }

@media (max-width: 1000px) {
  .lp-nav { display: none; }
  .lp-hero { grid-template-columns: 1fr; padding: 40px 16px 0; gap: 32px; }
  .lp-hero-shot { border-right: 1px solid var(--line); border-radius: 10px; }
  .lp-themes { padding: 0; }
  .lp-story, .lp-feature, .lp-feature.flip { grid-template-columns: 1fr; gap: 28px; padding: 56px 16px; }
  .lp-feature.flip > figure { order: -1; }
  .lp-feature > figure { order: -1; }
  .lp-more { grid-template-columns: 1fr; gap: 20px; padding: 40px 16px; }
  .lp-pricing, .lp-faq { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 640px) {
  .lp-top #topThemes { display: none; }
  .lp-top .btn.ghost { display: none; }
  .lp-lede { font-size: 18px; }
  .btn.big { padding: 11px 18px; font-size: 17px; }
}

.lp-pricing .plan:first-child { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass) inset; }
@media (min-width: 1001px) { .lp-hero-shot { min-width: 0; } }
@media (max-width: 640px) { .theme-picker.labeled .theme-dot { padding: 6px 7px 4px; } .theme-picker.labeled .theme-dot .sw { width: 28px; height: 28px; } }

.lp-flow { margin: 0; }
.lp-flow ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.lp-flow li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--felt-2); }
.lp-flow li::before { content: counter(step); grid-row: 1 / 3; width: 44px; height: 44px; display: grid; place-items: center; background: var(--brass); color: var(--ink); font: 800 20px var(--serif); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.lp-flow li b { font: 700 19px var(--serif); color: var(--bone); }
.lp-flow li span { color: var(--bone-dim); font-size: 15.5px; }
.lp-flow li:last-child { border-color: var(--brass); }
.lp-cmp-h { margin: 44px 0 14px; font-size: 24px; }

/* screenshots open full size */
.lp-shot { cursor: zoom-in; position: relative; }
.lp-shot::after { content: '⤢ View larger'; position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; border-radius: 6px; font: 600 13px var(--sans); color: var(--bone); background: color-mix(in srgb, var(--ink) 82%, transparent); border: 1px solid var(--line); opacity: 0; transition: opacity .15s; pointer-events: none; }
.lp-shot:hover::after, .lp-shot:focus-visible::after { opacity: 1; }
@media (hover: none) { .lp-shot::after { opacity: .9; } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 10, 9, .92); display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: #e8e2d4; }
.lb-cap { flex: 1; font-size: 14px; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-bar button { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; padding: 6px 12px; }
.lb-stage { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 0 16px 16px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); cursor: zoom-in; }
.lightbox.zoomed .lb-stage { align-items: flex-start; justify-content: flex-start; }
.lightbox.zoomed .lb-stage img { max-width: none; max-height: none; cursor: zoom-out; }
@media (prefers-reduced-motion: reduce) { .lp-shot::after { transition: none; } }
