/* First screen: a session window on paper. The agent starts empty; a SessionStart hook loads the notes,
   a Stop hook makes it write one more. Built from the depth layer: a raised window, a well for the context,
   chips for hook events. No WebGL. */
.mh { padding: clamp(120px, 13vw, 168px) 0 clamp(88px, 9vw, 128px); }
.mh-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.mh-copy { min-width: 0; }
.mh-meta { font-size: 15px; line-height: 1.3; color: var(--ink-2); margin: 0 0 22px; }
.mh h1 { font-size: clamp(36px, 4.5vw, 66px); line-height: 1.01; letter-spacing: -.042em; font-weight: 650; margin: 0; text-wrap: balance; }
html.sf .mh h1 { letter-spacing: -.02em; }
.mh-lede { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.36; letter-spacing: -.014em; color: var(--ink-2); margin: 26px 0 0; max-width: 30em; }
.mh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.mh-stage { position: relative; margin: 0; padding-top: 48px; min-width: 0; }
.mh-ghost { position: absolute; top: 0; left: 9%; right: 9%; height: 90px; border-radius: 30px; background: #fff; box-shadow: var(--shadow-raised); }
.mh-ghost.g1 { top: 24px; left: 4.5%; right: 4.5%; }
.mh-ghost span { position: absolute; top: 5px; left: 24px; font-size: 12px; line-height: 14px; color: var(--ink-3); }
.mh-win { position: relative; background: #fff; border-radius: 30px; box-shadow: var(--shadow-raised); padding: 8px; transition: transform .45s var(--ease), opacity .3s var(--ease); }
.mh-win.is-next { transform: translateY(14px) scale(.985); opacity: .35; }
.mh-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px 14px; font-size: 15px; }
.mh-bar b { font-weight: 600; }
.mh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.mh-ctx { margin-left: auto; color: var(--ink-2); }
.mh-log { list-style: none; margin: 0; padding: 10px; background: var(--paper); border-radius: 22px; display: flex; flex-direction: column; gap: 6px; height: 352px; overflow: hidden; font: 400 14px/1.45 var(--mono); }
.mh-log li { padding: 5px 12px; color: var(--ink); }
.mh-log .ev { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-chip); font: 400 14px/1.3 var(--font); }
.mh-log .ev code { font: 600 14px/1.3 var(--mono); color: var(--ink); background: none; padding: 0; }
.mh-log .ev span { color: var(--ink-2); }
.mh-log .ev em { margin-left: auto; font-style: normal; color: var(--ink-2); white-space: nowrap; }
.mh-log .mem::before { content: "– "; color: var(--ink-3); }
.mh-log code { font: inherit; background: none; padding: 0; }
.mh-log .new { color: var(--link); }
.mh-log:has(.empty) { justify-content: center; text-align: center; }
.mh-log .empty { font: 400 15px/1.4 var(--font); color: var(--ink-2); padding: 12px; }
.mh-log .in { animation: mh-in .42s var(--ease) both; }
@keyframes mh-in { from { opacity: 0; transform: translateY(6px); } }
.mh-foot { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px 8px; font-size: 14px; color: var(--ink-2); }
.mh-foot code { font: 500 14px var(--mono); color: var(--ink); background: none; padding: 0; }
.mh-foot [data-lines] { margin-left: auto; }

@media (max-width: 860px) {
  .mh-grid { grid-template-columns: 1fr; }
  .mh-log { height: 330px; font-size: 13px; }
  .mh-log .ev, .mh-log .ev code { font-size: 13px; }
}
@media (max-width: 560px) { .mh-foot > span:not([data-lines]) { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .mh-win, .mh-log .in { transition: none; animation: none; }
}

/* The three entry points: three columns, a smaller price so CLAUDE.md fits. */
#ch1-pick .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#ch1-pick .plan .price { font-size: clamp(30px, 3vw, 42px); }
#ch1-pick .callout .api { max-width: 18em; }
