/*
 * The Workflow, Steps, Results and Facts styles below are adapted from beautifului.dev.
 *
 * MIT License
 *
 * Copyright (c) 2026 Shane Levine
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

/* ---------- facts: a ruled definition list, like the "Now in Dhaka" rows ---------- */
.facts{margin:0 0 2.5rem;border-top:1px solid var(--rule)}
.facts div{display:grid;grid-template-columns:5.5rem minmax(0,1fr);gap:.75rem;padding:.55rem 0;border-bottom:1px solid var(--rule)}
.facts dt{font:400 .6875rem/1.9 var(--mono);letter-spacing:.03em;color:var(--quiet)}
.facts dd{margin:0;font:400 1rem/1.45 var(--serif);color:var(--ink);overflow-wrap:anywhere}
.facts .tag{margin:0 .3rem .3rem 0;display:inline-block}
.facts dd span::before{content:none}

/* ---------- workflow: a vertical flowchart on a card ---------- */
.flow{margin:1.8rem 0 2rem;padding:1.2rem 1.2rem 1rem;border-radius:8px;background:var(--card);box-shadow:0 0 0 1px var(--rule)}
.flow>figcaption{margin-top:.85rem;font:italic 400 .875rem/1.5 var(--serif);color:var(--quiet)}
.flow ol{list-style:none;margin:0;padding:0}
.flow li{position:relative;padding:0 0 1.5rem 1.9rem}
.flow li:last-child{padding-bottom:0}
/* connector: a 1px rule down from each glyph, with a small arrowhead */
.flow li:not(:last-child)::before{content:"";position:absolute;left:.4rem;top:1.35rem;bottom:.35rem;border-left:1px solid var(--rule)}
.flow li:not(:last-child)::after{content:"";position:absolute;left:calc(.4rem - 3px);bottom:.35rem;
  border:3.5px solid transparent;border-top:5px solid var(--rule);border-bottom:0}
.kind{display:block;font:400 .6875rem/1.4 var(--mono);letter-spacing:.06em;text-transform:lowercase;color:var(--accent)}
.kind i{position:absolute;left:0;top:0;width:.9rem;text-align:center;font-style:normal;font-size:.8rem;line-height:1.3}
.flow b{display:block;margin-top:.1rem;font:400 1.0625rem/1.35 var(--serif);color:var(--ink)}
.flow .c{display:block;margin-top:.15rem;font:400 .9375rem/1.45 var(--serif);color:var(--quiet)}
.branch{display:flex;flex-wrap:wrap;gap:.4rem;margin:.55rem 0 0;padding:0;list-style:none}
.flow .branch li{padding:.15rem .55rem;border:1px solid var(--rule);border-radius:999px;font:400 .75rem/1.3 var(--mono);color:var(--quiet)}
.flow .branch li::before,.flow .branch li::after{content:none}
.branch li b{display:inline;margin:0;font:inherit;color:var(--ink)}

/* ---------- steps: numbered rows that open ---------- */
.steps{list-style:none;margin:1.4rem 0 2rem;padding:0;border-top:1px solid var(--rule)}
.steps>li{margin:0;padding:0;border-bottom:1px solid var(--rule)}
.steps details{margin:0}
.steps summary{display:grid;grid-template-columns:1.6rem minmax(0,1fr) auto;align-items:baseline;gap:.6rem;
  width:100%;padding:.7rem 0;color:var(--ink);font-size:1.0625rem}
.steps summary .t{min-width:0;overflow-wrap:anywhere}
.steps summary::after,.steps details[open] summary::after{content:none}
.steps .arr{color:var(--accent);font-size:.9rem}
.steps details[open] .arr::before{content:"↓"}
.steps details:not([open]) .arr::before{content:"→"}
.steps .n{font:400 .75rem/1 var(--mono);color:var(--accent)}
.steps summary .tag{margin-left:.5rem;display:inline-block}
.steps ul{margin:0 0 .9rem 2.2rem;padding:0;list-style:none;font-size:.9375rem;line-height:1.5;color:var(--quiet);overflow-wrap:anywhere}
.steps ul li{padding:.15rem 0}

/* ---------- results: ruled insight rows ---------- */
.results{list-style:none;margin:1.4rem 0 1.6rem;padding:0;border-top:1px solid var(--rule)}
.results li{display:grid;grid-template-columns:7rem minmax(0,1fr);gap:1rem;padding:.9rem 0;border-bottom:1px solid var(--rule)}
.results .v{font:400 1.75rem/1.1 var(--serif);color:var(--ink);font-variant-numeric:lining-nums;letter-spacing:-.01em}
.results .l{margin:0;font-size:1.0625rem;line-height:1.5}
.results .k{display:block;margin-top:.25rem;font:italic 400 .875rem/1.45 var(--serif);color:var(--quiet)}

/* ---------- screenshots ---------- */
.shot{margin:1.8rem 0 2rem}
.shot img{display:block;width:100%;height:auto;border-radius:6px;box-shadow:0 0 0 1px var(--rule)}
.shot figcaption{margin-top:.6rem;font:italic 400 .875rem/1.5 var(--serif);color:var(--quiet)}

@media (max-width:30rem){
  .results li{grid-template-columns:1fr;gap:.2rem}
  .facts div{grid-template-columns:4.6rem minmax(0,1fr)}
  .flow{padding:1rem .9rem .9rem}
}
@media (prefers-reduced-motion:no-preference){
  .flow,.steps,.results{animation:cs-in .5s ease both}
  @keyframes cs-in{from{opacity:0}to{opacity:1}}
}

