/* KRIVA · /services/web-development · page-scoped
   Rhythm, cards, FAQ, and contact match trucking / API integrations pages. */

body.page-web{
  background:#fff;
  color:var(--ink);
  overflow-x:clip
}
body.page-web main{
  color:var(--steel);
  font-size:16px;
  line-height:1.62
}

body.page-web .d1{
  font-size:clamp(2rem,4.8vw,4.05rem);
  line-height:.92;
  letter-spacing:-.03em;
  color:var(--ink)
}
body.page-web .d2{
  font-size:clamp(2rem,3.8vw,3.4rem);
  line-height:1.08;
  letter-spacing:-.025em;
  font-weight:700;
  color:var(--ink);
  max-width:16ch
}
body.page-web .d3{
  font-size:clamp(1.28rem,2vw,1.7rem);
  line-height:1.16;
  letter-spacing:-.022em;
  color:var(--ink)
}
body.page-web .lede{
  margin-top:18px;
  max-width:42ch;
  font-size:clamp(1.05rem,1.3vw,1.22rem);
  line-height:1.6;
  letter-spacing:-.01em;
  color:var(--steel)
}
body.page-web .body-sm{
  font-size:15px;
  line-height:1.62;
  color:var(--steel);
  max-width:48ch
}

body.page-web #probH{max-width:20em}
body.page-web #siteH{max-width:20em}
body.page-web #shipH{max-width:18ch}
body.page-web #delH{max-width:18ch}
body.page-web #proofH{max-width:16ch}
body.page-web #relH{max-width:18ch}
body.page-web #faqH{max-width:13ch}
body.page-web #inqH{max-width:16ch}

body.page-web main > section{
  background:#fff;
  padding:96px 0;
  scroll-margin-top:88px
}
body.page-web .hero{
  background:#fff;
  color:var(--ink);
  overflow:hidden;
  padding:calc(72px + 48px) 0 48px;
  scroll-margin-top:88px;
  min-height:0
}
body.page-web .web-band{
  background:#f7f8f9;
  border-top:1px solid #e6e7ea
}

body.page-web main .btn{border-radius:8px}
body.page-web main .btn.ghost{
  --btn-fg:var(--ink);
  border-color:#e6e7ea
}

body.page-web .web-card{
  background:#fff;
  border:1px solid #e6e7ea;
  border-radius:12px;
  padding:32px 28px;
  min-width:0
}
body.page-web .web-card h3{
  font-family:var(--f-display);
  font-weight:700;
  font-size:clamp(1.05rem,1.5vw,1.2rem);
  letter-spacing:-.02em;
  line-height:1.2;
  color:var(--ink);
  margin-bottom:10px
}
body.page-web .web-card p,
body.page-web .web-card li{
  font-size:14.5px;
  line-height:1.55;
  color:var(--steel)
}
.web-k{
  display:block;
  font-family:var(--f-mono);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--cta);
  margin-bottom:12px
}

/* ── Fit cards ── */
.web-fit{padding-top:0 !important}
.web-fit-rail{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px
}
.web-fit-foot{
  margin-top:24px;
  font-size:15px;
  line-height:1.62;
  color:var(--steel);
  max-width:62ch
}

