/* Landing page. One memorable element: the build log in the hero, which
   types itself out once on load. Everything else stays quiet. */
body.landing { background: var(--ink); }

.lp-head, .hero, .section, .closing, .lp-foot { width: min(1160px, 100% - 40px); margin-inline: auto; }

.lp-head { display: flex; align-items: center; gap: 28px; height: 76px; }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.lp-brand img { height: 26px; width: auto; display: block; }
.lp-brand span { font: 600 1.15rem/1 var(--display); color: var(--text); }
.lp-nav { display: flex; gap: 24px; }
.lp-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.lp-nav a:hover { color: var(--text); }

/* ---- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding: 56px 0 88px; }
.beta-note { margin: 0 0 18px; color: var(--lav); font-size: .92rem; }
.hero h1 { margin: 0 0 22px; font: 700 clamp(2.3rem, 4.6vw, 3.6rem)/1.08 var(--display); letter-spacing: -.01em; word-spacing: .06em; }
.lede { margin: 0 0 32px; max-width: 34em; color: var(--text-2); font-size: 1.1rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.plain-link { color: var(--text-2); font-weight: 500; }
.land-note { margin: 18px 0 0; color: var(--bad); font-size: .92rem; }

.log { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8); }
.log-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-weight: 600; font-size: .92rem; background: var(--panel); }
.log-lines { list-style: none; margin: 0; padding: 18px 18px 20px; font: .84rem/1.75 var(--mono); color: var(--text-2); }
.log-lines li { padding-left: 22px; position: relative; opacity: 0; animation: logline .01s linear forwards; }
.log-lines li::before { position: absolute; left: 0; width: 16px; text-align: center; }
.log-lines code { font: inherit; color: var(--lav); }
.l-you { margin-bottom: 10px; padding: 10px 12px 10px 34px !important; border-radius: 8px; background: var(--lav-soft); color: var(--text); font-family: var(--sans); font-size: .92rem; line-height: 1.5; }
.l-you::before { content: ">"; left: 12px !important; color: var(--lav); font-family: var(--mono); }
.l-write::before { content: "+"; color: var(--ok); }
.l-run { color: var(--muted); }
.l-run::before { content: "$"; color: var(--dim); }
.l-err { color: var(--bad); }
.l-err::before { content: "!"; }
.l-fix { color: var(--warn); }
.l-fix::before { content: "~"; }
.l-ok { margin-top: 8px; color: var(--amber); font-weight: 500; }
.l-ok::before { content: "\2713"; }
/* The one orchestrated moment: lines appear in build order. */
.log-lines li:nth-child(1) { animation-delay: .2s; }
.log-lines li:nth-child(2) { animation-delay: .9s; }
.log-lines li:nth-child(3) { animation-delay: 1.2s; }
.log-lines li:nth-child(4) { animation-delay: 1.5s; }
.log-lines li:nth-child(5) { animation-delay: 2.1s; }
.log-lines li:nth-child(6) { animation-delay: 2.8s; }
.log-lines li:nth-child(7) { animation-delay: 3.4s; }
.log-lines li:nth-child(8) { animation-delay: 4.2s; }
.log-lines li:nth-child(9) { animation-delay: 4.8s; }
.log-lines li:nth-child(10) { animation-delay: 5.5s; }
@keyframes logline { to { opacity: 1; } }

/* ---- sections */
.section { padding: 72px 0; border-top: 1px solid var(--line-soft); }
.section h2, .closing h2 { margin: 0 0 14px; font: 600 clamp(1.6rem, 2.6vw, 2.1rem)/1.15 var(--display); letter-spacing: -.01em; }
.section-lede { margin: 0 0 36px; max-width: 40em; color: var(--muted); }

.catalog { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.catalog h3 { margin: 0 0 6px; font: 600 1rem/1.3 var(--sans); color: var(--muted); }
.catalog-group dl + h3 { margin-top: 30px; }
.catalog dl { margin: 0; }
.catalog dl > div { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.catalog dt { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.catalog dd { margin: 0; color: var(--text-2); font-size: .95rem; }
.catalog dd code { color: var(--lav); }

.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; border: 1px solid var(--line); font: 600 .95rem/1 var(--display); color: var(--amber); }
.steps h3 { margin: 0 0 8px; font: 600 1.05rem/1.3 var(--sans); }
.steps p { margin: 0; color: var(--text-2); font-size: .95rem; }

.facts ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; }
.facts li { color: var(--text-2); padding-left: 18px; border-left: 2px solid var(--line); }
.facts b { color: var(--text); font-weight: 600; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.4rem/1 var(--sans); color: var(--muted); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; color: var(--text-2); max-width: 62ch; }

.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 64px 0 80px; border-top: 1px solid var(--line-soft); }
.closing h2 { margin: 0; max-width: 18em; }

.lp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 28px 0 40px; border-top: 1px solid var(--line-soft); color: var(--dim); font-size: .86rem; }
.lp-foot-brand img { height: 16px; width: auto; display: block; opacity: .8; }
.lp-foot-brand:hover img { opacity: 1; }
.lp-foot-copy { margin-left: auto; }
@media (max-width: 640px) { .lp-foot-copy { margin-left: 0; width: 100%; } }
.lp-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.lp-foot a { color: var(--muted); text-decoration: none; }
.lp-foot a:hover { color: var(--text); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 28px; }
  .catalog { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .lp-head, .hero, .section, .closing, .lp-foot { width: calc(100% - 32px); }
  .lp-nav { display: none; }
  .lp-brand img { height: 18px; }
  .catalog dl > div { grid-template-columns: 1fr; gap: 6px; }
  .steps, .facts ul { grid-template-columns: 1fr; }
  .log-lines { font-size: .78rem; padding: 14px; }
  .section { padding: 52px 0; }
}

/* Sign-in chooser: one button, the account's site picked in a small menu. */
.signin { position: relative; display: inline-block; }
#signin { scroll-margin-top: 180px; }
.signin > summary { list-style: none; }
.signin > summary::-webkit-details-marker { display: none; }
.signin > summary::after { content: ""; width: 7px; height: 7px; margin: -3px 0 0 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.signin[open] > summary::after { transform: translateY(3px) rotate(-135deg); }
.signin-menu { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: 290px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8); }
.signin[data-up] .signin-menu { top: auto; bottom: calc(100% + 8px); left: auto; right: 0; }
.signin-menu p { margin: 4px 10px 8px; color: var(--muted); font-size: .84rem; }
.signin-menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.signin-menu a:hover, .signin-menu a:focus-visible { background: var(--panel-2); }
.signin-menu b { font-weight: 600; }
.signin-menu small { color: var(--dim); font-size: .8rem; }
@media (max-width: 640px) { .signin[data-up] .signin-menu { left: 0; right: auto; } }

/* Links from the catalog to each type's page */
.catalog dt a { color: var(--text); text-decoration: none; }
.catalog dt a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

/* Per-type pages */
.crumbs { width: min(1160px, 100% - 40px); margin: 8px auto 0; display: flex; gap: 8px; font-size: .86rem; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.beta-note .tag { margin-right: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two-col h2 { margin-bottom: 18px; }
.ticks, .asks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }
.asks li { padding: 12px 14px; border-radius: 8px; background: var(--lav-soft); color: var(--text); font-size: .95rem; }
.also { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.also a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border: 1px solid var(--line-soft); border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.also a:hover { border-color: var(--line); background: var(--panel); }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) { .crumbs { width: calc(100% - 32px); } }