/* ---------- sysflow: a system flowchart on a dotted canvas (after beautifului.dev's Flowchart) ---------- */
.sysflow{margin:1.8rem 0 2rem}
.sysflow>figcaption{margin-top:.75rem;font:italic 400 .875rem/1.5 var(--serif);color:var(--quiet)}
.sf-canvas{list-style:none;margin:0;padding:1.4rem 1rem;border-radius:8px;background-color:var(--card);
  background-image:radial-gradient(var(--rule) 1px,transparent 1.25px);background-size:18px 18px;background-position:center;
  box-shadow:0 0 0 1px var(--rule)}
.sf-tier{margin:0;padding:0}
.sf-row{list-style:none;margin:0;padding:0;display:grid;gap:.6rem}
.sf-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.sf-5{grid-template-columns:repeat(5,minmax(0,1fr));gap:.45rem}
.sf-wire{display:block;width:100%;height:2.2rem;color:var(--quiet);opacity:.7}
.sf-node{position:relative;margin:0;padding:.55rem .65rem .6rem;border-radius:10px;background:var(--card);
  box-shadow:0 0 0 1px var(--rule),0 1px 3px rgba(0,0,0,.04);min-width:0;overflow-wrap:anywhere}
.sf-tier{position:relative}
.sf-bypass{position:absolute;left:83.333%;top:0;bottom:0;border-left:1.25px solid currentColor;color:var(--quiet);opacity:.7}
.sf-one{width:min(17rem,100%);margin:0 auto}
.sf-hub{box-shadow:0 0 0 1px var(--accent)}
/* arrowhead where a wire meets a card */
.sf-wire+.sf-node::before,.sf-wire+.sf-row>.sf-node::before{content:"";position:absolute;left:50%;top:-5px;margin-left:-3.5px;
  border:3.5px solid transparent;border-top:5px solid var(--quiet);border-bottom:0;opacity:.7}
.sf-kind{display:inline-block;margin-bottom:.3rem;padding:.05rem .4rem;border-radius:5px;
  font:400 .625rem/1.5 var(--mono);letter-spacing:.05em;text-transform:lowercase;color:var(--accent);
  background:color-mix(in srgb,var(--accent) 11%,transparent)}
.sf-node b{display:block;font:400 .9375rem/1.3 var(--serif);color:var(--ink)}
.sf-node .c{display:block;margin-top:.15rem;font:400 .8125rem/1.4 var(--serif);color:var(--quiet)}
.sf-5 .sf-node{padding:.5rem .45rem}
.sf-5 .sf-node b{font-size:.875rem}
.sf-5 .sf-node .c{font-size:.75rem}

/* narrow: a vertical tree, the API's calls stacked on a left rail */
@media (max-width:35rem){
  .sf-canvas{padding:1rem .8rem}
  .sf-wire{display:none}
  .sf-3,.sf-5{grid-template-columns:minmax(0,1fr)}
  .sf-one{width:auto}
  .sf-tier+.sf-tier{position:relative;padding-top:1.4rem}
  .sf-tier+.sf-tier::before{content:"";position:absolute;left:1.2rem;top:.15rem;height:1rem;border-left:1px solid var(--quiet);opacity:.7}
  .sf-tier:nth-child(2)::before{left:auto;right:-.5rem;width:.5rem;top:0;height:auto;bottom:calc(50% - .7rem);border-left:0;border-right:1.25px solid var(--quiet);border-bottom:1.25px solid var(--quiet)}
  /* browser capture and the operator dashboard: ticks into a shared right rail that runs down into hosting */
  .sf-tier:first-child::after{content:"";position:absolute;right:-.5rem;top:1rem;bottom:0;border-right:1.25px solid var(--quiet);opacity:.7}
  .sf-3>.sf-node:not(:last-child)::after{content:"";position:absolute;left:100%;top:1rem;width:.5rem;border-top:1.25px solid var(--quiet);opacity:.7}
  .sf-5{position:relative;margin:.9rem 0 0 1.2rem;padding-left:1rem;gap:.6rem;border-left:1px solid color-mix(in srgb,var(--quiet) 70%,transparent)}
  .sf-5>.sf-node::after{content:"";position:absolute;left:-1rem;top:1rem;width:1rem;border-top:1px solid var(--quiet);opacity:.7}
  .sf-wire+.sf-node::before,.sf-wire+.sf-row>.sf-node::before{content:none}
  /* the customer backend calls the API directly: a rail beside hosting, an elbow into the API */
  .sf-bypass{display:block;left:-.4rem;top:-1rem;bottom:-1.4rem}
  /* the customer backend's own elbow onto the bypass, so its line visibly skips hosting */
  .sf-3>.sf-node:last-child::before{content:"";position:absolute;left:-.4rem;top:50%;bottom:-1px;width:.4rem;
    border-left:1.25px solid var(--quiet);border-top:1.25px solid var(--quiet);opacity:.7}
  .sf-tier:nth-child(3)::after{content:"";position:absolute;left:-.4rem;top:0;width:.4rem;height:2.7rem;border-left:1.25px solid var(--quiet);border-bottom:1.25px solid var(--quiet);opacity:.7}
  .sf-5 .sf-node b{font-size:.9375rem}
  .sf-5 .sf-node .c{font-size:.8125rem}
}