/* ── Problems · dark band ── */
body.page-web .web-problems{
  background:var(--ink);
  color:#DDE2E7;
  border-top:0
}
body.page-web .web-problems :focus-visible{outline-color:var(--amber)}
body.page-web .web-problems .eyebrow{color:var(--ink-dim)}
body.page-web .web-problems h2{color:#fff}
body.page-web .web-problems h3{color:#fff}
body.page-web .web-problems .web-frac{border-top-color:var(--ink-line)}
body.page-web .web-problems .web-frac article{border-bottom-color:var(--ink-line)}
body.page-web .web-problems .web-frac .n{color:#3A444E;transition:color .45s var(--e)}
body.page-web .web-problems .web-frac article:hover .n{color:var(--cta)}
body.page-web .web-problems .web-frac p{color:#8C98A4}
body.page-web .web-problems .web-problems .cons,
body.page-web .web-problems .web-frac .cons{color:var(--amber)}

.web-frac{margin-top:40px;border-top:1px solid #e6e7ea}
.web-frac article{
  display:grid;
  grid-template-columns:56px minmax(0,1fr);
  gap:20px 28px;
  align-items:start;
  padding:28px 0;
  border-bottom:1px solid #e6e7ea
}
.web-frac .n{
  font-family:var(--f-display);
  font-weight:800;
  font-size:clamp(1.35rem,2vw,1.7rem);
  letter-spacing:-.04em;
  color:var(--cta);
  line-height:1;
  padding-top:4px
}
.web-frac h3{margin-bottom:8px;max-width:22ch}
.web-frac p{font-size:15px;line-height:1.62;color:var(--steel);max-width:48ch;margin:0}
.web-frac .cons{
  display:block;
  margin-top:8px;
  font-family:var(--f-mono);
  font-size:10.5px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#b45309
}

/* ── Site showcase · desktop + mobile ── */
.web-showcase{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:clamp(20px,3vw,32px);
  margin-top:40px;
  align-items:stretch
}
.web-showcase > *{min-width:0}
.web-frame{
  background:var(--ink);
  border:1px solid var(--ink-line);
  border-radius:12px;
  box-shadow:var(--shadow-product);
  overflow:hidden;
  min-width:0
}
.web-chrome{
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  background:#12181E;
  border-bottom:1px solid var(--ink-line);
  font-family:var(--f-mono);
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#717F8C
}
.web-chrome i{width:8px;height:8px;border-radius:50%;background:#2A333C;flex:none}
.web-chrome i:first-child{background:#5C6670}
.web-chrome span{margin-left:8px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.web-frame .pu{border-radius:0;min-height:280px}
.web-frame--mobile .pu{min-height:320px}
.web-cap{
  margin-top:14px;
  font-family:var(--f-mono);
  font-size:10.5px;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--steel-2)
}
.web-stack{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  margin-top:40px
}
.web-stack ul{
  list-style:none;
  display:grid;
  gap:8px;
  margin-top:12px
}
.web-stack li{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:10px;
  font-size:14.5px;
  color:var(--steel);
  line-height:1.45
}
.web-stack li:before{
  content:"";
  width:6px;
  height:6px;
  margin-top:7px;
  background:var(--cta);
  flex:none
}
.web-stack a{color:var(--ink);border-bottom:1px solid #e6e7ea}
.web-stack a:hover{border-color:var(--ink)}

/* ── How we ship ── */
.web-flow{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  margin-top:40px;
  padding:0
}
.web-flow li{
  min-width:0;
  background:#fff;
  border:1px solid #e6e7ea;
  border-top:2px solid var(--cta);
  border-radius:12px;
  padding:24px
}
.web-flow .sn{
  display:block;
  font-family:var(--f-mono);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--cta);
  margin-bottom:10px
}
.web-flow h3{
  font-family:var(--f-display);
  font-weight:700;
  font-size:clamp(.98rem,1.4vw,1.1rem);
  letter-spacing:-.02em;
  line-height:1.2;
  color:var(--ink);
  margin-bottom:8px
}
.web-flow p{font-size:13.5px;line-height:1.5;color:var(--steel);margin:0}

/* ── Deliverables ── */
.web-deliver{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  margin-top:40px
}
.web-deliver div{
  background:#fff;
  border:1px solid #e6e7ea;
  border-radius:12px;
  padding:28px 24px;
  min-width:0
}
.web-deliver b{
  display:block;
  font-family:var(--f-mono);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--cta);
  margin-bottom:12px
}
.web-deliver span{
  display:block;
  font-family:var(--f-display);
  font-weight:700;
  font-size:clamp(1.05rem,1.5vw,1.2rem);
  letter-spacing:-.02em;
  line-height:1.25;
  color:var(--ink)
}

/* ── Proof · BrandLift ── */
.web-proof-shot{
  margin:0;
  border:1px solid var(--rule);
  border-radius:10px;
  overflow:hidden;
  background:#0a0d10
}
.web-proof-secondary .web-text-link{display:inline-flex;margin-top:14px;margin-right:18px}
.web-story{
  margin-top:28px;
  border-top:1px solid #e6e7ea
}
.web-story div{
  display:grid;
  grid-template-columns:clamp(88px,10vw,112px) minmax(0,1fr);
  gap:12px 16px;
  padding:14px 0;
  border-bottom:1px solid #e6e7ea
}
.web-story dt{
  font-family:var(--f-mono);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--steel);
  padding-top:3px
}
.web-story dd{
  font-size:14.5px;
  line-height:1.55;
  color:var(--steel);
  max-width:48ch
}
.proof-cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px
}
.proof-note{margin-top:22px;font-size:13.5px;line-height:1.6;color:var(--steel-2);max-width:52ch}
.web-proof-visual .web-frame .pu{min-height:240px}

/* ── Related services ── */
.web-related-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  margin-top:40px
}
.web-text-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:16px;
  font-family:var(--f-mono);
  font-size:11.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--steel);
  border-bottom:1px solid currentColor;
  padding-bottom:2px
}
.web-text-link:hover{color:var(--ink);border-color:var(--ink)}
.web-related-grid .web-card p{margin:0}
.web-related-grid ul{
  list-style:none;
  display:grid;
  gap:8px;
  margin-top:12px
}
.web-related-grid li{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:10px;
  font-size:14.5px;
  color:var(--steel);
  line-height:1.45
}
.web-related-grid li:before{
  content:"";
  width:6px;
  height:6px;
  margin-top:7px;
  background:var(--cta);
  flex:none
}

/* ── FAQ ── */
body.page-web .faq-sec{background:#fff}
body.page-web .faq-grid{
  display:grid;
  grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);
  gap:clamp(32px,5vw,80px);
  align-items:start
}
body.page-web .faq-grid > div:first-child{position:sticky;top:112px}
body.page-web .faq-list{border-top:1px solid #e6e7ea}
body.page-web .faq-item{border-bottom:1px solid #e6e7ea}
body.page-web .faq-q{
  width:100%;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) 22px;
  gap:clamp(12px,2vw,24px);
  align-items:start;
  text-align:left;
  padding:22px 0
}
body.page-web .faq-q .qn{
  font-family:var(--f-mono);
  font-size:10.5px;
  letter-spacing:.12em;
  color:var(--steel);
  padding-top:5px
}
body.page-web .faq-item.open .qn{color:var(--cta)}
body.page-web .faq-q .qt{
  font-family:var(--f-display);
  font-weight:700;
  font-size:clamp(1.05rem,1.65vw,1.32rem);
  letter-spacing:-.02em;
  line-height:1.28;
  color:var(--ink)
}
body.page-web .faq-q .qi{justify-self:end;position:relative;width:22px;height:22px;margin-top:2px}
body.page-web .faq-q .qi:before,
body.page-web .faq-q .qi:after{
  content:"";
  position:absolute;
  inset:50% 2px;
  height:1px;
  background:var(--ink)
}
body.page-web .faq-q .qi:after{transform:rotate(90deg)}
body.page-web .faq-item.open .qi:after{transform:rotate(0)}
body.page-web .faq-a{
  display:grid;
  grid-template-rows:0fr;
  visibility:hidden;
  transition:grid-template-rows .5s var(--e),visibility 0s linear .5s
}
body.page-web .faq-item.open .faq-a{
  grid-template-rows:1fr;
  visibility:visible;
  transition:grid-template-rows .5s var(--e),visibility 0s linear 0s
}
body.page-web .faq-a>div{overflow:hidden}
body.page-web .faq-a-in{padding:0 0 24px calc(46px + clamp(12px,2vw,24px))}
body.page-web .faq-a-in p{font-size:15px;line-height:1.65;color:var(--steel);max-width:58ch}
body.page-web .faq-a-in a{color:var(--ink);border-bottom:1px solid #e6e7ea}
body.page-web .faq-a-in a:hover{border-color:var(--ink)}

/* ── Contact (dark) ── */
body.page-web .web-contact{
  background:#101014;
  color:#c8c9d0;
  padding:96px 0;
  scroll-margin-top:88px
}
body.page-web .web-contact .eyebrow{color:#8b8c94}
body.page-web .web-contact h2{color:#fff;margin-top:18px;max-width:16ch}
body.page-web .web-contact .lede{color:#c8c9d0;max-width:42ch}
body.page-web .web-trust{
  display:flex;
  flex-wrap:wrap;
  gap:10px 22px;
  margin-top:22px;
  font-family:var(--f-mono);
  font-size:10.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#8b8c94
}
body.page-web .web-trust span{display:inline-flex;align-items:center;gap:8px}
body.page-web .web-trust span:before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--cta);
  flex:none
}
body.page-web .web-contact .inq-grid{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(32px,5vw,72px);
  align-items:start
}
body.page-web .web-contact .inq-form{display:grid;gap:16px;position:relative}
body.page-web .web-contact .inq-form .inq-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
body.page-web .web-contact .inq-form label{
  display:block;
  font-family:var(--f-mono);
  font-size:10.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#8b8c94;
  margin-bottom:8px
}
body.page-web .web-contact .inq-form label .req{color:var(--lilac);margin-left:6px}
body.page-web .web-contact .inq-form label .opt{color:#6f7078;margin-left:6px;font-weight:400}
body.page-web .web-contact .inq-form input,
body.page-web .web-contact .inq-form textarea{
  font:inherit;
  font-size:16px;
  width:100%;
  min-height:48px;
  padding:12px 14px;
  background:#1a1a22;
  border:1px solid #2a2a32;
  border-radius:8px;
  color:#fff;
  transition:border-color var(--t-fast) var(--e),box-shadow var(--t-fast) var(--e)
}
body.page-web .web-contact .inq-form textarea{min-height:120px;resize:vertical;line-height:1.55}
body.page-web .web-contact .inq-form input:focus,
body.page-web .web-contact .inq-form textarea:focus{
  outline:none;
  border-color:var(--cta);
  box-shadow:0 0 0 3px rgba(79,70,229,.35)
}
body.page-web .web-contact .inq-form input[aria-invalid="true"],
body.page-web .web-contact .inq-form textarea[aria-invalid="true"]{border-color:#f87171}
body.page-web .web-contact .inq-err{display:none;margin-top:6px;font-size:12px;color:#f87171}
body.page-web .web-contact .inq-err.on{display:block}
body.page-web .web-contact .inq-note{
  font-family:var(--f-mono);
  font-size:10.5px;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:#8b8c94
}
body.page-web .web-contact .inq-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:4px}
body.page-web .web-contact .inq-fail{display:none;padding:12px 14px;border:1px solid #f87171;background:#2a1518;font-size:14px;color:#f87171}
body.page-web .web-contact .inq-fail.on{display:block}
body.page-web .web-contact .inq-done{display:none;border:1px solid #2a2a32;padding:28px;background:#1a1a22;border-radius:12px}
body.page-web .web-contact .inq-done.on{display:block}
body.page-web .web-contact .inq-done h3{margin:0 0 10px;color:#fff}
body.page-web .web-contact .inq-done p{font-size:15px;line-height:1.7;color:#c8c9d0;max-width:42ch}
body.page-web .web-contact .inq-done a{color:#fff;border-bottom:1px solid #3a3a44}
body.page-web .web-contact .inq-form.sent{display:none}
body.page-web .web-contact :focus-visible{outline-color:var(--amber)}

body.page-web .fmark img{width:min(100%,390px);opacity:.22}
body.page-web .fbase,body.page-web .fbase a{color:#9AA5B0}
body.page-web .chapters a{color:#6f7078}
body.page-web .chapters a[aria-current="true"]{color:var(--ink)}

body.page-web .mob-chips{
  display:none;
  position:sticky;
  top:58px;
  z-index:60;
  gap:8px;
  overflow-x:auto;
  padding:10px var(--gutter) 12px;
  width:100%;
  max-width:100%;
  background:rgba(255,255,255,.94);
  border-bottom:1px solid #e6e7ea;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch
}
body.page-web .mob-chips::-webkit-scrollbar{display:none}
body.page-web .mob-chips a{
  flex:none;
  font-family:var(--f-mono);
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
  padding:8px 12px;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  border:1px solid #e6e7ea;
  color:#6f7078;
  background:#fff;
  white-space:nowrap
}
body.page-web .mob-chips a[aria-current="true"]{border-color:#111114;color:#111114}
@media(max-width:1280px){
  body.page-web .mob-chips{display:flex !important}
  body.page-web .hero,
  body.page-web main > section{scroll-margin-top:calc(88px + 48px)}
}

@media(max-width:1024px){
  .web-showcase,
  .web-proof-split,
  .web-proof-secondary,
  .web-fit-rail,
  body.page-web .faq-grid,
  body.page-web .web-contact .inq-grid{grid-template-columns:1fr}
  .web-stack,
  .web-flow{grid-template-columns:1fr 1fr}
  .web-related-grid{grid-template-columns:1fr}
  body.page-web .faq-grid > div:first-child{position:static}
}
@media(max-width:768px){
  body.page-web main > section,
  body.page-web .web-contact{padding:64px 0}
  body.page-web .hero{padding:calc(58px + 32px) 0 32px}
  .web-fit{padding-top:0 !important;padding-bottom:64px !important}
  .web-stack,
  .web-flow,
  .web-deliver,
  body.page-web .web-contact .inq-form .inq-row{grid-template-columns:1fr}
  .web-story div{grid-template-columns:1fr;gap:6px}
  .proof-cta .btn{width:100%;justify-content:center}
  body.page-web .faq-q{grid-template-columns:32px minmax(0,1fr) 20px;gap:12px}
  body.page-web .faq-a-in{padding-left:44px}
  body.page-web .web-contact .inq-actions .btn{width:100%;justify-content:center}
  .web-frac article{grid-template-columns:40px minmax(0,1fr);gap:14px}
}
@media(max-width:560px){
  .web-frac article{grid-template-columns:1fr;gap:8px}
  .web-card{padding:28px 22px}
}
@media(max-width:390px){
  .web-chrome span:not(:first-of-type){max-width:120px}
}

@media(prefers-reduced-motion:reduce){
  html:focus-within{scroll-behavior:auto}
  *,*:before,*:after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important;transition-delay:0ms!important}
  [data-r],[data-s]>*{opacity:1!important;transform:none!important}
  .mask span i{transform:none!important}
}
