/* pact-cloud.com's own layer over pact-web-kit (kit/styles.css): the display face, the ink stage
 * (nav + hero, and the closing waitlist band), the bridge demo, and this page's sections. Tokens are
 * the kit's; orange means one thing here — "this was allowed" — and appears nowhere else. */

@font-face{font-family:'Bricolage Grotesque';src:url(fonts/bricolage-grotesque-latin-wght.woff2) format('woff2');font-weight:200 800;font-style:normal;font-display:swap}

:root{--display:'Bricolage Grotesque',var(--sans);--err-on-ink:#FF9C8A}

h1,h2,h3,.sec-title{font-family:var(--display);font-optical-sizing:auto}
h2{letter-spacing:-.03em}

/* ---------------------------------------------------------------- the ink stage */
.stage{background:var(--ink);color:var(--dark-text);position:relative;overflow:clip}
.stage::before{content:"";position:absolute;inset:auto -20% -40% 40%;height:80%;pointer-events:none;
  background:radial-gradient(closest-side,rgb(var(--accent-rgb) / .16),transparent)}
.nav-dark{background:rgb(21 24 30 / .86)}
.nav-dark.scrolled{border-bottom-color:rgb(255 255 255 / .08)}
.nav-dark .nav-links a{color:var(--dark-text)}
.nav-dark .nav-links a:hover{color:#fff}

.hero-c{padding:clamp(3rem,7vw,6rem) 0 clamp(3.5rem,7vw,6rem);position:relative}
.hero-c-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(2rem,5vw,4.5rem);align-items:center}
.hero-c h1{color:#fff;font-size:clamp(2.6rem,4.7vw,4.3rem);font-weight:700;letter-spacing:-.035em;line-height:1.02;margin:0 0 1.2rem;max-width:15ch}
.hero-c .lede{color:var(--dark-muted);max-width:36rem;margin-bottom:1.8rem}
.beta{display:inline-block;margin:0 0 1.3rem;padding:.3rem .8rem;border-radius:999px;font-size:.84rem;font-weight:600;color:var(--accent-2);border:1px solid rgb(var(--glow-rgb) / .35)}
.fine.on-ink{color:var(--dark-muted)}
.fine.on-ink a{color:var(--dark-text);text-decoration:underline;text-underline-offset:3px}

/* ---------------------------------------------------------------- the waitlist form (on ink) */
.waitlist{display:grid;grid-template-columns:1fr 1.4fr auto;gap:.6rem;max-width:40rem;margin:0 0 .9rem}
.waitlist input{font:inherit;font-size:.98rem;padding:.8rem .95rem;border-radius:11px;border:1px solid rgb(255 255 255 / .16);background:var(--dark-panel);color:#fff;min-width:0}
.waitlist input::placeholder{color:var(--dark-muted)}
.waitlist input:focus{outline:2px solid var(--accent-2);outline-offset:1px;border-color:transparent}
.waitlist .btn{background:#fff;color:var(--ink);border-color:#fff}
.waitlist .btn:hover{background:var(--bg-3)}
.waitlist.done input{opacity:.5}
.waitlist-msg{grid-column:1/-1;margin:0;font-size:.92rem;min-height:1.4em;color:var(--dark-muted)}
.waitlist-msg.ok{color:var(--accent-2)}
.waitlist-msg.err{color:var(--err-on-ink)}
@media (max-width:640px){.waitlist{grid-template-columns:1fr}}

/* ---------------------------------------------------------------- the bridge demo */
.span-demo{margin:0;background:var(--dark-panel);border:1px solid rgb(255 255 255 / .08);border-radius:22px;padding:1.4rem 1.4rem 1.3rem;
  display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"a b" "cable cable" "talk talk";column-gap:.6rem;row-gap:.5rem;align-items:start}
.party{display:flex;align-items:center;gap:.6rem;font-size:.86rem;line-height:1.25;color:var(--dark-text)}
.party b{display:block;color:#fff;font-weight:600}
.party small{display:block;color:var(--dark-muted);font-family:var(--mono);font-size:.72rem}
.party-a{grid-area:a}
.party-b{grid-area:b;flex-direction:row-reverse;text-align:right;justify-self:end}
.span-demo .av{width:34px;height:34px;flex:0 0 34px;font-size:.72rem}
.span-demo .av.m{background:#5B6ACF}
.span-demo .av.me{background:#fff;color:var(--ink)}
.span-cable{grid-area:cable;width:100%;height:clamp(64px,9vw,96px);overflow:visible;margin:.2rem 0 .9rem}
.span-cable path{fill:none;vector-effect:non-scaling-stroke}
.span-cable .tower{stroke:rgb(255 255 255 / .34);stroke-width:3;stroke-linecap:round}
.span-cable .deck{stroke:rgb(255 255 255 / .22);stroke-width:2}
.span-cable .cable{stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-dasharray:520;stroke-dashoffset:0}

.talk{grid-area:talk;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.55rem}
.talk .say{max-width:84%;padding:.62rem .85rem;border-radius:14px;font-size:.93rem;line-height:1.45}
.talk .say small{display:block;margin-top:.2rem;font-size:.78rem}
.talk .a{align-self:flex-start;background:rgb(255 255 255 / .07);color:var(--dark-text);border-bottom-left-radius:5px}
.talk .a small{color:var(--dark-muted)}
.talk .b{align-self:flex-end;background:#fff;color:var(--ink);border-bottom-right-radius:5px}
.talk .b small{color:var(--muted)}
.talk .gate{align-self:center;display:flex;align-items:center;gap:.5rem;font-size:.8rem;color:var(--dark-muted)}
.talk .gate.ok{color:var(--accent-2)}
.talk .gate .sw{width:26px;height:15px;flex:0 0 26px}
.talk .gate .sw::after{width:11px;height:11px}
.talk .gate .sw.off{background:#3A3E47}

/* The one orchestrated moment: the cable is drawn, then the exchange arrives, one allowed step at a
 * time. Without motion it is simply there. */
@media (prefers-reduced-motion:no-preference){
  .span-cable .cable{animation:draw 1.1s cubic-bezier(.3,.7,.2,1) .25s both}
  .talk li{animation:arrive .45s ease-out both}
  .talk .s1{animation-delay:1.2s}.talk .s2{animation-delay:2.1s}.talk .s3{animation-delay:2.9s}
  .talk .s4{animation-delay:3.8s}.talk .s5{animation-delay:4.6s}.talk .s6{animation-delay:5.4s}.talk .s7{animation-delay:6.2s}
}
@keyframes draw{from{stroke-dashoffset:520}to{stroke-dashoffset:0}}
@keyframes arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

@media (max-width:960px){.hero-c-grid{grid-template-columns:1fr}.hero-c h1{max-width:16ch}}
@media (max-width:520px){.party small{display:none}.talk .say{max-width:94%}}

/* ---------------------------------------------------------------- sections */
section.plain{background:var(--bg)}
.sec-title{font-size:clamp(1.9rem,3.6vw,2.8rem);max-width:22ch;margin:0 0 1.2rem;line-height:1.08}
.sec-title.center{margin-inline:auto;text-align:center}
.sec-lede{max-width:44rem;margin-bottom:2.2rem}
.two-col{display:grid;grid-template-columns:5fr 7fr;gap:clamp(1.5rem,5vw,4rem);align-items:start}
.two-col h2{font-size:clamp(1.9rem,3.4vw,2.6rem);line-height:1.08;margin:0}
.prose-c p{font-size:1.1rem;color:var(--text);line-height:1.65;max-width:38rem}
@media (max-width:820px){.two-col{grid-template-columns:1fr}}

/* how it works — a real sequence, so it is numbered */
.steps-c{list-style:none;counter-reset:step;padding:0;margin:2rem 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.2rem,3vw,2.5rem)}
.steps-c li{counter-increment:step;border-top:2px solid var(--ink);padding-top:1.1rem}
.steps-c li::before{content:counter(step);display:block;font-family:var(--display);font-weight:700;font-size:2.4rem;line-height:1;color:var(--accent-ink);margin-bottom:.7rem}
.steps-c h3{font-size:1.25rem;margin-bottom:.45rem}
.steps-c p{color:var(--muted);margin:0}
@media (max-width:820px){.steps-c{grid-template-columns:1fr}}

/* what it runs — definitions, not cards */
.runs{display:grid;grid-template-columns:repeat(2,1fr);gap:0 clamp(1.5rem,5vw,4rem);margin:1.6rem 0 0}
.runs div{border-top:1px solid var(--line-2);padding:1.2rem 0 1.4rem}
.runs dt{font-family:var(--display);font-weight:600;font-size:1.2rem;color:var(--ink);margin-bottom:.35rem}
.runs dd{margin:0;color:var(--muted);line-height:1.6;max-width:34rem}
@media (max-width:720px){.runs{grid-template-columns:1fr}}

/* yours, not ours */
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,5vw,4rem)}
.split h3{font-size:1.25rem}
@media (max-width:720px){.split{grid-template-columns:1fr}}
.ticks{list-style:none;padding:0;margin:.9rem 0 0;display:flex;flex-direction:column;gap:.8rem}
.ticks li{position:relative;padding-left:1.8rem;color:var(--text);font-size:1rem;line-height:1.5}
.ticks li::before{content:"";position:absolute;left:0;top:.2em;width:1.1rem;height:1.1rem;border-radius:50%;background:var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23AB5309' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat}
.ticks.no li::before{background:var(--bg-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%2315181E' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/64% no-repeat}

/* the self-hosted band's list */
.band .doc-list{margin:0;padding-left:1.1rem;color:var(--dark-muted);line-height:1.8;columns:2;column-gap:1.4rem}
@media (max-width:820px){.band .doc-list{columns:1}}

/* plans (held to pact-cloud's catalog.ts by test/plans.test.mjs) */
.plans-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:var(--r-lg);background:#fff}
.plans{width:100%;border-collapse:collapse;min-width:620px;font-size:.95rem}
.plans th,.plans td{padding:.85rem 1rem;text-align:center;border-bottom:1px solid var(--line)}
.plans tbody tr:last-child th,.plans tbody tr:last-child td{border-bottom:0}
.plans thead th{font-family:var(--display);font-size:1rem;font-weight:600;color:var(--ink);background:var(--bg-2)}
.plans tbody th{text-align:left;font-weight:500;color:var(--ink)}
.plans td{color:var(--text);font-variant-numeric:tabular-nums}
.plans .hl{background:var(--accent-soft)}

/* the closing waitlist band */
.join{background:var(--ink);color:var(--dark-text);padding:clamp(3.5rem,7vw,5.5rem) 0}
.join-in{display:grid;grid-template-columns:1fr 1.3fr;gap:1.5rem 3rem;align-items:center}
.join h2{color:#fff;font-size:clamp(2rem,4vw,3rem);line-height:1.05;margin:0;max-width:14ch}
.join .waitlist{margin:0;max-width:none}
.join .fine{grid-column:2;margin:0}
@media (max-width:820px){.join-in{grid-template-columns:1fr}.join .fine{grid-column:1}}
@media (max-width:820px){.nav-dark .nav-cta .btn.ghost-dark{display:none}}   /* Sign in stays in the hero's fine print */
