/* Catalyst landing page (index.html): page-specific rules only.
   Tokens and shared components live in styles.css. */

/* hero */
.hero{padding-top:clamp(24px,4vw,56px)}
.hero h1{
  font-size:clamp(4.2rem,18.5vw,16rem);
  font-weight:800;
  line-height:.85;
  letter-spacing:-.045em;
  margin-left:-.04em;
  padding-bottom:.28em;
}
.hero-line{
  font:600 clamp(1.4rem,.95rem + 2.1vw,2.6rem)/1.15 var(--display);
  letter-spacing:-.04em;
  max-width:none;
  margin:0;
  text-wrap:balance;
}
.hero .lede{margin:clamp(20px,2.5vw,32px) 0 0}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px;margin-top:clamp(28px,3.5vw,44px)}
.actions > a:not(.btn){font-size:1.0625rem;font-weight:600}

/* sync demo */
.demo{margin-top:clamp(64px,9vw,120px)}
.demo-intro{font-size:var(--fs-lede);line-height:1.4;max-width:34em;margin:0 0 .5em}
.demo .small{margin:0 0 clamp(24px,3vw,36px)}

.sim-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
@media(min-width:860px){
  .sim-grid{grid-template-columns:minmax(0,1fr) 15rem minmax(0,1fr);align-items:start}
}

.panel{background:var(--surface);border:2px solid var(--rule);border-radius:var(--radius);padding:20px 22px 14px}
.panel h3{
  font-size:1.35rem;
  line-height:1.15;
  letter-spacing:-.01em;
  margin:0 0 16px;
  display:flex;
  align-items:center;
  gap:12px;
}
.panel h3::before{content:"";flex:none;width:16px;height:16px;border:2px solid var(--text)}
.panel-a h3::before{background:var(--a)}
.panel-b h3::before{background:var(--b)}

.panel ul{list-style:none;margin:0;padding:0;max-width:none;min-height:16rem}
.panel li{
  margin:0 0 8px;
  padding:10px 14px;
  background:var(--inset);
  border-left:6px solid var(--rule);
  font-size:1rem;
  line-height:1.4;
}
.panel li.by-a{border-left-color:var(--a)}
.panel li.by-b{border-left-color:var(--b)}
.panel li .kind{font-weight:600;margin-right:.4em}
.panel li.queued{outline:2px dashed var(--text-2);outline-offset:-2px}
.panel li em{display:block;font-style:normal;font-size:var(--fs-small);color:var(--text-2);margin-top:2px}
@media(prefers-reduced-motion:no-preference){
  .panel li{animation:entry-in .3s ease-out}
}
@keyframes entry-in{from{opacity:0}to{opacity:1}}

.mid{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.link-state{font-weight:600;font-size:1rem;line-height:1.3;max-width:none;margin:6px 0 0}
.sbtn{
  font:600 1rem/1.2 var(--text-font);
  text-align:left;
  min-height:44px;
  padding:.65em 1em;
  background:var(--surface);
  color:var(--text);
  border:2px solid var(--rule);
  border-radius:var(--radius);
  cursor:pointer;
}
.sbtn[aria-pressed="true"]{background:var(--b);border-color:var(--b);color:var(--on-light)}
.sbtn:hover{background:var(--text);border-color:var(--text);color:var(--on-light)}

/* the link between the laptops: solid with a moving square when up, dotted with a gap when down */
.wire{position:relative;height:4px;margin:33px -24px 0}
.wire::before{content:"";position:absolute;inset:0;background:var(--text)}
.wire::after{
  content:"";
  position:absolute;
  top:-6px;
  left:0;
  width:16px;
  height:16px;
  background:var(--ground);
  border:3px solid var(--text);
  animation:packet-x 2.4s ease-in-out infinite alternate;
}
.wire.off::before{background:none;border-top:4px dotted var(--text-2)}
.wire.off::after{top:-4px;left:40%;width:20%;height:12px;background:var(--ground);border:0;animation:none}
@keyframes packet-x{from{left:0}to{left:calc(100% - 16px)}}
@keyframes packet-y{from{top:0}to{top:calc(100% - 16px)}}
@media(max-width:859px){
  .wire{width:4px;height:44px;margin:0 0 0 28px}
  .wire::after{top:0;left:-6px;animation-name:packet-y}
  .wire.off::before{border-top:0;border-left:4px dotted var(--text-2)}
  .wire.off::after{top:40%;left:-4px;width:12px;height:20%}
}
@media(prefers-reduced-motion:reduce){
  .wire::after{animation:none;top:-6px;left:calc(50% - 8px)}
}
@media(prefers-reduced-motion:reduce) and (max-width:859px){
  .wire::after{top:calc(50% - 8px);left:-6px}
}

.sim-status{font-size:1rem;color:var(--text);max-width:none;margin:20px 0 0;min-height:3.2em}

/* architecture diagram on the dark band */
.arch{margin-top:clamp(32px,5vw,64px)}
.arch pre{
  margin:0;
  color:var(--text);
  /* Menlo first: its box-drawing characters join up; tight line-height closes the vertical rules */
  font-family:Menlo,Consolas,"DejaVu Sans Mono",var(--mono);
  font-size:clamp(.72rem,1.55vw,1.3rem);
  line-height:1.17;
  overflow-x:auto;
  white-space:pre;
}

/* what Catalyst shares */
.what-list{list-style:none;margin:0;padding:0;max-width:none;font-size:var(--fs-lede);line-height:1.3}
.what-list li{position:relative;padding-left:1.5em;margin:0 0 .5em}
.what-list li::before{content:"";position:absolute;left:0;top:.3em;width:.7em;height:.7em;border:3px solid var(--text)}
.what-list.shared li::before{background:var(--a);border-color:var(--a)}

/* the big file name */
.filename{
  font:700 clamp(2.2rem,8vw,6.5rem)/1.05 var(--mono);
  color:var(--text);
  letter-spacing:-.02em;
  max-width:none;
  margin:0 0 .4em;
  word-break:break-word;
}
