/*
  Service detail pages. One stylesheet for all ten, because they are one
  template driven by the live content collection (see docs/gen-services.py).

  The page answers the four things a buyer actually asks, in order: what is
  this, what does it cost, what do I get, and who else does it touch. Prose
  sits in the middle rather than at the top, since nobody reads three
  paragraphs before they know the price.

  Author: Ethan Lowery | Randcore Development Pty Ltd
*/

/* hero */
.shero{display:grid;gap:30px}
.shero .lead{margin-top:18px}
.smark{width:104px;height:104px;border-radius:26px;display:grid;place-items:center;background:var(--band);
       --ic-line:rgba(255,255,255,.92);--ic-accent:var(--teal);box-shadow:var(--sh-card);flex:none}
.smark svg{width:58px;height:58px}
.pricebar{display:flex;flex-wrap:wrap;gap:8px;margin-top:26px}
.pricebar span{display:inline-flex;align-items:baseline;gap:7px;background:var(--surface);
               box-shadow:var(--sh-soft);border-radius:var(--r-pill);padding:9px 16px;
               font-family:'Geist Mono',monospace;font-size:12px;color:var(--ink)}
.pricebar i{font-style:normal;font-family:'Geist',system-ui,sans-serif;font-size:12.5px;
            font-weight:600;color:var(--body)}

/* quick facts */
.qf{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--line);
    border-radius:var(--r-card);overflow:hidden;box-shadow:var(--sh-soft)}
.qf div{background:var(--surface);padding:18px 16px}
.qf dt{font-family:'Geist Mono',monospace;font-size:10.5px;letter-spacing:.12em;
       text-transform:uppercase;color:var(--teal-strong)}
.qf dd{margin:8px 0 0;font-size:15px;font-weight:600;letter-spacing:-.01em;line-height:1.4}

/* prose */
.prose{max-width:68ch}
.prose>p{font-size:16.5px;line-height:1.75;color:var(--body)}
.prose>p+p{margin-top:18px}
.prose h2{font-size:clamp(21px,3.2vw,27px);margin:38px 0 14px;letter-spacing:-.02em}
.prose h2:first-child{margin-top:0}
.prose a{color:var(--teal-strong);font-weight:600;text-decoration:underline;
         text-decoration-color:rgba(3,92,112,.32);text-underline-offset:3px}
.prose a:hover{text-decoration-color:currentColor}
.prose ul{margin:16px 0;display:grid;gap:10px}
.prose li{position:relative;padding-left:22px;font-size:16px;line-height:1.65;color:var(--body)}
.prose li::before{content:'';position:absolute;left:0;top:10px;width:7px;height:7px;border-radius:50%;
                  background:var(--teal)}

/* typical work, the teal-node-on-a-hairline motif */
.tw-list{display:grid;gap:0;margin-top:8px}
.tw-list li{display:flex;gap:14px;align-items:flex-start;padding:16px 0;
            border-bottom:1px solid var(--line);font-size:15.5px;line-height:1.55}
.tw-list li:first-child{border-top:1px solid var(--line)}
.tw-list i{width:9px;height:9px;flex:none;margin-top:8px;border-radius:50%;background:var(--teal);
           box-shadow:0 0 0 4px rgba(33,201,208,.16)}

/* pricing bands */
.bands{display:grid;gap:12px;margin-top:26px}
.band-c{background:var(--surface);border-radius:var(--r-card);padding:22px 20px;box-shadow:var(--sh-soft);
        display:flex;flex-direction:column;gap:8px}
.band-c b{font-size:16px;letter-spacing:-.01em}
.band-c span{font-family:'Geist Mono',monospace;font-size:11px;letter-spacing:.09em;
             text-transform:uppercase;color:var(--body)}
.band-c em{font-style:normal;font-size:clamp(20px,3.4vw,25px);font-weight:800;letter-spacing:-.025em}
.quoted{background:var(--wash);border-radius:var(--r-card);padding:22px 20px;font-size:15px;
        color:var(--body);line-height:1.6;margin-top:26px}

