/* Brand §3 — the only hues in the system */
:root{
  --blue:#2351DE; --blue-dark:#153BB7; --blue-tint:#E9EDFB; --blue-tint-border:#C3CFF4;
  --mint:#65DFAF; --mint-ink:#003C21; --mint-tint:#E8FBF3;
  --ink:#060D1A; --ink-soft:#4F5661; --border:#E1E5EA; --surface:#F1F6FA; --bg:#FAFCFE;
  /* the device is a fixed 432x1000 artwork; this is the only thing that resizes it */
  --pos-scale:.76;
  --rail-w:216px;
  --nav-h:61px;      /* sticky nav: 18px padding x2 + 24px lockup + 1px rule */
  --site-max:1240px; /* matches loopnetwork.ai's content width */
}
/* §4: never Inter/Roboto/Arial/serif — no system-ui, which resolves to Roboto on Android */
body{margin:0;background:var(--surface);font-family:'Manrope',sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--blue);text-decoration:none}a:hover{color:var(--blue-dark)}

/* stretch, so the terminal card and the trace card share one height */
.page{
  min-height:calc(100vh - var(--nav-h));box-sizing:border-box;padding:32px 40px 40px;
  display:flex;align-items:stretch;justify-content:center;gap:40px;flex-wrap:wrap;
}
/* #app is a flex container so .pos-row — and the terminal card inside it — inherit the
   stretched row height. Without this the terminal card keeps its natural height and only
   the flow card grows, so "same height" silently holds in one direction only. */
#app{flex:none;min-width:0;display:flex}
#trace{flex:1 1 700px;max-width:1150px;min-width:520px;display:flex;min-height:0}

.pos-row{flex:1;display:flex;align-items:stretch;gap:32px}
.pos-rail{width:var(--rail-w);flex:none;padding-top:8px;display:flex;flex-direction:column;gap:24px;align-self:flex-start}
.pos-device{width:calc(432px * var(--pos-scale));height:calc(1000px * var(--pos-scale));flex:none;position:relative}
.pos-device-inner{
  position:absolute;left:0;top:0;width:432px;height:1000px;
  transform:scale(var(--pos-scale));transform-origin:0 0;
  filter:drop-shadow(0 20px 36px rgba(6,13,26,.16));
}
.tr-figure{flex:1;min-height:0;padding:10px 0 2px}

/* both panels are the same card geometry — only the fill differs */
.pos-panel,.tr-panel{border-width:1px;border-style:solid;border-radius:18px;padding:20px}
.pos-panel{
  flex:none;display:flex;flex-direction:column;align-items:center;gap:16px;
  background:var(--bg);border-color:var(--border);
}
/* tinted Loop Blue (§8's chip tint) so the card separates from the page at any resolution */
.tr-panel{
  flex:1;display:flex;flex-direction:column;min-width:0;
  background:var(--blue-tint);border-color:var(--blue-tint-border);
}