/* stack */
.stack{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.stack span{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
            border-radius:var(--r-pill);padding:8px 15px;font-size:13.5px;color:#cfe0ea}

/* related */
.rel{display:grid;gap:12px}
.rel a{background:var(--surface);border-radius:var(--r-card);padding:20px;box-shadow:var(--sh-soft);
       display:flex;flex-direction:column;gap:9px;transition:transform .2s,box-shadow .2s}
.rel a:hover{transform:translateY(-3px);box-shadow:var(--sh-card)}
.rel h3{font-size:16px;letter-spacing:-.01em}
.rel p{font-size:14px;color:var(--body);line-height:1.5;flex:1}
.rel .go{display:flex;align-items:center;gap:7px;font-family:'Geist Mono',monospace;font-size:11px;
         letter-spacing:.08em;text-transform:uppercase;color:var(--teal-strong)}
.rel .go svg{width:14px;height:14px;transition:transform .2s}
.rel a:hover .go svg{transform:translateX(3px)}

/* breadcrumb */
.crumb{display:flex;align-items:center;gap:9px;font-family:'Geist Mono',monospace;font-size:11px;
       letter-spacing:.06em;color:var(--body);margin-bottom:20px}
.crumb a:hover{color:var(--teal-strong)}
.crumb svg{width:13px;height:13px;opacity:.5}

@media (min-width:640px){
  .qf{grid-template-columns:repeat(4,1fr)}
  .bands{grid-template-columns:repeat(3,1fr)}
  .rel{grid-template-columns:repeat(3,1fr)}
}
@media (min-width:960px){
  .shero{grid-template-columns:1fr auto;align-items:start;gap:56px}
  .smark{width:128px;height:128px;border-radius:32px}
  .smark svg{width:70px;height:70px}
}

/* ---- technology cards (frameworks + languages), gen-tech.py ---- */
.techs{display:grid;gap:14px}
.tech{background:var(--surface);border-radius:var(--r-card);padding:22px;box-shadow:var(--sh-soft);
      display:flex;flex-direction:column;gap:10px;position:relative;overflow:hidden;
      transition:transform .2s,box-shadow .2s}
.tech::before{content:"";position:absolute;inset:0 0 auto;height:2px;background:var(--teal);
              transform:scaleX(0);transform-origin:left;transition:transform .28s}
.tech:hover{transform:translateY(-3px);box-shadow:var(--sh-card)}
.tech:hover::before{transform:scaleX(1)}
.tech__logo{width:46px;height:46px;border-radius:12px;background:var(--wash);
            display:grid;place-items:center}
.tech__logo img{width:26px;height:26px;object-fit:contain}
.tech__cat{font-family:'Geist Mono',monospace;font-size:10px;letter-spacing:.09em;
           text-transform:uppercase;color:var(--teal-strong)}
.tech h3{font-size:19px;letter-spacing:-.015em;margin-top:-3px}
.tech p{font-size:14px;color:var(--body);line-height:1.55;flex:1}
.tech .svc__go{display:flex;align-items:center;gap:7px;font-family:'Geist Mono',monospace;
               font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--teal-strong)}
.tech .svc__go svg{width:14px;height:14px;transition:transform .2s}
.tech:hover .svc__go svg{transform:translateX(3px)}

/* the hero logo tile on a technology detail page */
.tlogo{width:84px;height:84px;border-radius:22px;background:var(--surface);
       box-shadow:var(--sh-card);display:grid;place-items:center}
.tlogo img{width:44px;height:44px;object-fit:contain}

@media (min-width:640px){
  .techs{grid-template-columns:repeat(2,1fr);gap:16px}
}
@media (min-width:960px){
  .techs{grid-template-columns:repeat(3,1fr);gap:18px}
  .tlogo{width:128px;height:128px;border-radius:32px}
  .tlogo img{width:66px;height:66px}
}

/* ---- Core Platform module cards, gen-platform.py ---- */
.mods{display:grid;gap:14px}
.mod{background:var(--surface);border-radius:var(--r-card);padding:22px;box-shadow:var(--sh-soft);
     display:flex;flex-direction:column;gap:10px;position:relative;overflow:hidden;
     transition:transform .2s,box-shadow .2s}
.mod::before{content:"";position:absolute;inset:0 0 auto;height:2px;background:var(--teal);
             transform:scaleX(0);transform-origin:left;transition:transform .28s}
.mod:hover{transform:translateY(-3px);box-shadow:var(--sh-card)}
.mod:hover::before{transform:scaleX(1)}
.mod__top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mod__cat{font-family:'Geist Mono',monospace;font-size:10px;letter-spacing:.09em;
          text-transform:uppercase;color:var(--teal-strong)}
.mod h3{font-size:20px;letter-spacing:-.015em}
.mod p{font-size:14px;color:var(--body);line-height:1.55;flex:1}
.mod .svc__go{display:flex;align-items:center;gap:7px;font-family:'Geist Mono',monospace;
              font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--teal-strong)}