@keyframes loopspin{to{transform:rotate(360deg)}}
@keyframes loopbar{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
@keyframes looppulse{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes loopcaret{0%,49%{opacity:1}50%,100%{opacity:0}}

/* hover states — these were `style-hover` attributes in the design source.
   §6: ambient shadows only, nothing heavy. */
.rail-item:hover{background:rgba(6,13,26,.04)}
.restart:hover{color:var(--ink) !important;border-color:var(--ink-soft) !important}
.method-card:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(6,13,26,.08) !important}
.card-img:hover{transform:translateY(-3px)}
/* transparent hit zones over the PIN capture — a faint press state so keys feel live */
.pin-key:hover{background:rgba(6,13,26,.07)}
.pin-key:active{background:rgba(6,13,26,.14)}

/* ---- transaction trace (swimlane) ---------------------------------- */
.tr-svg{width:100%;height:100%;display:block}
.tr-svg text{font-family:'Manrope',sans-serif}
.n-t{font-size:15px;font-weight:700;fill:var(--ink)}
.n-s{font-size:12px;font-weight:400;fill:var(--ink-soft)}
.n-l{font-size:11px;font-weight:700;letter-spacing:.8px;fill:var(--ink-soft)}

/* a node is dim until reached, mint once passed, blue while active */
.node{opacity:.35;transition:opacity .35s}
.node rect{transition:fill .35s,stroke .35s}
.node.seen{opacity:1}
.node.seen rect{fill:rgba(101,223,175,.3);stroke:var(--mint)}
.node.hl{opacity:1}
.node.hl rect{fill:rgba(35,81,222,.14);stroke:var(--blue);stroke-width:2}
.node.hl .n-s{fill:var(--ink)}

/* a lane that takes no part in this transaction */
.node.na{opacity:.2}
.node.na rect{stroke-dasharray:2 4}
.node.na.seen,.node.na.hl{opacity:1}

.tr-dot{filter:drop-shadow(0 0 5px rgba(35,81,222,.45))}

/* settlement: money movements appear as their leg is reached */
.flowline{opacity:0;transition:opacity .4s}
.flowline.show{opacity:1}
.lbl{opacity:0;transition:opacity .4s}
.lbl.show{opacity:1}
.flowline.na,.lbl.na{display:none}
.n-a{font-size:13px;font-weight:800;fill:var(--ink);font-family:'Plus Jakarta Sans',sans-serif}
.nav-link{font-family:'Manrope',sans-serif;color:var(--ink-soft)}
.nav-link:hover{color:var(--blue)}

.tr-btn{
  font-family:'Manrope',sans-serif;font-size:12px;font-weight:700;color:var(--ink-soft);
  background:transparent;border:1px solid var(--border);border-radius:12px;
  padding:8px 14px;cursor:pointer;transition:background .18s,color .18s,border-color .18s;
}
.tr-btn:hover{color:var(--ink);border-color:var(--ink-soft)}
.tr-btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.tr-btn.primary:hover{background:var(--blue-dark);border-color:var(--blue-dark)}
.tr-btn:disabled{opacity:.35;cursor:not-allowed}

/* ---- responsive ----------------------------------------------------
   Side by side needs rail + terminal (~616px) + gap + a flow card wide enough to
   stay legible. Below that the flow card drops onto its own full-width row. */
@media (max-width:1240px){
  #app{flex:1 1 100%;display:flex;justify-content:center}
  #trace{flex:1 1 100%;min-width:0;max-width:none}
  .tr-figure{flex:none}
  .tr-svg{height:auto}
}
@media (max-width:900px){
  :root{--pos-scale:.68}
  .page{padding:24px 24px 32px;gap:24px}
  .pos-row{flex-direction:column;align-items:center;gap:24px}
  .pos-rail{width:100%;max-width:420px}
}
/* Below this the diagram would shrink past legibility, so it scrolls instead.
   The container scrolls — never the page body. */
@media (max-width:760px){
  .tr-figure{overflow-x:auto}
  .tr-svg{width:900px;max-width:none}
}
@media (max-width:560px){
  :root{--pos-scale:.6}
  .page{padding:16px 14px 24px;gap:16px}
  .pos-panel,.tr-panel{padding:14px;border-radius:12px}
}
@media (max-width:400px){
  :root{--pos-scale:.52}
  .page{padding:12px 10px 20px}
}


/* ---- site chrome: matches loopnetwork.ai --------------------------------
   Same palette (the live site expresses these tokens in oklch), same two faces,
   same nav/hero/footer proportions. */
.site-nav{
  position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;
  gap:24px;padding:18px 48px;background:color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--border);
}
.site-brand{display:flex;align-items:center;gap:10px}
.site-brand .loop-ring{width:24px;height:24px;border-radius:50%;border:4px solid var(--blue);box-sizing:border-box;flex:none}
.site-brand .loop-word{font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;font-size:19px;letter-spacing:1.5px;color:var(--ink);line-height:1}
.site-links{display:flex;align-items:center;gap:36px;font-size:15px;font-weight:600}
.site-links a{color:var(--ink)}
.site-links a:hover{color:var(--blue)}
.site-links a[aria-current="page"]{color:var(--blue)}
.site-cta{background:var(--blue);color:#fff;padding:11px 20px;border-radius:10px;font-size:14px;font-weight:700;white-space:nowrap}
.site-cta:hover{background:var(--blue-dark);color:#fff}

.site-foot{border-top:1px solid var(--border);background:var(--bg);padding:56px 48px 32px}
.site-foot-in{max-width:var(--site-max);margin:0 auto;display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:32px}
.site-foot h4{font-family:'Manrope',sans-serif;font-weight:800;font-size:13px;margin:0 0 14px;color:var(--ink)}
.site-foot-col{display:flex;flex-direction:column;gap:10px;font-size:13.5px;color:var(--ink-soft)}
.site-foot-col a{color:var(--ink-soft)}
.site-foot-col a:hover{color:var(--blue)}
.site-foot-bar{max-width:var(--site-max);margin:40px auto 0;padding-top:24px;border-top:1px solid var(--border);font-size:12.5px;color:var(--ink-soft)}

/* ---- home page ---------------------------------------------------------- */
.home{background:var(--bg);overflow-x:hidden}
.home-wrap{max-width:var(--site-max);margin:0 auto;padding:88px 48px 64px}
/* single column since the hero carries no art */
.home-hero{max-width:760px}
.eyebrow{
  display:inline-block;font-size:12.5px;font-weight:800;letter-spacing:1.6px;color:var(--blue);
  background:color-mix(in srgb, var(--blue) 10%, transparent);padding:7px 14px;border-radius:999px;margin-bottom:22px;
}
.home h1{font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;font-size:52px;line-height:1.06;letter-spacing:-1.3px;margin:0 0 22px;text-wrap:pretty;color:var(--ink)}
.home h2{font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;font-size:36px;line-height:1.12;letter-spacing:-0.8px;margin:0 0 14px;color:var(--ink)}
.lead{font-size:18px;line-height:1.6;color:var(--ink-soft);max-width:520px;margin:0 0 32px}
.btn-primary{background:var(--blue);color:#fff;padding:16px 28px;border-radius:12px;font-size:16px;font-weight:700;display:inline-block;box-shadow:0 12px 24px rgba(35,81,222,.28)}
.btn-primary:hover{background:var(--blue-dark);color:#fff}
.btn-quiet{font-size:15px;font-weight:700;color:var(--ink);border-bottom:2px solid var(--ink)}
.btn-quiet:hover{color:var(--blue);border-bottom-color:var(--blue)}
.home-band{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.home-sec{max-width:var(--site-max);margin:0 auto;padding:96px 48px}
.home-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.home-grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.home-card{background:var(--bg);border:1px solid var(--border);border-radius:18px;padding:28px;display:flex;flex-direction:column;gap:10px}
.home-card h3{font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;font-size:20px;margin:0;color:var(--ink)}
.home-card p{font-size:14.5px;line-height:1.6;color:var(--ink-soft);margin:0}
a.home-card{transition:transform .18s,box-shadow .18s,border-color .18s}
a.home-card:hover{transform:translateY(-3px);box-shadow:0 10px 28px rgba(6,13,26,.08);border-color:var(--blue)}
.kicker{font-size:12px;font-weight:800;letter-spacing:1.6px;color:var(--ink-soft);margin-bottom:14px}

@media (max-width:900px){
  .site-nav{padding:14px 20px;gap:14px;flex-wrap:wrap}
  .site-links{gap:20px;font-size:14px;order:3;width:100%}
  .home-wrap,.home-sec{padding:56px 20px}
  .home-grid-3,.home-grid-2,.site-foot-in{grid-template-columns:1fr;gap:28px}
  .home h1{font-size:38px;letter-spacing:-0.8px}
  .home h2{font-size:28px}
  .site-foot{padding:40px 20px 24px}
}
@media (max-width:560px){
  .home h1{font-size:31px}
  .btn-primary{padding:14px 22px;font-size:15px}
}