.mod .svc__go svg{width:14px;height:14px;transition:transform .2s}
.mod:hover .svc__go svg{transform:translateX(3px)}
.stat{font-family:'Geist Mono',monospace;font-size:10px;letter-spacing:.07em;text-transform:uppercase;
      background:var(--chip);color:var(--body);padding:5px 10px;border-radius:var(--r-pill);white-space:nowrap}
.stat.is-live{background:rgba(33,201,208,.14);color:var(--teal-strong)}
.mstat{align-self:start}
[data-dark] .stat{background:rgba(255,255,255,.10);color:#cfe3ea}

@media (min-width:640px){ .mods{grid-template-columns:repeat(2,1fr);gap:16px} }
@media (min-width:960px){ .mods{grid-template-columns:repeat(3,1fr);gap:18px} }

/* ---- blog cards: the cover is the card, gen-blog.py ---- */
.posts{display:grid;gap:26px}
.post{display:flex;flex-direction:column;gap:12px}
.post__cov{position:relative;display:block;border-radius:var(--r-card);overflow:hidden;
           background:var(--wash);line-height:0}
.post__cov img{width:100%;height:auto;display:block;transition:transform .35s ease}
.post:hover .post__cov img{transform:scale(1.035)}
.post__cat{position:absolute;top:12px;right:12px;background:rgba(255,255,255,.94);
           border-radius:var(--r-pill);padding:6px 13px;font-family:'Geist Mono',monospace;
           font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink)}
.post h3{font-size:19px;letter-spacing:-.015em;line-height:1.3}
.post:hover h3{color:var(--teal-strong)}
.post__meta,.byline{display:flex;align-items:center;gap:9px;font-family:'Geist Mono',monospace;
                    font-size:11px;letter-spacing:.05em;color:var(--body)}
.post__meta i,.byline i{width:3px;height:3px;border-radius:50%;background:var(--line-strong);flex:none}
.post__hero{width:100%;height:auto;border-radius:var(--r-panel);display:block}
.byline{margin-top:22px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips .chip{background:var(--chip);color:var(--body);padding:7px 13px;border-radius:var(--r-pill);
             font-family:'Geist Mono',monospace;font-size:11px;letter-spacing:.05em;
             transition:background .18s,color .18s}
.chips .chip:hover{background:var(--line-strong);color:var(--ink)}
.chips .chip.is-on{background:var(--ink);color:#fff}
.article{max-width:68ch}
.article h2{font-size:26px;letter-spacing:-.02em;margin:38px 0 12px}
.article h3{font-size:20px;letter-spacing:-.015em;margin:28px 0 10px}
.article ul,.article ol{margin:14px 0 14px 20px;display:grid;gap:8px}
.article li{color:var(--body);line-height:1.6}
.article strong{color:var(--ink)}
.article a{color:var(--teal-strong);text-decoration:underline;text-underline-offset:3px}

@media (min-width:640px){ .posts{grid-template-columns:repeat(2,1fr);gap:28px} }
@media (min-width:1024px){ .posts{grid-template-columns:repeat(3,1fr);gap:30px} }

/* ---- PrestaShop practice cards, gen-prestashop.py ---- */
.pss{display:grid;gap:14px}
.ps{background:var(--surface);border-radius:var(--r-card);padding:22px;box-shadow:var(--sh-soft);
    display:flex;flex-direction:column;gap:10px;position:relative;overflow:hidden;
    transition:transform .2s,box-shadow .2s}
.ps::before{content:"";position:absolute;inset:0 0 auto;height:2px;background:var(--teal);
            transform:scaleX(0);transform-origin:left;transition:transform .28s}
.ps:hover{transform:translateY(-3px);box-shadow:var(--sh-card)}
.ps:hover::before{transform:scaleX(1)}
.ps__code{font-family:'Geist Mono',monospace;font-size:10px;letter-spacing:.1em;color:var(--teal-strong)}
.ps h3{font-size:19px;letter-spacing:-.015em}
.ps p{font-size:14px;color:var(--body);line-height:1.55;flex:1}
.ps__tags{display:flex;flex-wrap:wrap;gap:6px}
.ps__tags span{background:var(--chip);color:var(--body);border-radius:var(--r-pill);
               padding:4px 10px;font-family:'Geist Mono',monospace;font-size:10px}
.ps .svc__go{display:flex;align-items:center;gap:7px;font-family:'Geist Mono',monospace;font-size:11px;
             letter-spacing:.08em;text-transform:uppercase;color:var(--teal-strong)}
.ps .svc__go svg{width:14px;height:14px;transition:transform .2s}
.ps:hover .svc__go svg{transform:translateX(3px)}

/* ---- comparison table, gen-compare.py ---- */
.cmp-wrap{overflow-x:auto;border-radius:var(--r-panel);box-shadow:var(--sh-soft);background:var(--surface)}
.cmp{width:100%;min-width:620px;border-collapse:collapse;font-size:14.5px}
.cmp th,.cmp td{padding:16px 18px;text-align:left;vertical-align:top;line-height:1.55;
                border-bottom:1px solid var(--line)}
.cmp thead th{font-size:12px;font-family:'Geist Mono',monospace;letter-spacing:.08em;
              text-transform:uppercase;color:var(--body);background:var(--wash)}
.cmp thead th.is-core{color:var(--teal-strong)}
.cmp tbody th{font-weight:700;color:var(--ink);width:22%}
.cmp td{color:var(--body)}
.cmp td.is-core{color:var(--ink);background:rgba(33,201,208,.05)}
.cmp tbody tr:last-child th,.cmp tbody tr:last-child td{border-bottom:0}
.swap{display:grid;gap:26px}
.swap__h{font-size:17px;letter-spacing:-.01em;margin-bottom:14px}
.tw-list li.no i{background:var(--line-strong)}

@media (min-width:640px){ .pss{grid-template-columns:repeat(2,1fr);gap:16px} }
@media (min-width:860px){ .swap{grid-template-columns:1fr 1fr;gap:40px} }
@media (min-width:1080px){ .pss{grid-template-columns:repeat(4,1fr);gap:18px} }

/* ---- scene illustration in a service hero, gen-services.py ----
   Shown on phones too. Hiding it below 960px meant the eleven service pages
   had no artwork at all on the devices most of our traffic arrives on. */
.sart{display:block;width:100%;max-width:300px;height:auto;margin:22px auto 0}
@media (min-width:960px){
  .sart{width:340px;max-width:none;align-self:start;margin:-10px 0 0}
}
@media (min-width:1180px){ .sart{width:400px} }

/* ---- live site cards, gen-sites.py (shared with work/) ---- */
.sites{display:grid;gap:14px}
.site{display:flex;flex-direction:column;background:var(--surface);border-radius:var(--r-block);
      box-shadow:var(--sh-card);overflow:hidden;transition:transform .2s,box-shadow .2s}
.site:hover{transform:translateY(-3px);box-shadow:0 26px 54px rgba(var(--sh-tint),.12)}
/* The preview is mounted as a framed window sitting on a wash, rather than
   bled to the card edge. A raw screenshot butted against a white card reads as
   a mistake, and both of these sites have white or near-white chrome. */
.site__f{padding:18px 18px 0;background:linear-gradient(180deg,var(--wash) 0%,var(--surface) 100%)}
.site__win{border-radius:12px;overflow:hidden;border:1px solid var(--line);
           box-shadow:0 12px 28px rgba(var(--sh-tint),.13);background:var(--surface)}
.site__bar{display:flex;align-items:center;gap:11px;padding:9px 13px;background:#f3f3f3;
           border-bottom:1px solid var(--line)}
.site__dots{display:flex;gap:5px;flex:none}
.site__dots i{width:7px;height:7px;border-radius:50%;background:#c9c9c9}
.site__url{font-family:'Geist Mono',monospace;font-size:10.5px;letter-spacing:.03em;color:var(--body);
           white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* height:auto is load-bearing: the width/height attributes are presentational
   hints, so height="900" would otherwise beat aspect-ratio and paint the shot
   at natural size. Keep the attributes, they still reserve the right box. */
.site__shot{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;
            object-position:center top;background:var(--wash);
            transition:object-position .7s cubic-bezier(.22,.61,.36,1)}
.site:hover .site__shot{object-position:center 26%}
.site__b{padding:22px 20px;display:flex;flex-direction:column;gap:14px;flex:1}
.site__id{display:flex;align-items:center;gap:14px}
.site__logo{width:54px;height:54px;flex:none;border-radius:14px;background:var(--wash);
            display:grid;place-items:center;padding:9px}
.site__logo img{width:100%;height:auto;display:block}
.site h3{font-size:18px;letter-spacing:-.015em}
.site__k{margin-top:5px;font-family:'Geist Mono',monospace;font-size:10.5px;letter-spacing:.09em;
         text-transform:uppercase;color:var(--teal-strong)}
.site__c{font-size:14.5px;color:var(--body);line-height:1.6;flex:1}
.site__go{display:flex;align-items:center;gap:8px;min-height:44px;font-family:'Geist Mono',monospace;
          font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--teal-strong)}
.site__go svg{width:15px;height:15px;transition:transform .2s}
.site:hover .site__go svg{transform:translateX(3px)}

.site__tags{display:flex;flex-wrap:wrap;gap:7px}
.site__st,.site__grp{font-family:'Geist Mono',monospace;font-size:10px;letter-spacing:.07em;
                     text-transform:uppercase;border-radius:var(--r-pill);padding:5px 11px}
.site__st{background:rgba(33,201,208,.14);color:var(--teal-strong)}
.site__grp{background:var(--chip);color:var(--body)}
.site__soon{aspect-ratio:16/10;background:var(--wash);display:grid;place-items:center}
.site__soon span{font-family:'Geist Mono',monospace;font-size:11px;letter-spacing:.1em;
                 text-transform:uppercase;color:var(--body)}
div.site{cursor:default}
div.site:hover{transform:none;box-shadow:var(--sh-card)}
div.site .site__go{color:var(--body)}
@media (min-width:700px){ .sites{grid-template-columns:repeat(2,1fr);gap:16px} }
@media (min-width:1100px){ .sites{grid-template-columns:repeat(3,1fr);gap:18px} }

/* ---- quick facts as an icon bento, gen-services.py ---- */
.qb{display:grid;gap:12px}
.qb__c{background:var(--surface);border-radius:var(--r-card);padding:22px 20px;box-shadow:var(--sh-soft);
       transition:transform .2s,box-shadow .2s}
.qb__c:hover{transform:translateY(-3px);box-shadow:var(--sh-card)}
.qb__i{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;
       background:rgba(33,201,208,.13);color:var(--teal-strong);margin-bottom:16px}
.qb__i svg{width:22px;height:22px}
.qb dt{font-family:'Geist Mono',monospace;font-size:11px;letter-spacing:.1em;text-transform:uppercase;
       color:var(--body);margin-bottom:7px}
.qb dd{margin:0;font-size:16.5px;font-weight:700;letter-spacing:-.015em;line-height:1.35;color:var(--ink)}

/* ---- "what you get" as a lighter two-up grid, not a stacked list ---- */
.tw-grid{display:grid;gap:2px;margin-top:6px}
.tw-grid li{display:flex;gap:12px;align-items:flex-start;padding:15px 0;
            border-bottom:1px solid var(--line);font-size:15.5px;line-height:1.5;color:var(--ink)}
.tw-grid li:first-child{border-top:1px solid var(--line)}
.tw-grid svg{width:19px;height:19px;flex:none;margin-top:2px;color:var(--teal-strong)}

@media (min-width:640px){ .qb{grid-template-columns:repeat(2,1fr);gap:14px} }
@media (min-width:900px){
  .tw-grid{grid-template-columns:1fr 1fr;column-gap:40px}
  .tw-grid li:nth-child(2){border-top:1px solid var(--line)}
}
@media (min-width:1024px){ .qb{grid-template-columns:repeat(4,1fr);gap:16px} }

/* PrestaShop practice index: the three arrival situations, and the rate bands.
   Both were on the live page and had no equivalent in the redesign. */
.pcases{display:grid;gap:12px}
.pcase{background:var(--surface);border-radius:var(--r-card);padding:26px 24px;box-shadow:var(--sh-soft)}
.pcase__k{display:block;font-family:'Geist Mono',monospace;font-size:10.5px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--teal-strong);margin-bottom:12px}
.pcase h3{margin:0 0 10px;font-size:19px;font-weight:700;letter-spacing:-.02em;line-height:1.25}
.pcase p{margin:0;font-size:15px;line-height:1.6;color:var(--body)}

.pbands{display:grid;gap:12px}
.pband{background:var(--surface);border-radius:var(--r-card);padding:24px;box-shadow:var(--sh-soft)}
.pband__l{display:block;font-family:'Geist Mono',monospace;font-size:10.5px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.pband b.num{display:block;font-size:clamp(26px,5vw,32px);font-weight:800;letter-spacing:-.03em;line-height:1}
.pband__n{display:block;margin-top:8px;font-size:13px;color:var(--body)}

@media (min-width:760px){
  .pcases{grid-template-columns:repeat(3,1fr)}
  .pbands{grid-template-columns:repeat(3,1fr)}
}
.pcases--2{grid-template-columns:1fr}
.pcase .tw-list{margin:14px 0 0}
@media (min-width:760px){.pcases--2{grid-template-columns:1fr 1fr}}
/* Card excerpt. The index used to show only a title, which gave a reader nothing
   to choose on and threw away the description we already write for every post. */
.post__ex{margin:8px 0 0;font-size:14.5px;line-height:1.55;color:var(--body);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
